diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-11 17:51:46 +0100 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-01-12 15:26:42 +0100 |
commit | 5bdd34db693867fbfd80d2fe3fc4bc056cc02b0f (patch) | |
tree | d02522e13763a4d4fb1f8d1aea0edb8b33890766 /zebra/zebra_routemap.c | |
parent | zebra: Encode the ifindex over netlink (diff) | |
download | frr-5bdd34db693867fbfd80d2fe3fc4bc056cc02b0f.tar.xz frr-5bdd34db693867fbfd80d2fe3fc4bc056cc02b0f.zip |
zebra: Allow static non interface based routes to leak
Allow this to work:
vrf DONNA
ip route 4.3.2.1/32 192.168.1.5 nexthop-vrf EVA
The static route code was not properly telling the
nexthop resolution code what vrf to use.
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_routemap.c')
-rw-r--r-- | zebra/zebra_routemap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_routemap.c b/zebra/zebra_routemap.c index 61af60b5d..89cb2fc48 100644 --- a/zebra/zebra_routemap.c +++ b/zebra/zebra_routemap.c @@ -1329,7 +1329,7 @@ route_map_result_t zebra_nht_route_map_check(int family, int client_proto, struct nh_rmap_obj nh_obj; nh_obj.nexthop = nexthop; - nh_obj.vrf_id = re->vrf_id; + nh_obj.vrf_id = re->nh_vrf_id; nh_obj.source_protocol = re->type; nh_obj.metric = re->metric; nh_obj.tag = re->tag; |