X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2FFS%2Fpart_export%2Frouter.pm;h=648a4372b3b51649337c17cbb50d81d278edf37b;hb=35effa1bf4ac902547615c816960bbc8db8e7256;hp=e2cde53d450699fccdaeb4ef3bc4a416739c5a7b;hpb=7de51deb0e3e3fe1b0a9e06be6498256d5511bd0;p=freeside.git diff --git a/FS/FS/part_export/router.pm b/FS/FS/part_export/router.pm index e2cde53d4..648a4372b 100644 --- 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, - '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' , '.' , '/' ); @@ -164,7 +164,8 @@ sub ssh_cmd { #subroutine, not method } sub telnet_cmd { - use Net::Telnet; + eval 'use Net::Telnet;'; + die $@ if $@; warn join(', ', @_);