Closed rbeumer closed 3 years ago
Hi @rbeumer, thank you for your feedback and for such deep investigation. I met cases when OSPF use non-network addresses and probably my implemented logic doesn't cover all cases) I will try to recreate the issue, fix, release it next week.
Hi @rbeumer, the fix has been released in v2.21.1. Please make a docker-compose pull and provide me an update.
Thanks! The fix seems to work, uploading the LSDB output is now working without any errors, also no errors from the Flask container.
fixed
I was testing with the lastest docker image and uploading an OSPF LSDB. The uploading works for an IOS-XR LSDB but when I am testing the output from a Cisco IOS LSDB it trows an internal server error. The Flask logs show the following error:
The IP address has obiously been obfuscated.
When I check the LSDB output the IP address mentioned in the error is part of a type 1 router LSA. It is first part of a /31 point to point link and also mentioned als a stub network.
The Python IP address library is throwing this error because the address mentioned is not the network address it seems, though with a /31 you won't have a dedicated network address. In my case it is the second address in the /31.
I can't check the code to see why and how the IP address is being checked by the ipaddress module so I can't speculate on how to solve it. Would you be willing to add the code to this repository so others might help solving this issue?