Merge "Fix links to LLDP neighbors in API responses for host and port"
This commit is contained in:
commit
1a2fea6846
|
@ -838,11 +838,11 @@ class Host(base.APIBase):
|
|||
link.Link.make_link('self',
|
||||
pecan.request.host_url,
|
||||
'ihosts',
|
||||
uhost.uuid + "/lldp_neighbors"),
|
||||
uhost.uuid + "/lldp_neighbours"),
|
||||
link.Link.make_link('bookmark',
|
||||
pecan.request.host_url,
|
||||
'ihosts',
|
||||
uhost.uuid + "/lldp_neighbors",
|
||||
uhost.uuid + "/lldp_neighbours",
|
||||
bookmark=True)
|
||||
]
|
||||
|
||||
|
|
|
@ -187,11 +187,11 @@ class Port(base.APIBase):
|
|||
port.lldp_neighbours = [link.Link.make_link('self',
|
||||
pecan.request.host_url,
|
||||
'ports',
|
||||
port.uuid + "/lldp_neighbors"),
|
||||
port.uuid + "/lldp_neighbours"),
|
||||
link.Link.make_link('bookmark',
|
||||
pecan.request.host_url,
|
||||
'ports',
|
||||
port.uuid + "/lldp_neighbors",
|
||||
port.uuid + "/lldp_neighbours",
|
||||
bookmark=True)
|
||||
]
|
||||
|
||||
|
|
Loading…
Reference in New Issue