diff options
author | Adam Smith <zero1three@gmail.com> | 2023-10-22 23:03:47 -0400 |
---|---|---|
committer | Adam Smith <zero1three@gmail.com> | 2023-10-22 23:03:47 -0400 |
commit | 0c046a1f5a020af30c9522011aa5c86524874a47 (patch) | |
tree | 450ce9bf409f47fddb2a4a3cda1e7c4e1cc47655 | |
parent | 9af3a9e64456174e053d855ebe6683b06d8313ee (diff) | |
download | vyos-1x-0c046a1f5a020af30c9522011aa5c86524874a47.tar.gz vyos-1x-0c046a1f5a020af30c9522011aa5c86524874a47.zip |
T5675: use addr_prefix instead of addr in NAT66 rule
-rw-r--r-- | python/vyos/nat.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/nat.py b/python/vyos/nat.py index 9cbc2b96e..cc3c8103d 100644 --- a/python/vyos/nat.py +++ b/python/vyos/nat.py @@ -150,7 +150,7 @@ def parse_nat_rule(rule_conf, rule_id, nat_type, ipv6=False): operator = '' if addr_prefix[:1] == '!': operator = '!=' - addr_prefix = addr[1:] + addr_prefix = addr_prefix[1:] output.append(f'ip6 {prefix}addr {operator} {addr_prefix}') port = dict_search_args(side_conf, 'port') |