openBackhaul / MicroWaveDeviceInventory

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

Observing error 404 when device-attribute-value-change notification is received on MWDI API:/v1/regard-device-attribute-value-change #828

Closed Ziabatcha closed 7 months ago

Ziabatcha commented 7 months ago

When device attribute value change is received on MWDI, observing 404 error response code.

{"notification-proxy-1-0:attribute-value-changed-notification":{"counter":4,"timestamp":"2024-01-29T08:26:11.0+00:00","object-path":"/core-model-1-4:network-control-domain=live/control-construct=513250009/logical-termination-point=LTP-ETC-TTP-LAN-2/layer-protocol=LP-ETC-TTP-LAN-2/ethernet-container-2-0:ethernet-container-pac/ethernet-container-configuration","attribute-name":"maintenance-timer","new-value":"500"}}
Ziabatcha commented 7 months ago

Tested with latest tag [Test_v1.1.2]. Observing 204 response for API Reported issue is not observed in this tag.

http://XXX:XX/v1/regard-device-attribute-value-change

curl -X POST "http://172.28.127.10:3008/v1/regard-device-attribute-value-change" -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." -H "Content-Type: application/json" -d "{\"notification-proxy-1-0:attribute-value-changed-notification\":{\"counter\":4,\"timestamp\":\"2024-01-29T08:26:11.0+00:00\",\"object-path\":\"/core-model-1-4:network-control-domain=live/control-construct=513250009/logical-termination-point=LTP-ETC-TTP-LAN-2/layer-protocol=LP-ETC-TTP-LAN-2/ethernet-container-2-0:ethernet-container-pac/ethernet-container-configuration\",\"attribute-name\":\"maintenance-timer\",\"new-value\":\"500\"}}"

204 RESPONSE : access-control-allow-origin: * backend-time: 0 connection: keep-alive date: Wed, 14 Feb 2024 08:05:13 GMT exec-time: 105404.341409 keep-alive: timeout=5 life-cycle-state: EXPERIMENTAL x-correlator: 550e8400-e29b-11d4-a716-446655440000 x-powered-by: Express

{"notification-proxy-1-0:attribute-value-changed-notification":{"counter":4,"timestamp":"2024-01-29T08:26:11.0+00:00","object-path":"/core-model-1-4:network-control-domain=live/control-construct=513250009/logical-termination-point=LTP-ETC-TTP-LAN-2/layer-protocol=LP-ETC-TTP-LAN-2/ethernet-container-2-0:ethernet-container-pac/ethernet-container-configuration","attribute-name":"maintenance-timer","new-value":"500"}}