Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Amazon_Framework/DentOsTestbed/Requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pytest
pytest-asyncio
pytest-html
ixnetwork_restpy
progressbar
progressbar2

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
"""Module for installing OS through onie-select
"""Module for installing OS through dent_boot_select
"""
import os
import time


class OsInstallerOnieSelect:
"""
Implements APIs for installing OS through onie-select
Implements APIs for installing OS through dent_boot_select
"""

DEVICE_UP_WAIT_TIME_SECS = 60 * 3
Expand Down Expand Up @@ -42,7 +42,7 @@ async def install_os(self, device, os_image_download_url, staging_device, stagin
Args:
device (Device): Device on which the OS needs to be installed
os_image_download_url (str): HTTP URL to download the OS image from
staging_device (Device): Device to stage the OS image,from which onie-select picks it up
staging_device (Device): Device to stage the OS image,from which dent_boot_select picks it up
staging_path(str): Path on the staging device to which the OS image is copied to.

Raises:
Expand All @@ -66,7 +66,7 @@ async def verify_os(self, device, os_image_download_url, staging_device, staging
Args:
device (Device): Device on which the OS needs to be installed
os_image_download_url (str): HTTP URL to download the OS image from
staging_device (Device): Device to stage the OS image,from which onie-select picks it up
staging_device (Device): Device to stage the OS image,from which dent_boot_select picks it up
staging_path(str): Path on the staging device to which the OS image is copied to.

Raises:
Expand All @@ -86,7 +86,7 @@ async def verify_os(self, device, os_image_download_url, staging_device, staging

async def _run_onie_select(self, device):
try:
await device.run_cmd("onie-select install", sudo=True)
await device.run_cmd("dent_boot_select install", sudo=True)
except Exception as e:
self.applog.exception(
f"{OsInstallerOnieSelect._run_onie_select.__qualname__}", exc_info=e
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,20 @@ async def test_clean_config(testbed):
- call the helper
"""

package = "/home/neteng/staging/staging.tar.gz"
if not os.path.exists(package):
assert 0, f"{package} could not be found!"
# package = "/home/neteng/staging/staging.tar.gz"
# if not os.path.exists(package):
# assert 0, f"{package} could not be found!"

devices = await tb_get_all_devices(testbed)
cos = []
for device in devices:
cos.append(disable_ztp(device))
results = await asyncio.gather(*cos, return_exceptions=True)
check_asyncio_results(results, "disable_ztp")
cos = []
for device in devices:
cos.append(setup_dent_tools(device, package))
results = await asyncio.gather(*cos, return_exceptions=True)
check_asyncio_results(results, "setup_dent_tools")
# cos = []
# for device in devices:
# cos.append(setup_dent_tools(device, package))
# results = await asyncio.gather(*cos, return_exceptions=True)
# check_asyncio_results(results, "setup_dent_tools")

await tb_clean_config(testbed)