Skip to content

Commit

Permalink
pim6d: Display primary address in "show ipv6 mld interface json" cmd
Browse files Browse the repository at this point in the history
Signed-off-by: Sarita Patra <saritap@vmware.com>
  • Loading branch information
patrasar committed Feb 24, 2023
1 parent fe4db62 commit 3ab119a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pimd/pim6_mld.c
Original file line number Diff line number Diff line change
Expand Up @@ -2390,6 +2390,8 @@ static void gm_show_if_one(struct vty *vty, struct interface *ifp,

if (js_if) {
json_object_string_add(js_if, "name", ifp->name);
json_object_string_addf(js_if, "address", "%pPA",
&pim_ifp->primary_address);
json_object_string_add(js_if, "state", "up");
json_object_string_addf(js_if, "version", "%d",
gm_ifp->cur_version);
Expand Down

0 comments on commit 3ab119a

Please sign in to comment.