pynetbox importing modules and adopt_compnents #18028
Unanswered
wannagofast83
asked this question in
Help Wanted!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have tried a number of ways to get a script to import modules and then adopt components and it fails every time because there is already a interface with that name on the device.
nb.dcim.modules.create( device = nb_device.id, module_bay = nb_device_module_bay.id, module_type = nb_module_type.id, status = "active", serial = _module_serial, #"asset_tag": "", #"description": "", #"comments": "", replicate_components = False, adopt_components= True, #"tags": "", #"id": "", )
OR
nb_device.adopt_components = True
Anyone have any advice?
Beta Was this translation helpful? Give feedback.
All reactions