]> git.proxmox.com Git - mirror_frr.git/commitdiff
pimd: show ip pim int WORD, show ip pim nei WORD, show ip igmp int WORD
authorDaniel Walton <dwalton@cumulusnetworks.com>
Thu, 15 Sep 2016 18:49:18 +0000 (18:49 +0000)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 22 Dec 2016 01:26:09 +0000 (20:26 -0500)
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Ticket: CM-11812

pimd/pim_cmd.c

index 9e7a326a7c287faf45f14afc2d0f2cd5d007b0c2..a10cfef5039598faa9117dc8c5cc10f9d93e7e1e 100644 (file)
@@ -807,7 +807,7 @@ static void pim_show_interfaces_single(struct vty *vty, const char *ifname, u_ch
             pim_time_uptime(uptime, sizeof(uptime), now - up->state_transition);
 
             /* Does this group live in json_fhr_sources?  If not create it. */
-            json_group = json_object_object_get(json_fhr_sources, grp_str);
+            json_object_object_get_ex(json_fhr_sources, grp_str, &json_group);
 
             if (!json_group) {
                 json_group = json_object_new_object();
@@ -1167,7 +1167,7 @@ static void pim_show_neighbors_single(struct vty *vty, const char *neighbor, u_c
       if (uj) {
 
         /* Does this ifp live in json?  If not create it. */
-        json_ifp = json_object_object_get(json, ifp->name);
+        json_object_object_get_ex(json, ifp->name, &json_ifp);
 
         if (!json_ifp) {
           json_ifp = json_object_new_object();