|
|
@ -72,11 +72,17 @@ class ManageNetworkCI(object):
|
|
|
|
|
|
|
|
|
|
|
|
def wait(self):
|
|
|
|
def wait(self):
|
|
|
|
"""Wait for instance to respond to ansible ping."""
|
|
|
|
"""Wait for instance to respond to ansible ping."""
|
|
|
|
|
|
|
|
if self.core_ci.platform in ('vyos',):
|
|
|
|
|
|
|
|
connection_type = 'network_cli'
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
connection_type = 'local'
|
|
|
|
|
|
|
|
|
|
|
|
extra_vars = [
|
|
|
|
extra_vars = [
|
|
|
|
'ansible_host=%s' % self.core_ci.connection.hostname,
|
|
|
|
'ansible_host=%s' % self.core_ci.connection.hostname,
|
|
|
|
'ansible_port=%s' % self.core_ci.connection.port,
|
|
|
|
'ansible_port=%s' % self.core_ci.connection.port,
|
|
|
|
'ansible_connection=local',
|
|
|
|
'ansible_connection=%s' % connection_type,
|
|
|
|
'ansible_ssh_private_key_file=%s' % self.core_ci.ssh_key.key,
|
|
|
|
'ansible_ssh_private_key_file=%s' % self.core_ci.ssh_key.key,
|
|
|
|
|
|
|
|
'ansible_network_os=%s' % self.core_ci.platform,
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
name = '%s-%s' % (self.core_ci.platform, self.core_ci.version.replace('.', '-'))
|
|
|
|
name = '%s-%s' % (self.core_ci.platform, self.core_ci.version.replace('.', '-'))
|
|
|
|