Retreive switch capability information.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
switch_capabilities = duthost.switch_capabilities_facts()
This method takes no arguments.
Returns dictionary with data on capabilities of switch. The dictionary hierarchy is described below, with each indentation describing a sub-dictionary:
ansible_facts
switch-capabilities
switch
- Dictionary with data on switch capabilities.MAX_NEXTHOP_GROUP_COUNT
- maximum number of nexthop groupsLAG_TPID_CAPABLE
- Boolean value representing whether switch is capable of LAG TPIDACL_ACTION|INGRESS
- String listing Ingress ACL actions (comma separated)ACL_ACTIONS|EGRESS
- String listing Egress ACL actions (comma separated)PORT_TPID_CAPABLE
- Boolean value representing whether switch is capable of PORT TPIDMIRRORV6
- Whether ipv6 mirroring is enabledMIRROR
- Whether ipv4 mirroring is enabledACL_ACTION|PACKET_ACTION
- String listing packet actions for acls (comma separated)ACL_ACTION|FLOW_OP
- String listing Flow operations for acls (comma separated)