BGPAlgorithm<T> class

BGP Algorithm implementation with policy-based route selection

Constructors

BGPAlgorithm({Duration updateInterval = _defaultUpdateInterval, Duration routeTimeout = _routeTimeout, int maxIterations = 1000, bool enablePolicyBasedSelection = true})
Creates a BGP algorithm instance with configurable parameters
const

Properties

enablePolicyBasedSelection bool
final
hashCode int
The hash code for this object.
no setterinherited
maxIterations int
final
routeTimeout Duration
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
updateInterval Duration
final

Methods

computeRoutes(Map<T, Map<T, num>> asTopology, T sourceAS, {Map<String, dynamic>? policies}) BGPRoutingTable<T>
Computes complete BGP routing table for a source AS
getBGPStatistics(BGPRoutingTable<T> routingTable) Map<String, dynamic>
Gets BGP statistics for monitoring and analysis
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateFromBGPUpdate(BGPRoutingTable<T> currentTable, Map<T, BGPRouteEntry<T>> updates, Map<T, Map<T, num>> asTopology) BGPRoutingTable<T>?
Updates routing table based on received BGP updates
validateBGPTable(BGPRoutingTable<T> routingTable, Map<T, Map<T, num>> asTopology) List<String>
Validates BGP routing table consistency

Operators

operator ==(Object other) bool
The equality operator.
inherited