summaryrefslogtreecommitdiff
path: root/python/vyos/nat.py
diff options
context:
space:
mode:
authorNicolas Fort <nicolasfort1988@gmail.com>2023-08-09 10:43:41 +0000
committerNicolas Fort <nicolasfort1988@gmail.com>2023-08-09 10:43:41 +0000
commitbaf6d9ced3a235f67526cdcaea7e408df535c658 (patch)
treef21687a25c28577f558b64ac5ced66e520cc92fc /python/vyos/nat.py
parent98ed11a7d6e35de49f57406a0dd9d4759541f2d4 (diff)
downloadvyos-1x-baf6d9ced3a235f67526cdcaea7e408df535c658.tar.gz
vyos-1x-baf6d9ced3a235f67526cdcaea7e408df535c658.zip
T5453: nat66: exclude checks for nat load-balance when using ipv6 while parsing nat rules.
Diffstat (limited to 'python/vyos/nat.py')
-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 418efe649..b6702f7e2 100644
--- a/python/vyos/nat.py
+++ b/python/vyos/nat.py
@@ -94,7 +94,7 @@ def parse_nat_rule(rule_conf, rule_id, nat_type, ipv6=False):
if options:
translation_str += f' {",".join(options)}'
- if 'backend' in rule_conf['load_balance']:
+ if not ipv6 and 'backend' in rule_conf['load_balance']:
hash_input_items = []
current_prob = 0
nat_map = []