summaryrefslogtreecommitdiff
path: root/pbrd/pbr_vty.c
diff options
context:
space:
mode:
authorStephen Worley <sworley@cumulusnetworks.com>2019-12-05 17:19:20 -0500
committerStephen Worley <sworley@cumulusnetworks.com>2019-12-06 14:04:02 -0500
commit1ce24b9b88f0a9cab0b87dc65dd6d5d098a8ba3f (patch)
tree56d87c5c237604e30ea53447a902b32e63e15db2 /pbrd/pbr_vty.c
parentb740126d97502da6f3efd43a5249b3cc39d90d21 (diff)
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 <sworley@cumulusnetworks.com>
Diffstat (limited to 'pbrd/pbr_vty.c')
-rw-r--r--pbrd/pbr_vty.c3
1 files changed, 2 insertions, 1 deletions
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);