Skip to content

Commit

Permalink
pimd: Option to get IGMP groups and sources for a particular interface
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Pdoijode committed Apr 11, 2023
1 parent d246726 commit 5519cab
Show file tree
Hide file tree
Showing 11 changed files with 775 additions and 221 deletions.
9 changes: 7 additions & 2 deletions doc/user/pim.rst
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,14 @@ cause great confusion.
.. clicmd:: show ip igmp [vrf NAME] join [json]

Display IGMP static join information for a specific vrf.
If "vrf all" is provided, it displays information for all the vrfs present.

.. index:: show ip igmp [vrf NAME$vrf_name] groups [INTERFACE$ifname [GROUP$grp_str]] [detail] [json$json]
.. clicmd:: show ip igmp [vrf NAME$vrf_name] groups [INTERFACE$ifname [GROUP$grp_str]] [detail] [json$json]

.. clicmd:: show ip igmp groups
Display IGMP static join information for all the vrfs present.

.. index:: show ip igmp vrf all groups [GROUP$grp_str] [detail$detail] [json$json]
.. clicmd:: show ip igmp vrf all groups [GROUP$grp_str] [detail$detail] [json$json]

Display IGMP groups information.

Expand Down
Loading

0 comments on commit 5519cab

Please sign in to comment.