Skip to content

Configurable MTU for FIB test#946

Merged
lguohan merged 1 commit intosonic-net:masterfrom
prsunny:master
Jun 11, 2019
Merged

Configurable MTU for FIB test#946
lguohan merged 1 commit intosonic-net:masterfrom
prsunny:master

Conversation

@prsunny
Copy link
Contributor

@prsunny prsunny commented Jun 10, 2019

Summary:
Default to use jumbo frames for this test. MTU is configurable for any smaller values

Fixes # (issue)

Type of change

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

Approach

Use configured MTU for running FIB test

How did you do it?

Modify PTF test and pass MTU as a variable

How did you verify/test it?

Run the ansible test, Verify MTU value being passed to PTF:
"ptf --test-dir ptftests fib_test.FibTest --platform-dir ptftests --platform remote -t \"testbed_type='t1-lag';router_mac='90:b1:1c:f4:9d:40';fib_info='/root/fib_info.txt';ipv4=True;ipv6=True;testbed_mtu=9114\" --relax --debug info --log-file /tmp/fib_test.FibTest.ipv4.True.ipv6.True.2019-06-10-20:16:08.log --socket-recv-size 16384 2>&1"

Any platform specific information?

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

Documentation

@lguohan lguohan merged commit 313b893 into sonic-net:master Jun 11, 2019
yxieca pushed a commit that referenced this pull request Jun 13, 2019
fraserg-arista pushed a commit to fraserg-arista/sonic-mgmt that referenced this pull request Feb 24, 2026
…-net#946)

<!--
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:
Fix the issue where PTF container is not reachable if MAC address was changed after rebuilding container.

There will be a timeout for task "wait until ptf is reachable". When it happens, the gateway still uses the old MAC for the ptf container, which needs to be updated before initiating reachability test.

### 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
- [ ] Test case improvement

### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [ ] 202505
- [ ] 202511

### Approach
#### What is the motivation for this PR?
PTF timeout after rebuilding PTF container.

#### How did you do it?
trigger GARP before PTF reachability test.

#### How did you verify/test it?
On local testbed.

#### 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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants