How to update the netbox device data from external data by using python #15400
Unanswered
selvigp
asked this question in
Help Wanted!
Replies: 1 comment
-
Without seeing your code, I can't speculate as to what you've done wrong. It's not even clear if you're using the Django ORM (e.g. in a custom script) or the REST API. For the Django ORM there are working example scripts and reports you can copy in the https://github.com/netbox-community/customizations repo, and you may want to look at the Django ORM documentation. In short, the general pattern is:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have an external file, needs to validate those data with netbox data. If there is any mismatch, want to update that data into netbox_data. I have tried to use
setattr(device, field, value)
, but somehow its not updating instead it returns NoneBeta Was this translation helpful? Give feedback.
All reactions