sonic-buildimage/device/celestica/x86_64-cel_seastone-r0/plugins/eeprom.py
zhenggen-xu ccb71cd4d6 ASIC part support for Celestica DX010 platform(Three port breakout configurations) (#818)
* ASIC part support for Celestica DX010 platform.
It includes:
*Three different configurations: 32x100G, 64x50G, 96x10G+16x50G.(Script to be includd in the platform directory).
*Data port LED

Also from vendor:
*fancontrol configuration
*eeprom.py/sfpulti.py plugins
*sensor configuration

* Typo fix

* Add the port configuration change script

* move the script to sonic-utilities repo
2017-07-19 17:13:18 -07:00

24 lines
770 B
Python

#!/usr/bin/env python
#############################################################################
# Celestica DX010
#
# Platform and model specific eeprom subclass, inherits from the base class,
# and provides the followings:
# - the eeprom format definition
# - specific encoder/decoder if there is special need
#############################################################################
try:
from sonic_eeprom import eeprom_tlvinfo
except ImportError, e:
raise ImportError (str(e) + "- required module not found")
class board(eeprom_tlvinfo.TlvInfoDecoder):
def __init__(self, name, path, cpld_root, ro):
self.eeprom_path = "/sys/class/i2c-adapter/i2c-12/12-0050/eeprom"
super(board, self).__init__(self.eeprom_path, 0, '', True)