projects
/
invirt/packages/invirt-xen-config.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added model selection by DB
[invirt/packages/invirt-xen-config.git]
/
invirt-database
diff --git
a/invirt-database
b/invirt-database
index
9350316
..
5fa24e2
100644
(file)
--- 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))
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)
d = ('%smac=%s, ip=%s, script=vif-invirtroute netdev=%s'
% (viftype, n.mac_addr, n.ip, config.xen.iface))
vif.append(d)