Interface Bulk Import Exception when adding interfaces to virtual machines #3236

Closed
opened 2025-12-29 18:26:58 +01:00 by adam · 2 comments
Owner

Originally created by @dealer-san on GitHub (Jan 29, 2020).

Environment

  • Python version: 3.6.8
  • NetBox version: 2.7.3

Steps to Reproduce

  1. Select "Devices" -> Interfaces -> Import
  2. Enter CSV interface data using virtual_machine column type (e.g., virtual_machine,name,type)
  3. Submit

Expected Behavior

Either interfaces are imported successfully or data validation errors are reported.

Observed Behavior

Submission results in the following Python exception.

2020-01-28 182920

Example input data:

virtual_machine,name,type
hostname,eth0,Virtual

The import seems to work without problems when importing for devices. Was able to reproduce issue in clean installs of both v2.7.2 and v2.7.3.

Originally created by @dealer-san on GitHub (Jan 29, 2020). ### Environment * Python version: 3.6.8 * NetBox version: 2.7.3 ### Steps to Reproduce 1. Select "Devices" -> Interfaces -> Import 2. Enter CSV interface data using virtual_machine column type (e.g., virtual_machine,name,type) 3. Submit ### Expected Behavior Either interfaces are imported successfully or data validation errors are reported. ### Observed Behavior Submission results in the following Python exception. ![2020-01-28 182920](https://user-images.githubusercontent.com/3180981/73317592-3978bf00-41fc-11ea-9eaa-b2d3b306ad94.png) Example input data: virtual_machine,name,type hostname,eth0,Virtual The import seems to work without problems when importing for devices. Was able to reproduce issue in clean installs of both v2.7.2 and v2.7.3.
adam closed this issue 2025-12-29 18:26:58 +01:00
Author
Owner

@DanSheps commented on GitHub (Jan 29, 2020):

This issue has been closed as it does not conform to one of the provided templates as required by the contributing guide. If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).

@DanSheps commented on GitHub (Jan 29, 2020): This issue has been closed as it does not conform to one of the [provided templates](https://github.com/digitalocean/netbox/issues/new/choose) as required by the [contributing guide](https://github.com/digitalocean/netbox/blob/master/CONTRIBUTING.md). If you'd like to request that your issue be re-opened, please first update the content so that it matches the appropriate template (this may require rewriting your issue entirely).
Author
Owner

@dealer-san commented on GitHub (Jan 29, 2020):

Correct.

I've updated the original bug report to actually use the template. Note to
self: don't try to quickly submit bug reports when the wife is hungry and
impatient.

On Tue, Jan 28, 2020 at 8:48 PM Daniel Sheppard notifications@github.com
wrote:

Are you using interface import under devices?


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/netbox-community/netbox/issues/4036?email_source=notifications&email_token=AAYITNMYL4463MEXE6KSQS3RADU6VA5CNFSM4KM4XSM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKFYDWA#issuecomment-579568088,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/AAYITNOPZ23TUNON3FSCFMDRADU6VANCNFSM4KM4XSMQ
.

@dealer-san commented on GitHub (Jan 29, 2020): Correct. I've updated the original bug report to actually use the template. Note to self: don't try to quickly submit bug reports when the wife is hungry and impatient. On Tue, Jan 28, 2020 at 8:48 PM Daniel Sheppard <notifications@github.com> wrote: > Are you using interface import under devices? > > — > You are receiving this because you authored the thread. > Reply to this email directly, view it on GitHub > <https://github.com/netbox-community/netbox/issues/4036?email_source=notifications&email_token=AAYITNMYL4463MEXE6KSQS3RADU6VA5CNFSM4KM4XSM2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKFYDWA#issuecomment-579568088>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/AAYITNOPZ23TUNON3FSCFMDRADU6VANCNFSM4KM4XSMQ> > . >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3236