-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[GCU] [MA] ACL_RULE modifications are not applied #20378
Comments
Moving issue from sonic-utilities repo, here. Closing the original ticket (sonic-net/sonic-utilities#3558) as duplicate. |
Cannot repro in MSFT lab admin@str2-7250-lc1-2:~$ show ver SONiC Software Version: SONiC.20220532.72 Platform: x86_64-nokia_ixr7250e_36x400g-r0 admin@str2-7250-lc1-2:~$ cat acl.json admin@str2-7250-lc1-2:~$ sudo config apply-patch acl.json config db looks like: admin@str2-7250-lc1-2:~$ sudo ip netns exec asic1 show acl rule NTP_ACL TEST_DROP 9998 DROP IP_PROTOCOL: 17 N/A admin@str2-7250-lc1-2:~$ sudo ip netns exec asic1 iptables -S |
After further debugging, the issue is happening only when trying to modify an existing ACL_RULE via apply-patch replace and it is not seen when creating a new ACL RULE. So, after creating an ACL_RULE with the steps from description, as a next step please try to modify the newly created rule. For example sending this patch:
Output from console shows the change was not recognized (patch was converted into 0 changes.).
Also, tried with operation "add" also, and results were the same.
Entries in iptables -S displayed the initial rule information - were not updated. |
@xincunli-sonic, can you please help triage this issue. |
Description
GCU modification to ACL_RULE path fail to be applied for multi-asic platform.
More specifically, ACL_RULE is added per namespace but not applied to iptables and thus, the test case verification fails.
Failed tests:
(Automated test cases support for running in t2 topology is added via PR sonic-net/sonic-mgmt#14070 )
Steps to reproduce the issue
An example below:
sudo config apply-patch add_acl_rule.json
sudo ip netns exec asic1 show acl rule
sudo ip netns exec asic1 iptables -S
Describe the results you received
The rule was not seen in iptables cmd and functionality not applied.
Describe the results you expected
The rule should be visible in runningconfiguration as well as in iptables.
Additional information you deem important (e.g. issue happens only occasionally)
Issue happend only on multi-asic platform.
Output of
show version
The text was updated successfully, but these errors were encountered: