Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Pythbit opened this issue Mar 21, 2024 · 1 comment · Fixed by #15508
Closed

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

Pythbit opened this issue Mar 21, 2024 · 1 comment · Fixed by #15508
Assignees
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application

Comments

@Pythbit
Copy link

Pythbit commented Mar 21, 2024

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.

@Pythbit Pythbit added the type: bug A confirmed report of unexpected behavior in the application label Mar 21, 2024
@DanSheps DanSheps added status: accepted This issue has been accepted for implementation severity: medium Results in substantial degraded or broken functionality for specfic workflows labels Mar 22, 2024
@DanSheps DanSheps self-assigned this Mar 22, 2024
@Pythbit
Copy link
Author

Pythbit commented Apr 3, 2024

Hi,

Thanks for getting a PR open on this. Since it seems to be taking some time to get reviewed, I'm wondering if there are any workarounds to this? Just to get primaries assigned in bulk.

jeremystretch added a commit that referenced this issue Apr 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
severity: medium Results in substantial degraded or broken functionality for specfic workflows status: accepted This issue has been accepted for implementation type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants