]> git.puffer.fish Git - mirror/frr.git/commitdiff
vrrpd: display configured adv int in json output
authorQuentin Young <qlyoung@cumulusnetworks.com>
Wed, 20 Mar 2019 04:55:35 +0000 (04:55 +0000)
committerQuentin Young <qlyoung@cumulusnetworks.com>
Fri, 17 May 2019 00:27:08 +0000 (00:27 +0000)
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
vrrpd/vrrp_vty.c

index 2040d0e8b22893a455aa8a414ca49301e28dd660..01cc5b651ea0d82af67eff7bc4ac87acc9156208 100644 (file)
@@ -376,6 +376,8 @@ static struct json_object *vrrp_build_json(struct vrrp_vrouter *vr)
        json_object_boolean_add(j, "preemptMode", vr->preempt_mode);
        json_object_boolean_add(j, "acceptMode", vr->accept_mode);
        json_object_string_add(j, "interface", vr->ifp->name);
+       json_object_int_add(j, "advertisementInterval",
+                           vr->advertisement_interval * CS2MS);
        /* v4 */
        json_object_string_add(v4, "interface",
                               vr->v4->mvl_ifp ? vr->v4->mvl_ifp->name : "");