Skip to content

Acl icmp#451

Closed
Anandaraj-Maharajan wants to merge 4 commits intosonic-net:masterfrom
Anandaraj-Maharajan:acl_icmp
Closed

Acl icmp#451
Anandaraj-Maharajan wants to merge 4 commits intosonic-net:masterfrom
Anandaraj-Maharajan:acl_icmp

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 <Anandaraj_Maharajan@Dell.com>
This commit adds support for icmp filter test case in acl module.

Signed-off-by: Anandaraj Maharajan <Anandaraj_Maharajan@Dell.com>
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.


- 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

@Anandaraj-Maharajan Anandaraj-Maharajan deleted the acl_icmp branch February 26, 2018 23:56
sdszhang pushed a commit to sdszhang/sonic-mgmt that referenced this pull request Jun 30, 2025
Code sync sonic-net/sonic-mgmt:202411 => 202412

```
*   9be4331 (HEAD -> code-sync-202412, origin/code-sync-202412) r12f 250624:2357 - Merge remote-tracking branch 'base/202411' into code-sync-202412
|\
| * 859f834 (base/202411) mssonicbld 250625:0740 - Fix test_sysuptime failure (sonic-net#16528) (sonic-net#18461)
```

Co-authored-by: mssonicbld <79238446+mssonicbld@users.noreply.github.com>
Co-authored-by: Sai Kiran <110003254+opcoder0@users.noreply.github.com>
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