Skip to content

Commit

Permalink
[xcvrd] Tweak some transceiver info key names (#62)
Browse files Browse the repository at this point in the history
Change the following key names:

- hardwarerev -> hardware_rev
- serialnum -> serial
- manufacturename -> manufacturer
- modelname -> model
- Connector -> connector

Depends on sonic-net/sonic-platform-common#97
  • Loading branch information
jleveque authored Jun 24, 2020
1 parent c617191 commit abe115e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions sonic-xcvrd/scripts/xcvrd
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ def post_port_sfp_info_to_db(logical_port_name, table, transceiver_dict,
if port_info_dict is not None:
transceiver_dict[physical_port]=port_info_dict
fvs = swsscommon.FieldValuePairs([('type', port_info_dict['type']),
('hardwarerev', port_info_dict['hardwarerev']),
('serialnum', port_info_dict['serialnum']),
('manufacturename', port_info_dict['manufacturename']),
('modelname', port_info_dict['modelname']),
('hardware_rev', port_info_dict['hardware_rev']),
('serial', port_info_dict['serial']),
('manufacturer', port_info_dict['manufacturer']),
('model', port_info_dict['model']),
('vendor_oui',port_info_dict['vendor_oui']),
('vendor_date',port_info_dict['vendor_date']),
('Connector',port_info_dict['Connector']),
('connector',port_info_dict['connector']),
('encoding',port_info_dict['encoding']),
('ext_identifier',port_info_dict['ext_identifier']),
('ext_rateselect_compliance',port_info_dict['ext_rateselect_compliance']),
Expand Down

0 comments on commit abe115e

Please sign in to comment.