diff options
author | Nataliia Solomko <natalirs1985@gmail.com> | 2024-09-11 12:22:25 +0300 |
---|---|---|
committer | Mergify <37929162+mergify[bot]@users.noreply.github.com> | 2024-09-12 19:14:29 +0000 |
commit | 8d4ed1124fbf93a194dbdc5df5d1592137934ac9 (patch) | |
tree | c4e6582dbefb5b4b2b3a51f91c8656ec7191e8ba | |
parent | eb9e562c28d2935a3823a5522983697cf76dad52 (diff) | |
download | vyos-1x-8d4ed1124fbf93a194dbdc5df5d1592137934ac9.tar.gz vyos-1x-8d4ed1124fbf93a194dbdc5df5d1592137934ac9.zip |
policy: T6676: Invalid route-map caused bgpd to crashmergify/bp/sagitta/pr-4047
(cherry picked from commit 595f35bbdda732883ce0b8b0721061bb3a40a715)
-rwxr-xr-x | src/conf_mode/policy.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/conf_mode/policy.py b/src/conf_mode/policy.py index 4df893ebf..a5963e72c 100755 --- a/src/conf_mode/policy.py +++ b/src/conf_mode/policy.py @@ -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', |