diff options
| author | Lulu Cathrinus Grimalkin <me@erkin.party> | 2021-12-16 17:32:24 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-16 17:32:24 +0300 |
| commit | 9737a55f6dde490e7fdf1c9d5c5733e48c94d141 (patch) | |
| tree | d2c24363d921490bcef5cb3efb70ae794fbe22a5 /python/vyos/hostsd_client.py | |
| parent | 95b91627a6065b720365c9ae7d124d85fc8e493d (diff) | |
| parent | 55f8ede2d09a9ad095f9ec5c2a729f8c5fb6aafa (diff) | |
| download | veeos-1x-9737a55f6dde490e7fdf1c9d5c5733e48c94d141.tar.gz veeos-1x-9737a55f6dde490e7fdf1c9d5c5733e48c94d141.zip | |
Merge branch 'vyos:current' into current
Diffstat (limited to 'python/vyos/hostsd_client.py')
| -rw-r--r-- | python/vyos/hostsd_client.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/python/vyos/hostsd_client.py b/python/vyos/hostsd_client.py index 303b6ea47..f31ef51cf 100644 --- a/python/vyos/hostsd_client.py +++ b/python/vyos/hostsd_client.py @@ -79,6 +79,18 @@ class Client(object): msg = {'type': 'forward_zones', 'op': 'get'} return self._communicate(msg) + def add_authoritative_zones(self, data): + msg = {'type': 'authoritative_zones', 'op': 'add', 'data': data} + self._communicate(msg) + + def delete_authoritative_zones(self, data): + msg = {'type': 'authoritative_zones', 'op': 'delete', 'data': data} + self._communicate(msg) + + def get_authoritative_zones(self): + msg = {'type': 'authoritative_zones', 'op': 'get'} + return self._communicate(msg) + def add_search_domains(self, data): msg = {'type': 'search_domains', 'op': 'add', 'data': data} self._communicate(msg) |
