diff options
author | Christian Breunig <christian@breunig.cc> | 2023-10-23 06:23:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 06:23:37 +0200 |
commit | 9c029b71cbf8bd61c6e37789ba8da170e6282761 (patch) | |
tree | 4f60b9a60030b7e19405d3026916c78c50338676 /python/vyos | |
parent | 7b0d208632f3357c98612d12083851df90d67487 (diff) | |
parent | 0c046a1f5a020af30c9522011aa5c86524874a47 (diff) | |
download | vyos-1x-9c029b71cbf8bd61c6e37789ba8da170e6282761.tar.gz vyos-1x-9c029b71cbf8bd61c6e37789ba8da170e6282761.zip |
Merge pull request #2395 from yzguy/yzguy/T5676
T5675: Use addr_prefix instead of addr in NAT66 source rule prefix parsing
Diffstat (limited to 'python/vyos')
-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') |