Skip to content

Added multi-asic support missing in interface_util#20078

Merged
rlhui merged 1 commit intosonic-net:masterfrom
mannytaheri:interface_util
Aug 13, 2025
Merged

Added multi-asic support missing in interface_util#20078
rlhui merged 1 commit intosonic-net:masterfrom
mannytaheri:interface_util

Conversation

@mannytaheri
Copy link
Contributor

Description of PR

PR for issue #19795

Added multi-asics support missing in PR #19170

A change in test_common/platform/interface_utils.py (get_physical_port_indices)
is causing all testcases in platform_tests/api/test_sfp.py::TestSfpApi to error out with the message:
TypeError: '<' not supported between instances of 'NoneType' and 'int'

Summary:
Fixes # (issue)

Type of change

  • [ X] Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202205
  • 202305
  • 202311
  • 202405
  • 202411
  • 202505

Approach

What is the motivation for this PR?

To add multi-asics support to interface_util.py (get_physical_port_indices)

How did you do it?

In test_common/platform/interface_utils.py (get_physical_port_indices):
Modified logical_intfs to interface_per_asic.

How did you verify/test it?

Tested on a multi-asics voq chassis

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@deepak-singhal0408
Copy link
Contributor

@wenyiz2021 could you help review this PR? thanks

Copy link
Contributor

@wenyiz2021 wenyiz2021 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. this is to avoid attempting to access interface that doesn't belong to the current ASIC.

@rlhui rlhui merged commit 7a5e716 into sonic-net:master Aug 13, 2025
20 checks passed
nikamirrr pushed a commit to nikamirrr/nmirin-sonic-mgmt that referenced this pull request Aug 20, 2025
A change in test_common/platform/interface_utils.py (get_physical_port_indices)
is causing all testcases in platform_tests/api/test_sfp.py::TestSfpApi to error out with the message:
TypeError: '<' not supported between instances of 'NoneType' and 'int'
vidyac86 pushed a commit to vidyac86/sonic-mgmt that referenced this pull request Oct 23, 2025
A change in test_common/platform/interface_utils.py (get_physical_port_indices)
is causing all testcases in platform_tests/api/test_sfp.py::TestSfpApi to error out with the message:
TypeError: '<' not supported between instances of 'NoneType' and 'int'
opcoder0 pushed a commit to opcoder0/sonic-mgmt that referenced this pull request Dec 8, 2025
A change in test_common/platform/interface_utils.py (get_physical_port_indices)
is causing all testcases in platform_tests/api/test_sfp.py::TestSfpApi to error out with the message:
TypeError: '<' not supported between instances of 'NoneType' and 'int'

Signed-off-by: opcoder0 <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 16, 2025
A change in test_common/platform/interface_utils.py (get_physical_port_indices)
is causing all testcases in platform_tests/api/test_sfp.py::TestSfpApi to error out with the message:
TypeError: '<' not supported between instances of 'NoneType' and 'int'

Signed-off-by: Guy Shemesh <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Dec 16, 2025
A change in test_common/platform/interface_utils.py (get_physical_port_indices)
is causing all testcases in platform_tests/api/test_sfp.py::TestSfpApi to error out with the message:
TypeError: '<' not supported between instances of 'NoneType' and 'int'

Signed-off-by: Aharon Malkin <[email protected]>
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Dec 21, 2025
A change in test_common/platform/interface_utils.py (get_physical_port_indices)
is causing all testcases in platform_tests/api/test_sfp.py::TestSfpApi to error out with the message:
TypeError: '<' not supported between instances of 'NoneType' and 'int'

Signed-off-by: Guy Shemesh <[email protected]>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Jan 13, 2026
A change in test_common/platform/interface_utils.py (get_physical_port_indices)
is causing all testcases in platform_tests/api/test_sfp.py::TestSfpApi to error out with the message:
TypeError: '<' not supported between instances of 'NoneType' and 'int'
prgeor added a commit to Azure/sonic-mgmt.msft that referenced this pull request Jan 16, 2026
gshemesh2 pushed a commit to gshemesh2/sonic-mgmt that referenced this pull request Jan 26, 2026
A change in test_common/platform/interface_utils.py (get_physical_port_indices)
is causing all testcases in platform_tests/api/test_sfp.py::TestSfpApi to error out with the message:
TypeError: '<' not supported between instances of 'NoneType' and 'int'

Signed-off-by: Guy Shemesh <[email protected]>
ytzur1 pushed a commit to ytzur1/sonic-mgmt that referenced this pull request Feb 2, 2026
A change in test_common/platform/interface_utils.py (get_physical_port_indices)
is causing all testcases in platform_tests/api/test_sfp.py::TestSfpApi to error out with the message:
TypeError: '<' not supported between instances of 'NoneType' and 'int'

Signed-off-by: Yael Tzur <[email protected]>
venu-nexthop pushed a commit to venu-nexthop/sonic-mgmt that referenced this pull request Mar 27, 2026
A change in test_common/platform/interface_utils.py (get_physical_port_indices)
is causing all testcases in platform_tests/api/test_sfp.py::TestSfpApi to error out with the message:
TypeError: '<' not supported between instances of 'NoneType' and 'int'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

7 participants