Commit cf5c4bad authored by nanahira's avatar nanahira

change rule sequence

parent c6840e05
...@@ -2,24 +2,24 @@ ...@@ -2,24 +2,24 @@
source {{ansible_user_dir}}/nextgen-network/scripts/utility.sh source {{ansible_user_dir}}/nextgen-network/scripts/utility.sh
## chnroute ## chnroute
{% for plan in routePlans %}
interface_switch_chnroute -A u_{{plan.name}}_chnroute {{plan.destMark}}
{% endfor %}
{% for gw in gateways %} {% for gw in gateways %}
{% if gw.selectionMark > 0 %} {% if gw.selectionMark > 0 %}
interface_switch_chnroute -A u_{{gw.isp}}_chnroute {{gw.selectionMark}} interface_switch_chnroute -A u_{{gw.isp}}_chnroute {{gw.selectionMark}}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
## all
{% for plan in routePlans %} {% for plan in routePlans %}
interface_switch -A u_{{plan.name}}_all {{plan.destMark}} interface_switch_chnroute -A u_{{plan.name}}_chnroute {{plan.destMark}}
{% endfor %} {% endfor %}
## all
{% for gw in gateways %} {% for gw in gateways %}
{% if gw.selectionMark > 0 %} {% if gw.selectionMark > 0 %}
interface_switch -A u_{{gw.isp}}_all {{gw.selectionMark}} interface_switch -A u_{{gw.isp}}_all {{gw.selectionMark}}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
{% for plan in routePlans %}
interface_switch -A u_{{plan.name}}_all {{plan.destMark}}
{% endfor %}
## restore mark ## restore mark
{% for plan in routePlans %} {% for plan in routePlans %}
......
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