diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-06-06 11:01:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-06 11:01:26 +0200 |
commit | f9c142bab451034cf8e119bb20b3f0ca7e1a6bcc (patch) | |
tree | a85d530f367975e7c93d0c57332045bcef704bd1 /op-mode-definitions/nhrp.xml.in | |
parent | c1a450a72aa9a353033a542dfd76bbd88b9fcac4 (diff) | |
parent | 68e5ca6b56b2b988a0cd9df5b860eab082b3d879 (diff) | |
download | vyos-1x-f9c142bab451034cf8e119bb20b3f0ca7e1a6bcc.tar.gz vyos-1x-f9c142bab451034cf8e119bb20b3f0ca7e1a6bcc.zip |
Merge pull request #865 from sarthurdev/current
nhrp: T3599: Migrate NHRP to XML/Python
Diffstat (limited to 'op-mode-definitions/nhrp.xml.in')
-rw-r--r-- | op-mode-definitions/nhrp.xml.in | 65 |
1 files changed, 65 insertions, 0 deletions
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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<interfaceDefinition> + <node name="reset"> + <children> + <node name="nhrp"> + <properties> + <help>Clear/Purge NHRP entries</help> + </properties> + <children> + <node name="flush"> + <properties> + <help>Clear all non-permanent entries</help> + </properties> + <children> + <tagNode name="tunnel"> + <properties> + <help>Clear all non-permanent entries</help> + </properties> + <command>sudo opennhrpctl flush dev $5 || echo OpenNHRP is not running.</command> + </tagNode> + </children> + <command>sudo opennhrpctl flush || echo OpenNHRP is not running.</command> + </node> + <node name="purge"> + <properties> + <help>Purge entries from NHRP cache</help> + </properties> + <children> + <tagNode name="tunnel"> + <properties> + <help>Purge all entries from NHRP cache</help> + </properties> + <command>sudo opennhrpctl purge dev $5 || echo OpenNHRP is not running.</command> + </tagNode> + </children> + <command>sudo opennhrpctl purge || echo OpenNHRP is not running.</command> + </node> + </children> + </node> + </children> + </node> + <node name="show"> + <children> + <node name="nhrp"> + <properties> + <help>Show NHRP info</help> + </properties> + <children> + <leafNode name="interface"> + <properties> + <help>Show NHRP interface connection information</help> + </properties> + <command>if [ -f /var/run/opennhrp.pid ]; then sudo opennhrpctl interface show; else echo OpenNHRP is not running.; fi</command> + </leafNode> + <leafNode name="tunnel"> + <properties> + <help>Show NHRP tunnel connection information</help> + </properties> + <command>if [ -f /var/run/opennhrp.pid ]; then sudo opennhrpctl show ; else echo OpenNHRP is not running.; fi</command> + </leafNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> |