Keep in line with schema.
Faiyaz Ahmed [Tue, 10 Mar 2009 18:49:14 +0000 (18:49 +0000)]
vinilinkspec.py

index d2aeee2..1f47e26 100755 (executable)
@@ -68,16 +68,16 @@ def linkSpecDict():
         ifspecs = []
         for node in nodeset: 
             ifspecs.append(ifSpecDict(node))
-        linkspecs.append({'LinkSpec': {\
+        linkspecs.append({\
                 'type': 'ipv4',
                 'init_params': None,
                 'bw': '1Gbps',
                 'min_alloc': '0',
                 'bw': '1Gbps',
-                'endpoints': ifspecs,
+                'endpoint': ifspecs,
                 'start_time': int(time()),
-                'duration': '-1'}})
-    return linkspecs
+                'duration': '-1'})
+    return {'LinkSpec': linkspecs}
 
 
 def main():