Commit 58763ff2 authored by nanahira's avatar nanahira

chnroute reloader

parent d3717211
......@@ -32,6 +32,7 @@
src: scripts/ipset.j2
dest: '{{ansible_user_dir}}/nextgen-network/ipsets/{{item}}.ipset'
with_items: '{{routeListNames}}'
notify: reload_chnroute
- name: global-postup
become: true
shell: '{{ansible_user_dir}}/nextgen-network/scripts/global-postup.sh'
......@@ -173,3 +174,8 @@
systemd:
name: bird
state: restarted
- name: reload_chnroute
become: true
shell: |
ipset flush chnrouter
sed '/^create chnrouter hash:net family inet$/d' {{ansible_user_dir}}/nextgen-network/ipsets/chnrouter.ipset | ipset restore
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