mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[hp|network] Update create_port to add security groups.
This commit is contained in:
parent
5e771aece5
commit
16be46672f
1 changed files with 2 additions and 1 deletions
|
@ -17,6 +17,7 @@ module Fog
|
|||
# * 'ip_address'<~String>: - IP address
|
||||
# * 'device_id'<~String>: - Id of the device
|
||||
# * 'device_owner'<~String>: - Device owner of the port i.e. "network:dhcp"
|
||||
# * 'security_groups'<~Array>: - Security Groups
|
||||
#
|
||||
# ==== Returns
|
||||
# * response<~Excon::Response>:
|
||||
|
@ -43,7 +44,7 @@ module Fog
|
|||
}
|
||||
}
|
||||
|
||||
l_options = [:name, :mac_address, :fixed_ips,
|
||||
l_options = [:name, :mac_address, :fixed_ips, :security_groups,
|
||||
:device_id, :device_owner, :admin_state_up, :tenant_id]
|
||||
l_options.select{|o| options[o]}.each do |key|
|
||||
data['port'][key] = options[key]
|
||||
|
|
Loading…
Reference in a new issue