diff options
author | Sarita Patra <saritap@vmware.com> | 2023-02-09 08:38:18 +0100 |
---|---|---|
committer | Sarita Patra <saritap@vmware.com> | 2023-02-09 09:14:24 +0100 |
commit | 58971e1574911fd5bd4f6385c2fa93c999e33604 (patch) | |
tree | e91d9f7efc008f0c5a2ebdf4081f591108c54583 /pimd | |
parent | Merge pull request #12667 from donaldsharp/zebra_rib_fixup (diff) | |
download | frr-58971e1574911fd5bd4f6385c2fa93c999e33604.tar.xz frr-58971e1574911fd5bd4f6385c2fa93c999e33604.zip |
pim6d: Modify "show ipv6 mld join json" o/p
Currently "show ipv6 mld join json" o/p is
frr# show ipv6 mld joins json
{
"default":{
"ens192":{
"ff02:2":{
"::":{
"state":"JOIN",
"created":"00:01:50.595",
"lastSeen":"00:00:38.403",
}
}
}
}
}
Here, I modified the o/p as below for better understanding.
frr# show ipv6 mld joins json
{
"default":{
"vrf":"default",
"ens192":{
"ff02::2":{
"*":{
"state":"JOIN",
"created":"00:00:42.766",
"lastSeen":"00:00:05.266"
}
}
}
}
}
Issue: #12755
Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to 'pimd')
-rw-r--r-- | pimd/pim6_mld.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pimd/pim6_mld.c b/pimd/pim6_mld.c index dc5e67e2c..6faa53afe 100644 --- a/pimd/pim6_mld.c +++ b/pimd/pim6_mld.c @@ -2737,7 +2737,7 @@ static void gm_show_joins_one(struct vty *vty, struct gm_if *gm_ifp, } js_src = json_object_new_object(); - json_object_object_addf(js_group, js_src, "%pPA", + json_object_object_addf(js_group, js_src, "%pPAs", &sg->sgaddr.src); json_object_string_add(js_src, "state", gm_states[sg->state]); @@ -2800,6 +2800,7 @@ static void gm_show_joins_vrf(struct vty *vty, struct vrf *vrf, if (js) { js_vrf = json_object_new_object(); + json_object_string_add(js_vrf, "vrf", vrf->name); json_object_object_add(js, vrf->name, js_vrf); } |