Skip to content

[bug] SONiC Interface Speed to Breakout Mode conversion handled differently #2482

Description

@ZoTA02

OSISM release version

latest

What's the problem?

In the current version of python-osism (ebde575), for the SONiC config generation, breakout speed detections / conversions are handled differently when using EthX/Y/Z format compared to SONiC EthernetX format.

For the EthX/Y/Z format, beginning from the following line:

if interface_speed == 10000 and num_subports == 4:

4x10G, 4x25G, 4x50G, 4x100G and 4x200G are supported.

For the EthernetX format, beginning from the following line:

if interface_speed == 25000:

Only 4x25G and 4x50G are implemented.

We specifically seek 4x10G breakout support for 40G/100G interfaces from Edgecore 7726-32x switches.
We tried bluntly adding the following code to the if statement for EthernetX format as the downstream code seems to be the same for each format and it seemed to produce the expected results. Environment is running osism 0.20260615.1.

elif interface_speed == 10000:
  brkout_mode = "4x10G"

Maybe both formats can be handled the same regarding possible interface / breakout speeds. We might of cause be missing something preventing those to simply be the same.

References to existing reports

References to existing bug reports, mailing lists, ...

Severity

low

Urgency

low

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions