NAME
Farly - Farly factory class
DESCRIPTION
Farly is a factory class which abstracts the construction of an Object::KVC::List<Object::KVC::Hash> based firewall device model.
Farly dies on error.
SYNOPSIS
use Farly;
my $importer = Farly->new();
my $container = $importer->process("ASA", "firewall-config.txt");
foreach my $ce ( $container->iter() ) {
print $ce->dump();
print "\n"
}
METHODS
new()
The constructor. No arguments required.
process( <firewall type>, <configuration file>)
my $container = $importer->process("ASA", "firewall-config.txt");
Returns Object::KVC::List<Object::KVC::Hash> firewall device model.
Valid firewall types:
ASA - Cisco ASA firewall
COPYRIGHT AND LICENCE
Farly 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/>.