[Dev] tftp changes, adapter mods required

Ryan Kruse rkruse at alterpoint.com
Sun Dec 2 23:11:23 CST 2007


In the next ziptie release, the TFTP server will not allow puts unless that file already exists in the TFTP root directory.  This is to prevent unauthorized writes to the server.  This option is configurable in the osgi-config/network/tftp.properties file using the "requireFileExists" property.  By default, it will be set to true.

So for anybody creating adapters using TFTP, your adapter must now create the file before issuing the command on the device.  For example....

use ZipTie::Adapters::Utils qw(create_empty_file);
my $tftp_file_server = $connection_path->get_file_server_by_name("TFTP");
my $config_name = $cli_protocol->get_ip_address() . ".startup-config";
create_empty_file($tftp_file_server->get_root_dir() . "/$config_name");

I will update the adapters that are already in our CVS.

Ryan Kruse | Manager, Open Products

[cid:227220505 at 03122007-1A21]

 AlterPoint, Inc. | 301 Congress Ave | Suite 400 | Austin, TX 78701
 o 512.536.8346 | m 512.947.0087


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ziptie.org/pipermail/dev/attachments/20071202/a721a9d9/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ziptieLogo.jpg
Type: image/jpeg
Size: 15705 bytes
Desc: ziptieLogo.jpg
Url : http://mailman.ziptie.org/pipermail/dev/attachments/20071202/a721a9d9/attachment-0001.jpg 


More information about the Dev mailing list