Merge "Fix links to LLDP neighbors in API responses for host and port"

This commit is contained in:
Zuul 2024-02-26 13:44:47 +00:00 committed by Gerrit Code Review
commit 1a2fea6846
2 changed files with 4 additions and 4 deletions

View File

@ -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)
]

View File

@ -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)
]