IP Address Bulk Import: KeyError interface_name #3711

Closed
opened 2025-12-29 18:30:43 +01:00 by adam · 1 comment
Owner

Originally created by @alexrsagen on GitHub (May 20, 2020).

Environment

  • Python version: 3.8.2
  • NetBox version: 2.8.4

Steps to Reproduce

  1. Disable any installed plugins by commenting out the PLUGINS setting in
    configuration.py.
  2. Create a device named Example with an interface named Main (names are not relevant to bug)
  3. Create a prefix 192.0.2.0/24
  4. Import the following CSV on the page "IP Address Bulk Import" (/ipam/ip-addresses/import/):
device,interface,status,address
Example,Main,Active,192.0.2.1/24

Expected Behavior

An IP address 192.0.2.1/24 should have been created and assigned to interface Main on device Example.

Observed Behavior

An error page showing the following content appears:

There was a problem with your request. Please contact an administrator.

The complete exception is provided below:

<class 'KeyError'>

'interface_name'
If further assistance is required, please post to the NetBox mailing list.

msedge_8PkQYJ0l5b

Originally created by @alexrsagen on GitHub (May 20, 2020). <!-- NOTE: IF YOUR ISSUE DOES NOT FOLLOW THIS TEMPLATE, IT WILL BE CLOSED. This form is only for reproducible bugs. If you need assistance with NetBox installation, or if you have a general question, DO NOT open an issue. Instead, post to our mailing list: https://groups.google.com/forum/#!forum/netbox-discuss Please describe the environment in which you are running NetBox. Be sure that you are running an unmodified instance of the latest stable release before submitting a bug report, and that any plugins have been disabled. --> ### Environment * Python version: 3.8.2 * NetBox version: 2.8.4 <!-- Describe in detail the exact steps that someone else can take to reproduce this bug using the current stable release of NetBox. Begin with the creation of any necessary database objects and call out every operation being performed explicitly. If reporting a bug in the REST API, be sure to reconstruct the raw HTTP request(s) being made: Don't rely on a client library such as pynetbox. --> ### Steps to Reproduce 1. Disable any installed plugins by commenting out the `PLUGINS` setting in `configuration.py`. 2. Create a device named `Example` with an interface named `Main` (names are not relevant to bug) 3. Create a prefix `192.0.2.0/24` 4. Import the following CSV on the page "IP Address Bulk Import" (/ipam/ip-addresses/import/): ```csv device,interface,status,address Example,Main,Active,192.0.2.1/24 ``` <!-- What did you expect to happen? --> ### Expected Behavior An IP address `192.0.2.1/24` should have been created and assigned to interface `Main` on device `Example`. <!-- What happened instead? --> ### Observed Behavior An error page showing the following content appears: ``` There was a problem with your request. Please contact an administrator. The complete exception is provided below: <class 'KeyError'> 'interface_name' If further assistance is required, please post to the NetBox mailing list. ``` ![msedge_8PkQYJ0l5b](https://user-images.githubusercontent.com/4870800/82425729-39d8e680-9a87-11ea-8bec-b8e136ac85a3.png)
adam added the status: duplicate label 2025-12-29 18:30:43 +01:00
adam closed this issue 2025-12-29 18:30:43 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 20, 2020):

Duplicate of #4649

@jeremystretch commented on GitHub (May 20, 2020): Duplicate of #4649
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#3711