Enable to specify which fixed-ip to add to a vm.

This change enables to specify which fixed-ip will be added to a vm using:

 openstack server add fixed ip <vm> <network> --fixed-ip-address <ip>

This change uses interface_attach instead of add_fixed_ip[1] which is
less flexible and uses a deprecated API.

[1] https://review.openstack.org/384261

Closes-Bug: #1678140
Change-Id: I7fe4621439ef0d8dca080551ffaeb614c5a91174
This commit is contained in:
Cedric Brandily
2017-03-31 16:53:20 +02:00
committed by Dean Troyer
parent c7e7f2b730
commit 7f9814860a
4 changed files with 32 additions and 7 deletions
doc/source/command-objects
openstackclient
compute
tests
unit
releasenotes/notes

@ -13,9 +13,14 @@ Add fixed IP address to server
.. code:: bash
openstack server add fixed ip
[--fixed-ip-address <ip-address>]
<server>
<network>
.. option:: --fixed-ip-address <ip-address>
Requested fixed IP address
.. describe:: <server>
Server to receive the fixed IP address (name or ID)