summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2019-01-02 16:08:42 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2019-01-07 10:26:54 +0100
commitb84060bbedb72a7c3bd8cd6b79a5aebf9e34bc95 (patch)
tree3484e04512368d74f8e5e6bbc999804ddee335ad
parentd52fa66f0eab73d73caf5fdb47aeae4132b144db (diff)
bgpd: use the wording vrf instead of table
in bgp, even if the main vrf implementation relies on tables, the fact is some vrf implementation rely on network namespaces, and then the table used is the default table from the network namespace. Use the wording vrf instead of table. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
-rw-r--r--bgpd/bgp_route.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 2c361bef4d..658a1e3f1f 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -8974,12 +8974,14 @@ void route_vty_out_detail_header(struct vty *vty, struct bgp *bgp,
vty_out(vty, "Paths: (%d available", count);
if (best) {
vty_out(vty, ", best #%d", best);
- if (safi == SAFI_UNICAST)
- vty_out(vty, ", table %s",
- (bgp->inst_type
- == BGP_INSTANCE_TYPE_DEFAULT)
- ? VRF_DEFAULT_NAME
- : bgp->name);
+ if (safi == SAFI_UNICAST) {
+ if (bgp->inst_type == BGP_INSTANCE_TYPE_DEFAULT)
+ vty_out(vty, ", table %s",
+ VRF_DEFAULT_NAME);
+ else
+ vty_out(vty, ", vrf %s",
+ bgp->name);
+ }
} else
vty_out(vty, ", no best path");