From 026b0e3b6f6930c4d3b11aec5ec2324a8ddcf168 Mon Sep 17 00:00:00 2001 From: Philippe Guibert Date: Thu, 16 Apr 2020 15:57:18 +0200 Subject: [PATCH] bgpd: flowspec pbr entries list display fix the pbr entries list was not terminated with a carriage return and a parenthesis. Signed-off-by: Philippe Guibert --- bgpd/bgp_flowspec_vty.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/bgpd/bgp_flowspec_vty.c b/bgpd/bgp_flowspec_vty.c index 64a6c2ea8f..e309fa948e 100644 --- a/bgpd/bgp_flowspec_vty.c +++ b/bgpd/bgp_flowspec_vty.c @@ -376,11 +376,10 @@ void route_vty_out_flowspec(struct vty *vty, const struct prefix *p, bpr->priority, bpr->action->table_id); } - if (list_began) - vty_out(vty, ")"); - vty_out(vty, "\n"); } - if (!list_began) + if (list_began) + vty_out(vty, ")\n"); + else vty_out(vty, "\tnot installed in PBR\n"); } } -- 2.39.5