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

Convert arp_responder.py script to python 3 #8697

Merged
merged 1 commit into from
Jul 25, 2023

Conversation

saiarcot895
Copy link
Contributor

@saiarcot895 saiarcot895 commented Jun 22, 2023

Description of PR

This allows the use of scapy 2.5.0 and also fixes an issue where ARP packets are not being sent out fast enough/in time, causing control plane ping packets to fail to respond.

This depends on the PTF container changes done in sonic-net/sonic-buildimage#15573.

Microsoft ADO: 24341848

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Ran route/test_static_route.py so that this script gets tested.

Any platform specific information?

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

Documentation

This allows the use of scapy 2.5.0 and also fixes an issue where ARP
packets are not being sent out fast enough/in time for control plane
ping packets to fail to respond.

Signed-off-by: Saikrishna Arcot <[email protected]>
@saiarcot895 saiarcot895 marked this pull request as ready for review July 20, 2023 23:32
@vaibhavhd
Copy link
Contributor

What branches do we need this to be cherry picked? 202205+ ?

@saiarcot895
Copy link
Contributor Author

I don't think this should be cherry-picked; this should be on master branch only for sonic-mgmt (which, I think, covers 202211 branch and newer).

If we really need this on 202205 branch, then the PTF container needs to be updated for 202205.

@saiarcot895 saiarcot895 merged commit 01a0a5f into sonic-net:master Jul 25, 2023
11 checks passed
@saiarcot895 saiarcot895 deleted the arp-responder-python3 branch July 25, 2023 19:41
yaqiangz added a commit that referenced this pull request Aug 9, 2023
What is the motivation for this PR?
Missing part of this PR: #8697 would causes error while replying ndp.

How did you do it?
Remove useless parameter.

How did you verify/test it?
Run this script to reply ndp.

Signed-off-by: Yaqiang Zhu <[email protected]>
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Aug 9, 2023
What is the motivation for this PR?
Missing part of this PR: sonic-net#8697 would causes error while replying ndp.

How did you do it?
Remove useless parameter.

How did you verify/test it?
Run this script to reply ndp.

Signed-off-by: Yaqiang Zhu <[email protected]>
mssonicbld pushed a commit that referenced this pull request Aug 9, 2023
What is the motivation for this PR?
Missing part of this PR: #8697 would causes error while replying ndp.

How did you do it?
Remove useless parameter.

How did you verify/test it?
Run this script to reply ndp.

Signed-off-by: Yaqiang Zhu <[email protected]>
yaqiangz added a commit that referenced this pull request Aug 9, 2023
What is the motivation for this PR?
Introduced this PR: #8697. Missing specifying interface would causes that ipv6 reply packet is sent by default interface(sendrecv.py), which is incorrect.

How did you do it?
Specify send interface.

How did you verify/test it?
Run this script in ptf and ping ipv6 address from DUT, then run show ndp in DUT, address pinged before can be seen in ndp table.
Run test_acl.py in m0 testbed, all passed. (This test case in m0 would trigger ndp reply)

Signed-off-by: Yaqiang Zhu <[email protected]>
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Aug 9, 2023
What is the motivation for this PR?
Introduced this PR: sonic-net#8697. Missing specifying interface would causes that ipv6 reply packet is sent by default interface(sendrecv.py), which is incorrect.

How did you do it?
Specify send interface.

How did you verify/test it?
Run this script in ptf and ping ipv6 address from DUT, then run show ndp in DUT, address pinged before can be seen in ndp table.
Run test_acl.py in m0 testbed, all passed. (This test case in m0 would trigger ndp reply)

Signed-off-by: Yaqiang Zhu <[email protected]>
mssonicbld pushed a commit that referenced this pull request Aug 9, 2023
What is the motivation for this PR?
Introduced this PR: #8697. Missing specifying interface would causes that ipv6 reply packet is sent by default interface(sendrecv.py), which is incorrect.

How did you do it?
Specify send interface.

How did you verify/test it?
Run this script in ptf and ping ipv6 address from DUT, then run show ndp in DUT, address pinged before can be seen in ndp table.
Run test_acl.py in m0 testbed, all passed. (This test case in m0 would trigger ndp reply)

Signed-off-by: Yaqiang Zhu <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
This allows the use of scapy 2.5.0 and also fixes an issue where ARP
packets are not being sent out fast enough/in time for control plane
ping packets to fail to respond.

Signed-off-by: Saikrishna Arcot <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
What is the motivation for this PR?
Missing part of this PR: sonic-net#8697 would causes error while replying ndp.

How did you do it?
Remove useless parameter.

How did you verify/test it?
Run this script to reply ndp.

Signed-off-by: Yaqiang Zhu <[email protected]>
AharonMalkin pushed a commit to AharonMalkin/sonic-mgmt that referenced this pull request Jan 25, 2024
What is the motivation for this PR?
Introduced this PR: sonic-net#8697. Missing specifying interface would causes that ipv6 reply packet is sent by default interface(sendrecv.py), which is incorrect.

How did you do it?
Specify send interface.

How did you verify/test it?
Run this script in ptf and ping ipv6 address from DUT, then run show ndp in DUT, address pinged before can be seen in ndp table.
Run test_acl.py in m0 testbed, all passed. (This test case in m0 would trigger ndp reply)

Signed-off-by: Yaqiang Zhu <[email protected]>
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