Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/common/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,13 @@ def command(self, cmd):
out = self.host.eos_command(commands=[cmd])
return out

def set_interface_lacp_rate_mode(self, interface_name, mode):
out = self.host.eos_config(
lines=['lacp rate %s' % mode],
parents='interface %s' % interface_name)
logging.info("Set interface [%s] lacp rate to [%s]" % (interface_name, mode))
return out

class FanoutHost():
"""
@summary: Class for Fanout switch
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def fanouthosts(ansible_adhoc, conn_graph_facts, creds):
Shortcut fixture for getting Fanout hosts
"""

dev_conn = conn_graph_facts['device_conn']
dev_conn = conn_graph_facts['device_conn'] if 'device_conn' in conn_graph_facts else {}
fanout_hosts = {}
for dut_port in dev_conn.keys():
fanout_rec = dev_conn[dut_port]
Expand Down
Loading