Closed Ziabatcha closed 7 months ago
I tried in our VM with the same MWDI version without any problem:
Request:
curl -X GET "http://172.28.127.21:3008/core-model-1-4:network-control-domain=cache/control-construct=513250004/alarms-1-0:alarm-pac/alarm-capability" -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: n.a."
Response:
{
"alarms-1-0:alarm-capability": {
"alarm-inventory-list": [
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "TEM_HA/6",
"specific-problem": "Not yet defined.",
"probable-cause-string": "temperatureUnacceptable",
"probable-cause": 50,
"will-clear": true,
"description": "Laser temperature is too high. This alarm occurs when the laser temperature is higher than the laser temperature maximum.",
"alarm-category": "alarms-1-0:ALARM_CATEGORY_TYPE_NOT_YET_DEFINED"
},
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "GSP_TNNL_DOWN/7",
"specific-problem": "Not yet defined.",
"probable-cause-string": "Not yet defined.",
"probable-cause": -1,
"will-clear": true,
"description": "Alarm start:When the tunnel operation state changes from up to other states,the generation of this alarm is reported. If certain factors such as network environment results in a failure to negotiate on a label forwarding path during initial creation of a dynamic tunnel, the tunnel cannot be up. In this case, this alarm is reported. Alarm end:When the tunnel operation state changes from other states to up and the clarm has been reported,the ending of this alarm is reported. When the tunnel is deleted by user,or user re-create tunnel successfully,the tunnel operation state changes from other states to up and the clarm has been reported,the ending of this alarm is reported.",
"alarm-category": "alarms-1-0:ALARM_CATEGORY_TYPE_NOT_YET_DEFINED"
},
........
Request:
curl -X GET "http://172.28.127.21:3008/core-model-1-4:network-control-domain=cache/control-construct=513250004/alarms-1-0:alarm-pac/alarm-configuration" -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: n.a."
Response:
{
"alarms-1-0:alarm-configuration": {
"behavior-management-list": [
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "IF_CABLE_OPEN/5",
"resource": "/core-model-1-4:control-construct",
"behavior": "alarms-1-0:BEHAVIOR_TYPE_FULLY_FUNCTIONAL"
},
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "PWAPS_SWITCH_FAIL/7",
"resource": "/core-model-1-4:control-construct",
"behavior": "alarms-1-0:BEHAVIOR_TYPE_FULLY_FUNCTIONAL"
},
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "WRG_BD_TYPE/9",
"resource": "/core-model-1-4:control-construct",
"behavior": "alarms-1-0:BEHAVIOR_TYPE_FULLY_FUNCTIONAL"
},
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "BIP_SD/1",
"resource": "/core-model-1-4:control-construct",
"behavior": "alarms-1-0:BEHAVIOR_TYPE_NOT_NOTIFIED"
},
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "LPS_UNI_BI_M/7",
"resource": "/core-model-1-4:control-construct",
"behavior": "alarms-1-0:BEHAVIOR_TYPE_FULLY_FUNCTIONAL"
},
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "GPSMOD_INVALID/6",
"resource": "/core-model-1-4:control-construct",
"behavior": "alarms-1-0:BEHAVIOR_TYPE_FULLY_FUNCTIONAL"
},
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "CONFIG_NOSUPPORT/45",
"resource": "/core-model-1-4:control-construct",
"behavior": "alarms-1-0:BEHAVIOR_TYPE_FULLY_FUNCTIONAL"
},
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "SSL_CERT_NOENC/7",
"resource": "/core-model-1-4:control-construct",
"behavior": "alarms-1-0:BEHAVIOR_TYPE_FULLY_FUNCTIONAL"
},
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "GPSMOD_LOCK_FAIL/6",
"resource": "/core-model-1-4:control-construct",
"behavior": "alarms-1-0:BEHAVIOR_TYPE_FULLY_FUNCTIONAL"
},
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "IPFPM_TWODELAY_EXCE/7",
"resource": "/core-model-1-4:control-construct",
"behavior": "alarms-1-0:BEHAVIOR_TYPE_FULLY_FUNCTIONAL"
},
{
"alarm-type-id": "alarms-1-0:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "BD_STATUS/5",
"resource": "/core-model-1-4:control-construct",
"behavior": "alarms-1-0:BEHAVIOR_TYPE_FULLY_FUNCTIONAL"
},
{.......
Issue not observed with latest package test_v1.1.5. Hence closing the issue.
http://xxx:xx/core-model-1-4:network-control-domain=cache/control-construct=xxx/alarms-1-0:alarm-pac/alarm-capability
{
"alarms-1-0:alarm-capability": {
"alarm-inventory-list": [
{
"alarm-type-id": "alarm-types:ALARM_TYPE_ID_TYPE_NEW_BOARD_OBJ",
"alarm-type-qualifier": "DEVICE_AUTH_FAIL",
"description": "This alarm is generated when the device authentication function is enabled but fails.",
"probable-cause-string": "Not yet defined.",
"probable-cause": -1,
"will-clear": true,
"specific-problem": "Not yet defined.",
"alarm-category": "alarms-1-0:ALARM_CATEGORY_TYPE_NOT_YET_DEFINED"
},
{
"alarm-type-id": "alarm-types:ALARM_TYPE_ID_TYPE_NOT_YET_DEFINED",
"alarm-type-qualifier": "APS_INDI/7",
"description": "Status of an SDH MSP group.",
"probable-cause-string": "Not yet defined.",
"probable-cause": -1,
"will-clear": true,
"specific-problem": "Not yet defined.",
"alarm-category": "alarms-1-0:ALARM_CATEGORY_TYPE_NOT_YET_DEFINED"
http://xx:xx/core-model-1-4:network-control-domain=cache/control-construct=xxx/alarms-1-0:alarm-pac/alarm-configuration
Response body
Download
{
"alarms-1-0:alarm-configuration": {
"severity-configuration-list": [
{
"severity-configuration-identifier": "13933-102-6-3",
"alarm-type-qualifier": "BRDCASTRATIO_OVER",
"resource-group-description": "Not yet defined.",
"resource-list": [
"/core-model:control-construct/core-model:logical-termination-point[core-model:uuid='LTP-ETHERNETCONTAINER-TTP-6-3']"
],
"severity-level-list": [
"alarms-1-0:SEVERITY_TYPE_MAJOR"
],
"alarm-type-id": "alarm-types:ALARM_TYPE_ID_TYPE_NEW_ETHPORT_OBJ"
},
Observing 404 error for domain=cache , alarm capability and configuration APIs for HUAWEI 950 model
MWDI Tag v1.1.3
Note: we are able to see the response of these APIs fromLIVE but not from CACHE
curl -X GET "http://xxx:xx/core-model-1-4:network-control-domain=cache/control-construct=513250004/alarms-1-0:alarm-pac/alarm-configuration" -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."
http://xx:xx/core-model-1-4:network-control-domain=cache/control-construct=513250004/alarms-1-0:alarm-pac/alarm-configuration
{ "code": 404, "message": "Field not found: alarm-configuration" }