Skip to content

Adding Save & Reload testcase for ACL#486

Merged
lguohan merged 3 commits intosonic-net:masterfrom
Anandaraj-Maharajan:aclreload
May 4, 2018
Merged

Adding Save & Reload testcase for ACL#486
lguohan merged 3 commits intosonic-net:masterfrom
Anandaraj-Maharajan:aclreload

Conversation

@Anandaraj-Maharajan
Copy link
Contributor

This checkin adds changes to perform save and reload test case for ACL rules

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?
Installed the ACL rules in the switch,
pushed the changes to configDB,
performed a reload,
re-run the traffic test
How did you verify/test it?
Using PTF traffic test, verified the desired packets are blocked after save and reload.
Any platform specific information?
Supported testbed topology if it's a new test case?
[t1, t1-lag, t1-64-lag]
aclreload.log

Documentation

successful test run log in T1 topology is attached along with pull request.

This checkin adds changes to perform save and reload test case for ACL rules
command_to_run: "acl-loader update full /tmp/acltb_test_rules-del.json"
errors_expected: false
include: roles/test/tasks/run_command_with_log_analyzer.yml
command: acl-loader delete
Copy link
Contributor

Choose a reason for hiding this comment

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

Why this change as compared to the previous one?. This will delete the entire set of rules but the previous approach deletes the rules based on the json file.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@prsunny acltb_test_rules-del.json file is a empty file. So using either json or 'delete' command performs the same action. Using acl-loader delete is straight forward and reduces the number of lines of code, so made this change.

Additionally I verified acl-loader delete command doesn't remove the DATAACL applied on the interfaces.

Using 'acl-loader delete' deleted all the ACLs including snmp/vty/data/erspan etc. However using 'acl-loader update <empty file> deletes only the dataacl. So reverting back to old change in always section.
@lguohan lguohan merged commit b278259 into sonic-net:master May 4, 2018
praveen-li pushed a commit to praveen-li/sonic-mgmt that referenced this pull request Jun 20, 2019
* Adding Save & Reload testcase for ACL

This checkin adds changes to perform save and reload test case for ACL rules

* modified cleanup section with acl-loader delete command

* Change acl-loader delete to old command

Using 'acl-loader delete' deleted all the ACLs including snmp/vty/data/erspan etc. However using 'acl-loader update <empty file> deletes only the dataacl. So reverting back to old change in always section.
sdszhang pushed a commit to sdszhang/sonic-mgmt that referenced this pull request Aug 2, 2025
Code sync sonic-net/sonic-mgmt:202411 => 202412

```
*   a1064ff (HEAD -> code-sync-202412, origin/code-sync-202412) r12f 250702:1620 - Merge remote-tracking branch 'base/202411' into code-sync-202412
|\
| * f98c8b2 (base/202411) jingwenxie 250513:1319 - Update logger to non user config table (sonic-net#18250)
| * 7958657 Chun'ang Li 250702:1223 - manual cherry pick PR https://github.com/sonic-net/sonic-mgmt/pull/19116/files (sonic-net#19322)
| * 14dda64 mssonicbld 250702:0533 - Fix flakiness in pfcwd/test_pfcwd_cli.py (sonic-net#17411) (sonic-net#17619)
```
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Submodule src/sonic-utilities 6b4d1a0..46b5aa8:
  > [show ip interface] Add support for 'alias' interface naming mode (sonic-net#486)

Submodule src/sonic-swss 9c4ae18..a637562:
  > Suppress storm detect counter increment for ongoing pfc storm case during a warm reboot (sonic-net#869)
  > Remove *_LEFT fields to allow PFC watchdog to enter fresh into the (sonic-net#897)
  > Set LAG mtu value based on kernel netlink msg (sonic-net#922)
  > [warm restart assist] assume vector values could be reordered (sonic-net#921)

Signed-off-by: Ying Xie <[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.

3 participants