1Net::BGP::Refresh(3) User Contributed Perl Documentation Net::BGP::Refresh(3)
2
3
4
6 "Net::BGP::Refresh" - Class encapsulating BGP-4 REFRESH message
7
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 = $refresh->afi();
17 $subsequent_address_family_identifier = $refresh->safi();
18
19 $peer->refresh($refresh);
20
22 This module encapsulates the data contained in a BGP-4 REFRESH message
23 as specified by RFC 2918. 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
30 new() - create a new "Net::BGP::Refresh" object
31
32 $refresh = 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 = $refresh->afi();
52
53 safi() - retrieve the value of the Subsequent Address Family Identifier
54 field
55
56 $subsequent_address_family_identifier = $refresh->safi();
57
59 Net::BGP
60 Net::BGP::Process
61 Net::BGP::Peer
62 Net::BGP::Update
63 Net::BGP::ASPath
64 Net::BGP::NLRI
65 Net::BGP::Notification
66
68 Stephen J. Scheck <sscheck@cpan.org>
69
70
71
72perl v5.36.0 2023-01-20 Net::BGP::Refresh(3)