summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_routemap.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-01-11 17:51:46 +0100
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-01-12 15:26:42 +0100
commit5bdd34db693867fbfd80d2fe3fc4bc056cc02b0f (patch)
treed02522e13763a4d4fb1f8d1aea0edb8b33890766 /zebra/zebra_routemap.c
parentzebra: Encode the ifindex over netlink (diff)
downloadfrr-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.c2
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;