Skip to content
Snippets Groups Projects
Commit 1a028ecc authored by Anael Beutot's avatar Anael Beutot
Browse files

Fix multiple network interfaces for VMs

Only one network interface was shown in the tags.
parent fd71319f
No related branches found
No related tags found
No related merge requests found
......@@ -82,11 +82,11 @@ class VirtualMachine(object):
for t in (
Tag('nic%s_mac' % i, nic.mac, 10),
Tag('nic%s_source' % i, nic.source, 10),
Tag('nic%s_model' %i, nic.model, 10),
Tag('nic%s_model' % i, nic.model, 10),
):
self.tags[t.name] = t
logger.debug('Virtual Machine tags: %s', self.tags)
i += 1
#: keep record of CPU stats (libev timestamp, cpu time)
self.cpu_stats = (hypervisor.handler.main.evloop.now(), dom.info()[4])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment