diff options
author | Christian Poessinger <christian@poessinger.com> | 2020-04-06 16:25:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-04-06 16:25:20 +0200 |
commit | e0f13b79a669e7fc8cadac8757b2f5fbbf51dc99 (patch) | |
tree | 466d24f71165d89ef03193cb4b42350f237fc170 /op-mode-definitions | |
parent | 1730afc6ebb50a9b159484cfc9d3bbaf7b67f8f4 (diff) | |
parent | 24e4fa0370dd9b5587c922526975ddfb736a6e66 (diff) | |
download | vyos-1x-e0f13b79a669e7fc8cadac8757b2f5fbbf51dc99.tar.gz vyos-1x-e0f13b79a669e7fc8cadac8757b2f5fbbf51dc99.zip |
Merge pull request #297 from sever-sever/clear-igmp
igmp: T2156:[op-mode] Add clear for igmp/multicast
Diffstat (limited to 'op-mode-definitions')
-rw-r--r-- | op-mode-definitions/reset-ip-igmp.xml | 24 | ||||
-rw-r--r-- | op-mode-definitions/reset-ip-multicast.xml | 24 |
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> |