I’m unable to successfully filter devices by tag.
The following returns an empty dictionary;
atag = nr.inventory.filter(F(tags__name=“a_tag”))
print(atag.hosts)
This is an example of the ‘tags’ attribute from a device;
[{‘id’: 4, ‘url’: ‘https://netbox.company.com/api/extras/tags/4/’, ‘name’: ‘a_tag’, ‘slug’: ‘a_tag’, ‘color’: ‘ffe4e1’}]
It seems like filtering on tags works differently than platform, device_type, or site. What am I missing here?