diff options
author | Daniel Walton <dwalton@cumulusnetworks.com> | 2016-09-15 20:49:18 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2016-12-22 02:26:09 +0100 |
commit | 9c2df635f5c6af34e34419b2f14ed2a3a7c056eb (patch) | |
tree | b0a76a4e426a778865488a8335c711c502c8bd76 /pimd | |
parent | pimd: Turn off neighbor lookup for the moment (diff) | |
download | frr-9c2df635f5c6af34e34419b2f14ed2a3a7c056eb.tar.xz frr-9c2df635f5c6af34e34419b2f14ed2a3a7c056eb.zip |
pimd: show ip pim int WORD, show ip pim nei WORD, show ip igmp int WORD
Signed-off-by: Daniel Walton <dwalton@cumulusnetworks.com>
Ticket: CM-11812
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 9e7a326a7..a10cfef50 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -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(); |