# File lib/fog/openstack/requests/network/update_port.rb, line 25 def update_port(port_id, options = {}) response = Excon::Response.new if port = list_ports.body['ports'].detect { |_| _['id'] == port_id } port['name'] = options[:name] port['fixed_ips'] = options[:fixed_ips] port['admin_state_up'] = options[:admin_state_up] port['device_owner'] = options[:device_owner] port['device_id'] = options[:device_id] response.body = { 'port' => port } response.status = 200 response else raise Fog::Network::OpenStack::NotFound end end