Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[sonic_xcvr]create_xcvr_api don't support port_id=0x0c #330

Open
jostar-yang opened this issue Nov 30, 2022 · 0 comments
Open

[sonic_xcvr]create_xcvr_api don't support port_id=0x0c #330

jostar-yang opened this issue Nov 30, 2022 · 0 comments

Comments

@jostar-yang
Copy link

We try to call get_power_set() as below and found it get None.
api = self.get_xcvr_api()
power_set = api.get_power_set()

So check xcvr_api_factory.py and found below code,
def create_xcvr_api(self):
...................................

QSFP28

    elif id == 0x11:
        codes = Sff8636Codes
        mem_map = Sff8636MemMap(codes)
        xcvr_eeprom = XcvrEeprom(self.reader, self.writer, mem_map)
        api = Sff8636Api(xcvr_eeprom)
    # QSFP+
    elif id == 0x0D:
        codes = Sff8436Codes
        mem_map = Sff8436MemMap(codes)
        xcvr_eeprom = XcvrEeprom(self.reader, self.writer, mem_map)
        api = Sff8436Api(xcvr_eeprom)

As I know QSFP(port_id=0xC) should follow SFF8436.
But it seems create_xcvr_api() lack of id==0x0C.
Could someone help check it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant