Skip to content
Snippets Groups Projects
Commit 8fd17306 authored by Daniel Salzman's avatar Daniel Salzman
Browse files

ctl: fix listing current zones

parent 7966a38d
Branches
Tags
No related merge requests found
Pipeline #95934 passed with stages
in 10 minutes and 1 second
......@@ -73,6 +73,14 @@ finally:
ctl.close()
```
```python3
# List configured zones (including catalog member ones)
ctl.send_block(cmd="conf-list", flags="z")
resp = ctl.receive_block()
for zone in resp['zone']:
print(zone)
```
## Probe module
Using this module it's possible to receive traffic data from a running daemon with
......
......@@ -1963,6 +1963,7 @@ static void list_zone(zone_t *zone, knot_ctl_t *ctl)
knot_dname_to_str(buff, zone->name, sizeof(buff));
knot_ctl_data_t data = {
[KNOT_CTL_IDX_SECTION] = "zone",
[KNOT_CTL_IDX_ID] = buff
};
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment