From 4bd9d48a4d4891b5f4290def5647307b92bb162d Mon Sep 17 00:00:00 2001 From: Steven Valdez Date: Wed, 31 Jul 2013 22:29:20 -0400 Subject: [PATCH 1/1] Fixed invirt-database for NICs --- debian/changelog | 6 ++++++ invirt-database | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 929d885..92270a4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +invirt-xen-config (0.0.51) unstable; urgency=low + + * Fixed code for NIC model options. + + -- Steven Valdez Wed, 31 Jul 2013 22:28:39 -0400 + invirt-xen-config (0.0.50) unstable; urgency=low * Adding NIC model option to DB. diff --git a/invirt-database b/invirt-database index 5fa24e2..ec611c1 100644 --- a/invirt-database +++ b/invirt-database @@ -122,7 +122,7 @@ 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: + 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)) -- 1.7.9.5