Add new acl table via command sudo config acl add table
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
duthost.add_acl_table(table_name="Test_TABLE",
table_type="L3",
acl_stage="ingress",
bind_ports=["Ethernet0", "Ethernet1", "Ethernet3"])
table_name
- table name of acl table- Required:
True
- Type:
String
- Required:
table_type
- table type of acl table- Required:
True
- Type:
String
- Required:
acl_stage
- acl stage- Required:
False
- Type:
String
- Validate value: "ingress" or "egress"
- Default: None
- Required:
bind_ports
- ports to bind- Required:
False
- Type option 1:
String
- Format: Ethernet0,Ethernet1,Ethernet3
- Type option 2:
List
- Member Type:
String
- Format: ["Ethernet0", "Ethernet1", "Ethernet3"] or ["Vlan100", "Vlan200"]
- This list of interfaces will be join to a string
- If list of VLAN name provided, acl table will bind to ports binding to those VLAN.
- Member Type:
- Default: None
- Required:
description
- description of acl table- Required:
False
- Type:
String
- Default: None
- Required:
None