Skip to content

Cannot set Primary IP for VM when Importing IP with CSV #15502

Closed
@Pythbit

Description

@Pythbit

Deployment Type

Self-hosted

NetBox Version

v3.7.4

Python Version

3.8

Steps to Reproduce

  1. Attempt to assign an IP to a VM interface by importing it in CSV format, as an example on the online demo:
address,id,virtual_machine,interface,is_primary,status
172.16.0.3/24,33,vm6,eth0,true,active

Into IP Addresses > Import > Direct Import
2. Receive the following error:

<class 'KeyError'>

'device'

Python version: 3.8.10
NetBox version: 3.7.4
Plugins: 
  netbox_demo: 0.3.1

Expected Behavior

The IP Address to be updated and assigned to the interface on that VM, as well as set as the primary IP. The GUI lists the Primary IP checkbox as being for both devices and VMs, and there is no other listed import field specifically for VMs.

Observed Behavior

Returned a KeyError about missing the "device" field.

Metadata

Metadata

Assignees

Labels

severity: mediumResults in substantial degraded or broken functionality for specfic workflowsstatus: acceptedThis issue has been accepted for implementationtype: bugA confirmed report of unexpected behavior in the application

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions