From abe115e6a680c76d09dea04e6aab1d16876aed7a Mon Sep 17 00:00:00 2001 From: Joe LeVeque Date: Tue, 23 Jun 2020 19:42:40 -0700 Subject: [PATCH] [xcvrd] Tweak some transceiver info key names (#62) Change the following key names: - hardwarerev -> hardware_rev - serialnum -> serial - manufacturename -> manufacturer - modelname -> model - Connector -> connector Depends on https://github.com/Azure/sonic-platform-common/pull/97 --- sonic-xcvrd/scripts/xcvrd | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sonic-xcvrd/scripts/xcvrd b/sonic-xcvrd/scripts/xcvrd index 2ec03af08..794ee2ff5 100644 --- a/sonic-xcvrd/scripts/xcvrd +++ b/sonic-xcvrd/scripts/xcvrd @@ -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']),