MP-Unreachable
NAME
Net::BGP::Message::Path-Attribute::MP-Unreachable - BGP MP-Unreachable Path-Attribute Object
SYNOPSIS
use Net::BGP::Path-Attribute::MP-Unreachable;
my $cap = Net::BGP::Path-Attribute::MP-Unreachable.from-raw( $raw );
# or …
my $cap = Net::BGP::Path-Attribute::MP-Unreachable.from-hash(
{
address-family => 'ipv6',
next-hop => '2001:db8::1',
withdrawn => ( '2001:db8::/32' )
}
);
DESCRIPTION
BGP MP-Unreachable Path-Attribute Object
Constructors
from-raw
Constructs a new object for a given raw binary buffer.
from-hash
Constructs a new object for a given hash. Thakes a hash with keys for
address-family
(currently only ipv6
is recognized), next-hop
, and
unreachable
(a list of IPv6 addresses).
Methods
path-attribute-code
Capability code of the object.
path-attribute-name
The path-attribute name of the object.
flags
The value of the attribute flags (as a packed integer).
optional
True if the attribute is an optional (not well-known).
transitive
True if the attribute is a transitive attribute.
partial
True if the attribute is a partial attribute, I.E. this attribute was seen on an intermediate router that does not understand how to process it.
extended-length
True if the attribute uses a two digit length
reserved-flags
The four flags not defined in RFC4271, represented as a packed integer (values will be 0 through 15).
afi
The address family (in string form) represented by this attribute.
safi
The supplimental address family (in string form).
withdrawn
An array of withdrawn elements, in string format.
data-length
The length of the attribute's data.
data
This returns a buf8
containing the data in the attribute.
raw
Returns the raw (wire format) data for this path-attribute.
AUTHOR
Joelle Maslak <[email protected]>
COPYRIGHT AND LICENSE
Copyright © 2018-2019 Joelle Maslak
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.