-
Notifications
You must be signed in to change notification settings - Fork 245
Add tenant filter to Netbox inventory call #273
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
Comments
Are there any other parameter besides |
That will provide a better flexibility for filtering. |
I have tested with the below and it is working fine. nr = InitNornir(core={"num_workers":100}, Thanks |
Second beta with support for this has been released. |
Forgive my basic python. I have tested the below and it is working, shall I submit PR.
` class NBInventory(Inventory):
def init(
self,
nb_url=None,
nb_token=None,
nb_tenant=None,
use_slugs=True,
flatten_custom_fields=True,
**kwargs
) -> None:
using the below call:
nr = InitNornir(core={"num_workers":100}, inventory={"plugin": "nornir.plugins.inventory.netbox.NBInventory", "options": {"nb_url": "http://x.x.x.x", "nb_token": "0123456789abcdef0123456789abcdef01234567", "nb_tenant": "prod"}})
The text was updated successfully, but these errors were encountered: