1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Use part-number if no model-number is available

This commit is contained in:
Jeremy Stretch
2016-03-29 10:53:01 -04:00
parent c353a91879
commit 87fffce7ea

View File

@ -104,7 +104,7 @@ class JunosNC(RPCClient):
for module in modules_list:
m = {
'name': module['name'],
'part_id': module.get('model-number', ''),
'part_id': module.get('model-number') or module.get('part-number', ''),
'serial': module.get('serial-number', ''),
}
submodules = glean_modules(module, depth + 1)