Offline deploy test
Scenario:
* apt node host dnsmasq and nxign proxy,
has connectivity to inet and become a proxy to
mcp.mirror
* All other nodes uses ip of apt node as nameserver
* All other nodes do not have connectivity to internet
Change-Id: I94f5bba191f6846e5e10124f2850a6b4f8be1cca
diff --git a/tcp_tests/fixtures/salt_fixtures.py b/tcp_tests/fixtures/salt_fixtures.py
index 01353bc..52749bb 100644
--- a/tcp_tests/fixtures/salt_fixtures.py
+++ b/tcp_tests/fixtures/salt_fixtures.py
@@ -65,7 +65,8 @@
# Temporary workaround. Underlay should be extended with roles
salt_nodes = underlay.node_names()
config.salt.salt_master_host = \
- underlay.host_by_node_name(salt_nodes[0])
+ underlay.host_by_node_role(
+ node_role=ext.UNDERLAY_NODE_ROLES.salt_master)
commands = underlay.read_template(config.salt_deploy.salt_steps_path)
LOG.info("############ Executing command ####### {0}".format(commands))