Skip to content

Commit abe115e

Browse files
authored
[xcvrd] Tweak some transceiver info key names (sonic-net#62)
Change the following key names: - hardwarerev -> hardware_rev - serialnum -> serial - manufacturename -> manufacturer - modelname -> model - Connector -> connector Depends on sonic-net/sonic-platform-common#97
1 parent c617191 commit abe115e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

sonic-xcvrd/scripts/xcvrd

+5-5
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,13 @@ def post_port_sfp_info_to_db(logical_port_name, table, transceiver_dict,
242242
if port_info_dict is not None:
243243
transceiver_dict[physical_port]=port_info_dict
244244
fvs = swsscommon.FieldValuePairs([('type', port_info_dict['type']),
245-
('hardwarerev', port_info_dict['hardwarerev']),
246-
('serialnum', port_info_dict['serialnum']),
247-
('manufacturename', port_info_dict['manufacturename']),
248-
('modelname', port_info_dict['modelname']),
245+
('hardware_rev', port_info_dict['hardware_rev']),
246+
('serial', port_info_dict['serial']),
247+
('manufacturer', port_info_dict['manufacturer']),
248+
('model', port_info_dict['model']),
249249
('vendor_oui',port_info_dict['vendor_oui']),
250250
('vendor_date',port_info_dict['vendor_date']),
251-
('Connector',port_info_dict['Connector']),
251+
('connector',port_info_dict['connector']),
252252
('encoding',port_info_dict['encoding']),
253253
('ext_identifier',port_info_dict['ext_identifier']),
254254
('ext_rateselect_compliance',port_info_dict['ext_rateselect_compliance']),

0 commit comments

Comments
 (0)