nebula.network module

class nebula.network.network(dutip=None, dutusername=None, dutpassword=None, dhcp=None, nic=None, nicip=None, yamlfilename=None, board_name=None)

Bases: utils

check_board_booted()

Check if board has network activity with ping, then check SSH working This function raises exceptions on failures

check_dmesg(error_on_warnings=False)

check_dmesg: Download and parse remote board’s dmesg log

return:

dmesg_log string of dmesg log status: 0 if no errors found, 1 otherwise

check_ssh()

SSH to board board and check if its possible to run any command

return: True working ssh, False non-working ssh

copy_file_to_remote(src, dest)
ping_board(tries=10)

Ping board and check if any received

return: True non-zero received, False zero received

reboot_board(bypass_sleep=False)

Reboot board over SSH, otherwise raise exception

run_diagnostics()

run_diagnostics: execute and download adi_diagnostic report

return:

status: 0 if no errors found, 1 otherwise

run_ssh_command(command, ignore_exceptions=False, retries=1, show_log=True, print_result_to_file=True)
update_boot_partition(bootbinpath=None, uimagepath=None, devtreepath=None, extlinux_path=None, scr_path=None, preloader_path=None)

update_boot_partition: Update boot files on existing card which from remote files

update_boot_partition_existing_files(subfolder=None)

update_boot_partition_existing_files: Update boot files on existing card which contains reference files in the BOOT partition

You must specify the subfolder with the BOOT partition to use. For example: zynq-zc706-adv7511-fmcdaq2

verify_checksum(file_path, reference, algo='sha256')