Revision 24ea227b snf-cyclades-app/synnefo/api/ports.py

b/snf-cyclades-app/synnefo/api/ports.py
227 227

  
228 228
def port_to_dict(port, detail=True):
229 229
    d = {'id': str(port.id), 'name': port.name}
230
    d['links'] = util.port_to_links(port.id)
230 231
    if detail:
231 232
        user_id = port.userid
232 233
        machine_id = port.machine_id

Also available in: Unified diff