3 from invirt import database
7 print >>sys.stderr, "Usage: %s [create|drop]" %(sys.argv[0],)
10 if len(sys.argv) == 1:
14 database.meta.create_all()
15 session = database.session()
17 session.save(database.Type(type_id='linux-hvm', description='HVM',
18 hvm='t', apic='t', acpi='t', pae='t'))
19 session.save(database.Type(type_id='linux', description='ParaVM',
20 hvm='f', apic='f', acpi='f', pae='f'))
25 if sys.argv[1] == "create":
27 elif sys.argv[1] == "drop":
28 database.meta.drop_all()