Skip to content

Commit

Permalink
[SFP-Refactor] Fix vendor key issue (#231)
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindmani-1 authored Dec 7, 2021
1 parent 8bad10a commit 59bc315
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sonic-xcvrd/tests/test_xcvrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def test_post_port_dom_threshold_info_to_db(self):
@patch('xcvrd.xcvrd._wrapper_get_presence', MagicMock(return_value=True))
@patch('xcvrd.xcvrd._wrapper_is_replaceable', MagicMock(return_value=True))
@patch('xcvrd.xcvrd._wrapper_get_transceiver_info', MagicMock(return_value={'type': '22.75',
'hardware_rev': '0.5',
'vendor_rev': '0.5',
'serial': '0.7',
'manufacturer': '0.7',
'model': '0.7',
Expand Down Expand Up @@ -157,7 +157,7 @@ def test_post_port_sfp_info_to_db(self):
@patch('xcvrd.xcvrd._wrapper_is_replaceable', MagicMock(return_value=True))
@patch('xcvrd.xcvrd.xcvr_table_helper', MagicMock())
@patch('xcvrd.xcvrd._wrapper_get_transceiver_info', MagicMock(return_value={'type': '22.75',
'hardware_rev': '0.5',
'vendor_rev': '0.5',
'serial': '0.7',
'manufacturer': '0.7',
'model': '0.7',
Expand Down
2 changes: 1 addition & 1 deletion sonic-xcvrd/xcvrd/xcvrd.py
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ def post_port_sfp_info_to_db(logical_port_name, port_mapping, table, transceiver
transceiver_dict[physical_port] = port_info_dict
fvs = swsscommon.FieldValuePairs(
[('type', port_info_dict['type']),
('hardware_rev', port_info_dict['hardware_rev']),
('vendor_rev', port_info_dict['vendor_rev']),
('serial', port_info_dict['serial']),
('manufacturer', port_info_dict['manufacturer']),
('model', port_info_dict['model']),
Expand Down

0 comments on commit 59bc315

Please sign in to comment.