How do update node IP addresses?

I set up a cluster recently with the default public IPs for all nodes. Our IT has since helped set up a private network connecting all nodes. What is the best way to update the IP addresses for all nodes to new private IP addresses?

I created a simple script to do this. It 99% percent works except for gadmin config command. Here is the script in case it helps other.

Changing IPs via gadmin config command is not gonna cut it. Spent the whole morning trying to get all services to use the new IPs and failed. Picked the wrong battle :sweat_smile: . Had to nuke the entire installation and start from sratch.