-
Notifications
You must be signed in to change notification settings - Fork 7
Description
user created a link-port using the following API:/core-model-1-4:network-control-domain=cache/link={uuid}/link-port={localId}
After the successful creation, the user attempted to retrieve the same link-port using the GET link-port API:/core-model-1-4:network-control-domain=cache/link={uuid}/link-port={localId} and we observed the 500 error
API:
GET : /core-model-1-4:network-control-domain=cache/link={uuid}/link-port={localId}
Response:
{
"code": 500,
"message": ".response['core-model-1-4:link-port'][0] should be object, .response['core-model-1-4:link-port'][0] should match exactly one schema in oneOf",
"errors": [
{
"path": ".response['core-model-1-4:link-port'][0]",
"message": "should be object",
"errorCode": "type.openapi.validation"
},
{
"path": ".response['core-model-1-4:link-port'][0]",
"message": "should match exactly one schema in oneOf",
"errorCode": "oneOf.openapi.validation"
}
]
}
Docker Logs:
[06.02.2026 08:33.10.474] [LOG] null
PUT /core-model-1-4:network-control-domain=cache/link=LTP-MWPS-TTP-RADIO-2A/link-port=LP-MWPS-TTP-RADIO-2A 204 353.959 ms - -
[06.02.2026 08:33.12.535] [LOG]
[06.02.2026 08:34.19.890] [LOG] TypeError: Cannot read properties of undefined (reading 'layer-protocol')
at Function.getLifeCycleState (/home/openbackhaul/microWaveDeviceInventory/node_modules/onf-core-model-ap/applicationPattern/onfModel/models/layerProtocols/OperationServerInterface.js:189:52)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Function.createResponseHeader (/home/openbackhaul/microWaveDeviceInventory/node_modules/onf-core-model-ap/applicationPattern/rest/server/ResponseHeader.js:65:34)
at async /home/openbackhaul/microWaveDeviceInventory/controllers/IndividualServices.js:716:28
loggingErrorHandler - caught error, returning response with status code "500" and body {"code":500,"message":".response['core-model-1-4:link-port'][0] should be object, .response['core-model -1-4:link-port'][0] should match exactly one schema in oneOf","errors":[{"path":".response['core-model-1-4:link- port'][0]","message":"should be object","errorCode":"type.openapi.validation"},{"path":".response['core-model-1- 4:link-port'][0]","message":"should match exactly one schema in oneOf","errorCode":"oneOf.openapi.validation"}]}
GET /core-model-1-4:network-control-domain=cache/link=LTP-MWPS-TTP-RADIO-2A/link-port=LP-MWPS-TTP-RADIO-2A 500 6 387.318 ms - 523
