Commit b2fa4241 by Dudás Ádám

vm: apply DRY principle

parent 8f68a49e
......@@ -766,8 +766,7 @@ class Interface(Model):
def get_vmnetwork_desc(self):
return {
'name': 'cloud-' + str(
+ '-' + str(self.vlan.vid),
'name': self.__unicode__(),
'bridge': 'cloud',
'mac': str(self.mac),
'ipv4': if is not None else 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