BGPPathAttributes class

Represents BGP path attributes for route selection

Constructors

BGPPathAttributes({required int asPathLength, required List<int> asPath, required int origin, int localPreference = 100, int med = 0, List<String> communities = const [], bool atomicAggregate = false, String? aggregator})
const

Properties

aggregator String?
final
asPath List<int>
final
asPathLength int
final
atomicAggregate bool
final
communities List<String>
final
hashCode int
The hash code for this object.
no setteroverride
localPreference int
final
med int
final
origin int
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAS(int asNumber) BGPPathAttributes
Adds an AS to the path
containsAS(int asNumber) bool
Checks if AS path contains a specific AS number
copyWith({int? asPathLength, List<int>? asPath, int? origin, int? localPreference, int? med, List<String>? communities, bool? atomicAggregate, String? aggregator}) BGPPathAttributes
Creates a copy with updated values
hasLoops() bool
Checks if AS path contains loops
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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