]> git.puffer.fish Git - mirror/frr.git/commitdiff
bgpd: nexthop vrf name set to default vrf
authorPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 17 Dec 2018 16:44:02 +0000 (17:44 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Mon, 17 Dec 2018 16:44:02 +0000 (17:44 +0100)
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>
bgpd/bgp_route.c

index 47c04c4963672e7fa44fb4cbc5b7973920818045..97aa189bac2252824bd75d6d94aa2ead110e8bc1 100644 (file)
@@ -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();