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

Acl icmp #451

Closed
Closed

Conversation

Anandaraj-Maharajan
Copy link
Contributor

@Anandaraj-Maharajan Anandaraj-Maharajan commented Feb 3, 2018

Description of PR

Fixes # (issue)

Type of change

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

Approach

How did you do it?
Composed ICMP packet through ptf library and send it through ptf container,
How did you verify/test it?
Created a new rule to match the icmp traffic and drop above the perimt any rule. Verify deny rule is hit and packet gets dropped
Any platform specific information?
Supported testbed topology if it's a new test case?
t1, t1-Lag, t1-64-lag

Documentation

For initial review created new files and modified them so that they don't affect any existing test-suite

This commit adds support for icmp filter test case in acl module.

Signed-off-by: Anandaraj Maharajan <[email protected]>
This commit adds support for icmp filter test case in acl module.

Signed-off-by: Anandaraj Maharajan <[email protected]>
alignment problem in json files
icmp protocol match in acltb_test_dell
@andriymoroz-mlnx
Copy link
Contributor

acltb_test_dell.py comparing to acltb_test.py only adds one more test
why not just update acltb_test.py?

return
#---------------------------------------------------------------------

def verify_packet_any_port(self, pkt, ports=[], device_number=0):
Copy link
Contributor

Choose a reason for hiding this comment

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

Why don't use verify_packets_any from ptf utils instead of defining new function?

print "Test #11 %s" % ("PASSED" if res else "FAILED")

#Creates a ICMP packet
pkt0 = simple_icmp_packet(
Copy link
Contributor

Choose a reason for hiding this comment

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

Incorrect alignment and else where in file. Please correct.

@@ -158,6 +158,10 @@
include: acltb.yml
tags: acl

- name: ACL test Dell version with ICMP testcase
include: acltb_dell.yml
tags: dell
Copy link
Contributor

Choose a reason for hiding this comment

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

test by tag is deprecated, the new test framework is test by name.

pkt['IP'].src = "10.0.0.2"
exp_pkt['IP'].src = "10.0.0.2"
pkt['IP'].proto=0x1
exp_pkt['IP'].proto=0x1
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 fix the alignment here?

@lguohan
Copy link
Contributor

lguohan commented Feb 13, 2018

I agree with @andriymoroz-mlnx, the test bring lots of redundant code into the the test infrastructure which is difficult to maintain, suggest to add the test into existing framework.

Copy link
Contributor

@lguohan lguohan left a comment

Choose a reason for hiding this comment

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

as comments

@simone-dell simone-dell mentioned this pull request Feb 14, 2018
3 tasks
@Anandaraj-Maharajan
Copy link
Contributor Author

Closing this pull request as the comments are updated and merged by @simone-dell

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