MPBGP
NAME
Net::BGP::Message::Capability::MPBGP - BGP Four Octet MPBGP Capability Object
SYNOPSIS
use Net::BGP::Capability::MPBGP;
my $cap = Net::BGP::Capability::MPBGP.from-raw( $raw );
# or …
my $cap = Net::BGP::Capability::MPBGP.from-hash( %{
afi => 'ip', safi => 'unicast'
} );
DESCRIPTION
BGP Multi-Protocol BGP Capability Object
Constructors
from-raw
Constructs a new object for a given raw binary buffer.
from-hash
Constructs a new object for a given hash. This parent class looks only for
the key of capability-code
and cvalue
. Capability code should represent
the desired capability code. Value should be a buf8
containing the payload
data (value
in RFC standards).
Methods
afi
AFI name present in the capability object.
safi
SAFI name present in the capability object.
reserved
Reserved field present in the capability object.
capability-code
Capability code of the object.
capability-name
The capability name of the object.
raw
Returns the raw (wire format) data for this capability.
payload
The raw byte buffer (buf8
) corresponding to the RFC definition of value
.
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.