diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-08-17 18:51:00 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-08-17 18:58:40 +0200 |
commit | 66fdca096a268ca574b81b2664078011c5bac3a7 (patch) | |
tree | 0a0171b96e4c93ab1ce542f788245d6fe0b3bdf8 | |
parent | a0bc338338a4518fe45129a5b3160ebb13a809c4 (diff) | |
download | vyos-1x-66fdca096a268ca574b81b2664078011c5bac3a7.tar.gz vyos-1x-66fdca096a268ca574b81b2664078011c5bac3a7.zip |
openvpn: T1548: add 'show interfaces openvpn' op-mode command
-rw-r--r-- | op-mode-definitions/openvpn.xml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/op-mode-definitions/openvpn.xml b/op-mode-definitions/openvpn.xml index 4a7f985e9..4c958257a 100644 --- a/op-mode-definitions/openvpn.xml +++ b/op-mode-definitions/openvpn.xml @@ -71,4 +71,42 @@ </node> </children> </node> + <node name="show"> + <children> + <node name="interfaces"> + <children> + <node name="openvpn"> + <properties> + <help>Show OpenVPN interface information</help> + </properties> + <children> + <leafNode name="detail"> + <properties> + <help>Show detailed OpenVPN interface information</help> + </properties> + <command>${vyatta_bindir}/vyatta-show-interfaces.pl --intf-type=openvpn --action=show</command> + </leafNode> + </children> + </node> + <tagNode name="openvpn"> + <properties> + <help>Show OpenVPN interface information</help> + <completionHelp> + <script>sudo ${vyos_completion_dir}/list_interfaces.py --type openvpn</script> + </completionHelp> + </properties> + <command>${vyatta_bindir}/vyatta-show-interfaces.pl --intf=$4</command> + <children> + <leafNode name="brief"> + <properties> + <help>Show summary of specified OpenVPN interface information</help> + </properties> + <command>${vyatta_bindir}/vyatta-show-interfaces.pl --intf="$4" --action=show-brief</command> + </leafNode> + </children> + </tagNode> + </children> + </node> + </children> + </node> </interfaceDefinition> |