3838 'cable_length' : '3' ,
3939 'application_advertisement' : 'N/A' ,
4040 'specification_compliance' : "{'10/40G Ethernet Compliance Code': '40GBASE-CR4'}" ,
41- 'dom_capability' : "{'Tx_power_support': 'no', 'Rx_power_support': 'no',\
42- 'Voltage_support': 'no', 'Temp_support': 'no'}" ,
41+ 'dom_capability' : "N/A" ,
4342 'nominal_bit_rate' : '255'
4443}
4544FLAT_MEMORY_MODULE_EEPROM = """Ethernet16: SFP EEPROM detected
5958 Vendor PN: MCP1600-C003
6059 Vendor Rev: A2
6160 Vendor SN: MT1636VS10561
61+ dom_capability: N/A
62+ type_abbrv_name: QSFP28
6263"""
6364EMPTY_DOM_VALUES = """ ChannelMonitorValues:
6465 ChannelThresholdValues:
@@ -150,7 +151,7 @@ def test_format_dict_value_to_string(self):
150151 'cable_length' : '3' ,
151152 'application_advertisement' : 'N/A' ,
152153 'specification_compliance' : "{'10/40G Ethernet Compliance Code': '40GBASE-CR4'}" ,
153- 'dom_capability' : "{'Tx_power_support': 'no', 'Rx_power_support': 'no', 'Voltage_support': 'no', 'Temp_support': 'no'} " ,
154+ 'dom_capability' : "N/A " ,
154155 'nominal_bit_rate' : '255'
155156 },
156157 # expected_output
@@ -170,6 +171,8 @@ def test_format_dict_value_to_string(self):
170171 " Vendor PN: MCP1600-C003\n "
171172 " Vendor Rev: A2\n "
172173 " Vendor SN: MT1636VS10561\n "
174+ " dom_capability: N/A\n "
175+ " type_abbrv_name: QSFP28\n "
173176 ),
174177 # CMIS compliant module
175178 (
@@ -197,15 +200,11 @@ def test_format_dict_value_to_string(self):
197200 'media_lane_assignment_options': 2}, \
198201 2: {'host_electrical_interface_id': '200GBASE-CR4 (Clause 136)'}}" ,
199202 'specification_compliance' : "sm_media_interface" ,
200- 'dom_capability' : "{'Tx_power_support': 'no', 'Rx_power_support': 'no', 'Voltage_support': 'no', 'Temp_support': 'no'} " ,
203+ 'dom_capability' : "N/A " ,
201204 'nominal_bit_rate' : '0' ,
202205 'hardware_rev' : '0.0' ,
203- 'media_interface_code' : '400ZR, DWDM, amplified' ,
204- 'host_electrical_interface' : '400GAUI-8 C2M (Annex 120E)' ,
205206 'host_lane_count' : 8 ,
206207 'media_lane_count' : 1 ,
207- 'host_lane_assignment_option' : 1 ,
208- 'media_lane_assignment_option' : 1 ,
209208 'active_apsel_hostlane1' : 1 ,
210209 'active_apsel_hostlane2' : 1 ,
211210 'active_apsel_hostlane3' : 1 ,
@@ -238,14 +237,10 @@ def test_format_dict_value_to_string(self):
238237 " Extended Identifier: Power Class 8 (18.0W Max)\n "
239238 " Extended RateSelect Compliance: N/A\n "
240239 " Hardware Revision: 0.0\n "
241- " Host Electrical Interface: 400GAUI-8 C2M (Annex 120E)\n "
242- " Host Lane Assignment Options: 1\n "
243240 " Host Lane Count: 8\n "
244241 " Identifier: QSFP-DD Double Density 8X Pluggable Transceiver\n "
245242 " Length Cable Assembly(m): 0\n "
246- " Media Interface Code: 400ZR, DWDM, amplified\n "
247243 " Media Interface Technology: C-band tunable laser\n "
248- " Media Lane Assignment Options: 1\n "
249244 " Media Lane Count: 1\n "
250245 " Nominal Bit Rate(100Mbs): 0\n "
251246 " Specification compliance: sm_media_interface\n "
@@ -259,6 +254,8 @@ def test_format_dict_value_to_string(self):
259254 " Vendor PN: def\n "
260255 " Vendor Rev: ghi\n "
261256 " Vendor SN: jkl\n "
257+ " dom_capability: N/A\n "
258+ " type_abbrv_name: QSFP-DD\n "
262259 ),
263260 ])
264261 def test_convert_sfp_info_to_output_string (self , sfp_info_dict , expected_output ):
0 commit comments