summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2021-09-27 20:53:57 +0200
committerChristian Poessinger <christian@poessinger.com>2021-09-27 20:53:57 +0200
commit17dc7cd0aaca5c4ae14d3dc843de7a5b612ab5ed (patch)
treeaf36b7155e0a2b6db380883ab576529e2d6d1dd2 /src
parenta0202eaf489cfc59ee5358621ab674a5a515c978 (diff)
downloadvyos-1x-17dc7cd0aaca5c4ae14d3dc843de7a5b612ab5ed.tar.gz
vyos-1x-17dc7cd0aaca5c4ae14d3dc843de7a5b612ab5ed.zip
nat66: T3863: ndppd requires interfaces to be present
Diffstat (limited to 'src')
-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 f8bc073bb..fb376a434 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} outbound-interface not specified')
if config['outbound_interface'] not in interfaces():
- print(f'WARNING: rule "{rule}" interface "{config["outbound_interface"]}" does not exist on this system')
+ raise ConfigError(f'WARNING: rule "{rule}" interface "{config["outbound_interface"]}" does not exist on this system')
addr = dict_search('translation.address', config)
if addr != None: