summaryrefslogtreecommitdiff
path: root/vtysh/vtysh.h
diff options
context:
space:
mode:
authorPiotr Suchy <piotrsuchy@proton.me>2024-05-08 21:04:04 +0000
committerPiotr Suchy <piotrsuchy6@tlen.pl>2024-05-14 13:22:20 +0200
commit70e5005cba584a000c8d4d19807565c7a3394f4e (patch)
tree867d1e0548d337972b6e354c516196f2b7fe01a6 /vtysh/vtysh.h
parent281c891f167c198d0cdd90f54e06f2f30e403e87 (diff)
lib, vtysh, topotests: fix 'show ip[v6] access-list ... json' formatting
Similarly to recently fixed 'show ip[v6] prefix-list ...' - PR#15750, json output is not valid for 'show ip[v6] access-list ... json' commands, as it goes through all the running daemons and for each one it calls 'filter_show' creating a new json object. To aggreagate the output and create a valid json that can later be parsed, the commands were moved to vtysh and formatted accordingly Signed-off-by: Piotr Suchy <piotrsuchy@proton.me>
Diffstat (limited to 'vtysh/vtysh.h')
-rw-r--r--vtysh/vtysh.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/vtysh/vtysh.h b/vtysh/vtysh.h
index 131fbef8ba..b1d57aa3c2 100644
--- a/vtysh/vtysh.h
+++ b/vtysh/vtysh.h
@@ -68,6 +68,10 @@ extern struct event_loop *master;
VTYSH_ZEBRA | VTYSH_RIPD | VTYSH_RIPNGD | VTYSH_OSPFD | VTYSH_OSPF6D | \
VTYSH_BGPD | VTYSH_ISISD | VTYSH_PIMD | VTYSH_EIGRPD | \
VTYSH_FABRICD
+#define VTYSH_ACCESS_LIST_SHOW \
+ VTYSH_ZEBRA | VTYSH_RIPD | VTYSH_RIPNGD | VTYSH_OSPFD | VTYSH_OSPF6D | \
+ VTYSH_BGPD | VTYSH_ISISD | VTYSH_PIMD | VTYSH_EIGRPD | \
+ VTYSH_FABRICD
#define VTYSH_PREFIX_LIST_SHOW \
VTYSH_ZEBRA | VTYSH_RIPD | VTYSH_RIPNGD | VTYSH_OSPFD | VTYSH_OSPF6D | \
VTYSH_BGPD | VTYSH_ISISD | VTYSH_PIMD | VTYSH_EIGRPD | \