Commit 9c7793b5 authored by nanahira's avatar nanahira

fix sequence again

parent df52d759
......@@ -3,6 +3,7 @@ source {{ansible_user_dir}}/nextgen-network/scripts/utility.sh
## route plans
{% for plan in routePlans %}
ip rule add pref 400 fwmark {{plan.destMark}} lookup {{plan.destMark}}
interface_switch_chnroute -A u_{{plan.name}}_chnroute {{plan.destMark}}
interface_switch -A u_{{plan.name}}_all {{plan.destMark}}
restore_mark_switch -A {{plan.destMark}}
......@@ -11,7 +12,6 @@ restore_mark_switch -A {{plan.destMark}}
## local gateways
{% for gw in gateways %}
{% if gw.selectionMark > 0 %}
ip rule add pref 400 fwmark {{plan.destMark}} lookup {{plan.destMark}}
interface_switch_chnroute -A u_{{gw.isp}}_chnroute {{gw.selectionMark}}
interface_switch -A u_{{gw.isp}}_all {{gw.selectionMark}}
restore_mark_switch -A {{gw.selectionMark}}
......
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