]> git.puffer.fish Git - mirror/frr.git/commit
pimd: Option to get IGMP groups and sources for a particular interface 13183/head
authorPooja Jagadeesh Doijode <pdoijode@nvidia.com>
Mon, 10 Apr 2023 21:34:35 +0000 (14:34 -0700)
committerPooja Jagadeesh Doijode <pdoijode@nvidia.com>
Tue, 11 Apr 2023 18:00:39 +0000 (11:00 -0700)
commit5519cabe4c6b46c6fc20d830f27674a47ba603c3
treea6e37727aed06de37559a062300e82d539d4a6a4
parentd246726b5e0659b7de4472031019ac2f4373464e
pimd: Option to get IGMP groups and sources for a particular interface

1. Added interface name, group address and detail option to existing
   "show ip igmp groups" so that user can retrieve all the groups
   or a particular group for an interface. Detail option shows the source
   information for the group. With that, the show command
   looks like:

   "show ip igmp [vrf NAME$vrf_name] groups [INTERFACE$ifname [GROUP$grp_str]] [detail$detail] [json$json]"

2. Changed pim_cmd_lookup_vrf() to return empty JSON if VRF is not present

3. Changed "detail" option to print non pretty JSON

4. Added interface name and group address to existing
   "show ip igmp sources" so that user can retrieve all the sources for
   all the groups or, all the sorces for a particular group for an
   interface. With that, the show command looks like:

   "show ip igmp [vrf NAME$vrf_name] sourcess [INTERFACE$ifname [GROUP$grp_str]] [json$json]"

Signed-off-by: Pooja Jagadeesh Doijode <pdoijode@nvidia.com>
doc/user/pim.rst
pimd/pim_cmd.c
pimd/pim_cmd.h
tests/topotests/multicast_pim_sm_topo3/igmp_group_all_detail.json [new file with mode: 0644]
tests/topotests/multicast_pim_sm_topo3/igmp_single_if_group_all_brief.json [new file with mode: 0644]
tests/topotests/multicast_pim_sm_topo3/igmp_single_if_group_all_detail.json [new file with mode: 0644]
tests/topotests/multicast_pim_sm_topo3/igmp_single_if_single_group_brief.json [new file with mode: 0644]
tests/topotests/multicast_pim_sm_topo3/igmp_single_if_single_group_detail.json [new file with mode: 0644]
tests/topotests/multicast_pim_sm_topo3/igmp_source_single_if_group_all.json [new file with mode: 0644]
tests/topotests/multicast_pim_sm_topo3/igmp_source_single_if_single_group.json [new file with mode: 0644]
tests/topotests/multicast_pim_sm_topo3/test_multicast_pim_sm_topo3.py