From 1ce24b9b88f0a9cab0b87dc65dd6d5d098a8ba3f Mon Sep 17 00:00:00 2001 From: Stephen Worley Date: Thu, 5 Dec 2019 17:19:20 -0500 Subject: [PATCH] pbrd: use yes/no for pbr map validity vty output 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 --- pbrd/pbr_vty.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pbrd/pbr_vty.c b/pbrd/pbr_vty.c index ceeebb935e..c1922d8728 100644 --- a/pbrd/pbr_vty.c +++ b/pbrd/pbr_vty.c @@ -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);