diff options
| author | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2022-10-12 17:08:02 +0200 |
|---|---|---|
| committer | sarthurdev <965089+sarthurdev@users.noreply.github.com> | 2025-02-13 23:30:24 +0100 |
| commit | a03174843512340f2f970fd6c3fe189b7bba92d6 (patch) | |
| tree | 40453c6ce4bf2cd6fcb9571a21c7900a228b68c4 /python/vyos/template.py | |
| parent | c2238596f7994e51974e9a517fb7ab7e948e955f (diff) | |
| download | veeos-1x-a03174843512340f2f970fd6c3fe189b7bba92d6.tar.gz veeos-1x-a03174843512340f2f970fd6c3fe189b7bba92d6.zip | |
wlb: T4470: Migrate WAN load balancer to Python/XML
Diffstat (limited to 'python/vyos/template.py')
| -rwxr-xr-x | python/vyos/template.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/vyos/template.py b/python/vyos/template.py index be9f781a6..7ba608b32 100755 --- a/python/vyos/template.py +++ b/python/vyos/template.py @@ -779,6 +779,11 @@ def conntrack_ct_policy(protocol_conf): return ", ".join(output) +@register_filter('wlb_nft_rule') +def wlb_nft_rule(rule_conf, rule_id, local=False, exclude=False, limit=False, weight=None, health_state=None, action=None, restore_mark=False): + from vyos.wanloadbalance import nft_rule as wlb_nft_rule + return wlb_nft_rule(rule_conf, rule_id, local, exclude, limit, weight, health_state, action, restore_mark) + @register_filter('range_to_regex') def range_to_regex(num_range): """Convert range of numbers or list of ranges |
