@JunitTestCase()
def generate_and_download_infra_env(self, iso_download_path=None, static_network_config=None, iso_image_type=None, ssh_key=None, ignition_info=None, proxy=None) -> Path:
    if (self._config.is_static_ip and (static_network_config is None)):
        static_network_config = static_network.generate_static_network_data_from_tf(self.nodes.controller.tf_folder)
    self.generate_infra_env(static_network_config=static_network_config, iso_image_type=iso_image_type, ssh_key=ssh_key, ignition_info=ignition_info, proxy=proxy)
    return self.download_infra_env_image(iso_download_path=(iso_download_path or self._config.iso_download_path))
@JunitTestCase()
def generate_and_download_infra_env(self, iso_download_path=None, static_network_config=None, iso_image_type=None, ssh_key=None, ignition_info=None, proxy=None) -> Path:
    if (self._config.is_static_ip and (static_network_config is None)):
        static_network_config = static_network.generate_static_network_data_from_tf(self.nodes.controller.tf_folder)
    self.generate_infra_env(static_network_config=static_network_config, iso_image_type=iso_image_type, ssh_key=ssh_key, ignition_info=ignition_info, proxy=proxy)
    return self.download_infra_env_image(iso_download_path=(iso_download_path or self._config.iso_download_path))