projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
don't depend on Net::Telnet unless necessary
[freeside.git]
/
FS
/
FS
/
part_export
/
router.pm
diff --git
a/FS/FS/part_export/router.pm
b/FS/FS/part_export/router.pm
index
e2cde53
..
648a437
100644
(file)
--- a/
FS/FS/part_export/router.pm
+++ b/
FS/FS/part_export/router.pm
@@
-55,7
+55,7
@@
tie my %options, 'Tie::IxHash',
'svc' => 'svc_broadband',
'desc' => 'Send a command to a router.',
'options' => \%options,
'svc' => 'svc_broadband',
'desc' => 'Send a command to a router.',
'options' => \%options,
- 'notes' => '( more detailed description from Kristian / fire2wire? )',
+ 'notes' => '
Installation of Net::Telnet from CPAN is required for telnet connections.
( more detailed description from Kristian / fire2wire? )',
);
@saltset = ( 'a'..'z' , 'A'..'Z' , '0'..'9' , '.' , '/' );
);
@saltset = ( 'a'..'z' , 'A'..'Z' , '0'..'9' , '.' , '/' );
@@
-164,7
+164,8
@@
sub ssh_cmd { #subroutine, not method
}
sub telnet_cmd {
}
sub telnet_cmd {
- use Net::Telnet;
+ eval 'use Net::Telnet;';
+ die $@ if $@;
warn join(', ', @_);
warn join(', ', @_);