summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-07-08 20:11:19 +0200
committerChristian Breunig <christian@breunig.cc>2023-07-08 20:11:19 +0200
commit55c6c97c09f89e3221548df5d310b3c362429edb (patch)
tree35b9faa32f3051906f4de035f209f2fb35403b63
parentd7cd3c39164d44b3e99cfe5416b12856a6e0b35d (diff)
downloadvyos-1x-55c6c97c09f89e3221548df5d310b3c362429edb.tar.gz
vyos-1x-55c6c97c09f89e3221548df5d310b3c362429edb.zip
vpp: T1797: add op-mode commands to show log buffers
-rw-r--r--op-mode-definitions/monitor-log.xml.in6
-rw-r--r--op-mode-definitions/show-log.xml.in6
2 files changed, 12 insertions, 0 deletions
diff --git a/op-mode-definitions/monitor-log.xml.in b/op-mode-definitions/monitor-log.xml.in
index c577c5a39..9b45cf842 100644
--- a/op-mode-definitions/monitor-log.xml.in
+++ b/op-mode-definitions/monitor-log.xml.in
@@ -308,6 +308,12 @@
</leafNode>
</children>
</node>
+ <leafNode name="vpp">
+ <properties>
+ <help>Monitor last lines of Vector Packet Processor (VPP) log</help>
+ </properties>
+ <command>journalctl --no-hostname --boot --unit vpp.service</command>
+ </leafNode>
</children>
</node>
</children>
diff --git a/op-mode-definitions/show-log.xml.in b/op-mode-definitions/show-log.xml.in
index e14596778..579e348f7 100644
--- a/op-mode-definitions/show-log.xml.in
+++ b/op-mode-definitions/show-log.xml.in
@@ -470,6 +470,12 @@
</leafNode>
</children>
</node>
+ <leafNode name="vpp">
+ <properties>
+ <help>Show log for Vector Packet Processor (VPP)</help>
+ </properties>
+ <command>journalctl --no-hostname --boot --unit vpp.service</command>
+ </leafNode>
<leafNode name="vrrp">
<properties>
<help>Show log for Virtual Router Redundancy Protocol (VRRP)</help>