-
Notifications
You must be signed in to change notification settings - Fork 771
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IPv4 decapsulation test #128
Conversation
ansible/roles/test/tasks/decap.yml
Outdated
|
||
- include: roles/test/files/tools/loganalyzer/loganalyzer_init.yml | ||
|
||
- debug : msg="INVOKE FIB TEST" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FIB -> IPv4 decap
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
ansible/roles/test/tasks/decap.yml
Outdated
|
||
- debug: var=out.stdout_lines | ||
when: out.rc != 0 | ||
|
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
outer_ttl = random.randint(2, 63) | ||
sport=1234 | ||
dport=80 | ||
if ("pipe" == self.test_params['dscp_mode']): |
There was a problem hiding this comment.
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()?
There was a problem hiding this comment.
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
* 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
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