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

b/snf-cyclades-app/synnefo/api/util.py
435 435
    return [{"rel": rel, "href": href} for rel in ("self", "bookmark")]
436 436

  
437 437

  
438
def subnet_to_links(subnet_id):
439
    href = join_urls(SUBNETS_URL, str(subnet_id))
440
    return [{"rel": rel, "href": href} for rel in ("self", "bookmark")]
441

  
442

  
443
def port_to_links(port_id):
444
    href = join_urls(PORTS_URL, str(port_id))
445
    return [{"rel": rel, "href": href} for rel in ("self", "bookmark")]
446

  
447

  
438 448
def flavor_to_links(flavor_id):
439 449
    href = join_urls(FLAVORS_URL, str(flavor_id))
440 450
    return [{"rel": rel, "href": href} for rel in ("self", "bookmark")]

Also available in: Unified diff