Skip to content

Commit

Permalink
[device/celestica]: Implement SFP API (sonic-net#3869)
Browse files Browse the repository at this point in the history
Add Sfp APIs base on SfpBase and SfpUtilBase
  • Loading branch information
Wirut Getbamrung authored and lguohan committed Jan 16, 2020
1 parent 4c526d9 commit 4c46178
Show file tree
Hide file tree
Showing 2 changed files with 1,474 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
from sonic_platform.component import Component
from sonic_platform.eeprom import Tlv
from sonic_platform.fan import Fan
from sonic_platform.sfp import Sfp
from sonic_platform.psu import Psu
from sonic_platform.thermal import Thermal
from helper import APIHelper
Expand Down Expand Up @@ -49,6 +50,11 @@ def __init__(self):
for fan_index in range(0, NUM_FAN):
fan = Fan(fant_index, fan_index)
self._fan_list.append(fan)

for index in range(0, NUM_SFP):
sfp = Sfp(index)
self._sfp_list.append(sfp)

for index in range(0, NUM_PSU):
psu = Psu(index)
self._psu_list.append(psu)
Expand All @@ -59,6 +65,7 @@ def __init__(self):
thermal = Thermal(index)
self._thermal_list.append(thermal)


def get_base_mac(self):
"""
Retrieves the base MAC address for the chassis
Expand Down
Loading

0 comments on commit 4c46178

Please sign in to comment.