X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-xen-config.git/blobdiff_plain/18f0d4c89f941272c8da5eb3d0ee19cafbca49ac..8c35d5e3d5dd87c100aff61a7806816ba462ab26:/invirt-database diff --git a/invirt-database b/invirt-database index 9350316..5fa24e2 100644 --- a/invirt-database +++ b/invirt-database @@ -122,6 +122,8 @@ elif codepath == 'paravm': for n in machine.nics: check(re.match('^[0-9a-fA-F:]+$', n.mac_addr) and re.match('^[0-9.]*$', n.ip)) + if n.model: + viftype = viftype.replace("pcnet", n.nic_type) d = ('%smac=%s, ip=%s, script=vif-invirtroute netdev=%s' % (viftype, n.mac_addr, n.ip, config.xen.iface)) vif.append(d)