diff options
| author | Simon <965089+sarthurdev@users.noreply.github.com> | 2025-02-26 23:11:35 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-26 22:11:35 +0000 |
| commit | 92ad401f0b7459fa3c50092a1bdd8255946e5661 (patch) | |
| tree | b96bc51e5e91693297e837573e653e0877c1454d /src/conf_mode/load-balancing_wan.py | |
| parent | 4ce3b92f92739570233928980622d97220ffce71 (diff) | |
| download | vyos-1x-92ad401f0b7459fa3c50092a1bdd8255946e5661.tar.gz vyos-1x-92ad401f0b7459fa3c50092a1bdd8255946e5661.zip | |
wlb: T7196: Migrate interface wildcards to nftables format
* wlb: T7196: Migrate interface wildcards to nftables format
* wlb: T7196: Fix exclude/interface verify check
* wlb: T7196: Extra sanity check on ipv4 address function
Diffstat (limited to 'src/conf_mode/load-balancing_wan.py')
| -rwxr-xr-x | src/conf_mode/load-balancing_wan.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/conf_mode/load-balancing_wan.py b/src/conf_mode/load-balancing_wan.py index b3dd80a9a..92d9acfba 100755 --- a/src/conf_mode/load-balancing_wan.py +++ b/src/conf_mode/load-balancing_wan.py @@ -1,6 +1,6 @@ #!/usr/bin/env python3 # -# Copyright (C) 2023-2024 VyOS maintainers and contributors +# Copyright (C) 2023-2025 VyOS maintainers and contributors # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2 or later as @@ -71,8 +71,8 @@ def verify(lb): if 'rule' in lb: for rule_id, rule_conf in lb['rule'].items(): - if 'interface' not in rule_conf: - raise ConfigError(f'Interface not specified on load-balancing wan rule {rule_id}') + if 'interface' not in rule_conf and 'exclude' not in rule_conf: + raise ConfigError(f'Interface or exclude not specified on load-balancing wan rule {rule_id}') if 'failover' in rule_conf and 'exclude' in rule_conf: raise ConfigError(f'Failover cannot be configured with exclude on load-balancing wan rule {rule_id}') |
