[Feature Request] nb_inventory filter for Devices and Virtual Machines
ISSUE TYPE
- Feature Idea
Netbox:
2.10.4
Collection:
3.0.0
SUMMARY
I'd like to have option to filter only devices or only Virtual machines for nb_inventory. This will make inventory lookup to run faster and able to separate device from virtual machines
Have you tried specifying the specific query_filters for each to see if that works?
Instead of using query_filters try using only device_query_filters.
same here. want to import only VM's, but query_filters ingore everything except active\offline. i tried: "cluster": "cluster_type": "uuid": "is_virtual": true,
query_filters:
- status: active device_query_filters:
- cluster_type: xcp-ng-pool
- is_virtual: true
and same with only device_query_filters.
anywhere it import all switches, servers, etc.
A workaround to disable one type is by filtering on id=-1 which forces an empty response.
device_query_filters:
- id: -1