openBackhaul / MacAddressTableRecorder

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

macAddressData received output on requestor-receive-operation for API:/v1/receive-requested-mac-address-table is not valid #185

Closed Ziabatcha closed 5 months ago

Ziabatcha commented 6 months ago

When user send API:/v1/read-current-mac-table-from-device where pointing mock requestor-receive-operation API:"/v1/receive-requested-mac-address-table" observing below response on the swagger as expected.

Swagger url:
curl -X POST "http://x.x.x.x:xxxx/v1/read-current-mac-table-from-device" -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 "{\"mount-name\":\"513250010\",\"requestor-protocol\":\"HTTP\",\"requestor-address\":{\"ip-address\":{\"ipv-4-address\":\"x.x.x.x\"}},\"requestor-port\":xxxx,\"requestor-receive-operation\":\"/v1/receive-requested-mac-address-table\"}"
Swagger output response:
{
  "request-id": "513250010-1704196509886"
}

But in mock server response, macaddressdata showing variables Mocker server output:

**************Received******************
{ 'application/json': { 'request-id': '{513250010-1704196509886}' } }
POST /v1/receive-requested-mac-address-table 200 0.870 ms - -
**************Received******************
{
  'application/json': {
    'request-id': '{513250010-1704196509886}',
    macAddressData: { datatype: 'mac-address', 'mac-address': [Array] }
  }
}
POST /v1/receive-requested-mac-address-table 200 0.977 ms - -