class OneviewSDK::API2400::C7000::LogicalInterconnect
Logical interconnect resource implementation for API2400
C7000
Public Instance Methods
update_port_flap_settings()
click to toggle source
Updates the port flap interconnect settings for the logical interconnect
# File lib/oneview-sdk/resource/api2400/c7000/logical_interconnect.rb, line 20 def update_port_flap_settings raise IncompleteResource, 'Please retrieve the Logical Interconnect before trying to update' unless @data['portFlapProtection'] update_options = { 'If-Match' => @data['portFlapProtection'].delete('eTag'), 'body' => @data['portFlapProtection'] } response = @client.rest_put("#{@data['uri']}/portFlapSettings", update_options, @api_version) body = @client.response_handler(response) set_all(body) end