summaryrefslogtreecommitdiffstats
path: root/pimd
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas@opensourcerouting.org>2022-09-08 16:35:44 +0200
committerGitHub <noreply@github.com>2022-09-08 16:35:44 +0200
commit6a26823c880cca9e2bd42e1660692a2bbc3c69c6 (patch)
treecd116cc958d56dea6c8c6d907e8b4f11eba0e7f1 /pimd
parentMerge pull request #11887 from SaiGomathiN/igmptogm (diff)
parentpim6d: Adding additional details for "show ipv6 mld interface [ifname] json" ... (diff)
downloadfrr-6a26823c880cca9e2bd42e1660692a2bbc3c69c6.tar.xz
frr-6a26823c880cca9e2bd42e1660692a2bbc3c69c6.zip
Merge pull request #11896 from AbhishekNR/issue_11891
pim6d: Adding additional details for "show ipv6 mld interface [ifname] json" command.
Diffstat (limited to 'pimd')
-rw-r--r--pimd/pim6_mld.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/pimd/pim6_mld.c b/pimd/pim6_mld.c
index ecc771d85..38fa1966c 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,