Commit 3b0f081c authored by Ad Schellevis's avatar Ad Schellevis

(traffic shaper) both = empty :)

parent dbad45a3
...@@ -153,7 +153,7 @@ add 60000 return via any ...@@ -153,7 +153,7 @@ add 60000 return via any
%} %}
{% if rule.interface2 and helpers.getNodeByTag('interfaces.'+rule.interface2) %} {% if rule.interface2 and helpers.getNodeByTag('interfaces.'+rule.interface2) %}
{# 2 interface defined, use both to match packets (2 rules) #} {# 2 interface defined, use both to match packets (2 rules) #}
{% if rule.direction == 'in' or rule.direction == 'both' %} {% if rule.direction == 'in' or not rule.direction %}
add {{loop.index + 60000}} {{ helpers.getUUIDtag(rule.target) }} {{ add {{loop.index + 60000}} {{ helpers.getUUIDtag(rule.target) }} {{
helpers.getUUID(rule.target).number }} {{ rule.proto.split('_')[0] }} from {{ rule.source }} to {{rule.destination helpers.getUUID(rule.target).number }} {{ rule.proto.split('_')[0] }} from {{ rule.source }} to {{rule.destination
}} src-port {{ rule.src_port }} dst-port {{ rule.dst_port }} recv {{ }} src-port {{ rule.src_port }} dst-port {{ rule.dst_port }} recv {{
...@@ -162,7 +162,7 @@ add {{loop.index + 60000}} {{ helpers.getUUIDtag(rule.target) }} {{ ...@@ -162,7 +162,7 @@ add {{loop.index + 60000}} {{ helpers.getUUIDtag(rule.target) }} {{
%} xmit {{helpers.getNodeByTag('interfaces.'+rule.interface2).if %} xmit {{helpers.getNodeByTag('interfaces.'+rule.interface2).if
}} }}
{% endif %} {% endif %}
{% if rule.direction == 'out' or rule.direction == 'both' %} {% if rule.direction == 'out' or not rule.direction %}
add {{loop.index + 60000}} {{ helpers.getUUIDtag(rule.target) }} {{ add {{loop.index + 60000}} {{ helpers.getUUIDtag(rule.target) }} {{
helpers.getUUID(rule.target).number }} {{ rule.proto.split('_')[0] }} from {{ rule.source }} to {{rule.destination helpers.getUUID(rule.target).number }} {{ rule.proto.split('_')[0] }} from {{ rule.source }} to {{rule.destination
}} src-port {{ rule.src_port }} dst-port {{ rule.dst_port }} xmit {{ }} src-port {{ rule.src_port }} dst-port {{ rule.dst_port }} xmit {{
......
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