Skip to content

Commit

Permalink
[xcvrd] Retrieve DOM info using platform API 2.0 if implemented (soni…
Browse files Browse the repository at this point in the history
  • Loading branch information
aravindmani-1 authored and jleveque committed Dec 10, 2019
1 parent ac87a27 commit a3e163a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions sonic-xcvrd/scripts/xcvrd
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,10 @@ def _wrapper_get_transceiver_dom_info(physical_port):

def _wrapper_get_transceiver_dom_threshold_info(physical_port):
if platform_chassis is not None:
return None

try:
return platform_chassis.get_sfp(physical_port).get_transceiver_threshold_info()
except NotImplementedError:
pass
return platform_sfputil.get_transceiver_dom_threshold_info_dict(physical_port)

def _wrapper_get_transceiver_change_event(timeout):
Expand Down

0 comments on commit a3e163a

Please sign in to comment.