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

Virtual machine primary IPs are not nested in the API serializer #1699

Closed
jeremystretch opened this issue Nov 9, 2017 · 0 comments
Closed
Labels
type: bug A confirmed report of unexpected behavior in the application

Comments

@jeremystretch
Copy link
Member

Issue type

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

Environment

  • Python version: 3.5.2
  • NetBox version: 2.2.4

Description

This issue was initially raised by Thomas W. on the mailing list.

When retrieving a device via the API, its primary_ip4 and primary_ip6 fields are extended to include nested representations of and links to their respective IP addresses (if assigned). However, the virtual machine serializer includes only the numeric primary key of the IP address.

Additionally, the primary_ip field, which replicates either the primary_ip4 or primary_ip field depending on how NetBox is configured, is absent.

@jeremystretch jeremystretch added API change type: bug A confirmed report of unexpected behavior in the application labels Nov 9, 2017
@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

1 participant