-
I am having bonding on device A with multiple interfaces on device B, if I try to make cable connections am getting error like Device A interface is already connected, how to fix this? I tried to alter csv like below as well, doesn't help We have option in GUI to add multiple interfaces but through API its failing |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
CSV != API You can search in the previous discussions, but from memory, CSV doesn't support multiple terminations, but the REST API does. |
Beta Was this translation helpful? Give feedback.
-
Am using API only, just reading the content from CSV response=$(curl -s -H "Authorization: Token $NETBOX_API_TOKEN" -H "Content-Type: application/json" -X POST -d '{
|
Beta Was this translation helpful? Give feedback.
Finally found the API commands to add multiple interfaces from termination B to termination A
curl -v -H "Authorization: Token $TOKEN" -H "Content-Type: application/json" -X POST -d ' {
"a_terminations": [
{
"object_type": "dcim.interface",
"object_id": 60,
"object": {
"device": {
"name": "device2.site1.bitgravity.com"
},
"name": "eth1"
}
}
],
"b_terminations": [
{
"object_type": "dcim.interface",
"object_id": 58,
"object": {
"device": {