]> git.puffer.fish Git - matthieu/frr.git/commitdiff
pim6d: Adding additional details for "show ipv6 mld interface [ifname] json" command.
authorAbhishek N R <abnr@vmware.com>
Fri, 2 Sep 2022 13:59:03 +0000 (06:59 -0700)
committerAbhishek N R <abnr@vmware.com>
Tue, 6 Sep 2022 05:51:03 +0000 (22:51 -0700)
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>
pimd/pim6_mld.c

index ecc771d85da57a85d8986f192f8dcb16b1138d73..38fa1966cd71a5de77acb262d03321e088e17971 100644 (file)
@@ -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,