Skip to content

Commit

Permalink
[device/celestica]: Update questone2bd plugin (sonic-net#576)
Browse files Browse the repository at this point in the history
* [device/celestica]: update questone2bd plugin
* [platform/cel]: update questone2bd platform install script
  • Loading branch information
Wirut Getbamrung authored and pphuchar committed Mar 9, 2020
1 parent 2b7cfcf commit 0bc2ad9
Show file tree
Hide file tree
Showing 10 changed files with 74 additions and 1,975 deletions.
41 changes: 0 additions & 41 deletions device/celestica/x86_64-cel_questone2bd-r0/plugins/cputemputil.py

This file was deleted.

19 changes: 10 additions & 9 deletions device/celestica/x86_64-cel_questone2bd-r0/plugins/eeprom.py
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 device/celestica/x86_64-cel_questone2bd-r0/plugins/fanutil.py

This file was deleted.

Loading

0 comments on commit 0bc2ad9

Please sign in to comment.