mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
type issue on arg
This commit is contained in:
@@ -136,7 +136,7 @@ def main():
|
|||||||
|
|
||||||
parser = argparse.ArgumentParser(description="Cisco TX Power report Script")
|
parser = argparse.ArgumentParser(description="Cisco TX Power report Script")
|
||||||
parser.add_argument("-d", "--dest", type=str, help="address of the cisco controller")
|
parser.add_argument("-d", "--dest", type=str, help="address of the cisco controller")
|
||||||
parser.add_argument("-o", "--port", type=int, help="control port on the controller")
|
parser.add_argument("-o", "--port", type=str, help="control port on the controller", default=23)
|
||||||
parser.add_argument("-u", "--user", type=str, help="credential login/username")
|
parser.add_argument("-u", "--user", type=str, help="credential login/username")
|
||||||
parser.add_argument("-p", "--passwd", type=str, help="credential password")
|
parser.add_argument("-p", "--passwd", type=str, help="credential password")
|
||||||
parser.add_argument("-s", "--scheme", type=str, choices=["serial", "ssh", "telnet"], help="Connect via serial, ssh or telnet")
|
parser.add_argument("-s", "--scheme", type=str, choices=["serial", "ssh", "telnet"], help="Connect via serial, ssh or telnet")
|
||||||
@@ -175,6 +175,7 @@ def main():
|
|||||||
user = args.user
|
user = args.user
|
||||||
passwd = args.passwd
|
passwd = args.passwd
|
||||||
logfile = args.log
|
logfile = args.log
|
||||||
|
port = args.port
|
||||||
if (args.station != None):
|
if (args.station != None):
|
||||||
lfstation = args.station
|
lfstation = args.station
|
||||||
if (args.upstream_port != None):
|
if (args.upstream_port != None):
|
||||||
|
|||||||
Reference in New Issue
Block a user