nornir-nautobot icon indicating copy to clipboard operation
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

Open gneville-ot opened this issue 1 year ago • 3 comments

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.

gneville-ot avatar Sep 09 '22 15:09 gneville-ot

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 ?

jvanderaa avatar Sep 26 '22 15:09 jvanderaa

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.

gneville-ot avatar Sep 28 '22 11:09 gneville-ot

related: New API to find the manageable device https://github.com/nautobot/nautobot/issues/5075

jifox avatar Jan 14 '24 06:01 jifox