From 6525461d9769e18d995d2f790af3c8a460f38837 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BF=98=E5=B0=98?= <78798447@qq.com> Date: Wed, 20 Jul 2022 04:15:27 +0800 Subject: [PATCH] Add reset tasks specific to calico network_plugin (#9103) --- roles/network_plugin/calico/tasks/reset.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/roles/network_plugin/calico/tasks/reset.yml b/roles/network_plugin/calico/tasks/reset.yml index 3219937b6..48d2e5a00 100644 --- a/roles/network_plugin/calico/tasks/reset.yml +++ b/roles/network_plugin/calico/tasks/reset.yml @@ -1,4 +1,16 @@ --- +- 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 + - name: reset | check dummy0 network device stat: path: /sys/class/net/dummy0