kytos-ng / telemetry_int

Kytos Telemetry Napp
MIT License
0 stars 2 forks source link

chore: refactored to use content id instead of content evc_id #99

Closed viniarck closed 1 month ago

viniarck commented 1 month ago

Closes #98

Summary

chore: refactored to use content id instead of content evc_id; internal refactoring no need to update changelog here on this NApp side.

Local Tests

Exercised some of the events with telemetry_int:


kytos $> 2024-05-16 13:49:27,329 - INFO [kytos.napps.kytos/mef_eline] (AnyIO worker thread) Removing EVC(df66e1705b1849, epl)
2024-05-16 13:49:27,332 - INFO [kytos.napps.kytos/flow_manager] (AnyIO worker thread) Send FlowMod from request dpid: 00:00:00:00:00:00:00:03, command: delete, force: True,  flows[0, 1
]: [{'cookie': 12312673024692918345, 'cookie_mask': 18446744073709551615}]
2024-05-16 13:49:27,338 - INFO [uvicorn.access] (MainThread) 127.0.0.1:41726 - "POST /api/kytos/flow_manager/v2/delete/00%3A00%3A00%3A00%3A00%3A00%3A00%3A03 HTTP/1.1" 202
2024-05-16 13:49:27,344 - INFO [kytos.napps.kytos/flow_manager] (AnyIO worker thread) Send FlowMod from request dpid: 00:00:00:00:00:00:00:01, command: delete, force: True,  flows[0, 1
]: [{'cookie': 12312673024692918345, 'cookie_mask': 18446744073709551615}]
2024-05-16 13:49:27,349 - INFO [uvicorn.access] (MainThread) 127.0.0.1:41736 - "POST /api/kytos/flow_manager/v2/delete/00%3A00%3A00%3A00%3A00%3A00%3A00%3A01 HTTP/1.1" 202
2024-05-16 13:49:27,358 - INFO [kytos.napps.kytos/flow_manager] (AnyIO worker thread) Send FlowMod from request dpid: 00:00:00:00:00:00:00:02, command: delete, force: True,  flows[0, 1
]: [{'cookie': 12312673024692918345, 'cookie_mask': 18446744073709551615}]
2024-05-16 13:49:27,362 - INFO [uvicorn.access] (MainThread) 127.0.0.1:41744 - "POST /api/kytos/flow_manager/v2/delete/00%3A00%3A00%3A00%3A00%3A00%3A00%3A02 HTTP/1.1" 202
2024-05-16 13:49:27,366 - INFO [kytos.napps.kytos/mef_eline] (AnyIO worker thread) EVC removed. EVC(df66e1705b1849, epl)
2024-05-16 13:49:27,369 - INFO [uvicorn.access] (MainThread) 127.0.0.1:41710 - "DELETE /api/kytos/mef_eline/v2/evc/df66e1705b1849 HTTP/1.1" 200
2024-05-16 13:49:27,371 - INFO [kytos.napps.kytos/telemetry_int] (MainThread) Handling mef_eline.deleted on EVC id: df66e1705b1849
2024-05-16 13:49:27,371 - INFO [kytos.napps.kytos/telemetry_int] (MainThread) Disabling INT on EVC ids: ['df66e1705b1849'], force: True
2024-05-16 13:49:27,379 - INFO [uvicorn.access] (MainThread) 127.0.0.1:41760 - "GET /api/kytos/flow_manager/v2/stored_flows?state=installed&state=pending HTTP/1.1" 200
2024-05-16 13:49:27,391 - INFO [uvicorn.access] (MainThread) 127.0.0.1:41770 - "POST /api/kytos/mef_eline/v2/evc/metadata HTTP/1.1" 404
kytos $> 

End-to-End Tests

N/A yet