diff options
| author | Daniil Baturin <daniil@vyos.io> | 2025-11-27 13:14:43 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-11-27 13:14:43 +0000 |
| commit | 66576e52dfd729173f8a20b108ca116cf0987ba1 (patch) | |
| tree | 8a21ad72a44814de476632623237cab41faf55ab /src | |
| parent | 81eb7510621b3aa478359117733204bc7f140931 (diff) | |
| parent | e7d31b936ec7f06d9851e04917f67142b04f86e7 (diff) | |
| download | vyos-1x-66576e52dfd729173f8a20b108ca116cf0987ba1.tar.gz vyos-1x-66576e52dfd729173f8a20b108ca116cf0987ba1.zip | |
Merge pull request #4868 from natali-rs1985/T8036
vpp: T8036: Commit fails removing nat44 static rule
Diffstat (limited to 'src')
| -rw-r--r-- | src/conf_mode/vpp_nat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/conf_mode/vpp_nat.py b/src/conf_mode/vpp_nat.py index 468424016..f7dbf4052 100644 --- a/src/conf_mode/vpp_nat.py +++ b/src/conf_mode/vpp_nat.py @@ -240,7 +240,7 @@ def verify(config): addresses_without_ports = set() local_addresses = set() - for rule, rule_config in config['static']['rule'].items(): + for rule, rule_config in config['static'].get('rule', {}).items(): error_msg = f'Configuration error in static rule {rule}:' if not rule_config.get('local', {}).get('address'): @@ -327,7 +327,7 @@ def verify(config): ) if 'exclude' in config: - for rule, rule_config in config['exclude']['rule'].items(): + for rule, rule_config in config['exclude'].get('rule', {}).items(): keys = {'local_address', 'external_interface'} if not any(key in rule_config for key in keys): raise ConfigError( |
