From baf6d9ced3a235f67526cdcaea7e408df535c658 Mon Sep 17 00:00:00 2001 From: Nicolas Fort Date: Wed, 9 Aug 2023 10:43:41 +0000 Subject: T5453: nat66: exclude checks for nat load-balance when using ipv6 while parsing nat rules. --- python/vyos/nat.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 = [] -- cgit v1.2.3