From 0c046a1f5a020af30c9522011aa5c86524874a47 Mon Sep 17 00:00:00 2001 From: Adam Smith Date: Sun, 22 Oct 2023 23:03:47 -0400 Subject: T5675: use addr_prefix instead of addr in NAT66 rule --- python/vyos/nat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python/vyos') 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') -- cgit v1.2.3