summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2020-07-19 22:47:02 +0200
committerGitHub <noreply@github.com>2020-07-19 22:47:02 +0200
commit94442436c0d66030d0b8ea2bc2ff86c74551e8e1 (patch)
treeff4c7e73b68cddd5a0f970b1940ab1e4d61247a4 /src
parent4573b1707a5d7a60711b9348a7267ab9a068bbfb (diff)
parent838d62c13522be665d875c0e7f1f5f01258c2b1b (diff)
downloadvyos-1x-94442436c0d66030d0b8ea2bc2ff86c74551e8e1.tar.gz
vyos-1x-94442436c0d66030d0b8ea2bc2ff86c74551e8e1.zip
Merge pull request #507 from jjakob/nft-translation-address-T2709
nat: T2709: remove 'translation address' mandatory check
Diffstat (limited to 'src')
-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 """