Retrieve Ling Aggregation Group information from a device.
def test_fun(duthosts, rand_one_dut_hostname):
duthost = duthosts[rand_one_dut_hostname]
lag_facts = duthost.lag_facts(host=duthost.hostname)
host
- hostname for desired host- Required:
True
- Type:
String
- Required:
Returns dictionary with facts on LAG. The dictionary hierarchy is described below, with each indentation describing a sub-dictionary:
ansible_facts
lag_facts
- Dictionary with info on configured link aggregation groupsnames
- list of name of configured LAGslags
- Dictionary that provides info on LAG configs{LAG_NAME}
- Dictionary that provides info on provided LAgpo_config
device
- name of device (usually same as provided forLAG_NAME
hwaddr
- hardware addressrunner
active
- whether active or notmin_ports
- minimum number of portstx_hash
-?name
- protocol name
ports
{PORT_NAME}
lacp_key
link_watch
name
po_namespace_id
po_intf_stat
- interface statuspo_stats
runner
active
select_policy
fallback
fast_rate
sys_prio
setup
daemonized
zmq_enabled
kernel_team_mode_name
pid
dbus_enabled
pid_file
runner_name
ports
{PORT_NAME}
link_watches
list
{LINK_WATCH_NAME}
up
down_count
name
delay_down
delay_up
up
runner
state
actor_lacpdu_info
port_priority
state
system_priority
key
system
port
key
prio
aggregator
selected
id
selected
partner_lacpdu_info
port_priority
state
system_priority
key
system
port
link
duplex
speed
up
ifinfo
ifindex
dev_addr
ifname
dev_addr_len
team_device
ifinfo
ifindex
dev_addr
ifname
dev_addr_len