adding modules to devices using pynetbox #656
wannagofast83
started this conversation in
General
Replies: 1 comment
-
@wannagofast83 Did you solve the problem? |
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.
Uh oh!
There was an error while loading. Please reload this page.
-
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