summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2025-08-05 14:39:46 +0100
committerGitHub <noreply@github.com>2025-08-05 14:39:46 +0100
commit11efbfa0eab5cc6090f6d5ff22eca5c8562a9c37 (patch)
tree7a615d617f1634c791031c7c16629cae2a3ece61 /python
parent35f333b26326940e5e0cf3f97eb99dbb55a77e08 (diff)
parentd54b9445672ad454edde8d56f19468b225dd87e0 (diff)
downloadvyos-1x-11efbfa0eab5cc6090f6d5ff22eca5c8562a9c37.tar.gz
vyos-1x-11efbfa0eab5cc6090f6d5ff22eca5c8562a9c37.zip
Merge pull request #4643 from MattKobayashi/T7685
T7685: load-balancing: fix rules with multiple ports
Diffstat (limited to 'python')
-rw-r--r--python/vyos/wanloadbalance.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/wanloadbalance.py b/python/vyos/wanloadbalance.py
index 2381f7d1c..158ee76c8 100644
--- a/python/vyos/wanloadbalance.py
+++ b/python/vyos/wanloadbalance.py
@@ -65,7 +65,7 @@ def nft_rule(rule_conf, rule_id, local=False, exclude=False, limit=False, weight
if port[:1] == '!':
operator = '!='
port = port[1:]
- output.append(f'th {prefix}port {operator} {port}')
+ output.append(f'th {prefix}port {operator} {{ {port} }}')
if 'source_based_routing' not in rule_conf and not restore_mark:
output.append('ct state new')