Bulk move of primary IP between devices #20854
Unanswered
whtkam
asked this question in
Help Wanted!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I’m running into an issue while trying to bulk-move IPs from old servers to new ones as part of a hardware replacement.
All of these addresses were originally primary on the old devices. In my workflow, I first set the is_primary flag on the IP addresses to false and then update the interface assignment so that the IPs are attached to the interfaces on the new devices.
What I’ve noticed is that, from the device perspective, the old devices still reference these addresses as their Primary IP. However, from the IP address perspective, the same addresses no longer have the is_primary flag set. So the device view and the IP view are no longer consistent after manipulating things via CSV import.
In the GUI, I don’t see any bulk option to clear or update the Primary IP assignment on the devices themselves. To work around this, I wrote a script using the REST API to remove the old primary IP references from the devices.
My question is:
Is my workflow fundamentally wrong, or is this how it’s supposed to work? How is the Primary IP relationship between devices and IP addresses intended to be handled, especially when doing bulk changes or CSV imports?
Any guidance would be greatly appreciated. Thank you!
Beta Was this translation helpful? Give feedback.
All reactions