summaryrefslogtreecommitdiff
path: root/src/conf_mode/nat.py
diff options
context:
space:
mode:
authorJernej Jakob <jernej.jakob@gmail.com>2020-07-19 21:33:46 +0200
committerJernej Jakob <jernej.jakob@gmail.com>2020-07-19 21:33:46 +0200
commit838d62c13522be665d875c0e7f1f5f01258c2b1b (patch)
tree003483eb9b129960ac00059c09e30027807432a6 /src/conf_mode/nat.py
parentdadb09fd14046720e7898c3cbad8c5def408db9d (diff)
downloadvyos-1x-838d62c13522be665d875c0e7f1f5f01258c2b1b.tar.gz
vyos-1x-838d62c13522be665d875c0e7f1f5f01258c2b1b.zip
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.
Diffstat (limited to 'src/conf_mode/nat.py')
-rwxr-xr-xsrc/conf_mode/nat.py3
1 files changed, 0 insertions, 3 deletions
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 """