Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[sfputilbase.py] Add application_advertisement NA field to transceive…
…r_info_dict for platform api 1.0 (sonic-net#104) Fixes the following bug reproduced on SONiC.HEAD.729-dirty-20200727.075328: ``` pmon#supervisord: xcvrd Traceback (most recent call last): INFO pmon#supervisord: xcvrd File "/usr/bin/xcvrd", line 1207, in <module> INFO pmon#supervisord: xcvrd main() INFO pmon#supervisord: xcvrd File "/usr/bin/xcvrd", line 1204, in main INFO pmon#supervisord: xcvrd xcvrd.run() INFO pmon#supervisord: xcvrd File "/usr/bin/xcvrd", line 1165, in run INFO pmon#supervisord: xcvrd self.init() INFO pmon#supervisord: xcvrd File "/usr/bin/xcvrd", line 1144, in init INFO pmon#supervisord: xcvrd post_port_sfp_dom_info_to_db(is_warm_start, self.stop_event) INFO pmon#supervisord: xcvrd File "/usr/bin/xcvrd", line 430, in post_port_sfp_dom_info_to_db INFO pmon#supervisord: xcvrd post_port_sfp_info_to_db(logical_port_name, int_tbl, transceiver_dict, stop_event) INFO pmon#supervisord: xcvrd File "/usr/bin/xcvrd", line 260, in post_port_sfp_info_to_db INFO pmon#supervisord: xcvrd ('application_advertisement',port_info_dict['application_advertisement'])]) INFO pmon#supervisord: xcvrd KeyError: 'application_advertisement' ``` Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
- Loading branch information