Skip to content

[decap] Extend the existing decap test to cover TTL testing#761

Merged
pavel-shirshov merged 3 commits intosonic-net:masterfrom
wangxin:decap-ttl
Jan 15, 2019
Merged

[decap] Extend the existing decap test to cover TTL testing#761
pavel-shirshov merged 3 commits intosonic-net:masterfrom
wangxin:decap-ttl

Conversation

@wangxin
Copy link
Collaborator

@wangxin wangxin commented Dec 16, 2018

Signed-off-by: Xin Wang [email protected]

Description of PR

Summary: Extend the existing decap test to cover TTL testing
Fixes # (issue)

Type of change

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

Approach

How did you do it?

  • Added variable ttl_mode in decap.yml. By default, ttl_mode="pipe"
  • Extend the decap_conf.j2 template to accept ttl_mode variable
  • Update IP_decap_test.py to cover TTL testing. For each kind of encapsulation combination, send and verify two more packets. Both packets should be decapsulated and forwarded. The first packet has outer_ttl=64, inner_ttl=2. After decapsulation, TTL should be 1. The other packet has outer_ttl=1 and inner_ttl=64. After decapsulation, TTL should be 63.

How did you verify/test it?

Tested and verified on Mellanox switch using different topologies.

Any platform specific information?

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

Documentation

https://github.com/Azure/SONiC/wiki/IPv4-Decapsulation-test
The wiki page is not updated for this change because I am not authorized yet. I will update the wiki after I got required permission.

@msftclas
Copy link

msftclas commented Dec 16, 2018

CLA assistant check
All CLA requirements met.

Copy link
Contributor

@pavel-shirshov pavel-shirshov left a comment

Choose a reason for hiding this comment

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

As comments

* Use a new way to limit IP ranges to be covered. Previously random
  sampling is used. The new method limits the number of podsets and
  subnets to be covered in the fib.j2 template.
* Use a new way to set DSCP and TTL values. Previously DSCP and TTL
  values are randomly generated. The new method picks DSCP and TTL
  values from allowed range in a round-robin way.
* Remove trailing spaces
* Improve comments

Signed-off-by: Xin Wang <[email protected]>
@lguohan lguohan requested a review from prsunny January 3, 2019 06:01
Copy link
Contributor

@prsunny prsunny left a comment

Choose a reason for hiding this comment

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

Overall, the changes looks good to me

When TTL mode is uniform and outer_ttl is 1, the decapsulated packet
would have TTL=0 and would not be forwarded. Add logic to test
outer_ttl=2 when TTL mode is uniform.

Signed-off-by: Xin Wang <[email protected]>
@pavel-shirshov pavel-shirshov merged commit 3aa6a7c into sonic-net:master Jan 15, 2019
@wangxin wangxin deleted the decap-ttl branch March 22, 2019 10:47
auspham pushed a commit to auspham/sonic-mgmt that referenced this pull request Feb 3, 2026
…#19463) (sonic-net#761)

What is the motivation for this PR?
Fix
generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite
failure on 202412 due to policer not supported for MIRROR_SESSION
creation on TH5 platform as Broadcom clarified it in CS00012412189:
[TH5-512]Error log "Platform does not support
SAI_MIRROR_SESSION_ATTR_POLICER".

How did you do it?
Check the platform before building and verifying monitor session config,
remove the policer if platform startwith "x86_64-arista_7060x6_64pe".

How did you verify/test it?
Run
generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite
locally on 7060x6 and it passed.


generic_config_updater/test_monitor_config.py::test_monitor_config_tc1_suite
PASSED [100%]
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
To incldue following changes:

- [ci]: add build for arm64 and armhf (sonic-net#757)
- Use template hgetall, because we will tune the return types of library functions (sonic-net#759)
- [syncd] Fix bulk multi attrs for same key db update (sonic-net#761)

Signed-off-by: Ying Xie <[email protected]>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…omatically (sonic-net#14743)

#### Why I did it
src/sonic-swss-common
```
* c942d74 - (HEAD -> 202012, origin/202012) [Ci][202012] Fix collect log error in azp template (sonic-net#800) (6 weeks ago) [xumia]
* 14fa3e5 - Cherry-pick PRs in master branch to unblock PR checks. (sonic-net#761) (5 months ago) [Liu Shilong]
```
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Submodule src/sonic-utilities ae274e5..8237848:
  > [fast/warm reboot] ignore errors after shutting down critical service(s) (sonic-net#761)
  > [neighbor advertiser] raise exception when http endpoint return failure (sonic-net#758)

Signed-off-by: Ying Xie <[email protected]>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…D automatically (#25593)

#### Why I did it
src/sonic-platform-daemons
```
* aa50994 - (HEAD -> 202511, origin/202511) PSUD: Handle Redis BUSY errors gracefully (sonic-net#761) (2 hours ago) [mssonicbld]
* dfe00a2 - Read SFP temperature from TRANSCEIVER_DOM_TEMPERATURE table (sonic-net#760) (6 hours ago) [Vasundhara Volam]
* fe5ec7d - Set initial state before config manager task is up (sonic-net#752) (sonic-net#755) (5 days ago) [Gagan Punathil Ellath]
* 0a250b6 - psud: Handle all exceptions in try_get() to prevent crashes (sonic-net#754) (5 days ago) [mssonicbld]
* e23750e - [xcvrd] Separate VDM basic and statistic observables (sonic-net#753) (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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants