Change plugin API (GetSlivers()) argument order to avoid unnecessary PLCAPI dependenc...
[nodemanager.git] / plugins / vsys.py
index d26ee4a..927c7c1 100644 (file)
@@ -10,11 +10,10 @@ from sets import Set
 VSYSCONF="/etc/vsys.conf"
 VSYSBKEND="/vsys"
 
-def start(options, config):
-    pass
+def start(options, conf):
+    logger.log("vsys plugin starting up...")
 
-
-def GetSlivers(data):
+def GetSlivers(data, config=None, plc=None):
     """For each sliver with the vsys attribute, set the script ACL, create the vsys directory in the slice, and restart vsys."""
     # Touch ACLs and create dict of available
     scripts = {}
@@ -38,7 +37,7 @@ def GetSlivers(data):
     # Write out the ACLs
     if writeAcls(scripts, parseAcls()) or _restart:
         logger.log("vsys: restarting vsys service")
-        os.system("/etc/init.d/vsys restart")
+        logger.log_call("/etc/init.d/vsys", "restart")
 
 
 def createVsysDir(sliver):