Skip to content

Commit

Permalink
Update tasks.py: network
Browse files Browse the repository at this point in the history
Update (network) restart_board arguments to make it the task more reconfigurable
  • Loading branch information
kimpaller authored Aug 14, 2023
1 parent 836c75b commit 14779b5
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions nebula/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1204,13 +1204,25 @@ def check_dmesg(c, ip, user="root", password="analog", board_name=None):
"ip": "IP address of board",
"user": "Board username. Default: root",
"password": "Password for board. Default: analog",
"yamlfilename": "Path to yaml config file. Default: /etc/default/nebula",
"board_name": "Name of DUT design (Ex: zynq-zc706-adv7511-fmcdaq2). Require for multi-device config files",
}
)
def restart_board(c, ip, user="root", password="analog", board_name=None):
def restart_board(
c,
ip=None,
user=None,
password=None,
yamlfilename="/etc/default/nebula",
board_name=None
):
"""Reboot development system over IP"""
n = nebula.network(
dutip=ip, dutusername=user, dutpassword=password, board_name=board_name
dutip=ip,
dutusername=user,
dutpassword=password,
yamlfilename=yamlfilename,
board_name=board_name
)
n.reboot_board(bypass_sleep=True)

Expand Down

0 comments on commit 14779b5

Please sign in to comment.