openBackhaul / MicroWaveDeviceInventory

Physical and logical inventory of the MW SDN Domain
Apache License 2.0
5 stars 1 forks source link

"OAM Layer - Basic Part" services execution fails for MWDI link and link-port service. #959

Open kmohr-soprasteria opened 2 months ago

kmohr-soprasteria commented 2 months ago

Also see #958.

All paths under "OAM Layer - Basic Part" have the operation-server uuid as path parameter. For the link and link-port service the uuids are a special case and don't follow the normal pattern, but contain "get/put/del" substrings:

# individual services:
        - operation-name: /core-model-1-4:network-control-domain=cache/link={uuid}
          uuid: mwdi-1-1-0-op-s-get-is-205, mwdi-1-1-0-op-s-put-is-205, mwdi-1-1-0-op-s-del-is-205
        - operation-name: /core-model-1-4:network-control-domain=cache/link={uuid}/link-port={localId}
          uuid: mwdi-1-1-0-op-s-get-is-206, mwdi-1-1-0-op-s-put-is-206, mwdi-1-1-0-op-s-del-is-206

I only tried to call the service to change the life-cycle-state and Postman returned an error, but I assume the same problem will occur for all those services, when using any of the above uuids:

  "code": 400,
  "message": "request.params.uuid should match pattern \"^([a-z]{2,6})-([0-9]{1,2})-([0-9]{1,2})-([0-9]{1,2})-op-s-([bi][ms])-([0-9]{3})$\"",
  "errors": [
    {
      "path": ".params.uuid",
      "message": "should match pattern \"^([a-z]{2,6})-([0-9]{1,2})-([0-9]{1,2})-([0-9]{1,2})-op-s-([bi][ms])-([0-9]{3})$\"",
      "errorCode": "pattern.openapi.validation"
    }
  ]
}
nardecchia-siae commented 2 months ago

See comment on #958