summaryrefslogtreecommitdiff
path: root/src/conf_mode
diff options
context:
space:
mode:
authorjack9603301 <jack9603301@163.com>2021-01-21 01:25:43 +0800
committerjack9603301 <jack9603301@163.com>2021-01-23 21:45:31 +0800
commit01e1759d16afbc9f95b64da76eee97fc06729dc8 (patch)
treee353598cefc88a0781f35044070cd92548c523a5 /src/conf_mode
parentf58a41bccecd6765eb9bc376809197fd2fb36b0c (diff)
downloadvyos-1x-01e1759d16afbc9f95b64da76eee97fc06729dc8.tar.gz
vyos-1x-01e1759d16afbc9f95b64da76eee97fc06729dc8.zip
nptv6: T2518: outbound_interface cannot be any, inbound_interface can be any
Diffstat (limited to 'src/conf_mode')
-rwxr-xr-xsrc/conf_mode/nat66.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/nat66.py b/src/conf_mode/nat66.py
index 69373c054..a5c74259f 100755
--- a/src/conf_mode/nat66.py
+++ b/src/conf_mode/nat66.py
@@ -117,7 +117,7 @@ def verify(nat):
raise ConfigError(f'{err_msg}\n' \
'outbound-interface not specified')
else:
- if config['outbound_interface'] not in 'any' and config['outbound_interface'] not in interfaces():
+ if config['outbound_interface'] not in interfaces():
print(f'WARNING: rule "{rule}" interface "{config["outbound_interface"]}" does not exist on this system')