also set vsys to restart when the vsys.conf file is re-written.
[nodemanager.git] / sm.py
diff --git a/sm.py b/sm.py
index efba0eb..a050ded 100644 (file)
--- a/sm.py
+++ b/sm.py
@@ -13,6 +13,7 @@ try: from bwlimit import bwmin, bwmax
 except ImportError: bwmin, bwmax = 8, 1000*1000*1000
 import accounts
 import api
+import api_calls
 import database
 import delegate
 import logger
@@ -23,7 +24,7 @@ import string,re
 DEFAULT_ALLOCATION = {
     'enabled': 1,
     # CPU parameters
-    'cpu_min': 0, # percent CPU reserved
+    'cpu_pct': 0, # percent CPU reserved
     'cpu_share': 1, # proportional share
     # bandwidth parameters
     'net_min_rate': bwmin / 1000, # kbps
@@ -142,5 +143,5 @@ def start(options, config):
     accounts.register_class(delegate.Delegate)
     accounts.Startingup = options.startup
     database.start()
-    api.deliver_ticket = deliver_ticket
+    api_calls.deliver_ticket = deliver_ticket
     api.start()