mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-10-30 18:27:53 +00:00
fixes broken usage of telnet object, uses new utils::connect method
This commit is contained in:
@@ -145,20 +145,9 @@ if ( !defined *LANforge::Utils::fmt_cmd ) {
|
|||||||
}
|
}
|
||||||
# Configure our utils.
|
# Configure our utils.
|
||||||
our $utils = new LANforge::Utils();
|
our $utils = new LANforge::Utils();
|
||||||
|
$::utils->connect($lfmgr_host, $lfmgr_port);
|
||||||
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------#
|
|
||||||
|
|
||||||
$::utils->telnet($::t); # Set our telnet object.
|
|
||||||
if ($::quiet eq "yes") {
|
|
||||||
$::utils->cli_send_silent(1); # Do show input to CLI
|
|
||||||
$::utils->cli_rcv_silent(1); # Repress output from CLI ??
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$::utils->cli_send_silent(0); # Do show input to CLI
|
|
||||||
$::utils->cli_rcv_silent(0); # Repress output from CLI ??
|
|
||||||
}
|
|
||||||
|
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
# survey ports, complain if they are not present #
|
# survey ports, complain if they are not present #
|
||||||
#-----------------------------------------------------------------------#
|
#-----------------------------------------------------------------------#
|
||||||
|
|||||||
@@ -128,15 +128,7 @@ sub init {
|
|||||||
$t->waitfor("/btbits\>\>/");
|
$t->waitfor("/btbits\>\>/");
|
||||||
|
|
||||||
$::utils = new LANforge::Utils();
|
$::utils = new LANforge::Utils();
|
||||||
$::utils->telnet($t); # Set our telnet object.
|
$::utils->connect($lfmgr_host, $lfmgr_port);
|
||||||
if ($::quiet eq "yes") {
|
|
||||||
$::utils->cli_send_silent(1); # Do show input to CLI
|
|
||||||
$::utils->cli_rcv_silent(1); # Repress output from CLI ??
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
$::utils->cli_send_silent(0); # Do show input to CLI
|
|
||||||
$::utils->cli_rcv_silent(0); # Repress output from CLI ??
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
## ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
|
## ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----
|
||||||
|
|
||||||
|
|||||||
@@ -229,9 +229,7 @@ sub init {
|
|||||||
$conn->max_buffer_length(1024 * 1024 * 10); # 10M buffer
|
$conn->max_buffer_length(1024 * 1024 * 10); # 10M buffer
|
||||||
|
|
||||||
$::utils = new LANforge::Utils();
|
$::utils = new LANforge::Utils();
|
||||||
$::utils->telnet($conn); # Set our telnet object.
|
$::utils->connect($lfmgr_host, $lfmgr_port);
|
||||||
$::utils->cli_send_silent($::DEBUG ? 0 : 1); # Do show input to CLI
|
|
||||||
$::utils->cli_rcv_silent($::DEBUG ? 0 : 1); # Repress output from CLI ??
|
|
||||||
|
|
||||||
if ($::group && $::group ne "") {
|
if ($::group && $::group ne "") {
|
||||||
my $ra_bounds = $::group_names{ $::group };
|
my $ra_bounds = $::group_names{ $::group };
|
||||||
|
|||||||
Reference in New Issue
Block a user