]> git.puffer.fish Git - mirror/frr.git/commitdiff
pimd: source/group information now added for pruned entry 10832/head
authorsarita patra <saritap@vmware.com>
Mon, 21 Mar 2022 06:41:24 +0000 (23:41 -0700)
committersarita patra <saritap@vmware.com>
Mon, 21 Mar 2022 06:43:55 +0000 (23:43 -0700)
show ip mroute json command displays the source, group info
per oil, so for pruned group since the OIL is empty, it is not
showing.

Fix: Added the above information per source.

Signed-off-by: sarita patra <saritap@vmware.com>
pimd/pim_cmd.c

index 76f90cdba7d0e1567d6e6396569398fc1afe8050..f51cff499adc217185e63fa88c4b166d8718fce4 100644 (file)
@@ -5952,6 +5952,10 @@ static void show_mroute(struct pim_instance *pim, struct vty *vty,
 
                        /* Find the inbound interface nested under the source,
                         * create it if it doesn't exist */
+                       json_object_string_add(json_source, "source",
+                                              src_str);
+                       json_object_string_add(json_source, "group",
+                                              grp_str);
                        json_object_int_add(json_source, "installed",
                                            c_oil->installed);
                        json_object_int_add(json_source, "refCount",