diff --git a/sonic-xcvrd/tests/test_xcvrd.py b/sonic-xcvrd/tests/test_xcvrd.py index fbc9b0f7a7ce..a560de82da22 100644 --- a/sonic-xcvrd/tests/test_xcvrd.py +++ b/sonic-xcvrd/tests/test_xcvrd.py @@ -128,7 +128,8 @@ def test_post_port_dom_threshold_info_to_db(self): 'specification_compliance': '0.7', 'nominal_bit_rate': '0.7', 'application_advertisement': '0.7', - 'is_replaceable': '0.7', })) + 'is_replaceable': '0.7', + 'dom_capability': '0.7', })) def test_post_port_sfp_info_to_db(self): logical_port_name = "Ethernet0" stop_event = threading.Event() @@ -156,7 +157,8 @@ def test_post_port_sfp_info_to_db(self): 'specification_compliance': '0.7', 'nominal_bit_rate': '0.7', 'application_advertisement': '0.7', - 'is_replaceable': '0.7', })) + 'is_replaceable': '0.7', + 'dom_capability': '0.7', })) @patch('xcvrd.xcvrd._wrapper_get_transceiver_dom_threshold_info', MagicMock(return_value={'temphighalarm': '22.75', 'temphighwarning': '0.5', 'templowalarm': '0.7', diff --git a/sonic-xcvrd/xcvrd/xcvrd.py b/sonic-xcvrd/xcvrd/xcvrd.py index f7b4d05f5509..750a385148aa 100644 --- a/sonic-xcvrd/xcvrd/xcvrd.py +++ b/sonic-xcvrd/xcvrd/xcvrd.py @@ -299,6 +299,7 @@ def post_port_sfp_info_to_db(logical_port_name, table, transceiver_dict, ('application_advertisement', port_info_dict['application_advertisement'] if 'application_advertisement' in port_info_dict else 'N/A'), ('is_replaceable', str(is_replaceable)), + ('dom_capability',port_info_dict['dom_capability']), ]) table.set(port_name, fvs) else: