忘尘
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
12 additions and
0 deletions
-
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 |
|
|
- name: reset | check dummy0 network device |
|
|
stat: |
|
|
stat: |
|
|
path: /sys/class/net/dummy0 |
|
|
path: /sys/class/net/dummy0 |
|
|