openBackhaul / MicroWaveDeviceInventory

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

Cache Profile collection capability API is giving response for another profile name #798

Closed Ziabatcha closed 8 months ago

Ziabatcha commented 10 months ago

In below API, actual request is for co-channel-profile but when user invoked request with WRE profile, it is give response. Collection class is co-channel and inside attributes are WRED

Package:test_v1.0.9

API:

/core-model-1-4:network-control-domain=cache/control-construct=xxxx/profile-collection/profile=PROFILE-WRED-2-service-green/co-channel-profile-1-0:co-channel-profile-pac/co-channel-profile-capability

Response:

{
  "co-channel-profile-1-0:co-channel-profile-capability": {
    "uuid": "PROFILE-WRED-2-service-green",
    "wred-profile-1-0:wred-profile-pac": {
      "wred-profile-configuration": {
...
...
      },
      "wred-profile-capability": {
...
...
      }
    },
    "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
    "operational-state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
    "administrative-state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
    "administrative-control": "core-model-1-4:ADMINISTRATIVE_CONTROL_UNLOCK",
    "profile-name": "wred-profile-1-0:PROFILE_NAME_TYPE_WRED_PROFILE"
  }
}
nardecchia-siae commented 8 months ago

Test with postman: GET /core-model-1-4:network-control-domain=cache/control-construct=513250009/profile-collection/profile=WRED-PROFILE-01.b/co-channel-profile-1-0:co-channel-profile-pac/co-channel-profile-configuration

result:

{
  "code": 404,
  "message": "No elements found with UUID: 513250009+WRED-PROFILE-01.b"
}