Commit 0eb6f901 by Guba Sándor

vm: fixing network ip addresses and refresh libvirt states

parent b1bfe87f
...@@ -549,7 +549,6 @@ class Instance(BaseResourceConfigModel, TimeStampedModel): ...@@ -549,7 +549,6 @@ class Instance(BaseResourceConfigModel, TimeStampedModel):
disk.deploy() disk.deploy()
queue_name = self.get_remote_queue_name('vm') queue_name = self.get_remote_queue_name('vm')
# Deploy VM on remote machine # Deploy VM on remote machine
with act.sub_activity('deploying_vm'): with act.sub_activity('deploying_vm'):
vm_tasks.create.apply_async(args=[self.get_vm_desc()], vm_tasks.create.apply_async(args=[self.get_vm_desc()],
...@@ -795,8 +794,8 @@ class Interface(Model): ...@@ -795,8 +794,8 @@ class Interface(Model):
'name': self.__unicode__(), 'name': self.__unicode__(),
'bridge': 'cloud', 'bridge': 'cloud',
'mac': str(self.mac), 'mac': str(self.mac),
'ipv4': if is not None else None, 'ipv4': str( if is not None else None,
'ipv6': if is not None else None, 'ipv6': str( if is not None else None,
'vlan': self.vlan.vid, 'vlan': self.vlan.vid,
'managed': is not None 'managed': is not 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