62 | 62 |
}
|
63 | 63 |
|
64 | 64 |
var (
|
65 | |
port1LinkDowned uint64
|
66 | |
port1LinkErrorRecovery uint64
|
67 | |
port1PortRcvConstraintErrors uint64
|
68 | |
port1PortRcvData uint64 = 8884894436
|
69 | |
port1PortRcvErrors uint64
|
70 | |
port1PortRcvPackets uint64 = 87169372
|
71 | |
port1PortRcvRemotePhysicalErrors uint64
|
72 | |
port1PortRcvSwitchRelayErrors uint64
|
73 | |
port1PortXmitConstraintErrors uint64
|
74 | |
port1PortXmitData uint64 = 106036453180
|
75 | |
port1PortXmitDiscards uint64
|
76 | |
port1PortXmitPackets uint64 = 85734114
|
77 | |
port1PortXmitWait uint64 = 3599
|
78 | |
port1SymbolError uint64
|
79 | |
port1VL15Dropped uint64
|
|
65 |
port1ExcessiveBufferOverrunErrors uint64
|
|
66 |
port1LinkDowned uint64
|
|
67 |
port1LinkErrorRecovery uint64
|
|
68 |
port1LocalLinkIntegrityErrors uint64
|
|
69 |
port1PortRcvConstraintErrors uint64
|
|
70 |
port1PortRcvData uint64 = 8884894436
|
|
71 |
port1PortRcvErrors uint64
|
|
72 |
port1PortRcvPackets uint64 = 87169372
|
|
73 |
port1PortRcvRemotePhysicalErrors uint64
|
|
74 |
port1PortRcvSwitchRelayErrors uint64
|
|
75 |
port1PortXmitConstraintErrors uint64
|
|
76 |
port1PortXmitData uint64 = 106036453180
|
|
77 |
port1PortXmitDiscards uint64
|
|
78 |
port1PortXmitPackets uint64 = 85734114
|
|
79 |
port1PortXmitWait uint64 = 3599
|
|
80 |
port1SymbolError uint64
|
|
81 |
port1VL15Dropped uint64
|
80 | 82 |
|
81 | |
port2LinkDowned uint64
|
82 | |
port2LinkErrorRecovery uint64
|
83 | |
port2PortRcvConstraintErrors uint64
|
84 | |
port2PortRcvData uint64 = 9841747136
|
85 | |
port2PortRcvErrors uint64
|
86 | |
port2PortRcvPackets uint64 = 89332064
|
87 | |
port2PortRcvRemotePhysicalErrors uint64
|
88 | |
port2PortRcvSwitchRelayErrors uint64
|
89 | |
port2PortXmitConstraintErrors uint64
|
90 | |
port2PortXmitData uint64 = 106161427560
|
91 | |
port2PortXmitDiscards uint64
|
92 | |
port2PortXmitPackets uint64 = 88622850
|
93 | |
port2PortXmitWait uint64 = 3846
|
94 | |
port2SymbolError uint64
|
95 | |
port2VL15Dropped uint64
|
|
83 |
port2ExcessiveBufferOverrunErrors uint64
|
|
84 |
port2LinkDowned uint64
|
|
85 |
port2LinkErrorRecovery uint64
|
|
86 |
port2LocalLinkIntegrityErrors uint64
|
|
87 |
port2PortRcvConstraintErrors uint64
|
|
88 |
port2PortRcvData uint64 = 9841747136
|
|
89 |
port2PortRcvErrors uint64
|
|
90 |
port2PortRcvPackets uint64 = 89332064
|
|
91 |
port2PortRcvRemotePhysicalErrors uint64
|
|
92 |
port2PortRcvSwitchRelayErrors uint64
|
|
93 |
port2PortXmitConstraintErrors uint64
|
|
94 |
port2PortXmitData uint64 = 106161427560
|
|
95 |
port2PortXmitDiscards uint64
|
|
96 |
port2PortXmitPackets uint64 = 88622850
|
|
97 |
port2PortXmitWait uint64 = 3846
|
|
98 |
port2SymbolError uint64
|
|
99 |
port2VL15Dropped uint64
|
96 | 100 |
)
|
97 | 101 |
|
98 | 102 |
want := InfiniBandClass{
|
|
111 | 115 |
PhysStateID: 5,
|
112 | 116 |
Rate: 5000000000,
|
113 | 117 |
Counters: InfiniBandCounters{
|
114 | |
LinkDowned: &port1LinkDowned,
|
115 | |
LinkErrorRecovery: &port1LinkErrorRecovery,
|
116 | |
PortRcvConstraintErrors: &port1PortRcvConstraintErrors,
|
117 | |
PortRcvData: &port1PortRcvData,
|
118 | |
PortRcvErrors: &port1PortRcvErrors,
|
119 | |
PortRcvPackets: &port1PortRcvPackets,
|
120 | |
PortRcvRemotePhysicalErrors: &port1PortRcvRemotePhysicalErrors,
|
121 | |
PortRcvSwitchRelayErrors: &port1PortRcvSwitchRelayErrors,
|
122 | |
PortXmitConstraintErrors: &port1PortXmitConstraintErrors,
|
123 | |
PortXmitData: &port1PortXmitData,
|
124 | |
PortXmitDiscards: &port1PortXmitDiscards,
|
125 | |
PortXmitPackets: &port1PortXmitPackets,
|
126 | |
PortXmitWait: &port1PortXmitWait,
|
127 | |
SymbolError: &port1SymbolError,
|
128 | |
VL15Dropped: &port1VL15Dropped,
|
|
118 |
ExcessiveBufferOverrunErrors: &port1ExcessiveBufferOverrunErrors,
|
|
119 |
LinkDowned: &port1LinkDowned,
|
|
120 |
LinkErrorRecovery: &port1LinkErrorRecovery,
|
|
121 |
LocalLinkIntegrityErrors: &port1LocalLinkIntegrityErrors,
|
|
122 |
PortRcvConstraintErrors: &port1PortRcvConstraintErrors,
|
|
123 |
PortRcvData: &port1PortRcvData,
|
|
124 |
PortRcvErrors: &port1PortRcvErrors,
|
|
125 |
PortRcvPackets: &port1PortRcvPackets,
|
|
126 |
PortRcvRemotePhysicalErrors: &port1PortRcvRemotePhysicalErrors,
|
|
127 |
PortRcvSwitchRelayErrors: &port1PortRcvSwitchRelayErrors,
|
|
128 |
PortXmitConstraintErrors: &port1PortXmitConstraintErrors,
|
|
129 |
PortXmitData: &port1PortXmitData,
|
|
130 |
PortXmitDiscards: &port1PortXmitDiscards,
|
|
131 |
PortXmitPackets: &port1PortXmitPackets,
|
|
132 |
PortXmitWait: &port1PortXmitWait,
|
|
133 |
SymbolError: &port1SymbolError,
|
|
134 |
VL15Dropped: &port1VL15Dropped,
|
129 | 135 |
},
|
130 | 136 |
},
|
131 | 137 |
2: {
|
|
137 | 143 |
PhysStateID: 5,
|
138 | 144 |
Rate: 5000000000,
|
139 | 145 |
Counters: InfiniBandCounters{
|
140 | |
LinkDowned: &port2LinkDowned,
|
141 | |
LinkErrorRecovery: &port2LinkErrorRecovery,
|
142 | |
PortRcvConstraintErrors: &port2PortRcvConstraintErrors,
|
143 | |
PortRcvData: &port2PortRcvData,
|
144 | |
PortRcvErrors: &port2PortRcvErrors,
|
145 | |
PortRcvPackets: &port2PortRcvPackets,
|
146 | |
PortRcvRemotePhysicalErrors: &port2PortRcvRemotePhysicalErrors,
|
147 | |
PortRcvSwitchRelayErrors: &port2PortRcvSwitchRelayErrors,
|
148 | |
PortXmitConstraintErrors: &port2PortXmitConstraintErrors,
|
149 | |
PortXmitData: &port2PortXmitData,
|
150 | |
PortXmitDiscards: &port2PortXmitDiscards,
|
151 | |
PortXmitPackets: &port2PortXmitPackets,
|
152 | |
PortXmitWait: &port2PortXmitWait,
|
153 | |
SymbolError: &port2SymbolError,
|
154 | |
VL15Dropped: &port2VL15Dropped,
|
|
146 |
ExcessiveBufferOverrunErrors: &port2ExcessiveBufferOverrunErrors,
|
|
147 |
LinkDowned: &port2LinkDowned,
|
|
148 |
LinkErrorRecovery: &port2LinkErrorRecovery,
|
|
149 |
LocalLinkIntegrityErrors: &port2LocalLinkIntegrityErrors,
|
|
150 |
PortRcvConstraintErrors: &port2PortRcvConstraintErrors,
|
|
151 |
PortRcvData: &port2PortRcvData,
|
|
152 |
PortRcvErrors: &port2PortRcvErrors,
|
|
153 |
PortRcvPackets: &port2PortRcvPackets,
|
|
154 |
PortRcvRemotePhysicalErrors: &port2PortRcvRemotePhysicalErrors,
|
|
155 |
PortRcvSwitchRelayErrors: &port2PortRcvSwitchRelayErrors,
|
|
156 |
PortXmitConstraintErrors: &port2PortXmitConstraintErrors,
|
|
157 |
PortXmitData: &port2PortXmitData,
|
|
158 |
PortXmitDiscards: &port2PortXmitDiscards,
|
|
159 |
PortXmitPackets: &port2PortXmitPackets,
|
|
160 |
PortXmitWait: &port2PortXmitWait,
|
|
161 |
SymbolError: &port2SymbolError,
|
|
162 |
VL15Dropped: &port2VL15Dropped,
|
155 | 163 |
},
|
156 | 164 |
},
|
157 | 165 |
},
|