forked from sonic-net/sonic-buildimage
-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[device/celestica]: Update questone2bd plugin (sonic-net#576)
* [device/celestica]: update questone2bd plugin * [platform/cel]: update questone2bd platform install script
- Loading branch information
Showing
10 changed files
with
74 additions
and
1,975 deletions.
There are no files selected for viewing
41 changes: 0 additions & 41 deletions
41
device/celestica/x86_64-cel_questone2bd-r0/plugins/cputemputil.py
This file was deleted.
Oops, something went wrong.
19 changes: 10 additions & 9 deletions
19
device/celestica/x86_64-cel_questone2bd-r0/plugins/eeprom.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
#!/usr/bin/env python | ||
|
||
############################################################################# | ||
# Celestica DX010 | ||
# | ||
# Platform and model specific eeprom subclass, inherits from the base class, | ||
# and provides the followings: | ||
# 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 | ||
############################################################################# | ||
# | ||
|
||
__version__ = "0.0.1" | ||
|
||
try: | ||
from sonic_eeprom import eeprom_tlvinfo | ||
except ImportError, e: | ||
raise ImportError (str(e) + "- required module not found") | ||
raise ImportError(str(e) + "- required module not found") | ||
|
||
TLV_I2C = "i2c-0" | ||
TLV_REG = "0-0056" | ||
TLV_PATH = "/sys/class/i2c-adapter/{}/{}/eeprom".format(TLV_I2C, TLV_REG) | ||
|
||
|
||
class board(eeprom_tlvinfo.TlvInfoDecoder): | ||
|
||
def __init__(self, name, path, cpld_root, ro): | ||
self.eeprom_path = "/sys/class/i2c-adapter/i2c-0/0-0056/eeprom" | ||
self.eeprom_path = TLV_PATH | ||
super(board, self).__init__(self.eeprom_path, 0, '', True) | ||
|
310 changes: 0 additions & 310 deletions
310
device/celestica/x86_64-cel_questone2bd-r0/plugins/fanutil.py
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.