Skip to content

Commit

Permalink
fixes broken usage of telnet object, uses new utils::connect method
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan Lipke committed Apr 10, 2020
1 parent c911364 commit 5bbb747
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 24 deletions.
13 changes: 1 addition & 12 deletions lf_l4_auth.pl
Original file line number Diff line number Diff line change
Expand Up @@ -145,20 +145,9 @@ package main;
}
# Configure our 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 #
#-----------------------------------------------------------------------#
Expand Down
10 changes: 1 addition & 9 deletions lf_monitor.pl
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,7 @@ sub init {
$t->waitfor("/btbits\>\>/");

$::utils = new LANforge::Utils();
$::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 ??
}
$::utils->connect($lfmgr_host, $lfmgr_port);
}
## ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ----

Expand Down
4 changes: 1 addition & 3 deletions lf_nfs_io.pl
Original file line number Diff line number Diff line change
Expand Up @@ -229,9 +229,7 @@ sub init {
$conn->max_buffer_length(1024 * 1024 * 10); # 10M buffer

$::utils = new LANforge::Utils();
$::utils->telnet($conn); # Set our telnet object.
$::utils->cli_send_silent($::DEBUG ? 0 : 1); # Do show input to CLI
$::utils->cli_rcv_silent($::DEBUG ? 0 : 1); # Repress output from CLI ??
$::utils->connect($lfmgr_host, $lfmgr_port);

if ($::group && $::group ne "") {
my $ra_bounds = $::group_names{ $::group };
Expand Down

0 comments on commit 5bbb747

Please sign in to comment.