diff options
author | Daniil Baturin <daniil@vyos.io> | 2024-02-17 20:45:22 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-17 20:45:22 +0000 |
commit | a641c80f32e5e5870107f70f17d7f1159b3da91f (patch) | |
tree | 691ff499652be1a22206950ec08cdf9ab8b8da19 | |
parent | 2a6318dfc1c3eb6e152a7187306f6308e279a30c (diff) | |
parent | e144e55d6360a92279167198928cbe24efd97f08 (diff) | |
download | vyos-1x-a641c80f32e5e5870107f70f17d7f1159b3da91f.tar.gz vyos-1x-a641c80f32e5e5870107f70f17d7f1159b3da91f.zip |
Merge pull request #3027 from c-po/nht-T5581
op-mode: T5581: add "show ipv6 nht" command
-rw-r--r-- | op-mode-definitions/include/show-nht.xml.i | 20 | ||||
-rw-r--r-- | op-mode-definitions/show-ip.xml.in | 7 | ||||
-rw-r--r-- | op-mode-definitions/show-ipv6.xml.in | 1 |
3 files changed, 22 insertions, 6 deletions
diff --git a/op-mode-definitions/include/show-nht.xml.i b/op-mode-definitions/include/show-nht.xml.i new file mode 100644 index 000000000..55dacf3a4 --- /dev/null +++ b/op-mode-definitions/include/show-nht.xml.i @@ -0,0 +1,20 @@ +<!-- included start from show-nht.xml.i --> +<node name="nht"> + <properties> + <help>Show Nexthop tracking table</help> + </properties> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + <children> + <tagNode name="vrf"> + <properties> + <help>Specify the VRF</help> + <completionHelp> + <path>vrf name</path> + <list>all default</list> + </completionHelp> + </properties> + <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> + </tagNode> + </children> +</node> +<!-- included end --> diff --git a/op-mode-definitions/show-ip.xml.in b/op-mode-definitions/show-ip.xml.in index 3caf1f1ea..bac4df05c 100644 --- a/op-mode-definitions/show-ip.xml.in +++ b/op-mode-definitions/show-ip.xml.in @@ -33,12 +33,7 @@ </tagNode> </children> </node> - <leafNode name="nht"> - <properties> - <help>Show IPv4 nexthop tracking table</help> - </properties> - <command>${vyos_op_scripts_dir}/vtysh_wrapper.sh $@</command> - </leafNode> + #include <include/show-nht.xml.i> </children> </node> </children> diff --git a/op-mode-definitions/show-ipv6.xml.in b/op-mode-definitions/show-ipv6.xml.in index 66bc2485a..e10379ac2 100644 --- a/op-mode-definitions/show-ipv6.xml.in +++ b/op-mode-definitions/show-ipv6.xml.in @@ -28,6 +28,7 @@ </properties> <command>vtysh -c "show ipv6 forwarding"</command> </node> + #include <include/show-nht.xml.i> <node name="ripng"> <properties> <help>Show RIPNG protocol information</help> |