-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bulk Import Circuit and Terminations #11469
Comments
This is being addressed under #11204. You're welcome to volunteer to own that issue if interested. |
But to confirm, this should work? We are just lacking the documentation? |
Correct; this was added in NetBox v3.4.0 under #815. You can specify a list of terminations under the |
Hello, upgraded netbox from 3.3.5 -> 3.4.5 to get functionality of bulk circuit import with terminations. However, attribute is not show in Field Options: Circuits > Circuits > Import > Circuit Bulk Import > Upload file. When I try to use csv file: cid,provider,type,status,commit_rate,terminations I get an error: Am I missing something? Thanks. |
@pehan-dotcom: As far as I know, this only works with JSON/YAML import (or if it did work for CSV, the "terminations" column would have to be structured data) @aslater3: After some experimentation, I believe the following should work for you:
where "Blah" is the name of the provider network with id 1; using Note that currently if there is any error in the termination definitions, no error message is displayed and Netbox just returns to the import page - see #12402.
That's because "termination_a" and "termination_z" are ignored, presumably as invalid attributes. (This is different to the REST API, which still does return "termination_a" and "termination_z") |
NetBox version
3.4.2
Python version
3.8
Steps to Reproduce
Click Circuits
Click bulk import
The fields for termination_a/z dont appear on the CSV / Field Options on that page
Can't find any documentation around the JSON import functionality for terminations.
Expected Behavior
{
"cid": "ID-TEST",
"provider": "Lumen",
"type": "DIA",
"commit_rate": 200000,
"status":"decommissioned",
"description": "Testing Import",
"termination_a": {
"site": {
"name": "Test Site",
"slug": "test-bed"
},
"termination_z": {
"provider_network": {
"id": 1}
}
}
}
Should import circuit with relevant terminations?
Observed Behavior
Imports the circuit but no terminations are added.
The text was updated successfully, but these errors were encountered: