]> git.proxmox.com Git - mirror_frr.git/commitdiff
ospfd: Add vrf to nhlfe route add
authorDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 1 Mar 2018 00:16:51 +0000 (19:16 -0500)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Thu, 1 Mar 2018 00:16:51 +0000 (19:16 -0500)
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 <sharpd@cumulusnetworks.com>
ospfd/ospf_sr.c

index 1560977ae86bfece3fb1f21651e88302ea1ada3e..02cf2636cc8c8f0dab8c0a66b024fdac8403acfa 100644 (file)
@@ -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;
        }