X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-xen-config.git/blobdiff_plain/18f0d4c89f941272c8da5eb3d0ee19cafbca49ac..4bd9d48a4d4891b5f4290def5647307b92bb162d:/invirt-database?ds=sidebyside diff --git a/invirt-database b/invirt-database index 9350316..ec611c1 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.nic_type: + 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)