mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-01 03:17:54 +00:00
updated the ap_tools to support 2.x
This commit is contained in:
@@ -20,7 +20,7 @@ from apnos import APNOS
|
||||
class APTools:
|
||||
|
||||
def __init__(self, host="", port=22, username="root", jumphost=True,
|
||||
password="openwifi", tty="/dev/ttyAP1"):
|
||||
password="openwifi", tty="/dev/ttyAP1", serial=""):
|
||||
self.host = host
|
||||
self.port = port
|
||||
self.username = username
|
||||
@@ -28,6 +28,7 @@ class APTools:
|
||||
self.credentials = {
|
||||
'jumphost': jumphost,
|
||||
'ip': host,
|
||||
'serial': serial
|
||||
'username': username,
|
||||
'password': password,
|
||||
'port': port,
|
||||
@@ -64,6 +65,8 @@ def main():
|
||||
parser.add_argument('--port', type=int, help='--passwd of dut', default=22)
|
||||
parser.add_argument('--username', type=str, help='--username to use on Access Point', default="root")
|
||||
parser.add_argument('--password', type=str, help='--password to the given username', default="openwifi")
|
||||
parser.add_argument('--sdk', type=str, help='--sdk - [1.x/2.x], default-2.x', default="2.x")
|
||||
parser.add_argument('--serial', type=str, help='--serial - lowercase serial number', default="serial")
|
||||
parser.add_argument('--action', type=str, help='--action to perform'
|
||||
'reboot | run_cmd', default="run_cmd")
|
||||
parser.add_argument('--cmd', type=str, help='--cmd : used when action is "run_cmd"', default="pwd")
|
||||
|
||||
Reference in New Issue
Block a user