summaryrefslogtreecommitdiffstats
path: root/zebra/zebra_routemap.h
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2018-05-17 16:29:49 +0200
committerDonald Sharp <sharpd@cumulusnetworks.com>2018-05-17 16:57:59 +0200
commit633a66a58657f3dfef76c61d4ff805fc2c5b1808 (patch)
treeeb8deb7de40eefa1440b4f536caa1e7eeaa6090f /zebra/zebra_routemap.h
parentMerge pull request #2034 from vincentbernat/fix/rfc8365-auto-rt (diff)
downloadfrr-633a66a58657f3dfef76c61d4ff805fc2c5b1808.tar.xz
frr-633a66a58657f3dfef76c61d4ff805fc2c5b1808.zip
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 '')
-rw-r--r--zebra/zebra_routemap.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/zebra/zebra_routemap.h b/zebra/zebra_routemap.h
index 14c7c5884..20d425a2b 100644
--- a/zebra/zebra_routemap.h
+++ b/zebra/zebra_routemap.h
@@ -34,14 +34,14 @@ extern void zebra_del_import_table_route_map(afi_t afi, uint32_t table);
extern void zebra_route_map_write_delay_timer(struct vty *);
extern route_map_result_t
-zebra_import_table_route_map_check(int family, int rib_type, struct prefix *p,
- struct nexthop *nexthop, vrf_id_t vrf_id,
- route_tag_t tag, const char *rmap_name);
-extern route_map_result_t zebra_route_map_check(int family, int rib_type,
- struct prefix *p,
- struct nexthop *nexthop,
- vrf_id_t vrf_id,
- route_tag_t tag);
+zebra_import_table_route_map_check(int family, int rib_type, uint8_t instance,
+ struct prefix *p, struct nexthop *nexthop,
+ vrf_id_t vrf_id, route_tag_t tag,
+ const char *rmap_name);
+extern route_map_result_t
+zebra_route_map_check(int family, int rib_type, uint8_t instance,
+ struct prefix *p, struct nexthop *nexthop,
+ vrf_id_t vrf_id, route_tag_t tag);
extern route_map_result_t
zebra_nht_route_map_check(int family, int client_proto, struct prefix *p,
struct route_entry *, struct nexthop *nexthop);