Optimize check_interface_status function.#21055
Merged
roy-sror merged 1 commit intosonic-net:masterfrom Nov 4, 2025
Merged
Conversation
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
8807560 to
5b5accd
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
5b5accd to
32714e3
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
32714e3 to
f148acd
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Add cache to get_ports_map. Call transceiver presence once for all ports together.
f148acd to
0febecd
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
roy-sror
approved these changes
Nov 4, 2025
Collaborator
|
Cherry-pick PR to msft-202412: Azure/sonic-mgmt.msft#819 |
dcaugher
pushed a commit
to dcaugher/sonic-mgmt
that referenced
this pull request
Nov 12, 2025
Add cache to get_ports_map. Call transceiver presence once for all ports together.
dcaugher
pushed a commit
to dcaugher/sonic-mgmt
that referenced
this pull request
Nov 12, 2025
Add cache to get_ports_map. Call transceiver presence once for all ports together.
vikumarks
pushed a commit
to vikumarks/sonic-mgmt
that referenced
this pull request
Dec 1, 2025
Add cache to get_ports_map. Call transceiver presence once for all ports together. Signed-off-by: vikumarks <[email protected]>
albertovillarreal-keys
pushed a commit
to albertovillarreal-keys/sonic-mgmt
that referenced
this pull request
Dec 2, 2025
Add cache to get_ports_map. Call transceiver presence once for all ports together. Signed-off-by: Alberto Villarreal <[email protected]>
opcoder0
pushed a commit
to opcoder0/sonic-mgmt
that referenced
this pull request
Dec 8, 2025
Add cache to get_ports_map. Call transceiver presence once for all ports together. Signed-off-by: opcoder0 <[email protected]>
selldinesh
pushed a commit
to selldinesh/sonic-mgmt
that referenced
this pull request
Dec 11, 2025
Add cache to get_ports_map. Call transceiver presence once for all ports together. Signed-off-by: selldinesh <[email protected]>
echuawu
pushed a commit
to echuawu/sonic-mgmt
that referenced
this pull request
Dec 12, 2025
Add cache to get_ports_map. Call transceiver presence once for all ports together.
saravanan-nexthop
pushed a commit
to saravanan-nexthop/sonic-mgmt
that referenced
this pull request
Dec 15, 2025
Add cache to get_ports_map. Call transceiver presence once for all ports together. Signed-off-by: Saravanan <[email protected]>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 16, 2025
Add cache to get_ports_map. Call transceiver presence once for all ports together. Signed-off-by: Guy Shemesh <[email protected]>
AharonMalkin
pushed a commit
to AharonMalkin/sonic-mgmt
that referenced
this pull request
Dec 16, 2025
Add cache to get_ports_map. Call transceiver presence once for all ports together. Signed-off-by: Aharon Malkin <[email protected]>
deerao02
pushed a commit
to deerao02/sonic-mgmt
that referenced
this pull request
Dec 18, 2025
Add cache to get_ports_map. Call transceiver presence once for all ports together.
deerao02
pushed a commit
to deerao02/sonic-mgmt
that referenced
this pull request
Dec 18, 2025
…t#820) Add cache to get_ports_map. Call transceiver presence once for all ports together.
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Dec 21, 2025
Add cache to get_ports_map. Call transceiver presence once for all ports together. 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
Add cache to get_ports_map. Call transceiver presence once for all ports together.
yifan-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Jan 14, 2026
Add cache to get_ports_map. Call transceiver presence once for all ports together. Signed-off-by: YiFan Wang <[email protected]>
gshemesh2
pushed a commit
to gshemesh2/sonic-mgmt
that referenced
this pull request
Jan 26, 2026
Add cache to get_ports_map. Call transceiver presence once for all ports together. Signed-off-by: Guy Shemesh <[email protected]>
lakshmi-nexthop
pushed a commit
to lakshmi-nexthop/sonic-mgmt
that referenced
this pull request
Jan 28, 2026
Add cache to get_ports_map. Call transceiver presence once for all ports together. Signed-off-by: Lakshmi Yarramaneni <[email protected]>
ytzur1
pushed a commit
to ytzur1/sonic-mgmt
that referenced
this pull request
Jan 29, 2026
Add cache to get_ports_map. Call transceiver presence once for all ports together.
ytzur1
pushed a commit
to ytzur1/sonic-mgmt
that referenced
this pull request
Feb 2, 2026
Add cache to get_ports_map. Call transceiver presence once for all ports together. Signed-off-by: Yael Tzur <[email protected]>
abhishek-nexthop
pushed a commit
to nexthop-ai/sonic-mgmt
that referenced
this pull request
Feb 6, 2026
Add cache to get_ports_map. Call transceiver presence once for all ports together.
rraghav-cisco
pushed a commit
to rraghav-cisco/sonic-mgmt
that referenced
this pull request
Feb 13, 2026
Add cache to get_ports_map. Call transceiver presence once for all ports together. Signed-off-by: Raghavendran Ramanathan <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
Optimize check_interface_status function.
Add cache to get_ports_map.
Call transceiver presence once for all ports together.
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
What is the motivation for this PR?
As the number of ports increases, the function slows down and may fail the test because not all interfaces up in time.
How did you do it?
Add cache to get_ports_map.
Call transceiver presence once for all ports together.
How did you verify/test it?
measure the new time and rerun the test.
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation