Update
NAME
Net::BGP::Message::Update - BGP UPDATE Message
SYNOPSIS
# We create generic messages using the parent class.
use Net::BGP::Message;
my $msg = Net::BGP::Message.from-raw( $raw ); # Might return a child crash
DESCRIPTION
UPDATE BGP message type
Constructors
from-raw
Constructs a new object for a given raw binary buffer.
from-hash
This simply throws an exception, since the hash format of a generic message is not designed.
Methods
message-name
Returns a string that describes what message type the command represents.
Currently understood types include UPDATE
.
message-code
Contains an integer that corresponds to the message-code.
nlri
Returns an array of Net::BGP::CIDR objects for IPv4 addresses in the NLRI section of the BGP message (I.E. BGP route advertisements).
nlri6
Returns an array of Net::BGP::CIDR objects for IPv6 addresses announced in this BGP message.
withdrawn
Returns an array of Net::BGP::CIDR objects for IPv4 prefixes withdrawn by this BGP message.
withdrawn6
Returns an array of Net::BGP::CIDR objects for IPv6 prefixes withdrawn by this BGP message.
origin
Returns the origin present in this message.
as-path
Returns a string representation of the AS path.
path
Returns a string representation of the AS path along with the origin type (I.E. IGP, EGP, or unknown).
path-attributes
Returns an array of path attributes.
community-list
Returns an array of strings representing the communities in the BGP Community attribute.
extended-community-list
Returns an array of strings representing the communities in the BGP Extended-Community attribute.
long-community-list
Returns an array of strings representing the communities in the BGP Long-Community attribute.
atomic-aggregate
Returns true if the atomic aggregate path attribute is present. Returns false otherwise.
aggregator-ip
Returns the BGP ID of the host that aggregated this route. Returns an undefined value if the route is not aggregated.
aggregator-asn
Returns the ASN of the host that aggregated this route. Returns an undefined value if the route is not aggregated.
raw
Returns the raw (wire format) data for this message.
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.