]> git.proxmox.com Git - mirror_frr.git/commitdiff
pbrd: use yes/no for pbr map validity vty output
authorStephen Worley <sworley@cumulusnetworks.com>
Thu, 5 Dec 2019 22:19:20 +0000 (17:19 -0500)
committerStephen Worley <sworley@cumulusnetworks.com>
Fri, 6 Dec 2019 19:04:02 +0000 (14:04 -0500)
Change the pbr map validity state to indicate yes/no
rather than 1/0 in the `show pbr map` command.

Humans aren't robots, so don't use binary.

Signed-off-by: Stephen Worley <sworley@cumulusnetworks.com>
pbrd/pbr_vty.c

index ceeebb935e97c2272315e0b4f1bc97b9fac05940..c1922d87288a1020132d697b26e5f112b509a7a1 100644 (file)
@@ -599,7 +599,8 @@ static void vty_show_pbr_map(struct vty *vty, const struct pbr_map *pbrm,
        struct pbr_map_sequence *pbrms;
        struct listnode *node;
 
-       vty_out(vty, "  pbr-map %s valid: %d\n", pbrm->name, pbrm->valid);
+       vty_out(vty, "  pbr-map %s valid: %s\n", pbrm->name,
+               pbrm->valid ? "yes" : "no");
 
        for (ALL_LIST_ELEMENTS_RO(pbrm->seqnumbers, node, pbrms))
                vty_show_pbrms(vty, pbrms, detail);