-
Notifications
You must be signed in to change notification settings - Fork 9
Description
Is your feature request related to a problem? Please describe.
Using a hierachical device role which devices only being to child roles is not supported and results in
No matching devices found, devices must have status primary IP, platform and platformsetting
Using the ConfigDiffScript I usually use the device role to run the script for a group of devices.
I have mainly two groups of device (core switches and edge switches) and so far I have been scheduling two jobs, one for each.
Since Netbox v4.3.0 device roles can now be hierarchical, so I thought having a common parent role "automated switches" would streamline my setup and only require one job.
Describe the solution you'd like
ConfigDiffScript should run config compliance checks against all devices in the hierarchy of the role.
Additional context
I'll open and link a netbox issue with my findings.
Netbox api reports "device_count": 0, in the API of the device role, although child roles have devices assigned.
netbox-community/netbox#19970