robertcsapo
robertcsapo
@netzbus could you check if FGL1234L0MN is mapped to any sites? https://github.com/robertcsapo/ciscodnacnetbox/blob/56de961ec5473548da0840a1459266d1d109d9e6/ciscodnacnetbox/ciscodnac/__init__.py#L89-L93 If yes, can you check the Site members? Is FGL1234L0MN being listed under ```device``` array? ```/dna/intent/api/v1/site/Global``` (change to...
@netzbus how would you like to map the device(s) under NetBox, that isn't assigned to any site?
```device.serialNumber = device.serialNumber[0:50] TypeError: 'NoneType' object is not subscriptable``` https://github.com/robertcsapo/ciscodnacnetbox/blob/56de961ec5473548da0840a1459266d1d109d9e6/ciscodnacnetbox/ciscodnac/netbox.py#L232 Do you have devices without serial numbers in Cisco DNA Center?
@netzbus If the device has an error state and no serial number, we could avoid syncing them with NetBox. Would that be doable?
@netzbus could you try this version? ```pip install ciscodnacnetbox==3.2.3``` https://github.com/robertcsapo/ciscodnacnetbox/blob/6566c4ed0a4f59d745a266113dd405d323f71905/ciscodnacnetbox/ciscodnac/data.py#L279
I've used NetBox e8af1e94ebdd (v3.5.6) and DNAC Version 2.3.3.6-70045 With the latest ciscodnacnetbo 3.5.0. The job completed. ``` netbox-docker-netbox-worker-1 | 17:41:04 default: ciscodnacnetbox.ciscodnac.data.full_sync() (6df86328-4bd3-4c82-8a85-0d90a2705014) netbox-docker-netbox-1 | 172.19.0.1 - - [07/Jan/2024:17:41:04...
When you say "2 devices sync out of 170", is all your devices in Catalyst Center (DNAC) tied to a role? Or is there any devices that has "Unknown" or...
@shauntilyard this would require pagination support in the code. https://github.com/robertcsapo/ciscodnacnetbox/blob/56de961ec5473548da0840a1459266d1d109d9e6/ciscodnacnetbox/ciscodnac/__init__.py#L65-L70 https://github.com/robertcsapo/ciscodnacnetbox/blob/56de961ec5473548da0840a1459266d1d109d9e6/ciscodnacnetbox/ciscodnac/data.py#L261-L262 Ref https://github.com/cisco-en-programmability/dnacentersdk/issues/70
Do you want to Cisco DNA Center to sync all your Meraki inventory towards NetBox? Let see if I can replicate this.
This is related to #21 , as NetBox 4.x would require significant code change.