mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-02 19:58:03 +00:00
more telnet object fixes
This commit is contained in:
@@ -226,16 +226,8 @@ sub attenuate {
|
|||||||
##
|
##
|
||||||
|
|
||||||
# connect to manager
|
# connect to manager
|
||||||
|
|
||||||
our $t = new Net::Telnet(Prompt => '/default\@btbits\>\>/',
|
|
||||||
Timeout => 60);
|
|
||||||
$t->open(Host => $::lfmgr_host,
|
|
||||||
Port => $::lfmgr_port,
|
|
||||||
Timeout => 10);
|
|
||||||
$t->waitfor("/btbits\>\>/");
|
|
||||||
|
|
||||||
our $utils = new LANforge::Utils();
|
our $utils = new LANforge::Utils();
|
||||||
$::utils->telnet($t); # Set our telnet object.
|
$utils->connect($lfmgr_host, $lfmgr_port);
|
||||||
if ($::quiet eq "yes") {
|
if ($::quiet eq "yes") {
|
||||||
$::utils->cli_send_silent(1); # Do show input to CLI
|
$::utils->cli_send_silent(1); # Do show input to CLI
|
||||||
$::utils->cli_rcv_silent(1); # Repress output from CLI ??
|
$::utils->cli_rcv_silent(1); # Repress output from CLI ??
|
||||||
|
|||||||
Reference in New Issue
Block a user