From: Steven Valdez Date: Sat, 27 Jul 2013 02:36:09 +0000 (-0400) Subject: Added model selection by DB X-Git-Tag: 0.0.50^0 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-xen-config.git/commitdiff_plain/8c35d5e3d5dd87c100aff61a7806816ba462ab26 Added model selection by DB --- diff --git a/debian/changelog b/debian/changelog index a0383f1..929d885 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-xen-config (0.0.50) unstable; urgency=low + + * Adding NIC model option to DB. + + -- Steven Valdez Fri, 26 Jul 2013 22:28:47 -0400 + invirt-xen-config (0.0.49) precise; urgency=low * Change HVM emulated network card to pcnet, because the emulated 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)