Commit Graph

30 Commits

Author SHA1 Message Date
Matthew Stidham
028be1f7f1 create_chamberview: Use base argparser so there's no more guessing what the flags are
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2022-07-12 15:45:49 +05:30
Chuck SmileyRekiere
85d1628a7c create_chamberview.py : prints to logger
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2022-07-12 15:45:49 +05:30
Ben Greear
7db4c9a329 create-cv: Improve --line and --ssid parser.
Use shlex to parse the tokens for each --line and --ssid content.
This fixes using ssid with spaces, for instance.
Fix parser to error out if user inputs invalid data.

Add TODO items for future work.

Fix regression script:  DUT must be created before Scenario tries to use it,
and fix typos and other mistakes in how the regression script tried to
create dut and chamberview.  This part has not been tested yet, but it is
at least closer than before.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2022-07-12 15:45:45 +05:30
Ben Greear
1da6d7d2f3 python/cv: Start adding debugging to create_chamberview
Try to figure out why this doesn't work on testbed heather,
at the least, I think DUT is probably wrong in the resgresison
script.  More work is needed to get this working.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2022-07-12 15:45:45 +05:30
Matthew Stidham
15424cc7a3 create_chamberview: Fix problems, I've grown as a programmer
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-24 13:25:16 -08:00
Matthew Stidham
6b45fc4b8e create_chamberview: Fix obtuse logic which breaks without clear warnings
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-22 10:40:46 -08:00
Matthew Stidham
985e55ded8 create_chamberview.py autopep8
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-11-10 12:16:39 -08:00
Matthew Stidham
bc006199ff Fix mutable arguments and shadowing build in functions in create_chamberview.py
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-10-11 12:42:31 -07:00
Matthew Stidham
7bd0bc48c9 Fixing whitespace in create_chamberview.py
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-10-11 12:33:13 -07:00
Matthew Stidham
4e7e8b9360 1. Updating argparse commands so they include flags
2. Create check_argparse which allows us to check which flags are or are not included in argparse statements.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-21 16:13:07 -07:00
Matthew Stidham
36400e003d Making it so that lanforge-scripts can work if the repository isn't named exactly the same way
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-09-17 15:29:15 -07:00
erinnerim
1d7578251c Updates to import statements:
- Import importlib, os, and sys to each python script.
 - Append "lanforge-scripts" root directory to the system path, allowing each script to be called from an antecedent directory. e.g.
if 'lanforge-scripts' not in sys.path:
    sys.path.append(os.path.join(os.path.abspath(__file__ + "../../../../../")))
 - All statements of the form 'from <module> import <class>' replace with:
<module> = importlib.import_module("lanforge-scripts.<directory>.<module>")
<class> = <module>.<class>
2021-09-15 16:17:16 -07:00
erinnerim
db4d3f9fe3 Revert "importlib refactor create_chamberview.py"
This reverts commit 198280d41f.
2021-09-10 17:57:33 -07:00
erinnerim
198280d41f importlib refactor create_chamberview.py 2021-09-10 15:35:45 -07:00
Matthew Stidham
2e5a544afa Adding functionality to use flags when modifying and creating stations, DUTs, and VAPs
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-08-13 16:56:20 -07:00
Matthew Stidham
21aa062244 Create cv_to_grafana and make fixes
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-05-14 15:23:24 -07:00
Ben Greear
627219a98d cv automation work.
Improve ferndale_ucentral.bash to at least mostly work.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-05-09 21:01:20 -07:00
Sushant Bawiskar
94d7949eed added get_popup_and_close function call in create_chamberview.py
added get_popup_and_close function in create_chamberview_dut.py

Signed-off-by: sushant <sushant.bawiskar@candelatech.com>
2021-05-07 22:11:22 +05:30
Matthew Stidham
e25c13e826 Create dut_to_grafana and fixing dependencies
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
2021-05-06 17:14:16 -07:00
SushantBawiskar
5d053c8194 - added --delete_scenario flag in create_chamberview.py to delete old scenario of same name
- added delete_scenario function in cv_test_manager.py

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-30 18:40:42 +05:30
SushantBawiskar
25d6d2e526 - changed example
- url argument added in get_ports

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-28 17:34:42 +05:30
SushantBawiskar
810377b16e - integrated cv_commands.pywith cv_test_manager.py
- create_chamberview_dut.py to create a dut
- cv_dut_profile.py as library to create a dut
- cv test manager can be used to implement chamber view also

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-24 01:08:33 +05:30
SushantBawiskar
9ade91f3de - added wait for scenario to be build
- added show text blob to reflect changes in GUI
- changed if-elif t0 if-if
- removed some sleep

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-24 01:08:33 +05:30
SushantBawiskar
e6ffd12043 - added raw data as input
- added example

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-24 01:08:32 +05:30
SushantBawiskar
565a538c32 added manual ports selection in wifi capacity test 2021-04-14 02:28:13 +05:30
SushantBawiskar
11b3fd96f1 - changed example
Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-13 01:34:49 +05:30
SushantBawiskar
93b5a77e43 - Changed Example
- Added comments

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-13 00:08:34 +05:30
Chuck SmileyRekiere
d103207545 create_chamberview.py : updated command in notes 2021-04-12 12:14:52 -06:00
Chuck SmileyRekiere
03fb5f3b2b create_chamberview.py , lf_wifi_capacity_test.py modified file permissions
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-04-12 11:13:38 -06:00
SushantBawiskar
0f0852efed - Changes args parser for chamberview
- added Resource, VLAN, uses-2
- Changes import in lf_wifi_capacity_test.py

Signed-off-by: SushantBawiskar <sushant.bawiskar@candelatech.com>
2021-04-12 16:46:57 +05:30