summaryrefslogtreecommitdiff
path: root/pimd/pim_cmd.h
diff options
context:
space:
mode:
authorPooja Jagadeesh Doijode <pdoijode@nvidia.com>2023-04-10 14:34:35 -0700
committerPooja Jagadeesh Doijode <pdoijode@nvidia.com>2023-04-11 11:00:39 -0700
commit5519cabe4c6b46c6fc20d830f27674a47ba603c3 (patch)
treea6e37727aed06de37559a062300e82d539d4a6a4 /pimd/pim_cmd.h
parentd246726b5e0659b7de4472031019ac2f4373464e (diff)
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>
Diffstat (limited to 'pimd/pim_cmd.h')
-rw-r--r--pimd/pim_cmd.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/pimd/pim_cmd.h b/pimd/pim_cmd.h
index fb6693491b..d39d77cd2f 100644
--- a/pimd/pim_cmd.h
+++ b/pimd/pim_cmd.h
@@ -60,4 +60,5 @@
void pim_cmd_init(void);
+#define PIM_TIME_STRLEN 10
#endif /* PIM_CMD_H */