2018-12-04 19:37:45 +00:00
|
|
|
---
|
2022-07-19 20:15:27 +00:00
|
|
|
- name: reset | check vxlan.calico network device
|
|
|
|
stat:
|
|
|
|
path: /sys/class/net/vxlan.calico
|
|
|
|
get_attributes: no
|
|
|
|
get_checksum: no
|
|
|
|
get_mime: no
|
|
|
|
register: vxlan
|
|
|
|
|
|
|
|
- name: reset | remove the network vxlan.calico device created by calico
|
|
|
|
command: ip link del vxlan.calico
|
|
|
|
when: vxlan.stat.exists
|
|
|
|
|
2018-12-04 19:37:45 +00:00
|
|
|
- name: reset | check dummy0 network device
|
|
|
|
stat:
|
|
|
|
path: /sys/class/net/dummy0
|
2021-02-10 13:36:59 +00:00
|
|
|
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
|
2022-01-11 08:45:16 +00:00
|
|
|
shell: set -o pipefail && ip route show proto bird | xargs -i bash -c "ip route del {} proto bird "
|
|
|
|
args:
|
|
|
|
executable: /bin/bash
|
2020-07-28 15:39:47 +00:00
|
|
|
changed_when: false
|