summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-interfaces-sstpc.xml.in
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2022-12-11 19:38:28 +0100
committerChristian Poessinger <christian@poessinger.com>2022-12-11 20:27:40 +0100
commitff56aeefddaad2d37d3ea32626e1adf3960eaf26 (patch)
treef43b289db8073adc10a67607d6e043c18acd764d /op-mode-definitions/show-interfaces-sstpc.xml.in
parent3296a10dc27d2fb1c79db07b26d62c8abb6a51bc (diff)
downloadvyos-1x-ff56aeefddaad2d37d3ea32626e1adf3960eaf26.tar.gz
vyos-1x-ff56aeefddaad2d37d3ea32626e1adf3960eaf26.zip
sstp: T4384: initial implementation of SSTP client CLI
vyos@vyos# show interfaces sstpc sstpc sstpc10 { authentication { password vyos user vyos } server sstp.vyos.net ssl { ca-certificate VyOS-CA } }
Diffstat (limited to 'op-mode-definitions/show-interfaces-sstpc.xml.in')
-rw-r--r--op-mode-definitions/show-interfaces-sstpc.xml.in51
1 files changed, 51 insertions, 0 deletions
diff --git a/op-mode-definitions/show-interfaces-sstpc.xml.in b/op-mode-definitions/show-interfaces-sstpc.xml.in
new file mode 100644
index 000000000..e66d3a0ac
--- /dev/null
+++ b/op-mode-definitions/show-interfaces-sstpc.xml.in
@@ -0,0 +1,51 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="interfaces">
+ <children>
+ <tagNode name="sstpc">
+ <properties>
+ <help>Show specified SSTP client interface information</help>
+ <completionHelp>
+ <path>interfaces sstpc</path>
+ </completionHelp>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4"</command>
+ <children>
+ <leafNode name="log">
+ <properties>
+ <help>Show specified SSTP client interface log</help>
+ </properties>
+ <command>journalctl --no-hostname --boot --follow --unit "ppp@$4".service</command>
+ </leafNode>
+ <leafNode name="statistics">
+ <properties>
+ <help>Show specified SSTP client interface statistics</help>
+ <completionHelp>
+ <path>interfaces sstpc</path>
+ </completionHelp>
+ </properties>
+ <command>if [ -d "/sys/class/net/$4" ]; then /usr/sbin/pppstats "$4"; fi</command>
+ </leafNode>
+ </children>
+ </tagNode>
+ <node name="sstpc">
+ <properties>
+ <help>Show SSTP client interface information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_interfaces.py --intf-type=sstpc --action=show-brief</command>
+ <children>
+ <leafNode name="detail">
+ <properties>
+ <help>Show detailed SSTP client interface information</help>
+ </properties>
+ <command>${vyos_op_scripts_dir}/show_interfaces.py --intf-type=sstpc --action=show</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>