Skip to content
Merged
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
6 changes: 3 additions & 3 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,9 +215,9 @@ def fanouthosts(ansible_adhoc, conn_graph_facts, creds):
if fanout_host in fanout_hosts.keys():
fanout = fanout_hosts[fanout_host]
else:
# FIXME: assuming all fanout hosts are EOS for now. Needs to figure out the os type and
# create fanout switch with the right type.
fanout = FanoutHost(ansible_adhoc, 'eos', fanout_host, 'FanoutLeaf', creds['fanout_admin_user'], creds['fanout_admin_password'])
host_vars = ansible_adhoc().options['inventory_manager'].get_host(fanout_host).vars
os_type = 'eos' if 'os' not in host_vars else host_vars['os']
fanout = FanoutHost(ansible_adhoc, os_type, fanout_host, 'FanoutLeaf', creds['fanout_admin_user'], creds['fanout_admin_password'])
fanout_hosts[fanout_host] = fanout
fanout.add_port_map(dut_port, fanout_port)

Expand Down