Skip to content

Commit

Permalink
policy: T6676: Invalid route-map caused bgpd to crash
Browse files Browse the repository at this point in the history
(cherry picked from commit 595f35b)
  • Loading branch information
natali-rs1985 authored and mergify[bot] committed Sep 12, 2024
1 parent eb9e562 commit 8d4ed11
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/conf_mode/policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,10 +167,10 @@ def verify(policy):
continue

for rule, rule_config in route_map_config['rule'].items():
# Action 'deny' cannot be used with "continue"
# FRR does not validate it T4827
if rule_config['action'] == 'deny' and 'continue' in rule_config:
raise ConfigError(f'rule {rule} "continue" cannot be used with action deny!')
# Action 'deny' cannot be used with "continue" or "on-match"
# FRR does not validate it T4827, T6676
if rule_config['action'] == 'deny' and ('continue' in rule_config or 'on_match' in rule_config):
raise ConfigError(f'rule {rule} "continue" or "on-match" cannot be used with action deny!')

# Specified community-list must exist
tmp = dict_search('match.community.community_list',
Expand Down

0 comments on commit 8d4ed11

Please sign in to comment.