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:
nebula.common.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_ssh_command(command, ignore_exceptions=False)¶
-
update_boot_partition(bootbinpath=None, uimagepath=None, devtreepath=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
-