Browse Source

Create reset.yml (#8227)

pull/8177/head
khatrig 3 years ago
committed by GitHub
parent
commit
3ea496013f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 9 deletions
  1. 11
      roles/network_plugin/calico/tasks/reset.yml

11
roles/network_plugin/calico/tasks/reset.yml

@ -11,13 +11,6 @@
command: ip link del dummy0
when: dummy0.stat.exists
- name: reset | get remaining routes set by bird
command: ip route show proto bird
- name: reset | get and remove remaining routes set by bird
shell: ip route show proto bird | xargs -i bash -c "ip route del {} proto bird "
changed_when: false
register: bird_routes
- name: reset | remove remaining routes set by bird # noqa 301
command: "ip route del {{ bird_route }} proto bird"
with_items: "{{ bird_routes.stdout_lines }}"
loop_control:
loop_var: bird_route
Loading…
Cancel
Save