openBackhaul / MicroWaveDeviceInventory

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

Response for Cache CC API is with incorrect format - Huawei 950/905 model #874

Closed Ziabatcha closed 7 months ago

Ziabatcha commented 8 months ago

Response for Cache CC API is with incorrect format - Huawei 950/905 model

http://xx:xx/core-model-1-4:network-control-domain=cache/control-construct=513250004

Logs:
{
    "core-model-1-4:control-construct": [
        {
            "0": {
                "uuid": "FD-VLAN-1234-1",
                "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
                "operational-state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
                "logical-termination-point": [
                    "LTP-VLANINTERFACE-TTP-4-1"
                ],
nardecchia-siae commented 8 months ago

The response that I see on our VM with tag test_v1.1.3 for the same device seems to be correct:

http://172.28.127.21:3008/core-model-1-4:network-control-domain=cache/control-construct=513250004

{
  "core-model-1-4:control-construct": [
    {
      "local-id": "0x0063bf8c",
      "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
      "logical-termination-point": [
        {
          "uuid": "LTP-TDMCONTAINER-TTP-1-3",
          "extension": [
            {
              "value-name": "ltp-extension",
              "value": "LTP-TDMCONTAINER-TTP-1-3"
            }
          ],
          "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
          "operational-state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
          "label": [
            {
              "value-name": "ltp-label",
              "value": "LTP-TDMCONTAINER-TTP-1-3"
            }
          ],
          "administrative-state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
          "ltp-augment-1-0:ltp-augment-pac": {
            "equipment": [
              "HUAWEI-EQUIPMENT-1"
            ],
            "connector": "",
            "original-ltp-name": "SL91SP3S/1/3"
          },
          "layer-protocol": [
            {
              "local-id": "LP-TDMCONTAINER-TTP-1-3",
              "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
              "operational-state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
              "label": [
                {
                  "value-name": "lp-label",
                  "value": "LP-TDMCONTAINER-TTP-1-3"
                }
              ],
              "administrative-state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
              "tdm-container-2-0:tdm-container-pac": {
                "tdm-container-status": {
                  "loop-back-kind-up": "tdm-container-2-0:LOOP_BACK_TYPE_NOT_YET_DEFINED",
                  "interface-status": "tdm-container-2-0:INTERFACE_STATUS_TYPE_NOT_YET_DEFINED"
                }
              },
              "administrative-control": "core-model-1-4:ADMINISTRATIVE_CONTROL_UNLOCK",
              "layer-protocol-name": "tdm-container-2-0:LAYER_PROTOCOL_NAME_TYPE_TDM_CONTAINER_LAYER",
              "name": [
                {
                  "value-name": "lpName",
                  "value": "LP-TDMCONTAINER-TTP-1-3"
                }
              ]
            }
          ],
          "administrative-control": "core-model-1-4:ADMINISTRATIVE_CONTROL_UNLOCK",
          "name": [
            {
              "value-name": "ltpName",
              "value": "SL91SP3S:1:3"
            }
          ]
        },
        {
          "uuid": "LTP-TDMCONTAINER-TTP-1-4",
......
Ziabatcha commented 7 months ago

Issue not observed with latest package test_v1.1.5. Hence closing the issue.

curl -X GET "http://xx:xx/core-model-1-4:network-control-domain=cache/control-construct=513250004" -H "accept: application/json" -H "user: User Name" -H "originator: Resolver" -H "x-correlator: 550e8400-e29b-11d4-a716-446655440000" -H "trace-indicator: 1.3.1" -H "customer-journey: Unknown value" -H "operation-key: xxx"

{
  "core-model-1-4:control-construct": [
    {
      "local-id": "0x0063bf8c",
      "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
      "logical-termination-point": [
        {
          "uuid": "LTP-TDMCONTAINER-TTP-1-3",
          "extension": [
            {
              "value-name": "ltp-extension",
              "value": "LTP-TDMCONTAINER-TTP-1-3"
            }
          ],
          "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
          "operational-state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
          "label": [
            {
              "value-name": "ltp-label",
              "value": "LTP-TDMCONTAINER-TTP-1-3"
            }
          ],
          "administrative-state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
          "ltp-augment-1-0:ltp-augment-pac": {
            "equipment": [
              "HUAWEI-EQUIPMENT-1"
            ],
            "external-label": "External label not yet defined.",
            "connector": "",
            "original-ltp-name": "SL91SP3S/1/3"
          },
          "layer-protocol": [
            {
              "local-id": "LP-TDMCONTAINER-TTP-1-3",
              "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
              "operational-state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
              "label": [
                {