summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorSarita Patra <saritap@vmware.com>2023-02-24 16:11:57 +0100
committerSarita Patra <saritap@vmware.com>2023-02-24 16:21:15 +0100
commit3ab119a4bb79c46c8cce99c8a6ee860c43e378dd (patch)
treec53d91f1c3be1f3a3e9020f3874993b4602e08bf /pimd
parentpim6d: Don't display MLD disabled or down interfaces in "show ipv6 mld interf... (diff)
downloadfrr-3ab119a4bb79c46c8cce99c8a6ee860c43e378dd.tar.xz
frr-3ab119a4bb79c46c8cce99c8a6ee860c43e378dd.zip
pim6d: Display primary address in "show ipv6 mld interface json" cmd
Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim6_mld.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim6_mld.c b/pimd/pim6_mld.c
index f76b4ec59..eb897e660 100644
--- a/pimd/pim6_mld.c
+++ b/pimd/pim6_mld.c
@@ -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);