mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-03 11:01:48 +00:00
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 <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
1374aec98f
commit
f56ee10fc7
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user