summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Smith <zero1three@gmail.com>2023-10-22 23:03:47 -0400
committerMergify <37929162+mergify[bot]@users.noreply.github.com>2023-10-23 04:24:27 +0000
commit093aa7efd5500e1a7648511dde3a41c1e19e6b14 (patch)
tree64445e963ee05039b58ab8773ce82487fef654f3
parent2007a883125c7c6e1a0a1b06b0e0d32f9b1dc693 (diff)
downloadvyos-1x-093aa7efd5500e1a7648511dde3a41c1e19e6b14.tar.gz
vyos-1x-093aa7efd5500e1a7648511dde3a41c1e19e6b14.zip
T5675: use addr_prefix instead of addr in NAT66 rule
(cherry picked from commit 0c046a1f5a020af30c9522011aa5c86524874a47)
-rw-r--r--python/vyos/nat.py2
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')