Example #1
0
 def __init__(self, host, ip_version=None, network_name=None, **kwargs):
     super(OvercloudHostConfig, self).__init__()
     tobiko.check_valid_type(host, six.string_types)
     self.host = host
     if ip_version:
         self.ip_version = ip_version
     if network_name:
         self.network_name = network_name
     self._connect_parameters = ssh.gather_ssh_connect_parameters(**kwargs)
Example #2
0
 def __init__(self,
              host=None,
              ip_version=None,
              network_name=None,
              server=None,
              **kwargs):
     super(OvercloudHostConfig, self).__init__()
     if host:
         self.host = host
     if ip_version:
         self.ip_version = ip_version
     if network_name:
         self.network_name = network_name
     if server:
         self.server = server
         if self.host is None:
             self.host = server.name
     tobiko.check_valid_type(self.host, str)
     self._connect_parameters = ssh.gather_ssh_connect_parameters(**kwargs)
Example #3
0
 def connect_parameters(self):
     parameters = ssh.ssh_host_config(
         host=str(self.hostname)).connect_parameters
     parameters.update(ssh.gather_ssh_connect_parameters(self))
     parameters.update(self._connect_parameters)
     return parameters
Example #4
0
 def connect_parameters(self):
     parameters = ssh.gather_ssh_connect_parameters(self)
     parameters.update(self._connect_parameters)
     return parameters
Example #5
0
 def __init__(self, **kwargs):
     super(UndecloudHostConfig, self).__init__()
     self._connect_parameters = ssh.gather_ssh_connect_parameters(**kwargs)