# '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():
'bw': '1Gbps',
'min_alloc': '0',
'bw': '1Gbps',
- 'endpoints': ifspecs,
+ 'endpoint': ifspecs,
'start_time': int(time()),
'duration': '-1'})
- return linkspecs
+ return {'LinkSpec': linkspecs}
def main():