Update for MyPLC 4.3
authorAndy Bavier <acb@cs.princeton.edu>
Tue, 19 May 2009 19:32:36 +0000 (19:32 +0000)
committerAndy Bavier <acb@cs.princeton.edu>
Tue, 19 May 2009 19:32:36 +0000 (19:32 +0000)
NodeManager-topo.spec
topo.py

index f1388f3..4391fb7 100644 (file)
@@ -1,8 +1,8 @@
 %define url $URL$
 
 Name:          NodeManager-topo
-Version:       0.4
-Release:       4
+Version:       0.5
+Release:       1
 Summary:       Plugin supporting creating a default virtual topology.
 
 Group:         System Environment/Daemons
diff --git a/topo.py b/topo.py
index a9a9853..e73eb8a 100755 (executable)
--- a/topo.py
+++ b/topo.py
@@ -356,7 +356,7 @@ def GetSlivers(data):
     for sliver in data['slivers']:
         attrs = {}
         for attribute in sliver['attributes']:
-            attrs[attribute['name']] = attribute['value']
+            attrs[attribute['tagname']] = attribute['value']
         if 'netns' in attrs:
             netns = int(attrs['netns'])
             writeConf(sliver['name'], netns)