Removing old vxlan interfaces in nuke.

This commit is contained in:
Egon Rijpkema committed 2018-08-09 13:52:04 +02:00
1 parent ca112f6977
commit fa66218193
1 file changed
+3
+3
View File
@@ -16,6 +16,9 @@
- name: remove network namespaces - name: remove network namespaces
shell: "rm /var/run/netns/*" shell: "rm /var/run/netns/*"
ignore_errors: true 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 - hosts: nova-compute