Closed flowdnb closed 6 years ago
curl -vvv -X POST \ -H "Authorization: Token $MY_TOKEN" \ -H "Content-Type: application/json" \ -H "Accept: application/json; indent=4" \ http://$MY_NETBOX/api/dcim/interface-connections/ \ --data '{ "interface_a": 7907, "interface_b": 1079, "connection_status": true }'
I tried same it worked for me. I am using netbox 2.4.3.
It worked after I migrated to Python3.
For anyone else encountering this, migrating to Python3 fixed it via coincidence/luck. It's the djangorestframework version: https://github.com/digitalocean/netbox/issues/2527
Error exceptions.TypeError 'Interface' object is not iterable when trying to connect interfaces via api.
Environment
Steps to Reproduce
id of interface_a exists:
id of interface_b exists:
Expected Behavior
The interfaces would be connnected.
Observed Behavior
Response:
Exception: