summaryrefslogtreecommitdiff
path: root/zebra/zebra_rib.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-05-17 10:29:49 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-05-17 10:57:59 -0400
commit633a66a58657f3dfef76c61d4ff805fc2c5b1808 (patch)
treeeb8deb7de40eefa1440b4f536caa1e7eeaa6090f /zebra/zebra_rib.c
parent51f9d3e70ffa6e27fdb51ecc10b618091d518c28 (diff)
zebra: Add 'match source-instance' to allow finer grained control
Add to zebra route-maps the ability to match on a source-instance route-map FOO deny 55 match source-instance 5 route-map FOO permit 60 ip protocol any route-map FOO This will match any protocol route installation with a source-instance of 5. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Diffstat (limited to 'zebra/zebra_rib.c')
-rw-r--r--zebra/zebra_rib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_rib.c b/zebra/zebra_rib.c
index 7ec640164a..dec4ed06a9 100644
--- a/zebra/zebra_rib.c
+++ b/zebra/zebra_rib.c
@@ -924,7 +924,7 @@ static unsigned nexthop_active_check(struct route_node *rn,
memset(&nexthop->rmap_src.ipv6, 0, sizeof(union g_addr));
/* It'll get set if required inside */
- ret = zebra_route_map_check(family, re->type, p, nexthop,
+ ret = zebra_route_map_check(family, re->type, re->instance, p, nexthop,
nexthop->vrf_id, re->tag);
if (ret == RMAP_DENYMATCH) {
if (IS_ZEBRA_DEBUG_RIB) {