summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-06-07 14:26:31 +0200
committerChristian Poessinger <christian@poessinger.com>2020-06-07 14:26:31 +0200
commit561694378e11a406205722c95f81cf637676a80b (patch)
tree6beddd1b0dd2427cd5f85a6b50e7a9c5b41f2a81
parentcceffc8725271b15107f21ae26f4e477751df6bc (diff)
downloadvyos-1x-561694378e11a406205722c95f81cf637676a80b.tar.gz
vyos-1x-561694378e11a406205722c95f81cf637676a80b.zip
wwan: op-mode: T2488: retrieve log info from journalctl
-rw-r--r--op-mode-definitions/show-interfaces-wirelessmodem.xml8
1 files changed, 7 insertions, 1 deletions
diff --git a/op-mode-definitions/show-interfaces-wirelessmodem.xml b/op-mode-definitions/show-interfaces-wirelessmodem.xml
index b21bb520c..1f710b3dc 100644
--- a/op-mode-definitions/show-interfaces-wirelessmodem.xml
+++ b/op-mode-definitions/show-interfaces-wirelessmodem.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 WWAN interface log</help>
+ </properties>
+ <command>/usr/bin/journalctl -u "ppp@$4".service</command>
+ </leafNode>
<leafNode name="statistics">
<properties>
- <help>Show specified wirelessmodem interface statistics</help>
+ <help>Show specified WWAN interface statistics</help>
<completionHelp>
<path>interfaces wirelessmodem</path>
</completionHelp>