From 4fb6160fb72717ce65cc1dbd814b80a1d1a4e756 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Sun, 10 Jan 2021 19:14:56 +0100 Subject: op-mode: T3178: add "monitor protocols " commands --- .../include/monitor-background.xml.i | 21 +++++++++++++ .../include/monitor-no-ospf-packet-detail.xml.i | 36 ++++++++++++++++++++++ .../include/monitor-ospf-packet-detail.xml.i | 36 ++++++++++++++++++++++ 3 files changed, 93 insertions(+) create mode 100644 op-mode-definitions/include/monitor-background.xml.i create mode 100644 op-mode-definitions/include/monitor-no-ospf-packet-detail.xml.i create mode 100644 op-mode-definitions/include/monitor-ospf-packet-detail.xml.i (limited to 'op-mode-definitions/include') 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 @@ + + + + Monitor in background + + + + + Start background monitoring + + ${vyatta_bindir}/vyatta-monitor-background ${3^^} ${3} + + + + Stop background monitoring + + ${vyatta_bindir}/vyatta-monitor-background-stop ${3^^} + + + + 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 @@ + + + + Disable detailed OSPF packet debugging + + vtysh -c "no debug ospf ${@:3}" + + + + Disable OSPF recv packet debugging + + vtysh -c "no debug ospf ${@:3}" + + + + Disable detailed OSPF recv packet debugging + + vtysh -c "no debug ospf ${@:3}" + + + + + + Disable OSPF send packet debugging + + vtysh -c "no debug ospf ${@:3}" + + + + Disable detailed OSPF send packet debugging + + vtysh -c "no debug ospf ${@:3}" + + + + 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 @@ + + + + Enable detailed OSPF packet debugging + + vtysh -c "debug ospf ${@:3}" + + + + Enable OSPF recv packet debugging + + vtysh -c "debug ospf ${@:3}" + + + + Enable detailed OSPF recv packet debugging + + vtysh -c "debug ospf ${@:3}" + + + + + + Enable OSPF send packet debugging + + vtysh -c "debug ospf ${@:3}" + + + + Enable detailed OSPF send packet debugging + + vtysh -c "debug ospf ${@:3}" + + + + -- cgit v1.2.3