kytos-ng / of_core

Kytos Main OpenFlow Network Application (NApp)
MIT License
0 stars 5 forks source link

fix: gracefully handled `kytos/core.openflow.connection.error` when a switch hasn't been created yet #111

Closed viniarck closed 1 year ago

viniarck commented 1 year ago

Closes #110

Summary

See updated changelog file

Local Tests

Rerun kytosd again with this branch:

kytos $> 2023-04-11 18:00:42,727 - INFO [kytos.core.atcp_server] (MainThread) New connection from 127.0.0.1:48032                                                                         
2023-04-11 18:00:42,728 - INFO [kytos.core.atcp_server] (MainThread) New connection from 127.0.0.1:48038
2023-04-11 18:00:42,732 - INFO [kytos.core.atcp_server] (MainThread) New connection from 127.0.0.1:48050
2023-04-11 18:00:43,263 - INFO [kytos.napps.kytos/of_core] (thread_pool_sb_0) Connection ('127.0.0.1', 48032), Switch 00:00:00:00:00:00:00:01: OPENFLOW HANDSHAKE COMPLETE
2023-04-11 18:00:43,275 - INFO [kytos.napps.kytos/of_core] (thread_pool_sb_1) Connection ('127.0.0.1', 48038), Switch 00:00:00:00:00:00:00:03: OPENFLOW HANDSHAKE COMPLETE
2023-04-11 18:00:43,285 - INFO [kytos.napps.kytos/of_core] (thread_pool_sb_2) Connection ('127.0.0.1', 48050), Switch 00:00:00:00:00:00:00:02: OPENFLOW HANDSHAKE COMPLETE

End-to-End Tests

e2e isn't necessary since it's not changing implementation behavior, and unit test covered it.