Commit 8b4b5bbb authored by Ad Schellevis's avatar Ad Schellevis

(IDS) template, check for existence before using value

parent eebc4bec
...@@ -313,7 +313,7 @@ netmap: ...@@ -313,7 +313,7 @@ netmap:
- interface: default - interface: default
threads: auto threads: auto
copy-mode: ips copy-mode: ips
disable-promisc: {% if OPNsense.IDS.general.promisc|default('0') == '0' %}yes{% else %}no{% endif %} # promiscuous mode disable-promisc: {% if helpers.exists('OPNsense.IDS.general.promisc') and OPNsense.IDS.general.promisc|default('0') == '0' %}yes{% else %}no{% endif %} # promiscuous mode
checksum-checks: auto checksum-checks: auto
{% if helpers.exists('OPNsense.IDS.general.interfaces') %} {% if helpers.exists('OPNsense.IDS.general.interfaces') %}
...@@ -745,7 +745,7 @@ logging: ...@@ -745,7 +745,7 @@ logging:
pcap: pcap:
- interface: default - interface: default
promisc: {% if OPNsense.IDS.general.promisc|default('0') == '1' %}yes{% else %}no{% endif %} # promiscuous mode promisc: {% if helpers.exists('OPNsense.IDS.general.promisc') and OPNsense.IDS.general.promisc|default('0') == '1' %}yes{% else %}no{% endif %} # promiscuous mode
pcap-file: pcap-file:
# Possible values are: # Possible values are:
......
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