Skip to content

Added DIP=SIP testcase.#666

Merged
prsunny merged 3 commits intosonic-net:masterfrom
nazariig:master-dip_sip
Jul 31, 2018
Merged

Added DIP=SIP testcase.#666
prsunny merged 3 commits intosonic-net:masterfrom
nazariig:master-dip_sip

Conversation

@nazariig
Copy link
Copy Markdown
Contributor

@nazariig nazariig commented Jul 26, 2018

Description of PR

The purpose of this test is to validate that SONiC switch supports routing of L3 packets with DIP=SIP

Type of change

  • [DIP=SIP] Test case(new/improvement)

Approach

How did you do it?

  • N/A

How did you verify/test it?

sudo -H ansible-playbook test_sonic.yml -i inventory --limit arc-switch1025-t0 -e testbed_name=arc-switch1025-t0 -e testbed_type=t0 -e testcase_name=dip_sip -vvvvv

Any platform specific information?

  • N/A

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

  • t0
  • t0-16
  • t0-56
  • t0-64
  • t0-64-32
  • t0-116
  • t1
  • t1-lag
  • t1-64-lag

Documentation

@msftclas
Copy link
Copy Markdown

msftclas commented Jul 26, 2018

CLA assistant check
All CLA requirements met.


dip_sip:
filename: dip_sip.yml
topologies: [t0, t1, t1-lag]
Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft Jul 26, 2018

Choose a reason for hiding this comment

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

We need t0-56 at least. It would be better to add all. #Closed

Copy link
Copy Markdown
Contributor Author

@nazariig nazariig Jul 27, 2018

Choose a reason for hiding this comment

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

@qiluo-msft We need to discuss which topologies must be supported by this testcase. Regarding t0-56, I have no way to check it. Basically, we can use any topology with this testcase which contains at least two PORT/LAG RIFs connected to neighbors, providing the valid LLDP info.

Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft Jul 27, 2018

Choose a reason for hiding this comment

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

Then it's ok to add all known topo here. Others can help you test. #Closed

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@qiluo-msft I have extended this testcase with the additional topologies as we discussed.


from ptf import config
from ptf.base_tests import BaseTest
from ptf.testutils import *
Copy link
Copy Markdown
Contributor

@qiluo-msft qiluo-msft Jul 26, 2018

Choose a reason for hiding this comment

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

Don't import wildcard. #Closed

ip_ttl=self.pktTtl)
send(self.test, int(self.srcPortIds[0]), pkt)

pkt = simple_udp_packet(eth_dst=self.dstHostMac,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Should we also have one for IPv6?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@prsunny Yes. Extended with IPv6 support.

self.dstHostIpv6 = str(ip_address(unicode(self.testParams['dst_router_ipv6'])) + 1)

self.srcRouterMac = self.testParams['src_router_mac']
self.srcRouterIpv4 = self.testParams['src_router_ipv4']
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a note, looks like srcRouterIPvX and srcHostIpvX are not used in the test.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@prsunny Correct. It is just for logging purpose.

@prsunny prsunny merged commit 993c2d6 into sonic-net:master Jul 31, 2018
wangxin pushed a commit to wangxin/sonic-mgmt that referenced this pull request Oct 27, 2025
…-net#666)

<!--
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: Update calculation buffer in packet trimming case
Fixes:
In the packet trimming cases, it needs to calculate the available buffer size of the egress queue and then block the queue to trigger the trimming packet.
There is a new feature "Update QoS to disable port alpha" (sonic-net/sonic-buildimage#23381). After the change, the calculation method of available buffer size has changed. So need update the buffer calculation function in trimming case

### 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
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [x] 202505

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

4 participants