Skip to content
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

Extend IP-in-IP test to check IPv6 in IPv4, IPv4 in IPv6, IPv6 in IP… #682

Merged
merged 2 commits into from
Aug 24, 2018

Conversation

stepanblyschak
Copy link
Contributor

…v6 decapsulation

Signed-off-by: stepanb [email protected]

Description of PR

Summary:
Extend IP-in-IP decapsulation test to pass different combinations of tunneled traffic (IPv6 in IPv4, IPv4 in IPv6, IPv6 in IP…)

Type of change

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

Approach

How did you do it?

Extend PTF test

How did you verify/test it?

Run the test

Any platform specific information?

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

Documentation

Copy link
Contributor

@sihuihan88 sihuihan88 left a comment

Choose a reason for hiding this comment

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

It would be better if by default (without defining the test scenario), we test all the four combinations (ipv6 in ipv4, ipv4 in ipv4, ipv4 in ipv6, ipv6 in ipv6) and output the failure/success results of the four cases.


always:
# Delete the configuration
- set_fact: op="DEL"
Copy link
Contributor

Choose a reason for hiding this comment

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

What is the default op value? If setting op="DEL" in the cleanup, will it has side-effect in case there are following tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it is set to 'SET' on line 78. It should not have any side effects, it is used to cleanup the configured tunnels

Copy link
Contributor

Choose a reason for hiding this comment

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

What will happen if the other tests run afterwards? Will the op="DEL" for all the up coming tests? Is it possible that it will clean up configurations needed for other tests?

Copy link
Contributor

Choose a reason for hiding this comment

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

Prefer to set op=“DEL” as a local value for the command, eg using with_item

@sihuihan88 sihuihan88 merged commit 8a3c749 into sonic-net:master Aug 24, 2018
qiluo-msft added a commit that referenced this pull request Sep 27, 2018
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