[Platform][nokia]: python3-smbus package add with python3 and jinja fixes (#6416)
fix platform driver breakage due to python3 upgrade and fix load minigraph errors with config load_minigraph -y **- How I did it** added python3-smbus to the pmon docker template since the previous was python2 specific fixed additional "ord" python2 specific code fixed the jinja templates used by qos reload - the template logic required data to be parsed **- How to verify it** run "show platform XXX" commands and verify output run "sudo config load_minigraph -y" and verify configuration run "show interfaces XXX" and verify output Co-authored-by: Carl Keene <keene@nokia.com>
This commit is contained in:
parent
9f89da15ba
commit
d2f684b05c
@ -6,3 +6,5 @@
|
||||
{# Port configuration to cable length look-up table #}
|
||||
{# Each record describes mapping of DUT (DUT port) role and neighbor role to cable length #}
|
||||
{# Roles described in the minigraph #}
|
||||
{}
|
||||
|
||||
|
@ -1 +1,2 @@
|
||||
# this file empty temporarily until qos supported SAI Marvell
|
||||
{# this file empty temporarily until qos supported SAI Marvell #}
|
||||
{}
|
||||
|
@ -21,6 +21,7 @@ RUN apt-get update && \
|
||||
librrd-dev \
|
||||
rrdtool \
|
||||
python-smbus \
|
||||
python3-smbus \
|
||||
ethtool \
|
||||
dmidecode \
|
||||
i2c-tools \
|
||||
|
@ -210,7 +210,7 @@ class Sfp(SfpBase):
|
||||
sysfsfile_eeprom.seek(offset)
|
||||
raw = sysfsfile_eeprom.read(num_bytes)
|
||||
for n in range(0, num_bytes):
|
||||
eeprom_raw[n] = hex(ord(raw[n]))[2:].zfill(2)
|
||||
eeprom_raw[n] = hex(raw[n])[2:].zfill(2)
|
||||
except Exception as e:
|
||||
pass
|
||||
finally:
|
||||
|
@ -15,7 +15,7 @@ from sonic_py_common import logger
|
||||
""" ioctl constants """
|
||||
IO_READ = 0x80000000
|
||||
IO_SIZE_INT = 0x00040000
|
||||
IO_TYPE_WATCHDOG = ord('W') << 8
|
||||
IO_TYPE_WATCHDOG = 'W' << 8
|
||||
|
||||
WDR_INT = IO_READ | IO_SIZE_INT | IO_TYPE_WATCHDOG
|
||||
|
||||
|
Reference in New Issue
Block a user