From 16be46672f8daab5d4edc30bc6cc7a67768765b8 Mon Sep 17 00:00:00 2001 From: Rupak Ganguly Date: Tue, 26 Mar 2013 14:22:36 -0400 Subject: [PATCH] [hp|network] Update create_port to add security groups. --- lib/fog/hp/requests/network/create_port.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/fog/hp/requests/network/create_port.rb b/lib/fog/hp/requests/network/create_port.rb index fe367a451..a208f3bc7 100644 --- a/lib/fog/hp/requests/network/create_port.rb +++ b/lib/fog/hp/requests/network/create_port.rb @@ -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]