From b3bce6497cc20cad687efc818d679d71d62fbd26 Mon Sep 17 00:00:00 2001 From: sarthurdev <965089+sarthurdev@users.noreply.github.com> Date: Mon, 31 May 2021 12:08:48 +0200 Subject: nhrp: T3599: Migrate NHRP to XML/Python --- op-mode-definitions/nhrp.xml.in | 65 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 op-mode-definitions/nhrp.xml.in (limited to 'op-mode-definitions/nhrp.xml.in') diff --git a/op-mode-definitions/nhrp.xml.in b/op-mode-definitions/nhrp.xml.in new file mode 100644 index 000000000..9e746cc35 --- /dev/null +++ b/op-mode-definitions/nhrp.xml.in @@ -0,0 +1,65 @@ + + + + + + + Clear/Purge NHRP entries + + + + + Clear all non-permanent entries + + + + + Clear all non-permanent entries + + sudo opennhrpctl flush dev $5 || echo OpenNHRP is not running. + + + sudo opennhrpctl flush || echo OpenNHRP is not running. + + + + Purge entries from NHRP cache + + + + + Purge all entries from NHRP cache + + sudo opennhrpctl purge dev $5 || echo OpenNHRP is not running. + + + sudo opennhrpctl purge || echo OpenNHRP is not running. + + + + + + + + + + Show NHRP info + + + + + Show NHRP interface connection information + + if [ -f /var/run/opennhrp.pid ]; then sudo opennhrpctl interface show; else echo OpenNHRP is not running.; fi + + + + Show NHRP tunnel connection information + + if [ -f /var/run/opennhrp.pid ]; then sudo opennhrpctl show ; else echo OpenNHRP is not running.; fi + + + + + + -- cgit v1.2.3