Lines Matching refs:cmd
26 def run_command(cmd, should_fail=False): argument
32 p = Popen(cmd, stdout=PIPE, stderr=PIPE, shell=True)
37 print("Error sending command: %s" % cmd)
57 cmd = "devlink -j port show"
58 stdout, stderr = run_command(cmd)
81 cmd = "devlink -j port show %s" % port
82 stdout, stderr = run_command(cmd)
99 cmd = "devlink -j port show %s" % port.name
100 stdout, stderr = run_command(cmd)
115 cmd = "devlink port split %s count %s" % (port.bus_info, k)
116 stdout, stderr = run_command(cmd, should_fail=should_fail)
135 cmd = "devlink port unsplit %s" % port
136 stdout, stderr = run_command(cmd)
214 cmd = "udevadm settle"
215 stdout, stderr = run_command(cmd)
262 cmd = "devlink -j dev show"
263 stdout, stderr = run_command(cmd)
270 cmd = "devlink dev show %s" % dev
271 stdout, stderr = run_command(cmd)