1Net::BGP::Refresh(3)  User Contributed Perl Documentation Net::BGP::Refresh(3)
2
3
4

NAME

6       Net::BGP::Refresh - Class encapsulating BGP-4 REFRESH message
7

SYNOPSIS

9           use Net::BGP::Refresh;
10
11           $refresh = Net::BGP::Refresh->new(
12               AFI      => $address_family_identifier,
13               SAFI     => $subsequent_address_family_identifier
14           );
15
16           $address_family_identifier            = $error->afi();
17           $subsequent_address_family_identifier = $error->safi();
18
19           $peer->refresh($refresh);
20

DESCRIPTION

22       This module encapsulates the data contained in a BGP-4 REFRESH message
23       as specifed by RFC2918.  It provides a constructor, and accessor
24       methods for each of the fields, AFI and SAFI, of a REFRESH message.  To
25       refresh the route table for a given address family, call the peer
26       object's refresh() function with a Net::BGP::Refresh object as
27       argument.
28

METHODS

30       new() - create a new Net::BGP::Refresh object
31
32           $error = Net::BGP::Refresh->new(
33               AFI      => $address_family_identifier,
34               SAFI     => $subsequent_address_family_identifier
35           );
36
37       This is the constructor for Net::BGP::Refresh objects. It returns a
38       reference to the newly created object. The following named parameters
39       may be passed to the constructor.
40
41   AFI
42       This parameter corresponds to the Address Family Identifier field of a
43       REFRESH message. Default is AFI_IP4.
44
45   SAFI
46       This parameter corresponds to the Subsequent Address Family Identifier
47       field of a REFRESH message. Default is SAFI_BOTH.
48
49       afi() - retrieve the value of the Address Family Identifier field
50
51           $address_family_identifier            = $error->afi();
52
53       safi() - retrieve the value of the Subsequent Address Family Identifier
54       field
55
56           $subsequent_address_family_identifier = $error->safi();
57

SEE ALSO

59       Net::BGP, Net::BGP::Process, Net::BGP::Peer, Net::BGP::Notification,
60       Net::BGP::Update
61

AUTHOR

63       Stephen J. Scheck <sscheck@cpan.org>
64
65
66
67perl v5.32.0                      2020-07-28              Net::BGP::Refresh(3)
Impressum