diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-05-17 10:29:49 -0400 | 
|---|---|---|
| committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2018-05-17 10:57:59 -0400 | 
| commit | 633a66a58657f3dfef76c61d4ff805fc2c5b1808 (patch) | |
| tree | eb8deb7de40eefa1440b4f536caa1e7eeaa6090f /zebra/zebra_routemap.h | |
| parent | 51f9d3e70ffa6e27fdb51ecc10b618091d518c28 (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_routemap.h')
| -rw-r--r-- | zebra/zebra_routemap.h | 16 | 
1 files changed, 8 insertions, 8 deletions
diff --git a/zebra/zebra_routemap.h b/zebra/zebra_routemap.h index 14c7c58848..20d425a2bc 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);  | 
