summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2026-10-17 20:54:47 +0200
committerChristian Breunig <christian@breunig.cc>2026-10-17 20:54:47 +0200
commita189b6b7e8ee991cc0fc7d13ee90d588ea5ca15d (patch)
treee596489653e3dbed09cc4f90509123e574aec3d8 /src
parentf1205b233896dd804bf556618a25a5fdbf887608 (diff)
downloadvyos-1x-a189b6b7e8ee991cc0fc7d13ee90d588ea5ca15d.tar.gz
vyos-1x-a189b6b7e8ee991cc0fc7d13ee90d588ea5ca15d.zip
wlb: T9472: support interface names containing a dash
The health daemon read its configuration with tag node values mangled, so an interface such as "wlb-isp1" became "wlb_isp1". The daemon then checked an interface which does not exist, marked it FAILED and never installed its routes - the interface was never used. The smoketest gains a traffic lab: a LAN and one ISP per WAN interface in network namespaces, every ISP answering on the same address with its name and the source address it sees.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/helpers/vyos-load-balancer.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helpers/vyos-load-balancer.py b/src/helpers/vyos-load-balancer.py
index 04a2349bf..772639c3b 100755
--- a/src/helpers/vyos-load-balancer.py
+++ b/src/helpers/vyos-load-balancer.py
@@ -231,6 +231,7 @@ def get_config():
conf = Config()
base = ['load-balancing', 'wan']
lb = conf.get_config_dict(base, key_mangling=('-', '_'),
+ no_tag_node_value_mangle=True,
get_first_key=True, with_recursive_defaults=True)
lb['firewall_group'] = conf.get_config_dict(['firewall', 'group'], key_mangling=('-', '_'), get_first_key=True,