2018-10-16 22:15:05 +08:00
|
|
|
---
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Reset | check kube-dummy-if network device
|
2018-10-16 22:15:05 +08:00
|
|
|
stat:
|
|
|
|
path: /sys/class/net/kube-dummy-if
|
2021-02-10 21:36:59 +08:00
|
|
|
get_attributes: no
|
|
|
|
get_checksum: no
|
|
|
|
get_mime: no
|
2018-10-16 22:15:05 +08:00
|
|
|
register: kube_dummy_if
|
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Reset | remove the network device created by kube-router
|
2018-10-16 22:15:05 +08:00
|
|
|
command: ip link del kube-dummy-if
|
|
|
|
when: kube_dummy_if.stat.exists
|
2019-02-26 16:32:00 +08:00
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Check kube-bridge exists
|
2019-02-26 16:32:00 +08:00
|
|
|
stat:
|
|
|
|
path: /sys/class/net/kube-bridge
|
2021-02-10 21:36:59 +08:00
|
|
|
get_attributes: no
|
|
|
|
get_checksum: no
|
|
|
|
get_mime: no
|
2019-02-26 16:32:00 +08:00
|
|
|
register: kube_bridge_if
|
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Reset | donw the network bridge create by kube-router
|
2019-02-26 16:32:00 +08:00
|
|
|
command: ip link set kube-bridge down
|
|
|
|
when: kube_bridge_if.stat.exists
|
|
|
|
|
2023-07-26 22:36:22 +08:00
|
|
|
- name: Reset | remove the network bridge create by kube-router
|
2019-02-26 16:32:00 +08:00
|
|
|
command: ip link del kube-bridge
|
|
|
|
when: kube_bridge_if.stat.exists
|