NAME

Device::Firewall::PaloAlto::Test::FIB - Representation of a Palo Alto FIB object.

VERSION

version 0.1.9

DESCRIPTION

This object represents the result of a forwarding information base (FIB) lookup on the firewall.

ERRORS

METHODS

interfaces

my @egress_interfaces = $fw->test->fib_lookup(ip => '192.0.2.1')->interfaces;

Returns a list of the egress interfaces for the FIB entry. In most cases this will be a single entry, howeber it can be multiple of the FIB entry is an equal cost multipath (ECMP) entry.

If the FIB lookup did not return an entry this will return an empty list.

next_hops

my @nh_ips = $fw->test->fib_lookup(ip => '192.0.2.1')->next_hops;

Returns a list of the next-hop IPs for the FIB entry. In most cases this will be a single entry, howeber it can be multiple of the FIB entry is an equal cost multipath (ECMP) entry.

If the FIB lookup did not return an entry this will return an empty list.

is_ecmp

my $is_ecmp = $fw->test->fib_lookup(ip => '192.0.2.1')->ecmp

Returns true if the FIB entry is an ECMP route, otherwise returns false.

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.