When calling api/dcim/interface-connections with corresponding interface IDs there appears an error about the interface not belonging to a device or virtualmachine:
The request failed with code 400 Bad Request: {'non_field_errors': ['An interface must belong to either a device or a virtual machine.']}
curl -X POST -H "Authorization: Token <token>" -H "Content-Type: application/json" -d '{"interface_a": <iface_a>, "interface_b": <iface_b>, "connection_status": true}' https://netbox.dev.test.net/api/dcim/interface-connections/
The connection should be created as in Netbox 2.4.9
The request failed with code 400 Bad Request: {'non_field_errors': ['An interface must belong to either a device or a virtual machine.']}
The /dcim/interface-connections endpoint is now read-only. All connections are now created via the /dcim/cables/ endpoint. Marking this as a bug because the endpoint shouldn't accept a POST request at all.
Thx, I didn't find any hint about this change in the release notes. Might be worth adding that so people can adjust their scripts :).
Introduced a new API endpoint for cables at /dcim/cables/
Because this hint didn't say it obsoletes /dcim/interface-connections for writing.
Most helpful comment
The
/dcim/interface-connectionsendpoint is now read-only. All connections are now created via the/dcim/cables/endpoint. Marking this as a bug because the endpoint shouldn't accept a POST request at all.