#            'ip_spoof']
     # Assume only 1 node network per node.
     nodenetwork = GetNodeNetworks(nodedict['nodenetwork_ids'])[0]
-    ifspecs = {'name': nodenetwork['hostname'],
+    ifspec = {'name': nodenetwork['hostname'],
                'addr': nodenetwork['ip'],
                'type': nodenetwork['type'],
                'init_params': None,
                'min_alloc': 0,
                'max_alloc': '1Gbps',
                'ip_spoof': False}
-    return ifspecs
+    return {'IfSpec': ifspec}
 
 
 def linkSpecDict():
         ifspecs = []
         for node in nodeset: 
             ifspecs.append(ifSpecDict(node))
-        linkspecs.append({\
+        linkspecs.append({'LinkSpec': {\
                 'type': 'ipv4',
                 'init_params': None,
                 'bw': '1Gbps',
                 'bw': '1Gbps',
                 'endpoints': ifspecs,
                 'start_time': int(time()),
-                'duration': '-1'})
+                'duration': '-1'}})
     return linkspecs