From 6f72741fa2be906a850c5f2be24e98d5b6de4198 Mon Sep 17 00:00:00 2001 From: DmitriyEshenko Date: Sun, 14 Jun 2020 20:00:18 +0000 Subject: pim: T1729: Add PIM and IGMPv2/v3 support --- op-mode-definitions/reset-ip-igmp.xml | 24 ++++++++++ op-mode-definitions/reset-ip-multicast.xml | 24 ++++++++++ op-mode-definitions/show-ip-igmp.xml | 48 ++++++++++++++++++++ op-mode-definitions/show-ip-multicast.xml | 12 +++++ op-mode-definitions/show-ip-pim.xml | 72 ++++++++++++++++++++++++++++++ 5 files changed, 180 insertions(+) create mode 100755 op-mode-definitions/reset-ip-igmp.xml create mode 100755 op-mode-definitions/reset-ip-multicast.xml create mode 100755 op-mode-definitions/show-ip-igmp.xml mode change 100644 => 100755 op-mode-definitions/show-ip-multicast.xml create mode 100755 op-mode-definitions/show-ip-pim.xml (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/reset-ip-igmp.xml b/op-mode-definitions/reset-ip-igmp.xml new file mode 100755 index 000000000..143553d33 --- /dev/null +++ b/op-mode-definitions/reset-ip-igmp.xml @@ -0,0 +1,24 @@ + + + + + + + + + IGMP clear commands + + + + + Reset IGMP interfaces + + /usr/bin/vtysh -c "clear ip igmp interfaces" + + + + + + + + diff --git a/op-mode-definitions/reset-ip-multicast.xml b/op-mode-definitions/reset-ip-multicast.xml new file mode 100755 index 000000000..d610add16 --- /dev/null +++ b/op-mode-definitions/reset-ip-multicast.xml @@ -0,0 +1,24 @@ + + + + + + + + + IP multicast routing table + + + + + Clear multicast routing table + + /usr/bin/vtysh -c "clear ip mroute" + + + + + + + + diff --git a/op-mode-definitions/show-ip-igmp.xml b/op-mode-definitions/show-ip-igmp.xml new file mode 100755 index 000000000..b8f2f9107 --- /dev/null +++ b/op-mode-definitions/show-ip-igmp.xml @@ -0,0 +1,48 @@ + + + + + + + + + Show IGMP (Internet Group Management Protocol) information + + + + + IGMP groups information + + /usr/bin/vtysh -c "show ip igmp groups" + + + + IGMP interfaces information + + /usr/bin/vtysh -c "show ip igmp interface" + + + + IGMP static join information + + /usr/bin/vtysh -c "show ip igmp join" + + + + IGMP sources information + + /usr/bin/vtysh -c "show ip igmp sources" + + + + IGMP statistics + + /usr/bin/vtysh -c "show ip igmp statistics" + + + + + + + + diff --git a/op-mode-definitions/show-ip-multicast.xml b/op-mode-definitions/show-ip-multicast.xml old mode 100644 new mode 100755 index 6ffe40436..5331d2e35 --- a/op-mode-definitions/show-ip-multicast.xml +++ b/op-mode-definitions/show-ip-multicast.xml @@ -21,6 +21,18 @@ if ps -C igmpproxy &>/dev/null; then ${vyos_op_scripts_dir}/show_igmpproxy.py --mfc; else echo IGMP proxy not configured; fi + + + IP multicast information + + /usr/bin/vtysh -c "show ip multicast" + + + + IP multicast routing table + + /usr/bin/vtysh -c "show ip mroute" + diff --git a/op-mode-definitions/show-ip-pim.xml b/op-mode-definitions/show-ip-pim.xml new file mode 100755 index 000000000..3f4edc779 --- /dev/null +++ b/op-mode-definitions/show-ip-pim.xml @@ -0,0 +1,72 @@ + + + + + + + + + Show PIM (Protocol Independent Multicast) information + + + + + PIM interfaces information + + /usr/bin/vtysh -c "show ip pim interface" + + + + PIM join information + + /usr/bin/vtysh -c "show ip pim join" + + + + PIM neighbor information + + /usr/bin/vtysh -c "show ip pim neighbor" + + + + PIM cached nexthop rpf information + + /usr/bin/vtysh -c "show ip pim nexthop" + + + + PIM state information + + /usr/bin/vtysh -c "show ip pim state" + + + + PIM statistics + + /usr/bin/vtysh -c "show ip pim statistics" + + + + PIM RP (Rendevous Point) information + + /usr/bin/vtysh -c "show ip pim rp-info" + + + + PIM cached source rpf information + + /usr/bin/vtysh -c "show ip pim rpf" + + + + PIM upstream information + + /usr/bin/vtysh -c "show ip pim upstream" + + + + + + + + -- cgit v1.2.3