-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
API: returns too many interfaces for VC member when filtering for device_id #13534
Comments
I was unaware of any changes regarding this in 3.5.7 or 3.5.8, so I tested it locally and I cannot replicate it at all. Both 3.5.6 and 3.5.8 returns all interfaces in the chassis. This also bizarely bizarrely seems like a duplicate of your very own issue: Please revise your replication steps to ensure that something actually changed in the two last patch versions. Maybe you made local changes to your netbox install that were removed when upgrading? As to your questions @jeremystretch - I just tested #13296 and it does solve the issue here. However the issue was introduced in v3.3.6, so I'm assuming local modifications were made to @cs-1's netbox or something. |
I think @kkthxbye-code is right on the money in that this has for the most part been consistent behaviour from the 2.x days. That said, #13296 will resolve this as it will make the device filters only return relevant device interfaces and virtual_chassis_member will now return interfaces for the VC unless filtered further. |
We didn't make any local changes to our code, it's the release code from the NetBox's git repo. The issue can be reproduced in the Swagger interface too, see the two screenshots. Note the "count" attribute of the returned JSON and also note that the device ID is "870" in both cases. If #13296 resolves this issue as @DanSheps says it's perfectly fine for me. I did not assume that this was a dupe of #11478 because the API used to return only the interfaces of a specific chassis before when querying for the device_id and it struck me as odd that I don't get the same results when querying the same device by ID and by name. Anyhow, if #13296 resolves this, all is fine. |
I think you are missing the point again. Here's where we're at: Before v3.3.6:
After v3.3.6:
Nothing has changed regarding this between v3.5.6 and v3.5.8 as you claim it has. Also the above is exactly what is covered by your own issue #11478. I'll close this out as a duplicate, but in the future please make sure there's actually been a change in the version you suggest. It wastes a lot of time for everyone. |
I'm sorry, it was an honest mistake, I accidentally checked v3.5.6 against a non-VC chassis. |
NetBox version
v3.5.8
Python version
3.10
Steps to Reproduce
Expected Behavior
Only interfaces for device "a" are returned.
Observed Behavior
Interfaces for device a and device b are returned.
This behaviour was different in NetBox v3.5.6, only interfaces of device "a" were returned when filtering for the according device_id.
When using the device name of device "a" as a filter criterium, only interfaces of device "a" are returned as expected.
The text was updated successfully, but these errors were encountered: