mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2026-01-27 10:23:25 +00:00
wlanpro: Clean up wifi-capacity-test generated connections.
Makes reporting faster and over-all display simpler.
This commit is contained in:
@@ -132,6 +132,20 @@ logp($log_prefix);
|
||||
# Stop any running tests.
|
||||
stop_all_cx();
|
||||
|
||||
# Delete any wifi-capacity generated connections at this time, it will clean things
|
||||
# up, and it will make parsing reporting data faster.
|
||||
my @cx_dump = `./lf_firemod.pl --mgr $manager --action do_cmd --cmd \"show_cx\"`;
|
||||
for ($i = 0; $i<@cx_dump; $i++) {
|
||||
my $line = $cx_dump[$i];
|
||||
chomp($line);
|
||||
if (($line =~ /.*CX:\s+(udp\-\-$upstream_resource\.$upstream_port\-\S+).*/) ||
|
||||
($line =~ /.*CX:\s+(tcp\-\-$upstream_resource\.$upstream_port\-\S+).*/)) {
|
||||
my $cxn = $1;
|
||||
$cmd = "./lf_firemod.pl --mgr $manager --action delete_cxe --cx_name $cxn";
|
||||
do_cmd($cmd);
|
||||
}
|
||||
}
|
||||
|
||||
# Set radios to 3x3 mode.
|
||||
if ($testcase == -1 || $testcase == 0) {
|
||||
for ($i = 0; $i<$radio_count; $i++) {
|
||||
|
||||
Reference in New Issue
Block a user