summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2024-02-17 21:14:38 +0000
committerGitHub <noreply@github.com>2024-02-17 21:14:38 +0000
commit64f5195abb899b9dc9ce9d7b96c59d5faabf6c0a (patch)
treedc890426c8ba418cb3d44dbeaf9805b5405aae69 /op-mode-definitions
parent85e3866dde344b6f829ad38ef09522f1430725dc (diff)
parent9f2408d9d37620d921a09c9e899046e4c9c3e599 (diff)
downloadvyos-1x-64f5195abb899b9dc9ce9d7b96c59d5faabf6c0a.tar.gz
vyos-1x-64f5195abb899b9dc9ce9d7b96c59d5faabf6c0a.zip
Merge pull request #3028 from vyos/mergify/bp/sagitta/pr-3027
op-mode: T5581: add "show ipv6 nht" command (backport #3027)
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/include/show-nht.xml.i20
-rw-r--r--op-mode-definitions/show-ip.xml.in7
-rw-r--r--op-mode-definitions/show-ipv6.xml.in1
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>