Netbox: 2.5.12
python: 3.5.2
I'm having a hard time trying to figure out if it is still possible to do a bulk updates of cable connections (server -> server; network device -> network device; server -> network device cabling)?
Previously, with Netbox versions < 2.5.* I was able to do take my cable cut sheet, run a python script on it to spit out cable run CSVs for power, console, and interface cabling and import those connections via the webUI.
While I understand that the input method I used to use is currently obsolete, I'm not sure what I can replace it with. I'm even having problems adding individual cable runs to Netbox via the API or at least I'm not sure why this is currently failing:
curl -k -H "Authorization: Token <...> " -H "Accept: application/json; indent=4" https://<FQDN>/api/dcim/cables/ --data '{ "termination_a_type": "dcim.interface", "termination_a_id": "177341", "termination_b_type": "dcim.interface", "termination_b_id": "179578"}'
Which produces the following response:
{
"termination_a_type": [
"This field is required."
],
"termination_a_id": [
"This field is required."
],
"termination_b_id": [
"This field is required."
],
"termination_b_type": [
"This field is required."
]
}
Is anyone actively doing bulk cabling updates for server / network gear connections? Which method works for you?
Thanks,
David