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():