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

10 lines
359 B
YAML
Raw Normal View History

2018-09-17 14:45:05 +00:00
---
- name: reset | check contiv vxlan_sys network device
stat:
path: "/sys/class/net/vxlan_sys_{{ contiv_vxlan_port | default('4789') }}"
register: contiv_vxlan_sys
- name: reset | remove the vxlan_sys network device created by contiv
command: "ip link del vxlan_sys_{{ contiv_vxlan_port | default('4789') }}"
when: contiv_vxlan_sys.stat.exists