From: Donald Sharp Date: Thu, 1 Mar 2018 00:16:51 +0000 (-0500) Subject: ospfd: Add vrf to nhlfe route add X-Git-Tag: frr-5.0-dev~194^2 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=refs%2Fpull%2F1809%2Fhead;p=mirror%2Ffrr.git ospfd: Add vrf to nhlfe route add So when a ospf SR is sending down routes to the kernel ensure that the nexthop vrf_id is set appropriately. Yes SR is in the default VRF. But for people who run across this code in the future, they will know to do the right thing from it. Signed-off-by: Donald Sharp --- diff --git a/ospfd/ospf_sr.c b/ospfd/ospf_sr.c index 1560977ae8..02cf2636cc 100644 --- a/ospfd/ospf_sr.c +++ b/ospfd/ospf_sr.c @@ -675,6 +675,7 @@ static int ospf_zebra_send_mpls_ftn(int cmd, struct sr_nhlfe nhlfe) SET_FLAG(api.message, ZAPI_MESSAGE_LABEL); api_nh->labels[0] = nhlfe.label_out; api_nh->label_num = 1; + api_nh->vrf_id = VRF_DEFAULT; api.nexthop_num = 1; }