mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 20:07:57 +00:00
Added upgrade and verify-model action
This commit is contained in:
@@ -44,6 +44,15 @@ class APTools:
|
|||||||
elif action == "run_cmd":
|
elif action == "run_cmd":
|
||||||
[input, output, error] = self.apnos.run_generic_command(cmd=cmd)
|
[input, output, error] = self.apnos.run_generic_command(cmd=cmd)
|
||||||
print(input, output, error)
|
print(input, output, error)
|
||||||
|
elif action == "verify":
|
||||||
|
[input, output, error] = self.apnos.run_generic_command("cat /tmp/sysinfo/model;"
|
||||||
|
"cat /etc/banner")
|
||||||
|
print(output)
|
||||||
|
print(error)
|
||||||
|
elif action == "upgrade":
|
||||||
|
[input, output, error] = self.apnos.run_generic_command("cd /tmp ; curl -L \'{self.comm}\' --output upgrade ; "
|
||||||
|
"sysupgrade -n upgrade")
|
||||||
|
print(input, output, error)
|
||||||
elif action == "get_redirector":
|
elif action == "get_redirector":
|
||||||
redirector = self.apnos.get_redirector()
|
redirector = self.apnos.get_redirector()
|
||||||
print(redirector)
|
print(redirector)
|
||||||
|
|||||||
Reference in New Issue
Block a user