diff options
| author | Abhishek N R <abnr@vmware.com> | 2022-09-02 06:59:03 -0700 |
|---|---|---|
| committer | Abhishek N R <abnr@vmware.com> | 2022-09-05 22:51:03 -0700 |
| commit | cb406d5cd7f68fe23a0c96940bf642d6cb0ee65e (patch) | |
| tree | 1a82cdae00b75a9bfb332dc46e939a6c6c8ff060 | |
| parent | 451cebeec2be37e7c35ee8d93243ba5127885c24 (diff) | |
pim6d: Adding additional details for "show ipv6 mld interface [ifname] json" command.
Added Robustness value, Query interval, Query response timer
and Last member query interval field in json output.
Issue: #11891
Signed-off-by: Abhishek N R <abnr@vmware.com>
| -rw-r--r-- | pimd/pim6_mld.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/pimd/pim6_mld.c b/pimd/pim6_mld.c index ecc771d85d..38fa1966cd 100644 --- a/pimd/pim6_mld.c +++ b/pimd/pim6_mld.c @@ -2423,6 +2423,7 @@ static void gm_show_if_one(struct vty *vty, struct interface *ifp, querier = IPV6_ADDR_SAME(&gm_ifp->querier, &pim_ifp->ll_lowest); if (js_if) { + json_object_string_add(js_if, "name", ifp->name); json_object_string_add(js_if, "state", "up"); json_object_string_addf(js_if, "version", "%d", gm_ifp->cur_version); @@ -2438,6 +2439,14 @@ static void gm_show_if_one(struct vty *vty, struct interface *ifp, json_object_string_addf(js_if, "otherQuerierTimer", "%pTH", gm_ifp->t_other_querier); + json_object_int_add(js_if, "timerRobustnessValue", + gm_ifp->cur_qrv); + json_object_int_add(js_if, "timerQueryIntervalMsec", + gm_ifp->cur_query_intv); + json_object_int_add(js_if, "timerQueryResponseTimerMsec", + gm_ifp->cur_max_resp); + json_object_int_add(js_if, "timerLastMemberQueryIntervalMsec", + gm_ifp->cur_query_intv_trig); } else { vty_out(vty, "%-16s %-5s %d %-25pPA %-5s %11pTH %pTVMs\n", ifp->name, "up", gm_ifp->cur_version, &gm_ifp->querier, |
