Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Iterate over Virtualization objects instead of DCIM only. #171

Open
kacem-expereo opened this issue Oct 28, 2024 · 2 comments
Open

Iterate over Virtualization objects instead of DCIM only. #171

kacem-expereo opened this issue Oct 28, 2024 · 2 comments

Comments

@kacem-expereo
Copy link

Hello team,
Is there a way to use the nornir-nautobot plugin to build the inventory from the virtualization model instead of dcim?
From what I see it seems to be restricted to DCIM (it's also specified in the Readme).
Would this be aproved if I submit such PR or it's a choice by design to only support dcim?

Thank you!

@jvanderaa
Copy link
Contributor

Support for Virtualization would be welcomed. If possible, through an option.

@kacem-expereo
Copy link
Author

kacem-expereo commented Oct 31, 2024

Thank you for the quick feedback!

To confirm, would you prefer adding this as an option under the InitNornir/inventory/options field? I am considering two possible approaches for implementing this:

  1. Allowing both DCIM and Virtualization models to be fetched simultaneously and merged as hosts within the inventory, though I’m mindful this might introduce unforeseen complexities.
  2. Providing users with a choice (as an option) between using either the DCIM or Virtualization model, where the filtering_parameter would apply to the selected model.

Please let me know if you have a preferred approach, or if there are any additional considerations to keep in mind.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants