---
- 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
