diff options
| author | Donald Sharp <sharpd@cumulusnetworks.com> | 2019-06-03 09:19:59 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-03 09:19:59 -0400 |
| commit | b2eea7a00eb2fcc01dbcb0335546ac7d4224d11a (patch) | |
| tree | 6e6af8490d9b31ee683c529fdf2d385f460b8629 /lib/routemap.h | |
| parent | 61b64d55014deba914d5ec7b0e4b40d9538d42c4 (diff) | |
| parent | e2c8d6ce90a597d7d0ac9149b618f9eef83bf73c (diff) | |
Merge pull request #4345 from NaveenThanikachalam/route_map_dep
lib: Changes made to dependencies of a route-map do not take effect dynamically.
Diffstat (limited to 'lib/routemap.h')
| -rw-r--r-- | lib/routemap.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/lib/routemap.h b/lib/routemap.h index 41b8428fa1..d7acd7f3f7 100644 --- a/lib/routemap.h +++ b/lib/routemap.h @@ -125,13 +125,18 @@ struct route_map_rule_cmd { }; /* Route map apply error. */ -enum { RMAP_COMPILE_SUCCESS, +enum { + RMAP_COMPILE_SUCCESS, - /* Route map rule is missing. */ - RMAP_RULE_MISSING, + /* Route map rule is missing. */ + RMAP_RULE_MISSING, - /* Route map rule can't compile */ - RMAP_COMPILE_ERROR }; + /* Route map rule can't compile */ + RMAP_COMPILE_ERROR, + + /* Route map rule is duplicate */ + RMAP_DUPLICATE_RULE +}; /* Route map rule list. */ struct route_map_rule_list { @@ -213,7 +218,8 @@ extern void route_map_finish(void); /* Add match statement to route map. */ extern int route_map_add_match(struct route_map_index *index, - const char *match_name, const char *match_arg); + const char *match_name, const char *match_arg, + route_map_event_t type); /* Delete specified route match rule. */ extern int route_map_delete_match(struct route_map_index *index, |
