Skip to content

Commit 43c3984

Browse files
viclin-ecPJHsieh
authored andcommitted
[Platform] JIRA-SONIC-9740 enhance is_copper function
1 parent 2053e87 commit 43c3984

File tree

1 file changed

+3
-0
lines changed
  • sonic_platform_base/sonic_xcvr/api/public

1 file changed

+3
-0
lines changed

sonic_platform_base/sonic_xcvr/api/public/cmis.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -707,6 +707,9 @@ def is_copper(self):
707707
'''
708708
Returns True if xcvr is copper, False if xcvr is optical
709709
'''
710+
media_tech = self.get_media_interface_technology()
711+
if media_tech and 'Copper cable' in media_tech:
712+
return True
710713
media_type = self.get_module_media_type()
711714
if media_type == 'passive_copper_media_interface' or media_type == 'base_t_media_interface':
712715
return True

0 commit comments

Comments
 (0)