-
Notifications
You must be signed in to change notification settings - Fork 770
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
Added DIP=SIP testcase. #666
Conversation
|
||
dip_sip: | ||
filename: dip_sip.yml | ||
topologies: [t0, t1, t1-lag] |
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.
We need t0-56 at least. It would be better to add all. #Closed
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.
@qiluo-msft We need to discuss which topologies must be supported by this testcase. Regarding t0-56, I have no way to check it. Basically, we can use any topology with this testcase which contains at least two PORT/LAG RIFs connected to neighbors, providing the valid LLDP info.
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.
Then it's ok to add all known topo here. Others can help you test. #Closed
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.
@qiluo-msft I have extended this testcase with the additional topologies as we discussed.
|
||
from ptf import config | ||
from ptf.base_tests import BaseTest | ||
from ptf.testutils import * |
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.
Don't import wildcard. #Closed
ip_ttl=self.pktTtl) | ||
send(self.test, int(self.srcPortIds[0]), pkt) | ||
|
||
pkt = simple_udp_packet(eth_dst=self.dstHostMac, |
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.
Should we also have one for IPv6?
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.
@prsunny Yes. Extended with IPv6 support.
self.dstHostIpv6 = str(ip_address(unicode(self.testParams['dst_router_ipv6'])) + 1) | ||
|
||
self.srcRouterMac = self.testParams['src_router_mac'] | ||
self.srcRouterIpv4 = self.testParams['src_router_ipv4'] |
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.
Just a note, looks like srcRouterIPvX and srcHostIpvX are not used in the 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.
@prsunny Correct. It is just for logging purpose.
Description of PR
The purpose of this test is to validate that SONiC switch supports routing of L3 packets with DIP=SIP
Type of change
Approach
How did you do it?
How did you verify/test it?
sudo -H ansible-playbook test_sonic.yml -i inventory --limit arc-switch1025-t0 -e testbed_name=arc-switch1025-t0 -e testbed_type=t0 -e testcase_name=dip_sip -vvvvv
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation