Currently, when OF negotiation fails there isn't information logged about the version from the connection that fails, it would be great to include the version of the OF header from that device to easily spot if it's an unexpected or unsupported version to facilitate for operators:
2022-09-21 13:54:06,594 - INFO [kytos.core.atcp_server] [atcp_server.py:131:connection_made] (MainThread) New connection from 127.0.0.1:45310
2022-09-21 13:54:06,595 - INFO [kytos.core.atcp_server] [atcp_server.py:131:connection_made] (MainThread) New connection from 127.0.0.1:45312
2022-09-21 13:54:06,596 - INFO [kytos.core.atcp_server] [atcp_server.py:131:connection_made] (MainThread) New connection from 127.0.0.1:45318
2022-09-21 13:54:06,601 - WARNING [kytos.napps.kytos/of_core] [main.py:435:fail_negotiation] (MainThread) connection ('127.0.0.1', 45310): version negotiation failed
2022-09-21 13:54:06,604 - ERROR [kytos.napps.kytos/of_core] [main.py:323:process_new_connection] (MainThread) Connection ('127.0.0.1', 45310): Negotiation Failed
2022-09-21 13:54:06,605 - WARNING [kytos.napps.kytos/of_core] [main.py:435:fail_negotiation] (MainThread) connection ('127.0.0.1', 45312): version negotiation failed
2022-09-21 13:54:06,605 - ERROR [kytos.napps.kytos/of_core] [main.py:323:process_new_connection] (MainThread) Connection ('127.0.0.1', 45312): Negotiation Failed
2022-09-21 13:54:06,605 - WARNING [kytos.napps.kytos/of_core] [main.py:435:fail_negotiation] (MainThread) connection ('127.0.0.1', 45318): version negotiation failed
2022-09-21 13:54:06,606 - ERROR [kytos.napps.kytos/of_core] [main.py:323:process_new_connection] (MainThread) Connection ('127.0.0.1', 45318): Negotiation Failed
@Alopalao, if you could also include this minor enhancement on PR #82 that'd be great since we'll have to test/exercise OF negotiation failures there, thanks.
Currently, when OF negotiation fails there isn't information logged about the version from the connection that fails, it would be great to include the version of the OF header from that device to easily spot if it's an unexpected or unsupported version to facilitate for operators:
Patching this log statement with would be more informative: