Add floating IP qos_policy actions

Now we can associate a qos policy to the floating IP, and
dissociate it. The commands are:

  $ openstack floating ip create --qos-policy ...
  $ openstack floating ip set --qos-policy ...
  $ openstack floating ip set --no-qos-policy ...
  $ openstack floating ip unset --qos-policy

These commands are based on the neutron change:
I4efe9e49d268dffeb3df4de4ea1780152218633b

Partially-Implements blueprint: floating-ip-rate-limit

Change-Id: I932b32f78cc5a2b53926feaec1a0b392cf7e8b57
This commit is contained in:
LIU Yulong
2017-11-05 12:05:09 +08:00
committed by Dean Troyer
parent b13a323128
commit cf91d7a2f4
5 changed files with 201 additions and 3 deletions
doc/source/cli/command-objects
openstackclient
releasenotes/notes

@ -18,6 +18,7 @@ Create floating IP
[--floating-ip-address <ip-address>]
[--fixed-ip-address <ip-address>]
[--description <description>]
[--qos-policy <qos-policy>]
[--project <project> [--project-domain <project-domain>]]
<network>
@ -46,6 +47,12 @@ Create floating IP
Set floating IP description
*Network version 2 only*
.. option:: --qos-policy <qos-policy>
QoS policy to attach to the floating IP (name or ID)
*Network version 2 only*
.. option:: --project <project>
Owner's project (name or ID)
@ -154,6 +161,7 @@ Set floating IP properties
openstack floating ip set
--port <port>
[--fixed-ip-address <ip-address>]
[--qos-policy <qos-policy> | --no-qos-policy]
<floating-ip>
.. option:: --port <port>
@ -164,6 +172,14 @@ Set floating IP properties
Fixed IP of the port (required only if port has multiple IPs)
.. option:: --qos-policy <qos-policy>
Attach QoS policy to the floating IP (name or ID)
.. option:: --no-qos-policy
Remove the QoS policy attached to the floating IP
.. _floating_ip_set-floating-ip:
.. describe:: <floating-ip>
@ -193,12 +209,17 @@ Unset floating IP Properties
openstack floating ip unset
--port
--qos-policy
<floating-ip>
.. option:: --port
Disassociate any port associated with the floating IP
.. option:: --qos-policy
Remove the QoS policy attached to the floating IP
.. _floating_ip_unset-floating-ip:
.. describe:: <floating-ip>