Skip to content

[dual-tor] Add retry to get the port mac from ptf#4287

Merged
kevinskwang merged 1 commit intosonic-net:masterfrom
kevinskwang:get_mac_retry
Sep 17, 2021
Merged

[dual-tor] Add retry to get the port mac from ptf#4287
kevinskwang merged 1 commit intosonic-net:masterfrom
kevinskwang:get_mac_retry

Conversation

@kevinskwang
Copy link
Copy Markdown
Contributor

@kevinskwang kevinskwang commented Sep 16, 2021

What is the motivation for this PR?
It may fail to get the MAC address from ptf, but in current test case, it just steps forward even the return value is None.

How did you do it?
Add retry 10 times to get the port MAC address from PTF.

How did you verify/test it?
Run dualtor/test_orchagent_active_tor_downstream.py test case.

Signed-off-by: Kevin(Shengkai) Wang [email protected]

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

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

Documentation

What is the motivation for this PR?
It may fail to get the MAC address from ptf, but in current test case, it just steps forward even the return value is None.

How did you do it?
Add retry 10 times to get the port MAC address from PTF.

How did you verify/test it?
Run dualtor/test_orchagent_active_tor_downstream.py test case.

Signed-off-by: Kevin(Shengkai) Wang <[email protected]>
@kevinskwang kevinskwang requested a review from wangxin September 16, 2021 08:11
@kevinskwang kevinskwang requested a review from a team as a code owner September 16, 2021 08:11
@kevinskwang kevinskwang merged commit 7e7672e into sonic-net:master Sep 17, 2021
vmittal-msft pushed a commit to vmittal-msft/sonic-mgmt that referenced this pull request Sep 28, 2021
What is the motivation for this PR?
It may fail to get the MAC address from ptf, but in current test case, it just steps forward even the return value is None.

How did you do it?
Add retry 10 times to get the port MAC address from PTF.

How did you verify/test it?
Run dualtor/test_orchagent_active_tor_downstream.py test case.

Signed-off-by: Kevin(Shengkai) Wang <[email protected]>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…atically (#25595)

#### Why I did it
src/sonic-utilities
```
* ddc241ec - (HEAD -> 202511, origin/202511) [storm-control] Fixed show storm-control interface command display (sonic-net#4302) (32 hours ago) [mssonicbld]
* fbd3f90b - [fast-reboot][cosmetic] Fixed debug/error prints with the correct reboot type (sonic-net#4286) (5 days ago) [Yair Raviv]
* efdffa2a - Added counterpoll CLI support (sonic-net#4291) (6 days ago) [mssonicbld]
* 567ad5b3 - [Smartswitch] Prevent early exit of reboot status (sonic-net#4287) (6 days ago) [mssonicbld]
```
#### How I did it
#### How to verify it
#### Description for the changelog
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

Successfully merging this pull request may close these issues.

2 participants