Commit 65e3b507 authored by nanahira's avatar nanahira

fix chnroute migrate

parent 590d2a9d
......@@ -24,7 +24,8 @@
- name: chnroute
become: true
shell: |
ipset restore -f {{ansible_user_dir}}/nextgen-network/ipsets/chnrouter.ipset || true
ipset flush chnrouter
sed '/^create chnrouter hash:net family inet$/d' {{ansible_user_dir}}/nextgen-network/ipsets/chnrouter.ipset | ipset restore
- name: reload_switch_rules
become: true
shell: '{{ansible_user_dir}}/nextgen-network/scripts/switch-rules-down.sh ; {{ansible_user_dir}}/nextgen-network/scripts/switch-rules-up.sh'
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