From 6b2c3906c3ef1e8a72d6923fcea9cc340e59dd82 Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Wed, 18 Aug 2021 09:51:29 +0200 Subject: nptv6: T2518: add missing verify() stage for mandatory translation address --- src/conf_mode/nat66.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') 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: -- cgit v1.2.3