Commit e2e113f6 by Dudás Ádám

vm: delete associated host on interface destruction

parent 11ea1162
...@@ -97,6 +97,8 @@ class Interface(Model): ...@@ -97,6 +97,8 @@ class Interface(Model):
net_tasks.destroy.apply_async( net_tasks.destroy.apply_async(
args=[self.get_vmnetwork_desc()], args=[self.get_vmnetwork_desc()],
queue=self.instance.get_remote_queue_name('net')) queue=self.instance.get_remote_queue_name('net'))
if self.host is not None:
self.host.delete()
@classmethod @classmethod
def create(cls, instance, vlan, managed, owner=None): def create(cls, instance, vlan, managed, owner=None):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment