Commit Graph

43 Commits

Author SHA1 Message Date
Ben Greear
fc24fffbe2 firemod: Attempt to fix INC path issue.
On my system that does not have the directory /home/lanforge/scripts, the
lf_firemod.pl would fail saying it cannot find Net::Telnet, even though it
is installed.

The problem turns out to be that if you have "use lib foo" and foo does not exist,
or is not readable, then perl craps out immediately instead of trying other
places in @INC.  I think this 'use if' logic fixes that issue based on
internet reading.  It fixes the issue on my system, but I'm not certain
it works properly on systems that do depend on /home/lanforge/scripts/
existing, so that will need some more testing.

Signed-off-by: Ben Greear <greearb@candelatech.com>
2020-08-29 13:13:21 -07:00
Ben Greear
b8793edd31 gui-automation: Allow updating DUT with new info
Will help us track DUT software builds and such.
2020-04-17 13:18:52 -07:00
Jed Reynolds
a669c00935 firemod: fixes missing L4 connections in list_cx 2020-04-07 15:12:56 -07:00
Ben Greear
330b58b212 tos-plus: Allow specifying pkts-to-send
In this case, the script will wait until all connections are stopped
(or duration timer expires), and then exit the script.
2020-04-07 07:08:38 -07:00
Ben Greear
41abc4f5f2 Add tos-plus test script
Update lf_associate comments, firemod defaults, and make tos script
use AutoHelper and multicon 1.
2020-03-31 11:41:38 -07:00
Jed Reynolds
fff56c0a10 firemod: handles endp_vals keys Card,Port,Pattern,Endpoint,Type and EID 2020-03-23 17:55:16 -07:00
Jed Reynolds
22c11ccd7b whitespace 2020-03-23 17:28:11 -07:00
Ben Greear
b7b7a95bdd scripts: Fix firemod hash output to be like I wanted.
Fix latency normalization math.
Fix tos python script to work better.
2020-03-13 12:13:57 -07:00
Jed Reynolds
71adb83573 firemod: migrates endp_vals logic to looking up values in hashmap rather than parsing all strange line patterns 2020-03-11 19:07:35 -07:00
Jed Reynolds
f561cc7f01 whitespace 2020-03-10 17:22:12 -07:00
Ben Greear
529ec8780f scripts: Add logic to normalize for negative latency. 2020-03-10 16:26:56 -07:00
Ben Greear
8505273a2e scripts: Initial work for the tos/latency script.
And fixes to lf_firemod for endp creation.
2020-03-10 13:32:16 -07:00
Ben Greear
0a48263e6b firemod: Improve tx/rx bps and Tx/Rx Bytes parsing. 2020-03-10 10:30:03 -07:00
Ben Greear
238792e7d4 Add logic to parse and normalize latency buckets and similar buckets. 2020-03-10 06:41:21 -07:00
Ben Greear
f9f0aeec44 firemod: Support reporting Latency, Pkt-Gaps and similar distributions. 2020-03-09 20:35:40 -07:00
Jed Reynolds
bccd653874 firemod: improves linesplitting 2020-03-09 14:46:21 -07:00
Jed Reynolds
bfe032b410 firemod: adds common mispellings of mgr_port to GetOptions 2020-03-05 23:35:40 -08:00
Ben Greear
d824eb2e66 Fix perl use of 'use lib'
The 'use lib' logic happens in the pre-compile stage, so one cannot
use normal 'if' logic to use a particular INC.  Instead, just make sure
that best dir is added to 'use lib' last since it prepends to INC.
2020-03-04 16:35:47 -08:00
Jed Reynolds
3cedf0d99f firemod: fixes parsing short eids for use_ports parameter 2020-03-03 11:26:45 -08:00
Jed Reynolds
fce69dcbec firemod: --use_speeds and --use_ports works 2020-02-18 22:58:15 -08:00
Jed Reynolds
79323ad2a3 firemod: WIP: adding --use_ports --use_speeds 2020-02-18 20:41:15 -08:00
Jed Reynolds
638d279f71 firemod: WIP: refactoring endpoint creation into a function 2020-02-18 14:36:51 -08:00
Jed Reynolds
abdd4958ab firemod: change variables for use_ports, whitespace 2020-02-17 16:42:22 -08:00
Jed Reynolds
3f7b296b8c firemod: improve examples 2020-02-17 16:37:32 -08:00
Jed Reynolds
0296fc43c6 firemod: fix here-doc 2020-02-17 16:28:59 -08:00
Jed Reynolds
d338d46bef firemod: fix array refs 2020-02-17 16:25:29 -08:00
Jed Reynolds
74752eee6c firemod: alphabetize usage 2020-02-17 16:20:46 -08:00
Jed Reynolds
e7418336e0 firemod: here-doc is better for usage text 2020-02-17 16:09:47 -08:00
Jed Reynolds
8615d8cf15 firemod: more cleanup 2020-02-17 16:08:30 -08:00
Jed Reynolds
704c074b68 firemod: more cleanup 2020-02-17 16:05:56 -08:00
Jed Reynolds
ac61e143f0 firemod: using more qw 2020-02-17 15:57:20 -08:00
Jed Reynolds
4ca88c34b9 firemod: more cleanup 2020-02-17 15:54:53 -08:00
Jed Reynolds
bfdc9f4b34 firemod: speeds up execution by avoiding use of constant 2020-02-17 15:47:51 -08:00
Jed Reynolds
9fec9c8ddb firemod now uses utils::connect() 2020-02-17 15:38:35 -08:00
Jed Reynolds
b3e2a640a8 whitespace 2020-02-17 15:27:17 -08:00
Jed Reynolds
b6bc356abe whitespace 2020-02-12 17:22:52 -08:00
Jed Reynolds
e953e6926f whitepsace 2020-02-05 11:54:42 -08:00
Ben Greear
eba4b5f74b Improve cisco power automation scripts.
Add summary csv output, automatically create layer-3 connection,
rename some headers to match what customer requested.
2020-01-02 16:34:54 -08:00
Ben Greear
1931e88f9e firemod: Fix stats gathering bugs, allow reading data from text file.
The stats gathering thing might introduce other bugs, but at least it
seems to work better than before.  The old regex logic was too complex
for me to follow.
2018-07-18 18:07:41 -07:00
Ben Greear
4252f0eb51 firemod: Quieten debugging output. 2018-07-18 15:17:28 -07:00
Ben Greear
638fccc482 scripts: Add wlanpros test case script.
And tweak other scripts to make them work better, including taking
a lot of sleeps out of the lf_associate_ap.pl script to speed it up.
2018-07-12 16:57:46 -07:00
Jed Reynolds
41fe0661e5 Adds --help|-h options; shows usage message and exits 0 if no arguments 2017-10-16 19:00:55 -07:00
Ben Greear
72712ff548 Add scripts from the tools directory in the private Candela repo.
These scripts will now be publicly available in a git repo for
easier shared development and change tracking.
2017-10-06 13:41:50 -07:00