import accounts
import controller
import sliver_vs
+import sliver_libvirt
try: from bwlimit import bwmin, bwmax
except ImportError: bwmin, bwmax = 8, 1000*1000*1000
# CPU parameters
'cpu_pct': 0, # percent CPU reserved
'cpu_share': 1, # proportional share
- 'cpu_cores': 0, # reserved cpu cores
+ 'cpu_cores': "0b", # reserved cpu cores <num_cores>[b]
# bandwidth parameters
'net_min_rate': bwmin / 1000, # kbps
'net_max_rate': bwmax / 1000, # kbps
for resname, default_amount in sliver_vs.DEFAULT_ALLOCATION.iteritems():
DEFAULT_ALLOCATION[resname]=default_amount
- accounts.register_class(sliver_vs.Sliver_VS)
+ #accounts.register_class(sliver_vs.Sliver_VS)
+ accounts.register_class(sliver_libvirt.Sliver_LV)
accounts.register_class(controller.Controller)
database.start()
api_calls.deliver_ticket = deliver_ticket