Skip to content

Commit

Permalink
extend xcvrd to post more sfp info to state DB (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
keboliu authored and jleveque committed Mar 6, 2019
1 parent 6c2270e commit 3c6a57a
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion sonic-xcvrd/scripts/xcvrd
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,18 @@ def post_port_sfp_info_to_db(logical_port_name, table):
('hardwarerev', port_info_dict['hardwarerev']),
('serialnum', port_info_dict['serialnum']),
('manufacturename', port_info_dict['manufacturename']),
('modelname', port_info_dict['modelname'])])
('modelname', port_info_dict['modelname']),
('vendor_oui',port_info_dict['vendor_oui']),
('vendor_date',port_info_dict['vendor_date']),
('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']),
('cable_type',port_info_dict['cable_type']),
('cable_length',port_info_dict['cable_length']),
('specification_compliance',port_info_dict['specification_compliance']),
('nominal_bit_rate',port_info_dict['nominal_bit_rate'])])

table.set(port_name, fvs)
else:
return SFP_EEPROM_NOT_READY
Expand Down

0 comments on commit 3c6a57a

Please sign in to comment.