mirror of
https://github.com/netbox-community/Device-Type-Library-Import.git
synced 2025-01-22 13:28:34 +01:00
Added docstring to create_module_types
This commit is contained in:
parent
9115a7d310
commit
6cd282acd8
@ -666,6 +666,15 @@ def createDeviceTypes(deviceTypes, nb):
|
||||
dt.id, nb)
|
||||
|
||||
def create_module_types(module_types, nb):
|
||||
'''Create missing module types.
|
||||
|
||||
Args:
|
||||
module_types: yaml data from repo.
|
||||
nb: pynetbox API instance
|
||||
|
||||
Returns:
|
||||
None
|
||||
'''
|
||||
|
||||
all_module_types = {}
|
||||
for curr_nb_mt in nb.dcim.module_types.all():
|
||||
|
Loading…
Reference in New Issue
Block a user