removed session.create_wireless_node, can be achieved simply without needing this function
This commit is contained in:
parent
c1bb9ed5d8
commit
ce411a07d7
9 changed files with 56 additions and 74 deletions
|
@ -5,7 +5,7 @@ DEFAULT_TIME = 10
|
|||
DEFAULT_STEP = 1
|
||||
|
||||
|
||||
def parse_options(name):
|
||||
def parse(name):
|
||||
parser = argparse.ArgumentParser(description=f"Run {name} example")
|
||||
parser.add_argument(
|
||||
"-n",
|
||||
|
@ -22,11 +22,11 @@ def parse_options(name):
|
|||
help="example iperf run time in seconds",
|
||||
)
|
||||
|
||||
options = parser.parse_args()
|
||||
args = parser.parse_args()
|
||||
|
||||
if options.nodes < 2:
|
||||
parser.error(f"invalid min number of nodes: {options.nodes}")
|
||||
if options.time < 1:
|
||||
parser.error(f"invalid test time: {options.time}")
|
||||
if args.nodes < 2:
|
||||
parser.error(f"invalid min number of nodes: {args.nodes}")
|
||||
if args.time < 1:
|
||||
parser.error(f"invalid test time: {args.time}")
|
||||
|
||||
return options
|
||||
return args
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue