Commit 5f3936ab authored by Ad Schellevis's avatar Ad Schellevis

(netflow) fix missing check for egress_only

parent 5b4acfac
...@@ -15,11 +15,11 @@ netflow_interfaces="{% for interface in OPNsense.Netflow.capture.interfaces.spli ...@@ -15,11 +15,11 @@ netflow_interfaces="{% for interface in OPNsense.Netflow.capture.interfaces.spli
physical_interface(interface) physical_interface(interface)
}} {% }} {%
endfor%}" endfor%}"
netflow_egress_only="{% for interface in OPNsense.Netflow.capture.egress_only.split(',') netflow_egress_only="{% if OPNsense.Netflow.capture.egress_only %}{% for interface in OPNsense.Netflow.capture.egress_only.split(',')
%}{{ %}{{
physical_interface(interface) physical_interface(interface)
}} {% }}{%
endfor%}" endfor%} {%endif%}"
netflow_version="{%if OPNsense.Netflow.capture.version == 'v9' %}9{% else %}5{%endif%}" netflow_version="{%if OPNsense.Netflow.capture.version == 'v9' %}9{% else %}5{%endif%}"
netflow_int_destination="127.0.0.1:2055" netflow_int_destination="127.0.0.1:2055"
netflow_destinations="{{OPNsense.Netflow.capture.targets.replace(',', ' ')}}" netflow_destinations="{{OPNsense.Netflow.capture.targets.replace(',', ' ')}}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment