-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ignore None values in kwargs #1246
Comments
I will fix that to keep the API compatible, sure thing. Thanks for notifying. |
So look, what do we have in pre-0.9.1 as for now, line 474: pyroute2/pyroute2/netlink/nlsocket.py Lines 466 to 478 in 250824b
It is not the best solution, some NLAs are in fact None as they are flags, but we solve that. Regarding the issue above: it was triggered by another, but related issue, that set The fix is on the way, thanks for reporting! |
Don't set src/dst len if src/dst absent or is None Bug-Url: #1246
Don't set src/dst len if src/dst absent or is None Bug-Url: #1246
Don't set src/dst len if src/dst absent or is None Bug-Url: #1246
Pls check now, should be fixed in the master branch. |
Tested and validated, thanks! |
Hello,
We have a regression on code based on previous pyroute2 version. It looks like parameters given in kwargs are coded, even for None values.
I used strict_mode / ext_ack for a better error message from the kernel, but they are not mandatory to reproduce:
We have a lot of code assuming that None values are ignored in NLA encoding, should we update our code to use recent pyroute2 version or can you ignore this kind of values again?
Thanks
The text was updated successfully, but these errors were encountered: