ezgh compute network-interfaces private-addresses reassign <interface> <address> --to <interface> [--wait] [flags]Move a secondary private address from a network interface to another (--to: ID, UUID or name) in the same subnet, for failover, while both instances run if need be. The old owner’s permission is withdrawn everywhere before the new one gets the address; established connections don’t move with it. It prints the operation; --wait waits until it has succeeded, which means the hosts have it, not that the guest’s application is ready. A primary address can’t be moved.
Part of ezgh compute network-interfaces private-addresses.
Examples
ezgh compute network-interfaces private-addresses reassign db-a 10.0.1.50 --to db-b --waitFlags
| Flag | Type | Default | Description |
|---|---|---|---|
--to |
string | the network interface to move it to (ID, UUID or name) | |
--wait |
boolean | wait until the operation has succeeded, and print it then | |
--wait-timeout |
duration | 10m0s |
how long --wait waits |
This command also takes the global flags.