This quick code is used to swap a scaleway ip between two servers. I'm using it mixed with keepalived and kubernetes to have an HA ingress-controller Change the keepalive notify script and add a call to this python script in it
scaleway-ipmove.py token servername1 servername2 ipaddr reverse_ipaddr