Skip to content

[multi-asic] show acl table command gets data from host config db and not from asic namespace db #16012

@judyjoseph

Description

@judyjoseph

Description

"show acl table" which uses acl-loader gets data from host config db alone for multi-asic devices. The ACL entries in host need not have all the interfaces which is valid in the namespaces.

Instead we need to connect to each namespace and get the ACLs

Steps to reproduce the issue:

  1. show acl table DATAACL

Describe the results you received:

admin@str2--lc1-1:~$ show acl table DATAACL
Name     Type    Binding         Description    Stage    Status
-------  ------  --------------  -------------  -------  --------------------------------------
DATAACL  L3      PortChannel102 DATAACL        ingress  {'asic0': 'Active', 'asic1': 'Active'}
                 PortChannel106

Describe the results you expected:

admin@str2--lc1-1:~$ show acl table DATAACL
Name     Type    Binding         Description    Stage    Status
-------  ------  --------------  -------------  -------  --------------------------------------
DATAACL  L3      Ethernet128     DATAACL        ingress  {'asic0': 'Active', 'asic1': 'Active'}
                 Ethernet184
                 PortChannel102
                 PortChannel106

Output of show version:

admin@str2--lc1-1:~$ show version 

SONiC Software Version: SONiC.20220530.38
SONiC OS Version: 11
Distribution: Debian 11.7
Kernel: 5.10.0-18-2-amd64
Build commit: 4115919589
Build date: Fri Jul 28 01:24:14 UTC 2023
Built by: cloudtest@8ec96c8ac000000```
#### Output of `show techsupport`:

(paste your output here or download and attach the file here )


#### Additional information you deem important (e.g. issue happens only occasionally):

<!--
     Also attach debug file produced by `sudo generate_dump`
-->

Metadata

Metadata

Labels

Chassis 🤖Modular chassis supportMSFTTriagedthis issue has been triaged

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions