88
88
SFP_VOLT_WIDTH = 2
89
89
SFP_CHANNL_MON_OFFSET = 100
90
90
SFP_CHANNL_MON_WIDTH = 6
91
+ SFP_MODULE_THRESHOLD_OFFSET = 0
92
+ SFP_MODULE_THRESHOLD_WIDTH = 56
91
93
92
- qsfp_cable_length_tup = ('Length(km)' , 'Length OM3(2m)' ,
94
+
95
+ qsfp_cable_length_tup = ('Length(km)' , 'Length OM3(2m)' ,
93
96
'Length OM2(m)' , 'Length OM1(m)' ,
94
97
'Length Cable Assembly(m)' )
95
98
96
99
sfp_cable_length_tup = ('LengthSMFkm-UnitsOfKm' , 'LengthSMF(UnitsOf100m)' ,
97
100
'Length50um(UnitsOf10m)' , 'Length62.5um(UnitsOfm)' ,
98
101
'LengthCable(UnitsOfm)' , 'LengthOM3(UnitsOf10m)' )
99
102
100
- sfp_compliance_code_tup = ('10GEthernetComplianceCode' , 'InfinibandComplianceCode' ,
103
+ sfp_compliance_code_tup = ('10GEthernetComplianceCode' , 'InfinibandComplianceCode' ,
101
104
'ESCONComplianceCodes' , 'SONETComplianceCodes' ,
102
105
'EthernetComplianceCodes' ,'FibreChannelLinkLength' ,
103
106
'FibreChannelTechnology' , 'SFP+CableTechnology' ,
@@ -883,7 +886,7 @@ def get_transceiver_info_dict(self, port_num):
883
886
if key in sfp_interface_bulk_data ['data' ]['Specification compliance' ]['value' ]:
884
887
compliance_code_dict [key ] = sfp_interface_bulk_data ['data' ]['Specification compliance' ]['value' ][key ]['value' ]
885
888
transceiver_info_dict ['specification_compliance' ] = str (compliance_code_dict )
886
-
889
+
887
890
transceiver_info_dict ['nominal_bit_rate' ] = str (sfp_interface_bulk_data ['data' ]['Nominal Bit Rate(100Mbs)' ]['value' ])
888
891
else :
889
892
for key in sfp_cable_length_tup :
@@ -897,7 +900,7 @@ def get_transceiver_info_dict(self, port_num):
897
900
transceiver_info_dict ['specification_compliance' ] = str (compliance_code_dict )
898
901
899
902
transceiver_info_dict ['nominal_bit_rate' ] = str (sfp_interface_bulk_data ['data' ]['NominalSignallingRate(UnitsOf100Mbd)' ]['value' ])
900
-
903
+
901
904
return transceiver_info_dict
902
905
903
906
def get_transceiver_dom_info_dict (self , port_num ):
@@ -1256,12 +1259,12 @@ def reset(self, port_num):
1256
1259
@abc .abstractmethod
1257
1260
def get_transceiver_change_event (self , timeout = 0 ):
1258
1261
"""
1259
- :param timeout in milliseconds. The method is a blocking call. When timeout is
1262
+ :param timeout in milliseconds. The method is a blocking call. When timeout is
1260
1263
zero, it only returns when there is change event, i.e., transceiver plug-in/out
1261
1264
event. When timeout is non-zero, the function can also return when the timer expires.
1262
1265
When timer expires, the return status is True and events is empty.
1263
1266
:returns: (status, events)
1264
- :status: Boolean, True if call successful and no system level event/error occurred,
1267
+ :status: Boolean, True if call successful and no system level event/error occurred,
1265
1268
False if call not success or system level event/error occurred.
1266
1269
:events: dictionary for physical port index and the SFP status,
1267
1270
status='1' represent plug in, '0' represent plug out like {'0': '1', '31':'0'}
0 commit comments