Skip to content

Commit

Permalink
Update tasks.py
Browse files Browse the repository at this point in the history
Add yamlfilename argument to (network) run_command
  • Loading branch information
kimpaller authored Aug 14, 2023
1 parent aff45b0 commit 4a77aad
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nebula/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -1272,6 +1272,7 @@ def run_diagnostics(
"ip": "IP address of board. Default from yaml",
"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",
"command": "Shell command to run via ssh. Supports linux systems for now.",
"ignore_exception": "Ignore errors encountered on the remote side.",
Expand All @@ -1283,14 +1284,19 @@ def run_command(
ip=None,
user="root",
password="analog",
yamlfilename="/etc/default/nebula",
board_name=None,
command=None,
ignore_exception=False,
retries=3,
):
"""Run command on remote via 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.run_ssh_command(command, ignore_exception, retries)

Expand Down

0 comments on commit 4a77aad

Please sign in to comment.