summaryrefslogtreecommitdiff
path: root/op-mode-definitions/nhrp.xml.in
diff options
context:
space:
mode:
authoraapostoliuk <a.apostoliuk@vyos.io>2023-01-31 11:39:29 +0200
committeraapostoliuk <a.apostoliuk@vyos.io>2023-02-01 14:39:21 +0200
commitcccfa2b3df2f130955b725f6781f3c821800b238 (patch)
treebf5c6253d14de426f8ef25d0beebf9f30b1fd42b /op-mode-definitions/nhrp.xml.in
parente3139d4327aac18b9bde5499d124dc3d46864852 (diff)
downloadvyos-1x-cccfa2b3df2f130955b725f6781f3c821800b238.tar.gz
vyos-1x-cccfa2b3df2f130955b725f6781f3c821800b238.zip
nhrp: T4905: Rewritten nhrp op-mode in new style
1. Formatted output of 'show nhrp' commands to table view 2. Rewritten nhrp op-mode in new style
Diffstat (limited to 'op-mode-definitions/nhrp.xml.in')
-rw-r--r--op-mode-definitions/nhrp.xml.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/op-mode-definitions/nhrp.xml.in b/op-mode-definitions/nhrp.xml.in
index c10b111a7..11a4b8814 100644
--- a/op-mode-definitions/nhrp.xml.in
+++ b/op-mode-definitions/nhrp.xml.in
@@ -50,13 +50,13 @@
<properties>
<help>Show NHRP interface connection information</help>
</properties>
- <command>if pgrep opennhrp >/dev/null; then sudo opennhrpctl interface show; else echo OpenNHRP is not running; fi</command>
+ <command>${vyos_op_scripts_dir}/nhrp.py show_interface</command>
</leafNode>
<leafNode name="tunnel">
<properties>
<help>Show NHRP tunnel connection information</help>
</properties>
- <command>if pgrep opennhrp >/dev/null; then sudo opennhrpctl show ; else echo OpenNHRP is not running; fi</command>
+ <command>${vyos_op_scripts_dir}/nhrp.py show_tunnel</command>
</leafNode>
</children>
</node>