Commit Graph

201 Commits

Author SHA1 Message Date
Chuck SmileyRekiere
127ba41f0b test_l3_longevity.py : debugging added splitlines
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-12 16:11:29 -06:00
Chuck SmileyRekiere
60bc9d2bd3 test_l3_longevity.py: debugging
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-12 15:34:48 -06:00
Chuck SmileyRekiere
a7aece8cb1 test_l3_longevity.py : read mack
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-12 15:15:58 -06:00
Chuck SmileyRekiere
7804f74a65 test_l3_longevity.py : debug info
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-12 15:06:33 -06:00
Chuck SmileyRekiere
8f52cfa70e test_l3_longevity.py : remove band from read_ap_stats
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-12 14:55:44 -06:00
Chuck SmileyRekiere
91f7f645fc lf_check.py : -mgr switch does not work in subprocess to access LANForge GUI in test_l3_longevity, updated lf_check_config.ini
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-11 07:04:54 -06:00
Chuck SmileyRekiere
8e42bf5702 test_l3_longevity.py : bug fix only read ap if set to true
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-10 18:07:37 -06:00
Chuck SmileyRekiere
0b772b6644 test_l3_longevity.py update valid_endp_types
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-10 17:46:41 -06:00
Chuck SmileyRekiere
901ae2b7dc test_l3_longevity.py comma separator between commands, allow errors to be printed out (do not catch errors)
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-10 17:44:12 -06:00
Chuck SmileyRekiere
90903913f1 test_l3_longevity.py : updated for ability to automate allow comma seperators
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-10 15:14:23 -06:00
Chuck SmileyRekiere
47a9d7a741 test_l3_longevity.py : generate html and pdf output
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-07 16:04:36 -06:00
Chuck SmileyRekiere
6378ed1b9d test_l3_longevity.py : csv created in lanforge/reports-html
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-07 13:39:32 -06:00
Chuck SmileyRekiere
a7cf234eeb test_l3_longevity.py : removed unused code for current KPI functionality. The previous version copied to sandbox for reference.
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-07 07:53:42 -06:00
Chuck SmileyRekiere
b2ed9fa2e9 test_l3_longevity.py : added ap_test_mode for switching back and forth from real to bogus data
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-07 05:52:38 -06:00
Chuck SmileyRekiere
dda769ebaf test_l3_longevity.py : commented out some of the prints
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-07 05:31:53 -06:00
Chuck SmileyRekiere
f2b5113804 test_l3_longevity.py : added configuration to enable and disable reading ap
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-06 17:13:18 -06:00
Chuck SmileyRekiere
49602d0f1e test_l3_longevity.py : script clean up - removed code to do most / least - can be done post process 2021-05-06 15:05:31 -06:00
Chuck SmileyRekiere
43943f6327 test_l3_longevity.py : steps to make more generic, created ./sandbox/test_l3_longevity_cisco.py as a temporary holding spot. 2021-05-06 11:37:34 -06:00
Chuck SmileyRekiere
0b50251c2e test_l3_longevity.py : comments
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-04 13:09:43 -06:00
Chuck SmileyRekiere
99635b3de2 test_l3_longevity.py : bug fix for reading mac on interface
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-04 10:57:36 -06:00
Chuck SmileyRekiere
50381f849d test_l3_longevity.py : updates for temp data
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-04 10:03:33 -06:00
Chuck SmileyRekiere
8fffa14d68 test_l3_longevity.py : testing with bogus AP response
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-05-04 07:50:41 -06:00
Chuck SmileyRekiere
1a604e7b73 test_l3_longevity.py : adding reading the AP using pexpect
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-04-28 13:58:25 -06:00
Ben Greear
9c5a99e81f l3-longevity: Start work to parse BCM AP stats.
Work in progress, not run tested yet.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-23 08:12:46 -07:00
Matthew Stidham
991421a245 args.influx_bucket is None just as it should be
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-20 12:58:04 -07:00
Matthew Stidham
0fed7c9cc5 Do not trigger influx unles defined by the user
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-20 12:22:14 -07:00
Ben Greear
280099b8b2 cv-capacity: Support importing kpi.csv directly into influxdb
And update example command to what works for me on the c7-graphana
instance.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-17 16:18:04 -07:00
Ben Greear
643d1ebd5c l3-longevity: Report per-port throughput as well.
Summed up from connections on the ports in question.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-09 17:28:12 -07:00
Ben Greear
ba4212fff6 l3-longevity: Report avg latency for endpoints on a particular port.
Use endpoint EID to match Port EID so we can know which ports
endpoints belong to.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-09 17:12:06 -07:00
Ben Greear
39306b26a9 l3longevity: If user specifies csv outfile, use it unmodified.
Otherwise, default to something with a timestamp in it.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-09 16:10:10 -07:00
Ben Greear
d3beea2aa8 l3-longevity: Support writing out kpi csv file
For those not depending on graphana/influx

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-09 15:47:00 -07:00
Ben Greear
6919045bbc l3-longevity: Write out per-port csv files.
And a small bit of code cleanup in the realm class.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-09 15:17:07 -07:00
Ben Greear
6102760aa3 l3-longevity: Support user-specified influxdb tags from cmd line.
So we can pass in testbed name, DUT info, etc.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-09 13:06:02 -07:00
Ben Greear
848e9a1437 longevity: Fix parsing MTU/AUTO for PDU size.
Need to convert that to -1 so that LANforge will accept the value.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-09 11:56:56 -07:00
Ben Greear
84d6674cd4 l3-longevity: Support multiconn setting.
Add support to l3profile as well.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-09 11:30:28 -07:00
Ben Greear
460dcf0d20 l3-longevity: Allow skipping least/most csv columns.
And remove some duplicated code to build the first part of csv data
rows.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-09 10:06:32 -07:00
Ben Greear
08401996b2 l3-longevity: Add influxdb-2 API
This properly inserts data into the c7-graphana system.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-08 22:02:34 -07:00
Ben Greear
2d79dcb038 l3-longevity: Support tx/rx rates as totals or per-connection.
When using totals, the per-cx will be configured for its share
of the total.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-08 16:56:33 -07:00
Ben Greear
5e39814396 l3-longevity: Fix handling of empty attenuation arrays.
Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-08 16:18:39 -07:00
Ben Greear
70ee8972a0 l3-longevity: Support setting attenuators
User can specify comma separated list of attenuator EIDS
(shelf.resource.atten-id.atten-idx) and a list of attenuation
values and the script will iterate through those.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-08 16:09:18 -07:00
Matthew Stidham
108c014f98 script tag in test_l3_longevity
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-08 14:18:08 -07:00
Matthew Stidham
bb65157ca4 Add tags variable back to posttoinflux
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-08 13:54:58 -07:00
Matthew Stidham
291216dcb6 Insert data from test_l3_longevity into influx database
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-04-08 12:06:08 -07:00
Ben Greear
a3610f67b0 l3-longevity: Improve comments.
Will improve further once script is more complete.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-08 10:47:42 -07:00
Ben Greear
b4bead52ff longevity: Add initial influx support.
Doesn't work yet, calling influx with wrong data structure it seems.
But, getting closer.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-07 17:20:31 -07:00
Ben Greear
54f2fe70af l3-longevity: Start supporting tx/rx rate/pdu configuration.
This is start of work to support Comcast's request and to make this more
general purpose traffic-test script.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2021-04-07 14:44:07 -07:00
Matthew Stidham
e1a865f946 Fixing exit_on_error mistakes
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-03-17 16:14:03 -07:00
Matthew Stidham
e000571594 Fixing halt_on_error errors
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-03-17 15:48:42 -07:00
Matthew Stidham
052319d2ce Remove exit_on_error
Signed-off-by: Matthew Stidham <stidmatt@protonmail.com>
2021-03-17 15:19:34 -07:00
Chuck SmileyRekiere
c1537145e8 test_l3_longevity.py : removed controller programming
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
2021-02-24 14:33:58 -07:00