kytos-ng / telemetry_int

Kytos Telemetry Napp
MIT License
0 stars 2 forks source link

feat: added v1 openapi.yml spec #55

Closed viniarck closed 1 year ago

viniarck commented 1 year ago

Closes #6

Summary

Local Tests

20231003_123548

kytos $> 2023-10-03 12:31:02,006 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:33184 - "GET /api/kytos/mef_eline/v2/evc/9093192378aa4d HTTP/1.1" 200        
2023-10-03 12:31:02,007 - INFO [kytos.napps.kytos/telemetry_int] [int.py:79:enable_int] (MainThread) Enabling INT on EVC ids: ['9093192378aa4d'], force: False
2023-10-03 12:31:02,017 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:33198 - "GET /api/kytos/flow_manager/v2/stored_flows?state=installed&state=pending HTT
P/1.1" 200
2023-10-03 12:31:02,041 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:33210 - "POST /api/kytos/mef_eline/v2/evc/metadata HTTP/1.1" 201
2023-10-03 12:31:02,055 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:33172 - "POST /api/kytos/telemetry_int/v1/evc/enable/ HTTP/1.1" 201
2023-10-03 12:31:07,692 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:59648 - "GET /api/kytos/mef_eline/v2/evc/9093192378aa4d HTTP/1.1" 200
2023-10-03 12:31:07,693 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:59632 - "POST /api/kytos/telemetry_int/v1/evc/enable/ HTTP/1.1" 409
2023-10-03 12:31:09,368 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:59650 - "GET /api/kytos/mef_eline/v2/evc/9093192378aa4d HTTP/1.1" 200
2023-10-03 12:31:09,369 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:59632 - "POST /api/kytos/telemetry_int/v1/evc/enable/ HTTP/1.1" 409
2023-10-03 12:31:19,181 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:55232 - "GET /api/kytos/mef_eline/v2/evc/?archived=false HTTP/1.1" 200
2023-10-03 12:31:19,182 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:55226 - "POST /api/kytos/telemetry_int/v1/evc/enable/ HTTP/1.1" 200
2023-10-03 12:31:20,115 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:55246 - "GET /api/kytos/mef_eline/v2/evc/?archived=false HTTP/1.1" 200
2023-10-03 12:31:20,117 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:55226 - "POST /api/kytos/telemetry_int/v1/evc/enable/ HTTP/1.1" 200
2023-10-03 12:31:23,562 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:58668 - "GET /api/kytos/mef_eline/v2/evc/9093192378aa4d HTTP/1.1" 200
2023-10-03 12:31:23,563 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:55226 - "POST /api/kytos/telemetry_int/v1/evc/enable/ HTTP/1.1" 409
2023-10-03 12:31:35,032 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:42654 - "POST /api/kytos/telemetry_int/v1/evc/disable/ HTTP/1.1" 400
2023-10-03 12:31:35,979 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:42672 - "GET /api/kytos/flow_manager/v2/stored_flows/?state=installed HTTP/1.1" 200
2023-10-03 12:31:35,982 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:42658 - "PUT /api/amlight/sdntrace_cp/v1/traces HTTP/1.1" 200
2023-10-03 12:31:35,983 - INFO [kytos.napps.kytos/mef_eline] [main.py:118:execute_consistency] (mef_eline) EVC(9093192378aa4d, evpl) enabled but inactive - activating
2023-10-03 12:31:38,804 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:42674 - "GET /api/kytos/mef_eline/v2/evc/9093192378aa4dx HTTP/1.1" 404
2023-10-03 12:31:38,806 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:42654 - "POST /api/kytos/telemetry_int/v1/evc/disable/ HTTP/1.1" 404
2023-10-03 12:31:42,330 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:46202 - "GET /api/kytos/mef_eline/v2/evc/9093192378aa4d HTTP/1.1" 200
2023-10-03 12:31:42,332 - INFO [kytos.napps.kytos/telemetry_int] [int.py:46:disable_int] (MainThread) Disabling INT on EVC ids: ['9093192378aa4d'], force: False
2023-10-03 12:31:42,342 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:46212 - "GET /api/kytos/flow_manager/v2/stored_flows?state=installed&state=pending&coo
kie_range=12146369931196803661&cookie_range=12146369931196803661 HTTP/1.1" 200
2023-10-03 12:31:42,354 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:46220 - "POST /api/kytos/mef_eline/v2/evc/metadata HTTP/1.1" 201
2023-10-03 12:31:42,355 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:42654 - "POST /api/kytos/telemetry_int/v1/evc/disable/ HTTP/1.1" 200
2023-10-03 12:31:44,814 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:46232 - "GET /api/kytos/mef_eline/v2/evc/9093192378aa4d HTTP/1.1" 200
2023-10-03 12:31:44,815 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:42654 - "POST /api/kytos/telemetry_int/v1/evc/disable/ HTTP/1.1" 409
2023-10-03 12:31:48,985 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:46236 - "GET /api/kytos/mef_eline/v2/evc/?archived=false HTTP/1.1" 200
2023-10-03 12:31:48,986 - INFO [uvicorn.access] [httptools_impl.py:506:send] (MainThread) 127.0.0.1:42654 - "POST /api/kytos/telemetry_int/v1/evc/disable/ HTTP/1.1" 200
kytos $>                                                                                                                                                                                  

End-to-End Tests

N/A yet