Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
patrasar committed Feb 24, 2023
1 parent 16771ce commit 46e2d6f
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
@@ -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);

0 comments on commit 46e2d6f

Please sign in to comment.