-
Hello, Im currently playing around with nornir. It's pretty amazing!! Thank you for this project!! Currently, nornir is pulling inventory from netbox from X region without issue.
Im able to do the following filters and they work fine: 👍
Im having trouble with filtering with other fields. For example
This is how one of my objects looks like when I do
Yes, I've looked at https://nornir.readthedocs.io/en/latest/tutorial/inventory.html?highlight=filter#Filter-functions but still need some clarification 😞 Any input is appreciated! Thank you, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
The filters that are not working are because you are not following your data model. For instance, you write:
but there is no
Rest of the fields have similar issues, for instance, I think you want:
Look at the examples at the bottom here, the ones using |
Beta Was this translation helpful? Give feedback.
The filters that are not working are because you are not following your data model. For instance, you write:
but there is no
model
field in your data, you have howeverdevice_type["model"] = "c6880x"
so what you probably want is something like:Rest of the fields have similar issues, for instance, I think you want:
Look at the examples at the bottom here, the ones using
nested_data
, as that's pretty much what you want.