From a03174843512340f2f970fd6c3fe189b7bba92d6 Mon Sep 17 00:00:00 2001 From: sarthurdev <965089+sarthurdev@users.noreply.github.com> Date: Wed, 12 Oct 2022 17:08:02 +0200 Subject: wlb: T4470: Migrate WAN load balancer to Python/XML --- python/vyos/template.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'python/vyos/template.py') 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 -- cgit v1.2.3