diff options
author | Daniil Baturin <daniil@vyos.io> | 2022-06-02 09:20:37 -0400 |
---|---|---|
committer | Daniil Baturin <daniil@vyos.io> | 2022-06-02 09:20:37 -0400 |
commit | 67b342a2c59035a5282f92e3b3d77f698dc8887c (patch) | |
tree | 10883d56d49d9cbab035db896d0eb8b0399f3b3d /op-mode-definitions/ipv6-route.xml.in | |
parent | b9a26085b49397eb73e7110872b5c07015c911b4 (diff) | |
download | vyos-1x-67b342a2c59035a5282f92e3b3d77f698dc8887c.tar.gz vyos-1x-67b342a2c59035a5282f92e3b3d77f698dc8887c.zip |
T4446: use a unified neighbor display script
Diffstat (limited to 'op-mode-definitions/ipv6-route.xml.in')
-rw-r--r-- | op-mode-definitions/ipv6-route.xml.in | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/op-mode-definitions/ipv6-route.xml.in b/op-mode-definitions/ipv6-route.xml.in index 5f20444d4..4f8792f9f 100644 --- a/op-mode-definitions/ipv6-route.xml.in +++ b/op-mode-definitions/ipv6-route.xml.in @@ -7,7 +7,7 @@ <children> <node name="ipv6"> <properties> - <help>Show IPv6 routing information</help> + <help>Show IPv6 networking information</help> </properties> <children> <leafNode name="groups"> @@ -16,14 +16,32 @@ </properties> <command>netstat -gn6</command> </leafNode> - - <leafNode name="neighbors"> + <node name="neighbors"> <properties> - <help>Show IPv6 Neighbor Discovery (ND) information</help> + <help>Show IPv6 neighbor (NDP) table</help> </properties> <command>${vyos_op_scripts_dir}/show_neigh.py --family inet6</command> - </leafNode> - + <children> + <tagNode name="interface"> + <properties> + <help>Show IPv6 neighbor table for specified interface</help> + <completionHelp> + <script>${vyos_completion_dir}/list_interfaces.py -b</script> + </completionHelp> + </properties> + <command>${vyos_op_scripts_dir}/show_neigh.py --family inet6 --interface "$5"</command> + </tagNode> + <tagNode name="state"> + <properties> + <help>Show IPv6 neighbors with specified state</help> + <completionHelp> + <list>reachable stale failed permanent</list> + </completionHelp> + </properties> + <command>${vyos_op_scripts_dir}/show_neigh.py --family inet6 --state "$5"</command> + </tagNode> + </children> + </node> </children> </node> </children> |