diff options
Diffstat (limited to 'python/vyos/template.py')
-rw-r--r-- | 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 0e79994f5..d9ff98d2e 100644 --- a/python/vyos/template.py +++ b/python/vyos/template.py @@ -616,6 +616,11 @@ def nft_nested_group(out_list, includes, groups, key): add_includes(name) return out_list +@register_filter('nat_rule') +def nat_rule(rule_conf, rule_id, nat_type, ipv6=False): + from vyos.nat import parse_nat_rule + return parse_nat_rule(rule_conf, rule_id, nat_type, ipv6) + @register_filter('range_to_regex') def range_to_regex(num_range): from vyos.range_regex import range_to_regex |