mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-01 00:38:49 -03:30
Reset tasks specific to Calico (#3813)
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
145687a48e
commit
2c1dd69891
19
roles/network_plugin/calico/tasks/reset.yml
Normal file
19
roles/network_plugin/calico/tasks/reset.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: reset | check dummy0 network device
|
||||
stat:
|
||||
path: /sys/class/net/dummy0
|
||||
register: dummy0
|
||||
|
||||
- name: reset | remove the network device created by calico
|
||||
command: ip link del dummy0
|
||||
when: dummy0.stat.exists
|
||||
|
||||
- name: reset | get remaining routes set by bird
|
||||
command: ip route show proto bird
|
||||
register: bird_routes
|
||||
|
||||
- name: reset | remove remaining routes set by bird
|
||||
command: "ip route del {{ bird_route }} proto bird"
|
||||
with_items: "{{ bird_routes.stdout_lines }}"
|
||||
loop_control:
|
||||
loop_var: bird_route
|
||||
Reference in New Issue
Block a user