-
Notifications
You must be signed in to change notification settings - Fork 7
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
Can one use Netbox inventory plugin with Nornir in net-api? #28
Comments
Hi @wdennis, It's technically possible. All that function needs to return is the nr object. You could write a second function named I haven't used the netbox inventory plugin before, so perhaps you could share some code or an example? |
Hi @wdennis, Just following up on whether you wanted to share some code so I can take a look? |
@writememe Sorry for late reply, been busy + holiday time here... Example of my InitNornir invocation and the associated config file:
config_nb_network_switches.yaml:
This against Nornir 2.4.0; please note that the impending Nornir 3.0.0 will change things in regards to both the way plugins works, as well as the Netbox inventory plugin itself -- see: |
Hi @wdennis all good mate, so am I :). I'm going to create a branch and work out what changes are needed to uplift the code to support nornir 3. When that's done and working, perhaps we can look at the new netbox plugin then? |
Sounds good to me, let me know when you are ready...
…On Thu, Sep 17, 2020 at 5:57 AM Daniel Teycheney ***@***.***> wrote:
Hi @wdennis <https://github.com/wdennis> all good mate, so am I :). I'm
going to create a branch and work out what changes are needed to uplift the
code to support nornir 3. When that's done and working, perhaps we can look
at the new netbox plugin then?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#28 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ABNDWNLLQ4NBDUP7Z2W5A6DSGHMP7ANCNFSM4QNUWNWA>
.
|
Hi @wdennis, just finished the nornir 3 refactor now. If you pull the latest version of the code, you should be able to work from that now. Haven't used netbox much to be honest, but I'm guessing it just need another Line 81 in ed69b15
With the netbox plugin in it? What are you thinking? |
Took a look at this project, is interesting as I'm using Nornir to do network automation, and want to progress to front-ending it. However, taking a look at
net.py
, it looks like theget_nr()
function only allows Nornir "simple inventory"... As I already have all my network devices in Netbox, and that has an inventory plugin for Nornir, is using Netbox inventory a possibility with this project?The text was updated successfully, but these errors were encountered: