]> 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)
committerMergify <37929162+mergify[bot]@users.noreply.github.com>
Mon, 30 Oct 2023 06:32:06 +0000 (06:32 +0000)
Display ptmStatus in correct order in show interface json
output.

Signed-off-by: Sindhu Parvathi Gopinathan's <sgopinathan@nvidia.com>
(cherry picked from commit aa6dab0369b9ab90291f5596f6b23a4c0b226ed0)

zebra/interface.c

index 991c58799769c9fb58610a6b416ed33bee3ed235..efe39096b2623a78d4bcd75349e3d0478e7992f3 100644 (file)
@@ -2273,7 +2273,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);