mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-31 18:58:01 +00:00
Building Grafana automation
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -351,7 +351,8 @@ class WiFiCapacityTest(cv_test):
|
||||
sets=[],
|
||||
influx_host="localhost",
|
||||
influx_port=8086,
|
||||
report_dir=""
|
||||
report_dir="",
|
||||
graphgroups=None
|
||||
):
|
||||
super().__init__(lfclient_host=lfclient_host, lfclient_port=lf_port)
|
||||
|
||||
@@ -386,7 +387,8 @@ class WiFiCapacityTest(cv_test):
|
||||
self.sets = sets
|
||||
self.influx_host = influx_host,
|
||||
self.influx_port = influx_port
|
||||
self.report_dir=report_dir
|
||||
self.report_dir = report_dir
|
||||
self.graphgroups = graphgroups
|
||||
|
||||
def setup(self):
|
||||
if self.create_stations and self.stations != "":
|
||||
@@ -460,7 +462,7 @@ class WiFiCapacityTest(cv_test):
|
||||
self.create_and_run_test(self.load_old_cfg, self.test_name, self.instance_name,
|
||||
self.config_name, self.sets,
|
||||
self.pull_report, self.lfclient_host, self.lf_user, self.lf_password,
|
||||
cv_cmds)
|
||||
cv_cmds, graphgroupsfile=self.graphgroups)
|
||||
|
||||
self.rm_text_blob(self.config_name, blob_test) # To delete old config with same name
|
||||
|
||||
@@ -511,8 +513,9 @@ def main():
|
||||
help="ssid Security type")
|
||||
parser.add_argument("-paswd", "--paswd", default="[BLANK]",
|
||||
help="ssid Password")
|
||||
parser.add_argument("--report_dir",default="")
|
||||
parser.add_argument("--scenario",default="")
|
||||
parser.add_argument("--report_dir", default="")
|
||||
parser.add_argument("--scenario", default="")
|
||||
parser.add_argument("--graphgroups", help="File to save graphgroups to", default=None)
|
||||
args = parser.parse_args()
|
||||
|
||||
cv_base_adjust_parser(args)
|
||||
@@ -544,6 +547,7 @@ def main():
|
||||
raw_lines=args.raw_line,
|
||||
raw_lines_file=args.raw_lines_file,
|
||||
sets=args.set,
|
||||
graphgroups=args.graphgroups
|
||||
)
|
||||
WFC_Test.setup()
|
||||
WFC_Test.run()
|
||||
|
||||
Reference in New Issue
Block a user