Skip to content

Commit

Permalink
Fixes #3036: DCIM interfaces API endpoint should not include VM inter…
Browse files Browse the repository at this point in the history
…faces
  • Loading branch information
jeremystretch committed Apr 4, 2019
1 parent 858be6d commit 74c03e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ v2.5.10 (FUTURE)

## Bug Fixes

* [#3036](https://github.com/digitalocean/netbox/issues/3036) - DCIM interfaces API endpoint should not include VM interfaces
* [#3039](https://github.com/digitalocean/netbox/issues/3039) - Fix exception when retrieving change object for a component template via API
* [#3041](https://github.com/digitalocean/netbox/issues/3041) - Fix form widget for bulk cable label update

Expand Down
4 changes: 3 additions & 1 deletion netbox/dcim/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -419,7 +419,9 @@ class PowerOutletViewSet(CableTraceMixin, ModelViewSet):


class InterfaceViewSet(CableTraceMixin, ModelViewSet):
queryset = Interface.objects.select_related(
queryset = Interface.objects.filter(
device__isnull=False
).select_related(
'device', '_connected_interface', '_connected_circuittermination', 'cable'
).prefetch_related(
'ip_addresses', 'tags'
Expand Down

0 comments on commit 74c03e3

Please sign in to comment.