Browse Source

Fix incorrect statement in inline neutronv2 docs

The function doc header for network/neutron/v2/api.py _create_port()
states that it accepts an optional set of MAC addresses to use.

However, it only uses one, which is selected by pop().

This commit merely changes the doc string to indicate that the function
operates on only a single MAC address, not on the whole set.

Change-Id: I0fc845572836b6a6773cc7beaeefd7b0d1cfd5e7
Related-bug: #1405131
tags/2015.1.0rc1
Devananda van der Veen 5 years ago
parent
commit
87cc3928c4
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      nova/network/neutronv2/api.py

+ 2
- 1
nova/network/neutronv2/api.py View File

@@ -276,7 +276,8 @@ class API(base_api.NetworkAPI):
:param fixed_ip: Optional fixed IP to use from the given network.
:param security_group_ids: Optional list of security group IDs to
apply to the port.
:param available_macs: Optional set of available MAC addresses to use.
:param available_macs: Optional set of available MAC addresses,
from which one will be used at random.
:param dhcp_opts: Optional DHCP options.
:returns: ID of the created port.
:raises PortLimitExceeded: If neutron fails with an OverQuota error.


Loading…
Cancel
Save