DCIM interfaces API endpoint returns VM interfaces #3036
Labels
status: accepted
This issue has been accepted for implementation
type: bug
A confirmed report of unexpected behavior in the application
Environment
Steps to Reproduce
Expected Behavior
The API returns the virtual-machine with the corresponding data, just like it does for a device if a returned interface belongs to a device.
Observed Behavior
There is no reference to a virtual-machine returned. Instead the interface is returned with a "device: null" entry.
Background
I realized this when I gathered up all interfaces via the API, keeping track of the devices: surprisingly I encountered multiple interfaces with the same name on the same "device", then realized they all belonged to the device "null". I realized, ok, no devices, these are virtual machines - but no virtual-machine data is returned.
In fact, this may even be deeper buried: "device" is a required field when doing a POST for an interface (see api_dcim_interfaces_create in api/docs/) . No way to specify a virtual machine instead, which should be there.
The text was updated successfully, but these errors were encountered: