From e982b78f24d1dca3d2bc92a39b8e9fcf35b39a37 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sat, 9 Jan 2021 14:31:48 +0100 Subject: xml: op-mode: add preprocessor support as known from configuration mode --- op-mode-definitions/show-interfaces-pppoe.xml.in | 51 ++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 op-mode-definitions/show-interfaces-pppoe.xml.in (limited to 'op-mode-definitions/show-interfaces-pppoe.xml.in') diff --git a/op-mode-definitions/show-interfaces-pppoe.xml.in b/op-mode-definitions/show-interfaces-pppoe.xml.in new file mode 100644 index 000000000..393ca912f --- /dev/null +++ b/op-mode-definitions/show-interfaces-pppoe.xml.in @@ -0,0 +1,51 @@ + + + + + + + + + Show PPPoE interface information + + interfaces pppoe + + + ${vyos_op_scripts_dir}/show_interfaces.py --intf="$4" + + + + Show specified PPPoE interface log + + /usr/bin/journalctl -u "ppp@$4".service + + + + Show specified PPPoE interface statistics + + interfaces pppoe + + + if [ -d "/sys/class/net/$4" ]; then /usr/sbin/pppstats "$4"; fi + + + + + + Show PPPoE interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=pppoe --action=show-brief + + + + Show detailed PPPoE interface information + + ${vyos_op_scripts_dir}/show_interfaces.py --intf-type=pppoe --action=show + + + + + + + + -- cgit v1.2.3