fedora-python / python-ethtool

Deprecated Python bindings for the ethtool kernel interface
GNU General Public License v2.0
15 stars 13 forks source link

Support for reading module EEPROM #36

Closed bewing closed 6 years ago

bewing commented 7 years ago

Support reading the raw or formatted data from SFP/SFP+/QSFP module EEPROM, such that "ethtool -m" returns.

ethtool -m eth0
        Identifier                                : 0x03 (SFP)
        Extended identifier                       : 0x04 (GBIC/SFP defined by 2-wire interface ID)
        Connector                                 : 0x21 (Copper pigtail)
        Transceiver codes                         : 0x01 0x00 0x00 0x00 0x00 0x04 0x80 0x00
        Transceiver type                          : Infiniband: 1X Copper Passive
        Transceiver type                          : Passive Cable
        Transceiver type                          : FC: Twin Axial Pair (TW)
        Encoding                                  : 0x06 (64B/66B)
        BR, Nominal                               : 10300MBd
        Rate identifier                           : 0x00 (unspecified)
        Length (SMF,km)                           : 0km
        Length (SMF)                              : 0m
        Length (50um)                             : 0m
        Length (62.5um)                           : 0m
        Length (Copper)                           : 2m
        Length (OM3)                              : 0m
        Passive Cu cmplnce.                       : 0x00 (unspecified) [SFF-8472 rev10.4 only]
        Vendor name                               : Arista Networks
        Vendor OUI                                : 00:1c:73
        Vendor PN                                 : CAB-SFP-SFP-2M
        Vendor rev                                : 0002
        Option values                             : 0x00 0x02
        Option                                    : RX_LOS implemented
        BR margin, max                            : 0%
        BR margin, min                            : 0%
        Vendor SN                                 : XDY160000001
        Date code                                 : 16000001
frenzymadness commented 7 years ago

Hello.

Thank you for the issue.

Python-ethtool is not just Python binding for ethtool but it is different implementation. For this reason, we cannot simply add features supported by ethtool to python-ethtool.

Unfortunately, we don't have enough time to add new features to python-ethtool and moreover, we don't have special hardware to test requested features on.

Could you help us?

hroncok commented 6 years ago

python-ethtool is maintenance only now. sorry

frenzymadness commented 6 years ago

But still, feel free to send a pull request :wink: