]> git.puffer.fish Git - matthieu/frr.git/commitdiff
zebra: display ptmStatus order in interface json
authorSindhu Parvathi Gopinathan <sgopinathan@nvidia.com>
Wed, 24 Aug 2022 16:17:57 +0000 (09:17 -0700)
committerChirag Shah <chirag@nvidia.com>
Mon, 30 Oct 2023 01:06:55 +0000 (18:06 -0700)
Display ptmStatus in correct order in show interface json
output.

Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
zebra/interface.c

index 919cd11bc8425c53648f9709cf32ee1edb2157ce..1afd9d5a7d8a92240af88142d6bc90fc92884df6 100644 (file)
@@ -3133,7 +3133,7 @@ static void if_dump_vty_json(struct vty *vty, struct interface *ifp,
                json_object_string_add(json_if, "lastLinkDown",
                                       zebra_if->down_last);
 
-       zebra_ptm_show_status(vty, json, ifp);
+       zebra_ptm_show_status(vty, json_if, ifp);
 
        json_object_string_add(json_if, "vrfName", ifp->vrf->name);