class Hpe3parSdk::Port

Attributes

device[RW]
type - Arry of string

Array of device name (cage0, host1, etc.) of the device connected to the port.

enode_macaddr[RW]
type - String

Ethernet node MAC address.

failover_state[RW]
type - Hpe3parSdk::PortFailOverState

The state of the failover operation, shown for the two ports indicated in the N:S:P and Partner columns.

hwaddr[RW]
type - String

Hardware address for RCIP and iSCSI ports. Not included in JSON for other ports.

ip_addr[RW]
type - String

For RCIP and iSCSI ports only; not included in the JSON object for other ports.

iscsi_name[RW]
type - String

For iSCSI port only; not included in the JSON object for other ports.

iscsi_portinfo[RW]
type - ISCSIPortInfo

Contains information related to iSCSI port properties.

label[RW]
type - String

Configurable, human-readable label identifying the HBA port. Maximum length is 15 characters.

linkState[RW]
type - Hpe3parSdk::PortLinkState

port link state.

mode[RW]
type - Hpe3parSdk::PortMode

port mode.

nodewwn[RW]
type - String

Node WWN that is unique across all ports.

partner_pos[RW]
type - PortPos

Location of failover partner port in <Node><Slot><Port> format.

pfcmask[RW]
type - String

PFC mask.

port_pos[RW]
type - PortPos

port n:s:p.

portwwn[RW]
type - String

port WWN for FCoE and FC ports. Not included in JSON for other ports.

protocol[RW]
type - Hpe3parSdk::PortProtocol

Indicates the port protocol type.

type[RW]
type - Hpe3parSdk::PortConnType

port connection type.

Public Class Methods

new(object_hash) click to toggle source
# File lib/Hpe3parSdk/models.rb, line 925
def initialize(object_hash)
  if object_hash == nil
    return
  end
  !object_hash['portPos'].nil? ? self.port_pos = PortPos.new(object_hash['portPos']) : self.port_pos = nil

  self.mode = object_hash['mode']

  self.linkState = object_hash['linkState']

  self.nodewwn = object_hash['nodeWWN']

  self.portwwn = object_hash['portWWN']

  self.type = object_hash['type']

  self.hwaddr = object_hash['HWAddr']

  self.protocol = object_hash['protocol']

  self.label = object_hash['label']

  self.device = object_hash['device']

  !object_hash['partnerPos'].nil? ? self.partner_pos = PortPos.new(object_hash['partnerPos']) : self.partner_pos = nil

  self.failover_state = object_hash['failoverState']

  self.ip_addr = object_hash['IPAddr']

  self.iscsi_name = object_hash['iSCSIName']

  self.enode_macaddr = object_hash['enodeMACAddr']

  self.pfcmask = object_hash['pfcMask']

  !object_hash['iSCSIPortInfo'].nil? ? self.iscsi_portinfo = ISCSIPortInfo.new(object_hash['iSCSIPortInfo']) : self.iscsi_portinfo = nil

end