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

unable to create a mac-address linked to a virtual machine interface via api #18201

Open
leelists opened this issue Dec 10, 2024 · 1 comment
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: revisions needed This issue requires additional information to be actionable type: bug A confirmed report of unexpected behavior in the application

Comments

@leelists
Copy link

Deployment Type

Self-hosted

Triage priority

N/A

NetBox Version

v4.1.7

Python Version

3.12

Steps to Reproduce

POST to http://netbox:8000/api//dcim/mac-addresses/
with body :
{
"assigned_object_id" : 9,
"assigned_object_type" : "virtualization.vminterface",
"mac_address" : "BC:24:11:10:2E:1F"
}

returns {"assigned_object_id":["This field cannot be null."]}

the same action via the gui works :

tags: []
comments: ""
description: ""
mac_address: "BC:24:11:10:2E:1F"
custom_fields: {}
assigned_object_id: 9
assigned_object_type: 127

Expected Behavior

linking mac adresse to virtual interface should work via api

Observed Behavior

{"assigned_object_id":["This field cannot be null."]}

@leelists leelists added status: needs triage This issue is awaiting triage by a maintainer type: bug A confirmed report of unexpected behavior in the application labels Dec 10, 2024
@jeremystretch jeremystretch added beta Concerns a bug/feature in a beta release and removed beta Concerns a bug/feature in a beta release labels Dec 10, 2024
@bctiemann
Copy link
Contributor

@leelists This will likely change behavior in v4.2 as MAC addresses are now handled as discrete objects in the schema rather than fields on interfaces. Could you please revisit this after 4.2 is available (or in the beta)?

@bctiemann bctiemann added status: revisions needed This issue requires additional information to be actionable severity: low Does not significantly disrupt application functionality, or a workaround is available and removed status: needs triage This issue is awaiting triage by a maintainer labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
severity: low Does not significantly disrupt application functionality, or a workaround is available status: revisions needed This issue requires additional information to be actionable type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

3 participants