Adding script=vif-sipbroute to database-managed VMs vif = [] line
[invirt/packages/invirt-database.git] / sipb-xen-database-tables
1 #!/usr/bin/env python
2
3 from sipb_xen_database import *
4 import sys
5
6 def usage():
7     print >>sys.stderr, "Usage: %s [create|drop]" %(sys.argv[0],)
8     sys.exit(-1)
9
10 if len(sys.argv) == 1:
11     usage()
12
13 connect('postgres://sipb-xen@/sipb_xen')
14
15 if sys.argv[1] == "create":
16     meta.create_all()
17 else:
18     meta.drop_all()