adding modules to devices using pynetbox #656
wannagofast83
started this conversation in
General
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