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

form factor required for virtual interfaces #1554

Closed
hamishforbes opened this issue Oct 3, 2017 · 0 comments
Closed

form factor required for virtual interfaces #1554

hamishforbes opened this issue Oct 3, 2017 · 0 comments
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@hamishforbes
Copy link

Issue type

[ ] Feature request
[x] Bug report
[ ] Documentation

Environment

  • Python version: 2.7.5
  • NetBox version: 2.2-beta2

Description

Attempting to add an interface to a VM via the API fails if you don't specify the form_factor field.

The docs say the form_factor field is optional for POST /virtualization/interfaces/.
However unless that field is set to 0 or 200 (the Virtual type interfaces) an error is returned:

{
  "non_field_errors": [
    "Virtual machines cannot have physical interfaces."
  ]
}

This should probably default to 0?

@jeremystretch jeremystretch added beta type: bug A confirmed report of unexpected behavior in the application labels Oct 6, 2017
jeremystretch added a commit that referenced this issue Oct 9, 2017
lampwins pushed a commit to lampwins/netbox that referenced this issue Oct 13, 2017
…an interface assigned to a virtual machine
@lock lock bot locked as resolved and limited conversation to collaborators Jan 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: bug A confirmed report of unexpected behavior in the application
Projects
None yet
Development

No branches or pull requests

2 participants