Retrieves ACL information from remote host.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
acl_facts = duthost.acl_facts()
This method takes no arguments.
A dictionary is returned containing information on the configured ACLs. The dictionary hierarchy is described below, with each indentation describing a sub-dictionary:
ansible_facts
- dictionary containing facts on ACLansible_acl_facts
- Dictionary mapping ACL tables to their configurations{ACL_TABLE_NAME}
- Dictionary containing information on provided tablepolicy_desc
- Description of the table policyports
- List of the ports attached to the ACL tabletype
- type of ACL table (e.g.L2
orCTRLPLANE
)rules
- Dictionary that maps a rule name to its configuration{RULE_NAME}
- dictionary that maps a property of the rule to its valueETHER_TYPE
- Ethernet typePACKET_ACTION
- Whether toDROP
orFORWARD
a packetPRIORITY
- Rule prioritybytes_count
- bytes affected by this rulepackets_count
- packets affected by this ruleSRC_IP
- IP that the packet is coming fromDST_IP
- IP that the packet is going to- *There may be more key-value pairs than listed here