nornir-nautobot
nornir-nautobot copied to clipboard
Allow the option for when a device is part of a virtual chassis to use the virtual chassis name as the inventory hostname
The nautobot-ansible plugin allows the option of overwriting the inventory host name with a virtual chassis name: https://nautobot-ansible.readthedocs.io/en/latest/plugins/inventory_inventory.html#parameter-virtual_chassis_name, all of the host vars are from the master member.
When it comes to limiting within ansible you're then able to limit of the virtual chassis name.
I'm looking to do the same thing but with nornir-nautobot.
Currently nornir-nautobot would return only devices and not virtual-chassis but I'm looking for the ability to pass via cli something like --hostname <virtualchassis>
then be able to use an F filter to filter on the 'name' attribute to filter the inventory to just those devices matching the hostname(s) passed in via cli.
I think we can look to have this as a feature to be added yet, but not sure that it is urgently needed after our discussion on slack a couple of weeks back after the opening of this issue. Do we still want this feature @gneville-ot ?
It will be good to see this in nornir-nautobot so it has parity with nornir-ansible, but for my use case I've already put something in place that does this for me so is less urgent.
related: New API to find the manageable device https://github.com/nautobot/nautobot/issues/5075