NAME

Device::Firewall::PaloAlto::Op - Operations module for Palo Alto firewalls

VERSION

version 0.1.2

SYNOPSIS

my $op = Device::Firewall::PaloAlto->new(username => 'admin', password => 'admin')->auth->op;
my @interfaces = $op->interface->to_array;

DESCRIPTION

This module holds methods that perform operation commands on the firewall.

METHODS

new

The new() method can be used, but in general it's easier to call the op() method from the Device::Firewall::PaloAlto module.

system_info

my $info = $fw->op->system_info;

Returns a Device::Firewall::PaloAlto::Op::SysInfo object containing system information about the firewall.

interfaces

my $interfaces = $fw->op->interfaces();

Returns a Device::Firewall::PaloAlto::Op::Interfaces object containing all of the interfaces, both physical and logical, on the device.

my $arp = $fw->op->arp_table();

Returns a Device::Firewall::PaloAlto::Op::ARPTable object representing all of the ARP entries on the device.

virtual_router

# If no virtual router specified, returns the one named 'default'
my $routing_tables = $fw->op_routing_tables();

# Retrieve thee 'guest_vr' virtual router
my $vr = $fw->op->virtual_router('guest_vr');

Returns a Device::Firewall::PaloAlto::Op::VirtualRouter object representing all of the routing tables on the firewall.

AUTHOR

Greg Foletta <greg@foletta.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Greg Foletta.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.