Farly::Template::Cisco - Converts the Farly model into Cisco format
Farly::Template::Cisco formats and prints the Farly firewall model into Cisco configuration formats.
The constructor. Device type required.
$template = Farly::Template::Cisco->new('ASA');
Valid device types:
ASA
Prints the current Farly object in Cisco format.
$template->as_string( $object );
Set the device specific integer to string formatters to use. Each of 'port_formatter', 'protocol_formatter' and 'icmp_formatter' must be specified.
my $formatters = { 'port_formatter' => Farly::ASA::PortFormatter->new(), 'protocol_formatter' => Farly::ASA::ProtocolFormatter->new(), 'icmp_formatter' => Farly::ASA::ICMPFormatter->new(), }; $template->set_formatters($formatters);
Configure the object to use the specified value formatters
$template->use_text(1);
Farly::Template::Cisco Copyright (C) 2012 Trystan Johnson
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
To install Farly, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Farly
CPAN shell
perl -MCPAN -e shell install Farly
For more information on module installation, please visit the detailed CPAN module installation guide.