def __init__(self, util_info):
self.logger.debug("initialize vm controller")
self.command_gen = CommandGenerator()
credentials = util_info["credentials"]
self.util = Utilvnf()
self.util.set_credentials(credentials["snaps_creds"])
with open(self.util.test_env_config_yaml) as file_fd:
test_env_config_yaml = yaml.safe_load(file_fd)
file_fd.close()
self.reboot_wait = test_env_config_yaml.get("general").get(
"reboot_wait")
self.command_wait = test_env_config_yaml.get("general").get(
"command_wait")
self.ssh_connect_timeout = test_env_config_yaml.get("general").get(
"ssh_connect_timeout")
self.ssh_connect_retry_count = test_env_config_yaml.get("general").get(
"ssh_connect_retry_count")
评论列表
文章目录