summaryrefslogtreecommitdiff
path: root/templates-op/show/nhrp/interface/node.def
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-08-11 11:46:44 +0000
committersever-sever <v.gletenko@vyos.io>2020-08-11 11:46:44 +0000
commite8c48fa960f8809ce844b3ab320f70ae8894e2d2 (patch)
tree898cba2a8e8c7a06e76ef8da0bf22b496c6b9aa2 /templates-op/show/nhrp/interface/node.def
parent4f9c75a6ffee881b52dec201e31975a8af486df2 (diff)
downloadvyos-nhrp-e8c48fa960f8809ce844b3ab320f70ae8894e2d2.tar.gz
vyos-nhrp-e8c48fa960f8809ce844b3ab320f70ae8894e2d2.zip
op-mode: T2325: Check pid file before show nhrp tunnel
Diffstat (limited to 'templates-op/show/nhrp/interface/node.def')
-rw-r--r--templates-op/show/nhrp/interface/node.def2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates-op/show/nhrp/interface/node.def b/templates-op/show/nhrp/interface/node.def
index 71b9f75..c00f5e2 100644
--- a/templates-op/show/nhrp/interface/node.def
+++ b/templates-op/show/nhrp/interface/node.def
@@ -1,3 +1,3 @@
help: Show NHRP interface connection information
run:
- sudo opennhrpctl interface show || echo OpenNHRP is not running.
+ if [ -f /var/run/opennhrp.pid ]; then sudo opennhrpctl interface show; else echo OpenNHRP is not running.; fi