summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-07 14:27:27 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-07 14:27:27 +0200
commit52d8a2265ef7eccc9df71a164ebacdbcf70f4701 (patch)
tree7136584a0bd41d5f3866c66047528deffec8879d
parent561694378e11a406205722c95f81cf637676a80b (diff)
downloadvyos-1x-52d8a2265ef7eccc9df71a164ebacdbcf70f4701.tar.gz
vyos-1x-52d8a2265ef7eccc9df71a164ebacdbcf70f4701.zip
pppoe: op-mode: T2488: retrieve log info from journalctl
-rw-r--r--op-mode-definitions/show-interfaces-pppoe.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/op-mode-definitions/show-interfaces-pppoe.xml b/op-mode-definitions/show-interfaces-pppoe.xml
index 65363f7e2..01acd4fc6 100644
--- a/op-mode-definitions/show-interfaces-pppoe.xml
+++ b/op-mode-definitions/show-interfaces-pppoe.xml
@@ -13,9 +13,15 @@
</properties>
<command>${vyos_op_scripts_dir}/show_interfaces.py --intf="$4"</command>
<children>
+ <leafNode name="log">
+ <properties>
+ <help>Show specified PPPoE interface log</help>
+ </properties>
+ <command>/usr/bin/journalctl -u "ppp@$4".service</command>
+ </leafNode>
<leafNode name="statistics">
<properties>
- <help>Show PPPoE interface statistics</help>
+ <help>Show specified PPPoE interface statistics</help>
<completionHelp>
<path>interfaces pppoe</path>
</completionHelp>