Class AbstractBestPathSelector
java.lang.Object
org.opendaylight.protocol.bgp.mode.spi.AbstractBestPathSelector
- Direct Known Subclasses:
- AddPathSelector
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected booleanisExistingPathBetter(@NonNull BestPathState state) Chooses best route according to BGP best path selection.protected RouterIdreplaceOriginator(RouterId routerId, org.opendaylight.yangtools.yang.data.api.schema.ContainerNode attrs) RFC 4456 mandates the use of Originator IDs instead of Router ID for selection purposes.
- 
Field Details- 
bestOriginatorId
- 
bestState
 
- 
- 
Constructor Details- 
AbstractBestPathSelectorprotected AbstractBestPathSelector(long ourAs) 
 
- 
- 
Method Details- 
replaceOriginatorprotected RouterId replaceOriginator(RouterId routerId, org.opendaylight.yangtools.yang.data.api.schema.ContainerNode attrs) RFC 4456 mandates the use of Originator IDs instead of Router ID for selection purposes.- Parameters:
- routerId- routerID
- attrs- router attributes
- Returns:
- returns originators Id if present otherwise routerId
 
- 
isExistingPathBetterChooses best route according to BGP best path selection.- Parameters:
- state- attributes of the new route
- Returns:
- true if the existing path is better, false if the new path is better
 
 
-