Commit Graph

19 Commits

Author SHA1 Message Date
Joe LeVeque
7f4ab8fbd8
[sonic-utilities] Update submodule; Build and install as a Python 3 wheel (#5926)
Submodule updates include the following commits:

* src/sonic-utilities 9dc58ea...f9eb739 (18):
  > Remove unnecessary calls to str.encode() now that the package is Python 3; Fix deprecation warning (#1260)
  > [generate_dump] Ignoring file/directory not found Errors (#1201)
  > Fixed porstat rate and util issues (#1140)
  > fix error: interface counters is mismatch after warm-reboot (#1099)
  > Remove unnecessary calls to str.decode() now that the package is Python 3 (#1255)
  > [acl-loader] Make list sorting compliant with Python 3 (#1257)
  > Replace hard-coded fast-reboot with variable. And some typo corrections (#1254)
  > [configlet][portconfig] Remove calls to dict.has_key() which is not available in Python 3 (#1247)
  > Remove unnecessary conversions to list() and calls to dict.keys() (#1243)
  > Clean up LGTM alerts (#1239)
  > Add 'requests' as install dependency in setup.py (#1240)
  > Convert to Python 3 (#1128)
  > Fix mock SonicV2Connector in python3: use decode_responses mode so caller code will be the same as python2 (#1238)
  > [tests] Do not trim from PATH if we did not append to it; Clean up/fix shebangs in scripts (#1233)
  > Updates to bgp config and show commands with BGP_INTERNAL_NEIGHBOR table (#1224)
  > [cli]: NAT show commands newline issue after migrated to Python3 (#1204)
  > [doc]: Update Command-Reference.md (#1231)
  > Added 'import sys' in feature.py file (#1232)

* src/sonic-py-swsssdk 9d9f0c6...1664be9 (2):
  > Fix: no need to decode() after redis client scan, so it will work for both python2 and python3 (#96)
  > FieldValueMap `contains`(`in`)  will also work when migrated to libswsscommon(C++ with SWIG wrapper) (#94)

- Also fix Python 3-related issues:
    - Use integer (floor) division in config_samples.py (sonic-config-engine)
    - Replace print statement with print function in eeprom.py plugin for x86_64-kvm_x86_64-r0 platform
    - Update all platform plugins to be compatible with both Python 2 and Python 3
    - Remove shebangs from plugins files which are not intended to be executable
    - Replace tabs with spaces in Python plugin files and fix alignment, because Python 3 is more strict
    - Remove trailing whitespace from plugins files
2020-11-25 10:28:36 -08:00
Arun Saravanan Balachandran
bcc6c64335
[DellEMC]: Platform modules Python3 compliance and other changes (#5609)
- Make DellEMC platform modules Python3 compliant.
- Change return type of PSU Platform APIs in DellEMC Z9264, S5232 and Thermal Platform APIs in S5232 to 'float'.
- Remove multiple copies of pcisysfs.py.
- PEP8 style changes for utility scripts.
- Build and install Python3 version of sonic_platform package.
- Fix minor Platform API issues.
2020-10-17 12:31:55 -07:00
Sudharsan D.G
d67b440c44 [devices]: Added index for dell z9100 c32 (#2892) 2019-05-16 09:27:13 -07:00
Sudharsan D.G
357923d6ea [devices]: Fixing get_transceiver_change_event for z9100 (#2712) 2019-03-27 18:38:01 -07:00
Harish Venkatraman
43aa19ca9b [dell/Z9100] Fix for optics not detected in fanout mode (#2496)
* [dell/Z9100] Fix for optics not detected in fanout mode

This commit fixes the issue of optics not detected
error while running sfputil show eeprom command. The root
casuse was the value of port index from port_config.ini for
fan out scenario. The port index should be starting from 0
and not 1. Platform cpld registers are assuming the port
numbers to start from 0 (lowermost bit), sfputils.py uses this
port number in get_presence function. Since the indexing passed
is wrong the optics was not detected and gave SFP EEPROM not
detected message.

Signed-off-by: Harish Venkatraman <Harish_Venkatraman@Dell.com>

* [dell/z9100] Fix for optics not detected in fanout mode

This commit fixes the issue of optics not detected error
while running sfputil show eeprom command. The root cause
was wrong port_index in fan out scenarios. Earlier fix of
changing the port_config.ini is reverted and changes made
in z9100 platform specific sfputil.py file. The port number
is decrement and tested for both 100G and 50G fanout cases.
Tested for the following show commands and test was succesful
show interfaces status, show interfaces transceiver eeprom,
show interfaces transceiver lpmode, show interface tranceiver
presence.

Signed-off-by: Harish Venkatraman <Harish_Venkatraman@Dell.com>
2019-02-16 09:59:51 -08:00
padmanarayana
cacff75df5 [devices]: Make the get_transceiver_change_event's epoll blocking S6100/Z9100 (#2459) 2019-01-18 01:57:06 -08:00
paavaanan
bcd4e1e375 [devices]: Dell SMF driver hwmon number reorder fix for Dell S6100/Z9100 (#2305) 2018-12-04 20:55:37 -08:00
paavaanan
a888e15e5c [devices]: xcvrd OIR support for Dell S6100/Z9100 switches (#2281)
* xcvrd OIR support for Dell S6100/Z9100 switches

Introduced check_interrupts function to handle missed interrupts.
port_dict updated and returned for appropriate OIR events.
Added support for both S6100/Z9100 switches.

* Revamped sfputil.py for PEP8 Standards
2018-12-04 10:18:39 -08:00
paavaanan
0c2472a040 [device]: xcvrd support for Dell S6100 (#2041) 2018-09-13 23:41:17 -07:00
padmanarayana
c4154eb9a9 [devices]: Add GPIO interrupt enable for Z9100/S6100 and transceiver-plug-inout-event for Z9100 (#2025) 2018-09-09 00:13:19 -07:00
Joe LeVeque
94c90cd5e5
Make Dell S6100 and Z9100 psuutil.py plugins compliant with Python 3.6 (#1523) 2018-03-22 18:24:32 -07:00
paavaanan
a4bcccc9db [dell-hwmon] Changed variables in psuutil scripts for both Z9100/S6100 platforms (#1305)
* [dell-hwmon] Changes psuutil scripts for Z9100/S6100 platform to use hwmon variables

* Updated sumbodule 23c5383780790234da3774155bd521db14d8daa4 - hwmon changes
2018-02-04 08:49:24 +08:00
lguohan
9669b3477e
Revert "[Dell S6100, Z9100] psusutil sysfs attribute changes for hwmon (#1264)" (#1297)
This reverts commit 1ceb07a2c5.
2018-01-10 18:42:45 -08:00
paavaanan
1ceb07a2c5 [Dell S6100, Z9100] psusutil sysfs attribute changes for hwmon (#1264) 2018-01-10 11:53:50 -08:00
Shuotian Cheng
60e0295b74
[Dell]: Change Dell psuutil.py file to work with Python 3.* (#1231)
* change except comma to as
* remove print line
* change CRLF to LF

Signed-off-by: Shu0T1an ChenG <shuche@microsoft.com>
2017-12-11 18:19:21 -08:00
lguohan
5184def0a4
[dell]: Added psuutil support for S6100/Z9100 Dell Platforms (#1223) 2017-12-08 16:31:01 -08:00
paavaanan
bfa0346040 Added support for Z9100 to check SFP Presence, toggling lpmode, reset… (#1087)
* Added support for Z9100 to check SFP Presence, toggling lpmode, reset, and eeprom details
2017-10-31 10:41:29 -07:00
Joe LeVeque
f49cac086f Remove extra trailing newlines at EOF (#804)
Files now end with a single newline
2017-07-12 20:54:37 -07:00
lguohan
7e1adeeb22 [platform]: add eeprom/sfputil support for z9100 (#342) 2017-02-27 14:42:25 -08:00