c12s-kubespray/roles/network_plugin/calico/tasks/reset.yml

17 lines
452 B
YAML
Raw Normal View History

2018-12-04 19:37:45 +00:00
---
- name: reset | check dummy0 network device
stat:
path: /sys/class/net/dummy0
get_attributes: no
get_checksum: no
get_mime: no
2018-12-04 19:37:45 +00:00
register: dummy0
- name: reset | remove the network device created by calico
command: ip link del dummy0
when: dummy0.stat.exists
2021-11-24 17:44:20 +00:00
- 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