Class: Hpe3parSdk::Port
- Inherits:
-
Object
- Object
- Hpe3parSdk::Port
- Defined in:
- lib/Hpe3parSdk/models.rb
Instance Attribute Summary collapse
-
#device ⇒ Object
- type - Arry of string
-
Array of device name (cage0, host1, etc.) of the device connected to the port.
-
#enode_macaddr ⇒ Object
- type - String
-
Ethernet node MAC address.
-
#failover_state ⇒ Object
- type - Hpe3parSdk::PortFailOverState
-
The state of the failover operation, shown for the two ports indicated in the N:S:P and Partner columns.
-
#hwaddr ⇒ Object
- type - String
-
Hardware address for RCIP and iSCSI ports.
-
#ip_addr ⇒ Object
- type - String
-
For RCIP and iSCSI ports only; not included in the JSON object for other ports.
-
#iscsi_name ⇒ Object
- type - String
-
For iSCSI port only; not included in the JSON object for other ports.
-
#iscsi_portinfo ⇒ Object
- type - ISCSIPortInfo
-
Contains information related to iSCSI port properties.
-
#label ⇒ Object
- type - String
-
Configurable, human-readable label identifying the HBA port.
-
#linkState ⇒ Object
- type - Hpe3parSdk::PortLinkState
-
port link state.
-
#mode ⇒ Object
- type - Hpe3parSdk::PortMode
-
port mode.
-
#nodewwn ⇒ Object
- type - String
-
Node WWN that is unique across all ports.
-
#partner_pos ⇒ Object
- type - PortPos
-
Location of failover partner port in <Node><Slot><Port> format.
-
#pfcmask ⇒ Object
- type - String
-
PFC mask.
-
#port_pos ⇒ Object
- type - PortPos
-
port n:s:p.
-
#portwwn ⇒ Object
- type - String
-
port WWN for FCoE and FC ports.
-
#protocol ⇒ Object
- type - Hpe3parSdk::PortProtocol
-
Indicates the port protocol type.
-
#type ⇒ Object
- type - Hpe3parSdk::PortConnType
-
port connection type.
Instance Method Summary collapse
-
#initialize(object_hash) ⇒ Port
constructor
A new instance of Port.
Constructor Details
#initialize(object_hash) ⇒ Port
Returns a new instance of Port.
925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 |
# 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 |
Instance Attribute Details
#device ⇒ Object
- type - Arry of string
-
Array of device name (cage0, host1, etc.) of the device connected to the port.
895 896 897 |
# File 'lib/Hpe3parSdk/models.rb', line 895 def device @device end |
#enode_macaddr ⇒ Object
- type - String
-
Ethernet node MAC address.
915 916 917 |
# File 'lib/Hpe3parSdk/models.rb', line 915 def enode_macaddr @enode_macaddr end |
#failover_state ⇒ Object
- type - Hpe3parSdk::PortFailOverState
-
The state of the failover operation, shown for the two ports indicated in the N:S:P and Partner columns.
903 904 905 |
# File 'lib/Hpe3parSdk/models.rb', line 903 def failover_state @failover_state end |
#hwaddr ⇒ Object
- type - String
-
Hardware address for RCIP and iSCSI ports. Not included in JSON for other ports.
883 884 885 |
# File 'lib/Hpe3parSdk/models.rb', line 883 def hwaddr @hwaddr end |
#ip_addr ⇒ Object
- type - String
-
For RCIP and iSCSI ports only; not included in the JSON object for other ports.
907 908 909 |
# File 'lib/Hpe3parSdk/models.rb', line 907 def ip_addr @ip_addr end |
#iscsi_name ⇒ Object
- type - String
-
For iSCSI port only; not included in the JSON object for other ports.
911 912 913 |
# File 'lib/Hpe3parSdk/models.rb', line 911 def iscsi_name @iscsi_name end |
#iscsi_portinfo ⇒ Object
- type - ISCSIPortInfo
-
Contains information related to iSCSI port properties.
923 924 925 |
# File 'lib/Hpe3parSdk/models.rb', line 923 def iscsi_portinfo @iscsi_portinfo end |
#label ⇒ Object
- type - String
-
Configurable, human-readable label identifying the HBA port. Maximum length is 15 characters.
891 892 893 |
# File 'lib/Hpe3parSdk/models.rb', line 891 def label @label end |
#linkState ⇒ Object
- type - Hpe3parSdk::PortLinkState
-
port link state.
867 868 869 |
# File 'lib/Hpe3parSdk/models.rb', line 867 def linkState @linkState end |
#mode ⇒ Object
- type - Hpe3parSdk::PortMode
-
port mode.
863 864 865 |
# File 'lib/Hpe3parSdk/models.rb', line 863 def mode @mode end |
#nodewwn ⇒ Object
- type - String
-
Node WWN that is unique across all ports.
871 872 873 |
# File 'lib/Hpe3parSdk/models.rb', line 871 def nodewwn @nodewwn end |
#partner_pos ⇒ Object
- type - PortPos
-
Location of failover partner port in <Node><Slot><Port> format.
899 900 901 |
# File 'lib/Hpe3parSdk/models.rb', line 899 def partner_pos @partner_pos end |
#pfcmask ⇒ Object
- type - String
-
PFC mask.
919 920 921 |
# File 'lib/Hpe3parSdk/models.rb', line 919 def pfcmask @pfcmask end |
#port_pos ⇒ Object
- type - PortPos
-
port n:s:p.
859 860 861 |
# File 'lib/Hpe3parSdk/models.rb', line 859 def port_pos @port_pos end |
#portwwn ⇒ Object
- type - String
-
port WWN for FCoE and FC ports. Not included in JSON for other ports.
875 876 877 |
# File 'lib/Hpe3parSdk/models.rb', line 875 def portwwn @portwwn end |
#protocol ⇒ Object
- type - Hpe3parSdk::PortProtocol
-
Indicates the port protocol type.
887 888 889 |
# File 'lib/Hpe3parSdk/models.rb', line 887 def protocol @protocol end |
#type ⇒ Object
- type - Hpe3parSdk::PortConnType
-
port connection type.
879 880 881 |
# File 'lib/Hpe3parSdk/models.rb', line 879 def type @type end |