Method: OneviewSDK::LogicalInterconnect#generate_trap_options

Defined in:
lib/oneview-sdk/resource/logical_interconnect.rb

#generate_trap_options(enet_trap_categories = [], fc_trap_categories = [], vcm_trap_categories = [], trap_severities = []) ⇒ Hash

Generates trap options to be used in add_snmp_trap_destination method

Parameters:

  • enet_trap_categories (Array) (defaults to: [])

    Filter the traps for this trap destination by the list of configured Ethernet traps can contain, ‘’Other’‘ or `’PortStatus’‘ or `’PortThresholds’‘

  • fc_trap_categories (Array) (defaults to: [])

    Filter the traps for this trap destination by the list of configured Fibre Channel traps can contain, ‘’Other’‘ or `’PortStatus’‘

  • vcm_trap_categories (Array) (defaults to: [])

    Filter the traps for this trap destination by the list of configured VCM trap, ‘’Legacy’‘

  • trap_severities (Array) (defaults to: [])

    Filter the traps for this trap destination by the list of configured severities can contain, ‘’Critical’‘ or `’Info’‘ or `’Major’‘ or `’Minor’‘ or `’Normal’‘ or `’Unknown’‘ or `’Warning’‘

Returns:

  • (Hash)

    Contains all trap options for one SNMP destination



211
212
213
214
215
216
217
218
219
# File 'lib/oneview-sdk/resource/logical_interconnect.rb', line 211

def generate_trap_options(enet_trap_categories = [], fc_trap_categories = [], vcm_trap_categories = [], trap_severities = [])
  options = {
    'enetTrapCategories' => enet_trap_categories,
    'vcmTrapCategories' => vcm_trap_categories,
    'fcTrapCategories' => fc_trap_categories,
    'trapSeverities' => trap_severities
  }
  options
end