openBackhaul / MicroWaveDeviceInventory

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

For Profile-collection and Actual Equipment APs , the response keeps changing. #854

Closed Ziabatcha closed 8 months ago

Ziabatcha commented 8 months ago

When we try the below API's , the response is varying everytime the API is tried

/core-model-1-4:network-control-domain=cache/control-construct={mountName}/equipment={uuid}/actual-equipment /core-model-1-4:network-control-domain=cache/control-construct={mountName}/profile-collection

Responses observed :

  1. 500 Internal server error
  2. Response with details of forwarding-domain
  3. Control construct
  4. ltp-augment-1-0:ltp-augment-pac
    
    curl -X GET "http://xxx:xxx/core-model-1-4:network-control-domain=cache/control-construct=xxx/profile-collection" -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: Operation key not yet provided."

curl -X GET "http://XXX:XX/core-model-1-4:network-control-domain=cache/control-construct=XXXX/equipment=CTRL%20IduBoard%20Xpic%2032E1/actual-equipment" -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: Operation key not yet provided."

nardecchia-siae commented 8 months ago

test with Postman: GET http://{{controller_ip}}:{{controller_port}}/core-model-1-4:network-control-domain=cache/control-construct=xxxx/equipment=CTRL IduBoard Xpic 32E1/actual-equipment

result:

{
    "core-model-1-4:actual-equipment": {
        "environmental-rating": {
            "power-rating": {
                "power-rating-name": "",
                "power-rating-value": ""
            },
            "humidity-rating": "",
            "thermal-rating": {
                "maximum-temperature": "0.0",
                "minimum-temperature": "0.0",
                "thermal-rating-name": ""
            }
        },
        "location": {
            "geographical-location": "",
            "equipment-location": ""
        },
        "spatial-properties-of-type": {
            "height": "",
            "width": "",
            "length": ""
        },
        "administrative-state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
        "physical-characteristics": {
            "materials": "",
            "fire-characteristics": "",
            "weight-characeristics": ""
        },
        "manufactured-thing": {
            "operator-augmented-equipment-instance": {
                "asset-instance-identifier": ""
            },
            "manufacturer-properties": {
                "manufacturer-name": "SIAE Microelettronica SpA",
                "manufacturer-identifier": ""
            },
            "equipment-instance": {
                "serial-number": "14209652001003220",
                "asset-instance-identifier": "",
                "manufacture-date": "0000-00-00T00:00:00.0+00:00"
            },
            "equipment-type": {
                "model-identifier": "ALCplus2e IDU XPIC 2xSTM-1 32xE1",
                "version": "001",
                "part-type-identifier": "GAI0182",
                "type-name": "ALCPlus2e",
                "description": "INDOOR UNIT ALCPlus2e"
            },
            "operator-augmented-equipment-type": {
                "asset-type-identifier": ""
            }
        },
        "operational-state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
        "administrative-control": "core-model-1-4:ADMINISTRATIVE_CONTROL_UNLOCK",
        "function-enablers": {
            "power-state": ""
        },
        "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
        "local-id": "",
        "structure": {
            "category": "core-model-1-4:EQUIPMENT_CATEGORY_SUBRACK"
        },
        "physical-properties": {
            "temperature": ""
        },
        "swappability": {
            "is-hot-swappable": false
        },
        "mechanical-functions": {
            "rotation-speed": ""
        }
    }
}

GET http://{{controller_ip}}:{{controller_port}}/core-model-1-4:network-control-domain=cache/control-construct=513250009/profile-collection

result:

{
    "core-model-1-4:profile-collection": {
        "profile": [
            {
                "uuid": "CO-CHANNEL-PROFILE-1",
                "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
                "local-id": "",
                "administrative-state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
                "external-managed-id": {
                    "manager-identifier": "",
                    "external-managed-uuid": ""
                },
                "profile-name": "co-channel-profile-1-0:PROFILE_NAME_TYPE_CO_CHANNEL_PROFILE",
                "operational-state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
                "administrative-control": "core-model-1-4:ADMINISTRATIVE_CONTROL_UNLOCK",
                "co-channel-profile-1-0:co-channel-profile-pac": {
                    "co-channel-profile-capability": {
                        "number-of-mimo-channels-max": 1,
                        "xpic-is-avail": true,
                        "mimo-is-avail": false,
                        "alic-is-avail": false
                    },
                    "co-channel-profile-configuration": {
                        "kind-of-co-channel-group": "co-channel-profile-1-0:KIND_OF_CO_CHANNEL_GROUP_TYPE_XPIC",
                        "profile-name": "XPIC-Profile-1",
                        "logical-termination-point-list": [
                            "LTP-MWPS-TTP-RADIO-2A",
                            "LTP-MWPS-TTP-RADIO-1A"
                        ]
                    }
                }
            },
            {
                "uuid": "WRED-PROFILE-Profile-1",
                "wred-profile-1-0:wred-profile-pac": {
                    "wred-profile-configuration": {
                        "threshold-low": 209715,
                        "gentle-wred-is-on": false,
                        "drop-probability-at-threshold-low": 0,
                        "drop-probability-at-threshold-high": 10,
                        "profile-name": "Profile-1",
                        "coloring-is-on": false,
                        "threshold-gentle": 419430,
                        "sensitivity": 0,
                        "threshold-high": 419430
                    },
                    "wred-profile-capability": {
                        "coloring-is-avail": false,
                        "sensitivity-setting-is-avail": false,
                        "available-buffer-size": -1,
                        "gentle-wred-is-avail": true,
                        "drop-probability-at-threshold-low-is-avail": false
                    }
                },
                "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
                "local-id": "",
                "administrative-state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
                "external-managed-id": {
                    "manager-identifier": "",
                    "external-managed-uuid": ""
                },
                "profile-name": "wred-profile-1-0:PROFILE_NAME_TYPE_WRED_PROFILE",
                "operational-state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
                "administrative-control": "core-model-1-4:ADMINISTRATIVE_CONTROL_UNLOCK"
            },
            {
                "uuid": "WRED-PROFILE-Profile-2",
                "wred-profile-1-0:wred-profile-pac": {
                    "wred-profile-configuration": {
                        "threshold-low": 314572,
                        "gentle-wred-is-on": false,
                        "drop-probability-at-threshold-low": 0,
                        "drop-probability-at-threshold-high": 10,
                        "profile-name": "Profile-2",
                        "coloring-is-on": false,
                        "threshold-gentle": 629145,
                        "sensitivity": 0,
                        "threshold-high": 629145
                    },
                    "wred-profile-capability": {
                        "coloring-is-avail": false,
                        "sensitivity-setting-is-avail": false,
                        "available-buffer-size": -1,
                        "gentle-wred-is-avail": true,
                        "drop-probability-at-threshold-low-is-avail": false
                    }
                },
                "lifecycle-state": "core-model-1-4:LIFECYCLE_STATE_INSTALLED",
                "local-id": "",
                "administrative-state": "core-model-1-4:ADMINISTRATIVE_STATE_UNLOCKED",
                "external-managed-id": {
                    "manager-identifier": "",
                    "external-managed-uuid": ""
                },
                "profile-name": "wred-profile-1-0:PROFILE_NAME_TYPE_WRED_PROFILE",
                "operational-state": "core-model-1-4:OPERATIONAL_STATE_ENABLED",
                "administrative-control": "core-model-1-4:ADMINISTRATIVE_CONTROL_UNLOCK"
            }
        ]
    }
}
Ziabatcha commented 8 months ago

Tested with v1.1.3 . Issue is no longer observed. Proper response observed for both actual equipment and Profile-equipment APIs 200OK