Graceful-Restart
NAME
Net::BGP::Message::Capability::Graceful-Restart - BGP Graceful-Restart Capability Object
SYNOPSIS
use Net::BGP::Capability::Graceful-Restart;
my $cap = Net::BGP::Capability::Graceful-Restart.from-raw( $raw );
# or
my $cap = Net::BGP::Capability::Graceful-Restart.from-hash( %{ } );
DESCRIPTION
BGP Graceful-Restart 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
, flags
(optional if restart
key is present),
restart
(optional), graceful-restart-on-notify
(optional) and an
address-family-flags
array of hashes. This array of hashes uses the keys
afi
, safi
, and flags
to generate the per-AFI/SAFI flags.
Methods
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
.
flags
Returns the four bit flag value.
graceful-restart-on-notify
Returns True
or False
based on whether the remote end complies with
RFC8538 (with support for graceful restart on receipt of a notify message).
restart
Returns True
or False
based on whether the restart flag is set.
reserved-flags
Returns the value of the three bits of reserved flags.
restart-time
Returns the value of the peer's BGP startup time.
per-af-flags
Returns a list of objects, each of which has an afi
, safi
, afi-name
,
safi-name
, and flags
value. The -name
types are human-decoded strings.
AUTHOR
Joelle Maslak <[email protected]>
COPYRIGHT AND LICENSE
Copyright © 2018-2020 Joelle Maslak
This library is free software; you can redistribute it and/or modify it under the Artistic License 2.0.