-
Notifications
You must be signed in to change notification settings - Fork 263
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
Re-introduce Interface Assignment in Bulk Create of IPAddress #4103
Comments
Let's see the feasibility for 2.0, or at the very least capture it's a loss of functionality for the time being |
Going to pivot to solve M2M Association via Composite Key (#3794, #3976)Instead of
Have
M2Ms in CSVsDoesn't exist today, suggestion: comma separated in field, like tags
GFKs/Intermediaries in CSVs
|
@lampwins Would it be sufficient to have the assignment of IPAddress to Interfaces be a separate CSV because solving the M2M in a single file with natural keys as complex as Interface being collapsed into a single row for IPAddress is not ideal:
Limited to just one assignment could be made but you would have further enumeration validation problems due to #1178 (note the required property of "Status" which would prevent multiple records in the same file)
If at least it's a separate import, you solve the single assignment and multiple assignments with the same code path and would look something like: (note the omission of properties like Status):
Option 1: Single file, single row IP Address create, M2M via enumerated columnsI can bulk create IPAddresses and create as many associations to Interfaces as I desire. Ex:
Estimated 4 story points. Option 2: Single file, single row IP Address create, single assignmentI can bulk create IPAddresses and create one association to Interface per IPAddress create Ex:
Estimated 4 story points. Option 3: Multiple files, single row IP Address create, multiple assignmentsI can bulk create IPAddresses and bulk create associations to Interfaces but must be performed in two steps with two files Step 1: Create IPs
Step 2: Create Associations (assuming Interfaces already created as the original story assumed)
Estimated 2 story points: It's essentially a bulk endpoint for #4249 which may "just work" with #3794 |
We are going to go with Option 3 above as it's the most straight forward path for now. Options 1 & 2 require some design work and may prove unweildy done in a generic way. |
Context: https://github.com/nautobot/nautobot/pull/3399/files#diff-48a1dfee0e6f7a73ae949d499187baf763bb0dc10bf3a40b99b462cc90211db6L687-L705
This was affected by M2M change of IP Address and Interface and the CSV changes in 2.0
See Option 3 here: #4103 (comment)
The text was updated successfully, but these errors were encountered: