summaryrefslogtreecommitdiff
path: root/op-mode-definitions
diff options
context:
space:
mode:
authorsever-sever <v.gletenko@vyos.io>2020-04-04 13:29:33 +0300
committersever-sever <v.gletenko@vyos.io>2020-04-06 09:11:36 +0000
commit24e4fa0370dd9b5587c922526975ddfb736a6e66 (patch)
tree7a39d033a6c718bbbe485bdbd2243fb64c6d8d2f /op-mode-definitions
parent7b25dcec95937a3669c02152e934402e5f0c4221 (diff)
downloadvyos-1x-24e4fa0370dd9b5587c922526975ddfb736a6e66.tar.gz
vyos-1x-24e4fa0370dd9b5587c922526975ddfb736a6e66.zip
igmp: T2151:[op-mode] Add clear for igmp/multicast
Diffstat (limited to 'op-mode-definitions')
-rw-r--r--op-mode-definitions/reset-ip-igmp.xml24
-rw-r--r--op-mode-definitions/reset-ip-multicast.xml24
2 files changed, 48 insertions, 0 deletions
diff --git a/op-mode-definitions/reset-ip-igmp.xml b/op-mode-definitions/reset-ip-igmp.xml
new file mode 100644
index 000000000..143553d33
--- /dev/null
+++ b/op-mode-definitions/reset-ip-igmp.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="reset">
+ <children>
+ <node name="ip">
+ <children>
+ <node name="igmp">
+ <properties>
+ <help>IGMP clear commands</help>
+ </properties>
+ <children>
+ <leafNode name="interfaces">
+ <properties>
+ <help>Reset IGMP interfaces</help>
+ </properties>
+ <command>/usr/bin/vtysh -c "clear ip igmp interfaces"</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>
diff --git a/op-mode-definitions/reset-ip-multicast.xml b/op-mode-definitions/reset-ip-multicast.xml
new file mode 100644
index 000000000..d610add16
--- /dev/null
+++ b/op-mode-definitions/reset-ip-multicast.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="reset">
+ <children>
+ <node name="ip">
+ <children>
+ <node name="multicast">
+ <properties>
+ <help>IP multicast routing table</help>
+ </properties>
+ <children>
+ <leafNode name="route">
+ <properties>
+ <help>Clear multicast routing table</help>
+ </properties>
+ <command>/usr/bin/vtysh -c "clear ip mroute"</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>