Skip to content

Commit

Permalink
Merge pull request #4059 from vyos/mergify/bp/circinus/pr-4047
Browse files Browse the repository at this point in the history
policy: T6676: Invalid route-map caused bgpd to crash (backport #4047)
  • Loading branch information
dmbaturin authored Sep 13, 2024
2 parents 205d957 + 6f65736 commit 97e58b5
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 97e58b5

Please sign in to comment.