openBackhaul / MacAddressTableRecorder

Markus' first Application on the MW SDN Controller
Apache License 2.0
3 stars 0 forks source link

Observing 500 error with API : http://xx:xx/v1/provide-list-of-network-element-interfaces-on-path #209

Closed Ziabatcha closed 4 months ago

Ziabatcha commented 4 months ago

TAG: test_v1.0.7

Observing 500 error with API : http://xx:xx/v1/provide-list-of-network-element-interfaces-on-path

curl -X POST "http://xxx:xx/v1/provide-list-of-network-element-interfaces-on-path" -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 "{\"target-mac-address\":\"00:aa:aa:00:aa:18\"}"

http://xx:xx/v1/provide-list-of-network-element-interfaces-on-path

{
  "code": 500,
  "message": ".response should be array",
  "errors": [
    {
      "path": ".response",
      "message": "should be array",
      "errorCode": "type.openapi.validation"
    }
  ]
}
schiavi-siae commented 3 months ago

REQUEST: curl -X POST "http://172.28.127.21:3011/v1/provide-list-of-network-element-interfaces-on-path" -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 "{\"target-mac-address\":\"00:aa:aa:00:aa:0c\"}"

RESPONSE Code:200

Details:

[ { "target-mac-address": "00:AA:AA:00:AA:0C", "mount-name": "513250008", "original-ltp-name": "PORT-A", "egress-ltp-uuid": "LTP-MAC-TTP-PORT-A", "vlan-id": 500, "time-stamp-of-data": "2024-03-27T09:24:35.934Z" }, { "target-mac-address": "00:aa:aa:00:aa:0c", "mount-name": "513250004", "original-ltp-name": "SL91EG4/4/1", "egress-ltp-uuid": "LTP-MACINTERFACE-TTP-4-1", "vlan-id": 500, "time-stamp-of-data": "2024-03-27T09:19:36.158Z" }, { "target-mac-address": "00:aa:aa:00:aa:0c", "mount-name": "513250010", "original-ltp-name": "WAN 1/1/100", "egress-ltp-uuid": "MAC-2134647012", "vlan-id": 500, "time-stamp-of-data": "2024-03-27T09:20:48.312Z" }, { "target-mac-address": "00:aa:aa:00:aa:0c", "mount-name": "513250011", "original-ltp-name": "LAN 1/3/2", "egress-ltp-uuid": "MAC-2134638978", "vlan-id": 500, "time-stamp-of-data": "2024-03-27T09:24:53.606Z" }, { "target-mac-address": "00:AA:AA:00:AA:0C", "mount-name": "513250009", "original-ltp-name": "LAN-4-RJ45", "egress-ltp-uuid": "LTP-MAC-TTP-LAN-4", "vlan-id": 500, "time-stamp-of-data": "2024-03-27T09:25:12.082Z" } ] Response headers