summaryrefslogtreecommitdiff
path: root/op-mode-definitions/include
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-01-10 19:14:56 +0100
committerChristian Poessinger <christian@poessinger.com>2021-01-10 19:14:56 +0100
commit4fb6160fb72717ce65cc1dbd814b80a1d1a4e756 (patch)
tree3fb06e5ddcced8e42bcbcb8535cb3a99ca2666bb /op-mode-definitions/include
parent1c91987c494f80f8fe80de1534638362c7bd978e (diff)
downloadvyos-1x-4fb6160fb72717ce65cc1dbd814b80a1d1a4e756.tar.gz
vyos-1x-4fb6160fb72717ce65cc1dbd814b80a1d1a4e756.zip
op-mode: T3178: add "monitor protocols <bgp|ospf|ospfv3|rib|rip|ripng>" commands
Diffstat (limited to 'op-mode-definitions/include')
-rw-r--r--op-mode-definitions/include/monitor-background.xml.i21
-rw-r--r--op-mode-definitions/include/monitor-no-ospf-packet-detail.xml.i36
-rw-r--r--op-mode-definitions/include/monitor-ospf-packet-detail.xml.i36
3 files changed, 93 insertions, 0 deletions
diff --git a/op-mode-definitions/include/monitor-background.xml.i b/op-mode-definitions/include/monitor-background.xml.i
new file mode 100644
index 000000000..9931127e3
--- /dev/null
+++ b/op-mode-definitions/include/monitor-background.xml.i
@@ -0,0 +1,21 @@
+<!-- included start from monitor-background.xml.i -->
+<node name="background">
+ <properties>
+ <help>Monitor in background</help>
+ </properties>
+ <children>
+ <node name="start">
+ <properties>
+ <help>Start background monitoring</help>
+ </properties>
+ <command>${vyatta_bindir}/vyatta-monitor-background ${3^^} ${3}</command>
+ </node>
+ <node name="stop">
+ <properties>
+ <help>Stop background monitoring</help>
+ </properties>
+ <command>${vyatta_bindir}/vyatta-monitor-background-stop ${3^^}</command>
+ </node>
+ </children>
+</node>
+<!-- included end -->
diff --git a/op-mode-definitions/include/monitor-no-ospf-packet-detail.xml.i b/op-mode-definitions/include/monitor-no-ospf-packet-detail.xml.i
new file mode 100644
index 000000000..8dbb5acea
--- /dev/null
+++ b/op-mode-definitions/include/monitor-no-ospf-packet-detail.xml.i
@@ -0,0 +1,36 @@
+<!-- included start from monitor-ospf-packet-detail.xml.i -->
+<node name="detail">
+ <properties>
+ <help>Disable detailed OSPF packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:3}"</command>
+</node>
+<node name="recv">
+ <properties>
+ <help>Disable OSPF recv packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:3}"</command>
+ <children>
+ <node name="detail">
+ <properties>
+ <help>Disable detailed OSPF recv packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:3}"</command>
+ </node>
+ </children>
+</node>
+<node name="send">
+ <properties>
+ <help>Disable OSPF send packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:3}"</command>
+ <children>
+ <node name="detail">
+ <properties>
+ <help>Disable detailed OSPF send packet debugging</help>
+ </properties>
+ <command>vtysh -c "no debug ospf ${@:3}"</command>
+ </node>
+ </children>
+</node>
+<!-- included end -->
diff --git a/op-mode-definitions/include/monitor-ospf-packet-detail.xml.i b/op-mode-definitions/include/monitor-ospf-packet-detail.xml.i
new file mode 100644
index 000000000..a4bd33673
--- /dev/null
+++ b/op-mode-definitions/include/monitor-ospf-packet-detail.xml.i
@@ -0,0 +1,36 @@
+<!-- included start from monitor-ospf-packet-detail.xml.i -->
+<node name="detail">
+ <properties>
+ <help>Enable detailed OSPF packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:3}"</command>
+</node>
+<node name="recv">
+ <properties>
+ <help>Enable OSPF recv packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:3}"</command>
+ <children>
+ <node name="detail">
+ <properties>
+ <help>Enable detailed OSPF recv packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:3}"</command>
+ </node>
+ </children>
+</node>
+<node name="send">
+ <properties>
+ <help>Enable OSPF send packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:3}"</command>
+ <children>
+ <node name="detail">
+ <properties>
+ <help>Enable detailed OSPF send packet debugging</help>
+ </properties>
+ <command>vtysh -c "debug ospf ${@:3}"</command>
+ </node>
+ </children>
+</node>
+<!-- included end -->