summaryrefslogtreecommitdiff
path: root/data/templates/firewall/nftables-offload.j2
blob: 087fd141ce2646c9399799aa76cf5b519fa8e0f6 (plain)
1
2
3
4
5
6
7
8
9
{% macro flowtable(name, config) %}
    flowtable VYOS_FLOWTABLE_{{ name }} {
        hook ingress priority 0; devices = { {{ config.interface | join(', ') }} };
{% if config.offload is vyos_defined('hardware') %}
        flags offload;
{% endif %}
        counter
    }
{% endmacro %}