Skip to content

[Bug fix] port_alias.py enhancement for an index condition judge#990

Merged
qiluo-msft merged 3 commits intosonic-net:masterfrom
keboliu:port_alias_enhance
Jul 16, 2019
Merged

[Bug fix] port_alias.py enhancement for an index condition judge#990
qiluo-msft merged 3 commits intosonic-net:masterfrom
keboliu:port_alias_enhance

Conversation

@keboliu
Copy link
Contributor

@keboliu keboliu commented Jul 4, 2019

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Approach

How did you do it?

Add an index condition check to make sure the index will not out of range.

How did you verify/test it?

run generate minigraph command

Any platform specific information?

No

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

support all topo

Documentation

@liat-grozovik liat-grozovik requested a review from qiluo-msft July 15, 2019 21:55
@qiluo-msft qiluo-msft changed the title [Bug fix] port_alias.py enhancement for a index condition judge [Bug fix] port_alias.py enhancement for an index condition judge Jul 15, 2019
@qiluo-msft qiluo-msft merged commit 9c59bd7 into sonic-net:master Jul 16, 2019
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Commits:

02dea43 [202012] Add support for BFD notification (sonic-net#990)
337fd97 Change sonic-buildimage.vs artifact source from CI build to official build. (sonic-net#992)
490f442 Support for cisco-8000 platform for sonic-sairedis/syncd (sonic-net#823)
sdszhang pushed a commit to sdszhang/sonic-mgmt that referenced this pull request Mar 23, 2026
<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit
easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should
reviewer start? background context?
- List any dependencies that are required for this change.
-->

Summary:
t1-f2-d10u8 topo has a downstream T0 neighbor with IP 10.0.0.1, which
conflicts with default dst_ip_addr in this test.
We should randomly choose an upstream VM IP instead, like t1-isolated-*
topos.

Manually cherry-picked from
sonic-net#22115
Fixes # (issue)

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

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


### Back port request
- [x] 202503
- [x] 202511

### Approach
#### What is the motivation for this PR?
test_stress_acl.py failed on t1-f2-d10u8 topo

#### How did you do it?
Randomly choose an upstream VM IP instead, like t1-isolated-* topos

#### How did you verify/test it?
test_stress_acl.py passed on t1-f2-d10u8 topo

#### Any platform specific information?

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

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->

Signed-off-by: markxiao <markxiao@arista.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants