Skip to content

IPv4 decapsulation test#128

Merged
oleksandrivantsiv merged 12 commits intosonic-net:masterfrom
engdorm:master
Mar 20, 2017
Merged

IPv4 decapsulation test#128
oleksandrivantsiv merged 12 commits intosonic-net:masterfrom
engdorm:master

Conversation

@engdorm
Copy link
Contributor

@engdorm engdorm commented Feb 21, 2017

Added IPv4 decap test for testing IPv4 decapsulation on Sonic

new files :
IP_decap_test.py - the PTF test
decap.yml - the Ansible script for running the test
decap_conf.j2 - template for creating decap rule configuration

Modified files:
sonic.yml - added decap test
router_utils - added parsing function for routes_info.txt

@engdorm engdorm changed the title Master IPv4 decapsulation test Feb 21, 2017

- include: roles/test/files/tools/loganalyzer/loganalyzer_init.yml

- debug : msg="INVOKE FIB TEST"

Choose a reason for hiding this comment

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

FIB -> IPv4 decap

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍


- debug: var=out.stdout_lines
when: out.rc != 0

Copy link

@andriymoroz andriymoroz Feb 21, 2017

Choose a reason for hiding this comment

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

configuration is not removed from the switch after test finishes/fails
I'm not sure how TUNNEL_DECAP_TABLE is handled but it is possible in the log there could be some "already exist" error messages when test is rerun and log analyzer will treat them as an error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍

@engdorm engdorm mentioned this pull request Feb 26, 2017
outer_ttl = random.randint(2, 63)
sport=1234
dport=80
if ("pipe" == self.test_params['dscp_mode']):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you please put values from lines 77 to 87 into simple_tcp_packet() and simple_ipv4ip_packet()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

some fields only filled once as some parameters only for the inner (end with *_in) and some for only the outer
in addition, simple_ipv4ip_packet there isn't all of the fields like simple_tcp_packet
its only another layer of L2 and L3

But in simple_tcp_packet I added tcp ports for more detailed code
Because it's the default values, so it will not change anything

@oleksandrivantsiv oleksandrivantsiv merged commit 7b2ba21 into sonic-net:master Mar 20, 2017
lguohan pushed a commit that referenced this pull request Aug 3, 2017
* decap test v1

* decap test added

* checkout on fib_test

* restoring ACL test

* fixes

* fix #2

* removed decap configuration in the test

* added tcp port fields to simple_tcp_packet

* removed some vars
nhe-NV pushed a commit to nhe-NV/sonic-mgmt that referenced this pull request May 12, 2025
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Update sonic-restapi submodule for the following commits:

86543d0 - 2022-10-05 : Updates to route PATCH API (sonic-net#129) [Sumukha Tumkur Vani]
a1af82c - 2022-09-21 : Install libyang to azure pipeline (sonic-net#128) [Hua Liu]
2007c4c - 2022-09-09 : Increase coverage threshold (sonic-net#126) [Sumukha Tumkur Vani]
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…x-kernel] advance submodule head (sonic-net#12025)

linkmgrd:
* ab5b2c1 2022-09-02 | Fix mux config (sonic-net#128) (HEAD -> 202205, github/202205) [Longxiang Lyu]

utilities:
* 7de9305 2022-09-07 | [generate dump]Added error message when saisdkdump fails (sonic-net#2356) (HEAD -> 202205, github/202205) [Sudharsan Dhamal Gopalarathnam]
* c5b0a6d 2022-09-07 | [counterpoll]Fixing counterpoll show for tunnel and acl stats (sonic-net#2355) [Sudharsan Dhamal Gopalarathnam]
* 1452b44 2022-09-05 | [GCU] Fix missing backend in dry run (sonic-net#2347) [jingwenxie]
* bc7b845 2022-09-04 | Add Password Hardening CLI support (sonic-net#2338) [davidpil2002]
* 55e8948 2022-09-06 | [fast-reboot]Avoid stopping masked services during fast-reboot (sonic-net#2335) [Sudharsan Dhamal Gopalarathnam]
* f7d69d4 2022-08-30 | Replace cmp in acl_loader with operator.eq (sonic-net#2328) [Zhaohui Sun]
* 4054ebb 2022-09-05 | Add verification for override (sonic-net#2305) [jingwenxie]
* 729d811 2022-05-30 | Fix sonic-installer and 'show version' command crash when database docker not running issue. (sonic-net#2183) [Hua Liu]

platform-daemons:
* 36ba7c0 2022-09-07 | [ycable] cleanup logic for creating grpc future ready (sonic-net#289) (HEAD -> 202205) [vdahiya12]
* 2a9db73 2022-09-01 | [ycabled] fix insert events from xcvrd;cleanup some mux toggle logic (sonic-net#287) [vdahiya12]

platform-common:
* d7c990d 2022-09-03 | [CMIS] 'get_transceiver_info' should return 'None' when CMIS cable EEPROM is not ready  (sonic-net#305) (HEAD -> 202205) [Kebo Liu]

linux-kernel:
* 25ea052 2022-08-31 | [patch]: Add accpt_untracked_na kernel param (sonic-net#292) (HEAD -> 202205) [Lawrence Lee]

Signed-off-by: Ying Xie <ying.xie@microsoft.com>

Signed-off-by: Ying Xie <ying.xie@microsoft.com>
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
following PR's :
Implement cbgpPeer2State in CiscoBgp4MIB (sonic-net#119)
Fix index nodes in LLDP tables whose access right is not-accessible.
(sonic-net#112)
 Fix quagga/FRR parser on IPv6 BGP sessions (sonic-net#122)
 [lint] Fix some syntax errors or warnings (sonic-net#127)
  Update README.md: Add lgtm badges (sonic-net#128)
  [Multi-asic]: Support multi-asic platform (sonic-net#126)
  Simplify test code (sonic-net#132)
  [Multi-asic]: Namespace support for LLDP and Sensor tables (sonic-net#131)
  Fix undefined variable and warning message (sonic-net#134)
  Fix SNMP AgentX socket connection timeout when using
  Namespace.get_all() (sonic-net#140)
  [Namespace] Fix interfaces counters in InterfacesMIB RFC 2863 (sonic-net#141)
   Fix LGTM reported alert of PR#141 (sonic-net#142)
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…lly (sonic-net#15776)

#### Why I did it
src/sonic-gnmi
```
* d1467d3 - (HEAD -> 202305, origin/202305) Update makefile to support armhf (sonic-net#132) (sonic-net#133) (5 days ago) [ganglv]
* 88ee65d - [202305] Checkout correct branch from sonic-mgmt-common and sonic-swss-common during pipeline build (sonic-net#128) (5 days ago) [Sachin Holla]
* 87d8eb3 - TranslClient: use PathValidator to sanitize the request paths (sonic-net#112) (4 weeks ago) [Sachin Holla]
```
#### How I did it
#### How to verify it
#### Description for the changelog
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Why I did it
[Submodule][202211] Advance sonic-restapi pointer

The branch 202012 has already updated to commit 47e4b53.

4f6f979 Fix the redis security issue CVE-2023-28858 and CVE-2023-28859 (sonic-net#139)
47e4b53 Fix adv_pfx len for ipv6 (sonic-net#135)
44121be Support ipv6 prefix lenght greater than 64 and check for adv_prefix (sonic-net#134)
99c467d Add API support for adv prefix and custom monitoring (sonic-net#133)
347684a Use github code scanning instead of LGTM (sonic-net#132)
86543d0 Updates to route PATCH API (sonic-net#129)
a1af82c Install libyang to azure pipeline (sonic-net#128)
2007c4c Increase coverage threshold (sonic-net#126)

Work item tracking
Microsoft ADO (number only): 17705422
How I did it
How to verify it
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