Closed viniarck closed 2 years ago
Very nice that you get this error! I've commented on the issue that this hex conversion indeed was done for convenience in the past when we have to troubleshoot log entries from physical switches and Kytos log. Relying on the external transformations on the log message although possible would speed down the tshoot process, and that is why we request the hex version of the XID (IMHO, we don't actually need the int format, only hex format would be enough).
With that in mind, I made a comment/suggestion with another strategy to fix the problem.
Got it. I've just applied the commit, I think we can consider implementing the dunder __format__
method in the future, this patch solves for now. Thanks @italovalcy, I'm glad you recalled about this original requirement.
Fixes #61
Now it correctly logs and then publishes the OFPT_ERROR message, I removed the hex f-string format, it was there primarily for convenience.
This branch is on top of #60 to facilitate local development and managing in-flight branches.
Release notes
Running it locally