mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-01 11:18:03 +00:00
Removing LFClibase from influx2 script
Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
@@ -400,9 +400,7 @@ class cv_test(Realm):
|
|||||||
(args.influx_host, args.influx_port, args.influx_org, args.influx_token, args.influx_bucket))
|
(args.influx_host, args.influx_port, args.influx_org, args.influx_token, args.influx_bucket))
|
||||||
# lfjson_host would be if we are reading out of LANforge or some other REST
|
# lfjson_host would be if we are reading out of LANforge or some other REST
|
||||||
# source, which we are not. So dummy those out.
|
# source, which we are not. So dummy those out.
|
||||||
influxdb = RecordInflux(_lfjson_host="",
|
influxdb = RecordInflux(_influx_host=args.influx_host,
|
||||||
_lfjson_port="",
|
|
||||||
_influx_host=args.influx_host,
|
|
||||||
_influx_port=args.influx_port,
|
_influx_port=args.influx_port,
|
||||||
_influx_org=args.influx_org,
|
_influx_org=args.influx_org,
|
||||||
_influx_token=args.influx_token,
|
_influx_token=args.influx_token,
|
||||||
|
|||||||
@@ -146,9 +146,7 @@ python3 csv_to_influx.py --influx_host localhost --influx_org Candela --influx_t
|
|||||||
|
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
influxdb = RecordInflux(_lfjson_host=lfjson_host,
|
influxdb = RecordInflux(_influx_host=args.influx_host,
|
||||||
_lfjson_port=lfjson_port,
|
|
||||||
_influx_host=args.influx_host,
|
|
||||||
_influx_port=args.influx_port,
|
_influx_port=args.influx_port,
|
||||||
_influx_org=args.influx_org,
|
_influx_org=args.influx_org,
|
||||||
_influx_token=args.influx_token,
|
_influx_token=args.influx_token,
|
||||||
|
|||||||
@@ -305,6 +305,7 @@ python3 ./test_ip_variable_time.py
|
|||||||
help='how frequently do you want your monitor function to take measurements; \, 35s, 2h',
|
help='how frequently do you want your monitor function to take measurements; \, 35s, 2h',
|
||||||
default='10s')
|
default='10s')
|
||||||
parser.add_argument('--ipv6', help='Sets the test to use IPv6 traffic instead of IPv4', action='store_true')
|
parser.add_argument('--ipv6', help='Sets the test to use IPv6 traffic instead of IPv4', action='store_true')
|
||||||
|
parser.add_argument('--influx_host')
|
||||||
parser.add_argument('--influx_token', help='Username for your Influx database')
|
parser.add_argument('--influx_token', help='Username for your Influx database')
|
||||||
parser.add_argument('--influx_bucket', help='Password for your Influx database')
|
parser.add_argument('--influx_bucket', help='Password for your Influx database')
|
||||||
parser.add_argument('--influx_org', help='Name of your Influx database')
|
parser.add_argument('--influx_org', help='Name of your Influx database')
|
||||||
@@ -471,11 +472,11 @@ python3 ./test_ip_variable_time.py
|
|||||||
|
|
||||||
if args.influx_org is not None:
|
if args.influx_org is not None:
|
||||||
from influx2 import RecordInflux
|
from influx2 import RecordInflux
|
||||||
grapher = RecordInflux( # _influx_host=manager,
|
grapher = RecordInflux(_influx_host=args.influx_host,
|
||||||
_influx_port=args.influx_port,
|
_influx_port=args.influx_port,
|
||||||
_influx_org=args.influx_org,
|
_influx_org=args.influx_org,
|
||||||
_influx_token=args.influx_token,
|
_influx_token=args.influx_token,
|
||||||
_influx_bucket=args.influx_bucket)
|
_influx_bucket=args.influx_bucket)
|
||||||
devices = [station.split('.')[-1] for station in station_list]
|
devices = [station.split('.')[-1] for station in station_list]
|
||||||
tags = dict()
|
tags = dict()
|
||||||
tags['script'] = 'test_ip_variable_time'
|
tags['script'] = 'test_ip_variable_time'
|
||||||
|
|||||||
@@ -1154,9 +1154,7 @@ python3 .\\test_l3_longevity.py --test_duration 4m --endp_type \"lf_tcp lf_udp m
|
|||||||
influxdb = None
|
influxdb = None
|
||||||
if args.influx_bucket is not None:
|
if args.influx_bucket is not None:
|
||||||
from influx2 import RecordInflux
|
from influx2 import RecordInflux
|
||||||
influxdb = RecordInflux(_lfjson_host=lfjson_host,
|
influxdb = RecordInflux(_influx_host=args.influx_host,
|
||||||
_lfjson_port=lfjson_port,
|
|
||||||
_influx_host=args.influx_host,
|
|
||||||
_influx_port=args.influx_port,
|
_influx_port=args.influx_port,
|
||||||
_influx_org=args.influx_org,
|
_influx_org=args.influx_org,
|
||||||
_influx_token=args.influx_token,
|
_influx_token=args.influx_token,
|
||||||
|
|||||||
Reference in New Issue
Block a user