From c88b2442c23bb715334edcb673a3a0f9a2743aa2 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 1 Dec 2019 11:42:54 +0100 Subject: pppoe: T1318: add op-mode commands for link information --- op-mode-definitions/show-interfaces-pppoe.xml | 36 +++++++++++++++++++++++++++ src/completion/list_pppoe_peers.sh | 6 +++++ 2 files changed, 42 insertions(+) create mode 100644 op-mode-definitions/show-interfaces-pppoe.xml create mode 100755 src/completion/list_pppoe_peers.sh 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 @@ + + + + + + + + + Show PPPoE interface information + + + + + ${vyatta_bindir}/vyatta-show-interfaces.pl pppoe --intf="$4" + + + + Show PPPoE logs + + cat /var/log/vyatta/ppp_$4.log + + + + Watch PPPoE logs + + tail --follow=name /var/log/vyatta/ppp_$4.log + + + + + + + + + + diff --git a/src/completion/list_pppoe_peers.sh b/src/completion/list_pppoe_peers.sh new file mode 100755 index 000000000..382a29264 --- /dev/null +++ b/src/completion/list_pppoe_peers.sh @@ -0,0 +1,6 @@ +#!/bin/sh + +if [ -d /etc/ppp/peers ]; then + cd /etc/ppp/peers + ls pppoe* +fi -- cgit v1.2.3