From 838d62c13522be665d875c0e7f1f5f01258c2b1b Mon Sep 17 00:00:00 2001 From: Jernej Jakob Date: Sun, 19 Jul 2020 21:33:46 +0200 Subject: nat: T2709: remove 'translation address' mandatory check Rules without a translation address are also valid, they'll modify just the port and leave the address intact. This also used to be a valid syntax and it caused an error on upgrade. --- src/conf_mode/nat.py | 3 --- 1 file changed, 3 deletions(-) (limited to 'src') diff --git a/src/conf_mode/nat.py b/src/conf_mode/nat.py index 3dd20938a..2299717a8 100755 --- a/src/conf_mode/nat.py +++ b/src/conf_mode/nat.py @@ -79,9 +79,6 @@ def verify_rule(rule, err_msg): 'statically maps a whole network of addresses onto another\n' \ 'network of addresses') - if not rule['exclude'] and not rule['translation_address']: - raise ConfigError(f'{err_msg} translation address not specified') - def parse_configuration(conf, source_dest): """ Common wrapper to read in both NAT source and destination CLI """ -- cgit v1.2.3