diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-01 11:42:54 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2020-02-23 14:36:56 +0100 |
commit | c88b2442c23bb715334edcb673a3a0f9a2743aa2 (patch) | |
tree | 64aa2f995e0befdf1273ae779d2b47131f52e7b2 /op-mode-definitions/show-interfaces-pppoe.xml | |
parent | 426f9d33d24a163fc1fc169930d7b969abf846b0 (diff) | |
download | vyos-1x-c88b2442c23bb715334edcb673a3a0f9a2743aa2.tar.gz vyos-1x-c88b2442c23bb715334edcb673a3a0f9a2743aa2.zip |
pppoe: T1318: add op-mode commands for link information
Diffstat (limited to 'op-mode-definitions/show-interfaces-pppoe.xml')
-rw-r--r-- | op-mode-definitions/show-interfaces-pppoe.xml | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/op-mode-definitions/show-interfaces-pppoe.xml b/op-mode-definitions/show-interfaces-pppoe.xml new file mode 100644 index 000000000..3acb14486 --- /dev/null +++ b/op-mode-definitions/show-interfaces-pppoe.xml @@ -0,0 +1,36 @@ +<?xml version="1.0"?> +<interfaceDefinition> + <node name="show"> + <children> + <node name="interfaces"> + <children> + <tagNode name="pppoe"> + <properties> + <help>Show PPPoE interface information</help> + <completionHelp> + <script>${vyos_completion_dir}/list_pppoe_peers.sh</script> + </completionHelp> + </properties> + <command>${vyatta_bindir}/vyatta-show-interfaces.pl pppoe --intf="$4"</command> + <children> + <node name="log"> + <properties> + <help>Show PPPoE logs</help> + </properties> + <command>cat /var/log/vyatta/ppp_$4.log</command> + <children> + <leafNode name="tail"> + <properties> + <help>Watch PPPoE logs</help> + </properties> + <command>tail --follow=name /var/log/vyatta/ppp_$4.log</command> + </leafNode> + </children> + </node> + </children> + </tagNode> + </children> + </node> + </children> + </node> +</interfaceDefinition> |