Tang Chen d1f9ea3f75 Transfer "ip floating add/remove" to "server add/remove
floating ip"

This patch does the following things to transfer
"ip floating add/remove" to "server add/remove floating ip":
* Add new command "server add/remove floating ip", and unit
  tests and doc.
* Deprecate "ip floating add/remove" command.

compute/v2/floatingip.py is not removed because the arguments'
positions are different between the new and old commands.
* ip floating add <ip-address> <server>
  server add floating ip <server> <ip-address>
* ip floating remove <ip-address> <server>
  server remove floating ip <server> <ip-address>

Change-Id: Ic0dd22ca6fb7b7bc3e820fd5a14d7c551e7ab963
Implements: blueprint rework-ip-commands
Partial-bug: 1555990
Co-Authored-By: Dean Troyer <dtroyer@gmail.com>
2016-07-04 10:40:59 +08:00

2.3 KiB

ip floating

Compute v2, Network v2

ip floating add

Add floating IP address to server (Deprecated, please use server add floating ip instead)

ip floating add

os ip floating add
    <ip-address>
    <server>

<ip-address>

IP address to add to server (name only)

<server>

Server to receive the IP address (name or ID)

ip floating create

Create new floating IP address

ip floating create

os ip floating create
    [--subnet <subnet>]
    [--port <port>]
    [--floating-ip-address <floating-ip-address>]
    [--fixed-ip-address <fixed-ip-address>]
    <network>

--subnet <subnet>

Subnet on which you want to create the floating IP (name or ID) (Network v2 only)

--port <port>

Port to be associated with the floating IP (name or ID) (Network v2 only)

--floating-ip-address <floating-ip-address>

Floating IP address (Network v2 only)

--fixed-ip-address <fixed-ip-address>

Fixed IP address mapped to the floating IP (Network v2 only)

<network>

Network to allocate floating IP from (name or ID)

ip floating delete

Delete floating IP(s)

ip floating delete

os ip floating delete
    <floating-ip> [<floating-ip> ...]

<floating-ip>

Floating IP(s) to delete (IP address or ID)

ip floating list

List floating IP addresses

ip floating list

os ip floating list

ip floating remove

Remove floating IP address from server (Deprecated, please use server remove floating ip instead)

ip floating remove

os ip floating remove
    <ip-address>
    <server>

<ip-address>

IP address to remove from server (name only)

<server>

Server to remove the IP address from (name or ID)

ip floating show

Display floating IP details

ip floating show

os ip floating show <floating-ip>

<floating-ip>

Floating IP to display (IP address or ID)