Commit ae745f3e authored by nanahira's avatar nanahira

fix sequence

parent cf5c4bad
#!/bin/bash
source {{ansible_user_dir}}/nextgen-network/scripts/utility.sh
## chnroute
{% for gw in gateways %}
{% if gw.selectionMark > 0 %}
interface_switch_chnroute -A u_{{gw.isp}}_chnroute {{gw.selectionMark}}
{% endif %}
{% endfor %}
## route plans
{% for plan in routePlans %}
interface_switch_chnroute -A u_{{plan.name}}_chnroute {{plan.destMark}}
interface_switch -A u_{{plan.name}}_all {{plan.destMark}}
{% endfor %}
## all
## local gateways
{% for gw in gateways %}
{% if gw.selectionMark > 0 %}
interface_switch_chnroute -A u_{{gw.isp}}_chnroute {{gw.selectionMark}}
interface_switch -A u_{{gw.isp}}_all {{gw.selectionMark}}
{% endif %}
{% endfor %}
{% for plan in routePlans %}
interface_switch -A u_{{plan.name}}_all {{plan.destMark}}
{% endfor %}
## restore mark
{% 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