minor changes at host thread tasks scheduler 95/1095/1
authortierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 10 Feb 2017 11:54:29 +0000 (12:54 +0100)
committertierno <alfonso.tiernosepulveda@telefonica.com>
Fri, 10 Feb 2017 11:54:29 +0000 (12:54 +0100)
Change-Id: I966c66f0732c555c8c62ad118ba922f63f6629e7
Signed-off-by: tierno <alfonso.tiernosepulveda@telefonica.com>
host_thread.py

index 4da5328..e971ff2 100644 (file)
@@ -341,23 +341,20 @@ class host_thread(threading.Thread):
                 elif task[0] == 'new-ovsbridge':
                     print self.name, ": Creating compute OVS bridge"
                     self.create_ovs_bridge()
-                    break
                 elif task[0] == 'new-vxlan':
                     print self.name, ": Creating vxlan tunnel=" + task[1] + ", remote ip=" + task[2]
                     self.create_ovs_vxlan_tunnel(task[1], task[2])
-                    break
                 elif task[0] == 'del-ovsbridge':
                     print self.name, ": Deleting OVS bridge"
                     self.delete_ovs_bridge()
-                    break
                 elif task[0] == 'del-vxlan':
                     print self.name, ": Deleting vxlan " + task[1] + " tunnel"
                     self.delete_ovs_vxlan_tunnel(task[1])
-                    break
                 elif task[0] == 'create-ovs-bridge-port':
                     print self.name, ": Adding port ovim-" + task[1] + " to OVS bridge"
                     self.create_ovs_bridge_port(task[1])
                 elif task[0] == 'del-ovs-port':
+                    print self.name, ": Delete bridge attached to ovs port vlan {} net {}".format(task[1], task[2])
                     self.delete_bridge_port_attached_to_ovs(task[1], task[2])
                 else:
                     print self.name, ": unknown task", task