summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilippe Guibert <philippe.guibert@6wind.com>2018-12-17 17:44:02 +0100
committerPhilippe Guibert <philippe.guibert@6wind.com>2018-12-17 17:44:02 +0100
commit4d97eea6302adabcd7b2235f722d9b6e3899dfc3 (patch)
treefe240926db0e27ce1c4a002239c8333dac2ac5ff
parentb31c2a2ebf46dbffe9376b7c37e3d419a072b9dd (diff)
bgpd: nexthop vrf name set to default vrf
if default vrf is not Default, then nexthop vrf name returned may be "Default", which is not the correct name of default vrf. change it accordingly. Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
-rw-r--r--bgpd/bgp_route.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bgpd/bgp_route.c b/bgpd/bgp_route.c
index 47c04c4963..97aa189bac 100644
--- a/bgpd/bgp_route.c
+++ b/bgpd/bgp_route.c
@@ -6581,7 +6581,7 @@ void route_vty_out(struct vty *vty, struct prefix *p,
CHECK_FLAG(path->flags, BGP_PATH_ANNC_NH_SELF) ? true : false;
bool nexthop_othervrf = false;
vrf_id_t nexthop_vrfid = VRF_DEFAULT;
- const char *nexthop_vrfname = "Default";
+ const char *nexthop_vrfname = VRF_DEFAULT_NAME;
if (json_paths)
json_path = json_object_new_object();