projects
/
invirt/packages/invirt-database.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
v6, with a script to autocreate any new logical volumes
[invirt/packages/invirt-database.git]
/
client
/
etc
/
xen
/
sipb-database
diff --git
a/client/etc/xen/sipb-database
b/client/etc/xen/sipb-database
index
d70e4e0
..
94ae6cc
100644
(file)
--- a/
client/etc/xen/sipb-database
+++ b/
client/etc/xen/sipb-database
@@
-1,7
+1,8
@@
+# -*- mode: python; -*-
import sipb_xen_database.models as models
from sipb_xen_database import connect
import sipb_xen_database.models as models
from sipb_xen_database import connect
-connect('postgres://sipb-xen@sipb-vm-1/sipb_xen')
+connect('postgres://sipb-xen@sipb-xen-dev.mit.edu/sipb_xen')
# `machine_name' should get passed in from the xm create call
machine = models.Machine.get_by(name=machine_name)
# `machine_name' should get passed in from the xm create call
machine = models.Machine.get_by(name=machine_name)
@@
-19,7
+20,7
@@
viftype = ""
if machine_type.hvm:
ioemu = "ioemu:"
if machine_type.hvm:
ioemu = "ioemu:"
- viftype = "type=ioemu"
+ viftype = "type=ioemu, "
kernel = 'hvmloader'
builder = 'hvm'
kernel = 'hvmloader'
builder = 'hvm'
@@
-37,7
+38,7
@@
apic = machine_type.apic
vif = []
for n in machine.nics:
vif = []
for n in machine.nics:
- d = '%s, mac=%s, ip=%s, bridge=xenbr0' % (viftype, n.mac_addr, n.ip)
+ d = '%smac=%s, ip=%s, bridge=xenbr0, script=vif-sipbroute' % (viftype, n.mac_addr, n.ip)
vif.append(d)
disk = []
vif.append(d)
disk = []