diff options
author | Daniil Baturin <daniil@vyos.io> | 2023-10-23 16:12:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-23 16:12:00 +0100 |
commit | b15dbec9b5df507ee31f8e029c5a1c58762a6e43 (patch) | |
tree | d84b60b2e5caad049514fabd6e6014f56ab8e4f3 | |
parent | abf3bea0af3ec640057add5dfa6da1b59b85a651 (diff) | |
parent | 093aa7efd5500e1a7648511dde3a41c1e19e6b14 (diff) | |
download | vyos-1x-b15dbec9b5df507ee31f8e029c5a1c58762a6e43.tar.gz vyos-1x-b15dbec9b5df507ee31f8e029c5a1c58762a6e43.zip |
Merge pull request #2397 from vyos/mergify/bp/sagitta/pr-2395
T5675: Use addr_prefix instead of addr in NAT66 source rule prefix parsing (backport #2395)
-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') |