scaleway / netbox-netprod-importer

Poll data from network devices in production and import it into netbox
GNU General Public License v3.0
101 stars 31 forks source link

Device import fails with missing interface type during push #33

Closed erdems closed 4 years ago

erdems commented 4 years ago

Trying to import a QFX device (already added in netbox with mgmt ip and so on):

netbox-netprod-importer import devices.yml -u _netbox -p

The import fails with the following message:

ERROR: netbox_importer: Error when polling device qfx-01-cab4: Interface ae0 could not be created: 400 Client Error: Bad Request for url: https://netbox.lab/api/dcim/interfaces/ -- {'type': ['This field is required.']}

The error seems to be present for any emulated interface, including management/system ones.

aruhier commented 4 years ago

Hi, Thanks for your bug report! Can you try the last release please (v0.3.0) and tell me if it's ok?

Thanks

erdems commented 4 years ago

Great job, now the import doesn't fail!

I will check the imported data further and can open a new issue, if required.

Thanks!

On 3 Mar 2020, at 22:59, Anthony Ruhier notifications@github.com wrote:

Hi, Thanks for your bug report! Can you try the last release please (v0.3.0) and tell me if it's ok?

Thanks

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/aruhier/netbox-netprod-importer/issues/33?email_source=notifications&email_token=AAIAYL3L4ABWDRIWWBMJQK3RFV4UPA5CNFSM4LAIVZA2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOENVKOJI#issuecomment-594192165, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAIAYL6UKOTUJGO4BTDEYQTRFV4UPANCNFSM4LAIVZAQ.

aruhier commented 4 years ago

Just reopen this one if it's related, no worries.

Thanks for your feedback!