From cccfa2b3df2f130955b725f6781f3c821800b238 Mon Sep 17 00:00:00 2001
From: aapostoliuk <a.apostoliuk@vyos.io>
Date: Tue, 31 Jan 2023 11:39:29 +0200
Subject: 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
---
 op-mode-definitions/nhrp.xml.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'op-mode-definitions')

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>
-- 
cgit v1.2.3