Merge changeset 11123 from the trunk
[nodemanager.git] / plugins / vsys.py
similarity index 98%
rename from vsys.py
rename to plugins/vsys.py
index c72941c..d26ee4a 100644 (file)
--- a/vsys.py
@@ -25,7 +25,7 @@ def GetSlivers(data):
     # Parse attributes and update dict of scripts
     for sliver in data['slivers']:
         for attribute in sliver['attributes']:
-            if attribute['name'] == 'vsys':
+            if attribute['tagname'] == 'vsys':
                 if sliver['name'] not in slices:
                     # add to conf
                     slices.append(sliver['name'])
@@ -46,7 +46,7 @@ def createVsysDir(sliver):
     try: 
         os.mkdir("/vservers/%s/vsys" % sliver)
         return True
-    except OSError:
+    except OSError: 
         return False