openBackhaul / MicroWaveDeviceInventory

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

Response of actual-equipment in cache differs from live #850

Closed Ziabatcha closed 7 months ago

Ziabatcha commented 7 months ago

When user tried to retrieve the cache and live data for actual-equipment, observe mismatch.

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

Tag: Test_v1.1.2

Cache URL:
http://xxx:xx/core-model-1-4:network-control-domain=cache/control-construct=xxx/equipment=CTRL%20IduBoard%20Xpic%2032E1/actual-equipment

curl -X GET "http://xxx:xxx/core-model-1-4:network-control-domain=cache/control-construct=xxx/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."
Live Url:

http://xxx:xx/core-model-1-4:network-control-domain=live/control-construct=xx/equipment=CTRL%20IduBoard%20Xpic%2032E1/actual-equipment

curl -X GET "http://xxx:xx/core-model-1-4:network-control-domain=live/control-construct=xx/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 6 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": ""
        }
    }
}
Ziabatcha commented 6 months ago

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