summaryrefslogtreecommitdiff
path: root/op-mode-definitions/show-ip-multicast.xml
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2018-11-04 11:47:51 +0100
committerChristian Poessinger <christian@poessinger.com>2018-11-04 11:47:51 +0100
commit698c5a40b2ece2f3eb41ad932660f7ceb1f80092 (patch)
treec74926efcae3b5db9c8f861ab7d1d09c755e68f0 /op-mode-definitions/show-ip-multicast.xml
parent13a92825afc0d96773d4d510bd26e4fab5b77c3d (diff)
downloadvyos-1x-698c5a40b2ece2f3eb41ad932660f7ceb1f80092.tar.gz
vyos-1x-698c5a40b2ece2f3eb41ad932660f7ceb1f80092.zip
T959: XML/Python rewrite of "protocol igmp-proxy" and op-mode commands
Examples: ========= CFG commands: vyos@vyos# set protocols igmp-proxy disable-quickleave vyos@vyos# set protocols igmp-proxy interface eth0 alt-subnet '172.16.35.0/24' vyos@vyos# set protocols igmp-proxy interface eth0 alt-subnet '172.31.0.0/24' vyos@vyos# set protocols igmp-proxy interface eth0 role 'upstream' vyos@vyos# set protocols igmp-proxy interface eth1 role 'downstream' vyos@vyos# show protocols igmp-proxy { disable-quickleave interface eth0 { alt-subnet 172.16.35.0/24 alt-subnet 172.31.0.0/24 role upstream } interface eth1 { role downstream } } OP mode commands: ----------------- vyos@vyos:~$ show ip multicast interface Interface BytesIn PktsIn BytesOut PktsOut Local eth0 0.0b 0 0.0b 0 xxx.xxx.xxx.65 eth1 0.0b 0 0.0b 0 xxx.xxx.xx.201 vyos@vyos:~$ show ip multicast mfc Group Origin Pkts Bytes Wrong In Out xxx.x.xx.1 xxx.xx.0.1 10 9.81KB 0 eth0 eth1 xxx.x.xx.2 xxx.xx.0.1 --
Diffstat (limited to 'op-mode-definitions/show-ip-multicast.xml')
-rw-r--r--op-mode-definitions/show-ip-multicast.xml30
1 files changed, 30 insertions, 0 deletions
diff --git a/op-mode-definitions/show-ip-multicast.xml b/op-mode-definitions/show-ip-multicast.xml
new file mode 100644
index 000000000..07102bfa6
--- /dev/null
+++ b/op-mode-definitions/show-ip-multicast.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0"?>
+<interfaceDefinition>
+ <node name="show">
+ <children>
+ <node name="ip">
+ <children>
+ <node name="multicast">
+ <properties>
+ <help>Show IP multicast</help>
+ </properties>
+ <children>
+ <leafNode name="interface">
+ <properties>
+ <help>Show multicast interfaces</help>
+ </properties>
+ <command>if ps -C igmpproxy &amp;&gt;/dev/null; then ${vyos_op_scripts_dir}/show-igmpproxy.py --interface; else echo IGMP proxy not configured; fi</command>
+ </leafNode>
+ <leafNode name="mfc">
+ <properties>
+ <help>Show multicast fowarding cache</help>
+ </properties>
+ <command>if ps -C igmpproxy &amp;&gt;/dev/null; then ${vyos_op_scripts_dir}/show-igmpproxy.py --mfc; else echo IGMP proxy not configured; fi</command>
+ </leafNode>
+ </children>
+ </node>
+ </children>
+ </node>
+ </children>
+ </node>
+</interfaceDefinition>