Infoblox::Grid::Member::BGP::AS - BGP (Border Gateway Protocol) Autonomous System (AS) object.
An Infoblox::BGP::AS object represents a BGP Autonomous System configured at the grid member level.
my $bgp_as = Infoblox::Grid::Member::BGP::AS->new( as => $num, # Optional / Default value is undefined keepalive => $num, # Optional / Default value is 4 holddown => $num, # Optional / Default value is 16 neighbors => [ $neighbor1, $neighbor2, ... ], # Optional / Default value is empty );
The following functions can be applied to a BGP AS object.
Use this function to specify BGP Autonomous Systems for the grid member. See Infoblox::Grid::Member->bgp_as() for parameters and return values.
#Construct a BGP neighbor my $neighbor = Infoblox::Grid::Member::BGP::Neighbor->new( neighbor_ip => "172.16.0.1", remote_as => 1234, interface => "LAN_HA", );
#Construct a BGP AS my $autonomous_system = Infoblox::Grid::Member::BGP::AS->new( as => 269, keepalive => 4, holddown => 16, neighbors => [ $neighbor ] );
# Configure BGP on the Grid Member object my $response = $Grid_Member->bgp_as([$as]);
This section describes all the methods that can be used to configure and retrieve the attribute values of an Infoblox::BGP::AS object.
Use this method to set or retrieve the number of this AS.
A valid AS number is required to advertise to neighbors defined in this AS.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
An AS number is a 16-bit integer from 1 to 65535.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get AS number my $as_number = $autonomous_system->as(); #Modify AS number $autonomous_system->as(300);
Use this method to set or retrieve the AS keepalive timer.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
The number of seconds for the keepalive timer. The valid value is from 1 to 21845 seconds.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get AS keepalive timer my $keepalive = $autonomous_system->keepalive(); #Modify AS keepalive timer $autonomous_system->keepalive(3600);
Use this method to set or retrieve the AS hold down timer.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
The number of seconds for the hold down timer. The valid value is from 3 to 65535 seconds.
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get Autonomous System hold down timer my $holddown = $autonomous_system->holddown(); #Modify Autonomous System hold down timer $autonomous_system->holddown(3600);
Use this method to set or retrieve the BGP neighbors for the Infoblox::BGP::AS object.
Include the specified parameter to set the attribute value. Omit the parameter to retrieve the attribute value.
The valid value is an array reference that contains Infoblox::Grid::Member::BGP::Neighbor object(s).
If you specified a parameter, the method returns true when the modification succeeds, and returns false when the operation fails.
If you did not specify a parameter, the method returns the attribute value.
#Get AS neighbor list my $neighbors = $autonomous_system->neighbors(); #Modify AS neighbors $autonomous_system->neighbors( [ $neighbor1, $neighbor2 ] );
Infoblox Inc. http://www.infoblox.com/
Infoblox::Grid::Member, Infoblox::Grid::Member::BGP::Neighbor
Copyright (c) 2017 Infoblox Inc.