diff options
author | Christian Poessinger <christian@poessinger.com> | 2021-08-18 09:51:29 +0200 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2021-08-18 09:51:29 +0200 |
commit | 6b2c3906c3ef1e8a72d6923fcea9cc340e59dd82 (patch) | |
tree | ca3ec06ed5209c0e980bcefb51ff631859f9cb7b /src | |
parent | c9ad82ef583a1f44f84c7e69124f2a5d868da857 (diff) | |
download | vyos-1x-6b2c3906c3ef1e8a72d6923fcea9cc340e59dd82.tar.gz vyos-1x-6b2c3906c3ef1e8a72d6923fcea9cc340e59dd82.zip |
nptv6: T2518: add missing verify() stage for mandatory translation address
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/nat66.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/conf_mode/nat66.py b/src/conf_mode/nat66.py index 2314b6623..8a3adc807 100755 --- a/src/conf_mode/nat66.py +++ b/src/conf_mode/nat66.py @@ -124,6 +124,8 @@ def verify(nat): if addr != None: if addr != 'masquerade' and not is_ipv6(addr): raise ConfigError(f'Warning: IPv6 address {addr} is not a valid address') + else: + raise ConfigError(f'{err_msg} translation address not specified') prefix = dict_search('source.prefix', config) if prefix != None: |