summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2020-04-16 15:57:18 +0200
committerPhilippe Guibert <philippe.guibert@6wind.com>2020-07-17 17:07:18 +0200
commit026b0e3b6f6930c4d3b11aec5ec2324a8ddcf168 (patch)
tree7e496bc0e4b4cc19eab3a4b66aa1b080e0684565
parentMerge pull request #6705 from sworleys/PBR-Fixes-More (diff)
downloadfrr-026b0e3b6f6930c4d3b11aec5ec2324a8ddcf168.tar.xz
frr-026b0e3b6f6930c4d3b11aec5ec2324a8ddcf168.zip
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 <philippe.guibert@6wind.com>
-rw-r--r--bgpd/bgp_flowspec_vty.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/bgpd/bgp_flowspec_vty.c b/bgpd/bgp_flowspec_vty.c
index 64a6c2ea8..e309fa948 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");
}
}