Removing old vxlan interfaces in nuke.

This commit is contained in:
Egon Rijpkema 2018-08-09 13:52:04 +02:00
parent ca112f6977
commit fa66218193

View File

@ -16,6 +16,9 @@
- name: remove network namespaces
shell: "rm /var/run/netns/*"
ignore_errors: true
- name: Remove stale vxlan interfaces
shell: "for interface in $(ip link | grep DOWN | grep -Po 'vxlan-\d{1,2}'); do ip link del $interface ; done"
ignore_errors: true
- hosts: nova-compute