public final class NeighborUtil extends Object
Modifier and Type | Method and Description |
---|---|
static AfiSafis |
buildAfisSafis(@NonNull BGPPeerState neighbor,
@NonNull BGPTableTypeRegistryConsumer bgpTableTypeRegistry)
Builds Neighbor Afi Safi containing AfiSafi State.
|
static @NonNull List<AfiSafi> |
buildAfisSafisState(@NonNull BGPAfiSafiState neighbor,
@NonNull BGPTableTypeRegistryConsumer bgpTableTypeRegistry)
Build List of afi safi containing State per Afi Safi.
|
static NeighborStateAugmentation |
buildCapabilityState(@NonNull BGPSessionState neighbor)
Builds Neighbor State containing Capabilities State, session State.
|
static ErrorHandling |
buildErrorHandling(@Nullable BGPErrorHandlingState errorHandlingState)
Builds Error Handling State from BGPPeerState counters.
|
static @NonNull NeighborErrorHandlingStateAugmentation |
buildErrorHandlingState(long erroneousUpdateCount)
Builds Neighbor Error Handling State.
|
static @NonNull GracefulRestart |
buildGracefulRestart(@NonNull BGPGracelfulRestartState neighbor)
Builds Graceful Restart containing Graceful Restart State from BGPGracelfulRestartState counters.
|
static @NonNull BgpNeighborStateAugmentation |
buildMessageState(@NonNull BGPPeerMessagesState neighbor)
Builds Bgp Neighbor State containing Message State.
|
static @NonNull Neighbor |
buildNeighbor(@NonNull BGPPeerState neighbor,
@NonNull BGPTableTypeRegistryConsumer bgpTableTypeRegistry)
Build a list of neighbors containing Operational State from a list of BGPPeerState.
|
static @Nullable Neighbors |
buildNeighbors(@NonNull List<BGPPeerState> peerStats,
@NonNull BGPTableTypeRegistryConsumer bgpTableTypeRegistry)
Build a Openconfig Neighbors container with all Neighbors Stats from a list of
BGPPeerGroupState.
|
static @Nullable State |
buildNeighborState(@Nullable BGPSessionState sessionState,
BGPPeerMessagesState bgpPeerMessagesState)
Builds Neighbor State from BGPPeerState counters.
|
static @NonNull List<Class<? extends BgpCapability>> |
buildSupportedCapabilities(@NonNull BGPSessionState neighbor)
Builds List of BgpCapability supported capabilities.
|
static @Nullable Timers |
buildTimer(@Nullable BGPTimersState neighbor)
Builds Neighbor State from BGPPeerState counters.
|
static @Nullable Transport |
buildTransport(@Nullable BGPTransportState neighbor)
Builds Transport State from BGPTransportState counters.
|
static BigInteger |
toBigInteger(long updateReceivedCounter) |
public static @Nullable Neighbors buildNeighbors(@NonNull List<BGPPeerState> peerStats, @NonNull BGPTableTypeRegistryConsumer bgpTableTypeRegistry)
peerStats
- List of BGPPeerState containing Neighbor state countersbgpTableTypeRegistry
- BGP TableType Registrypublic static @NonNull Neighbor buildNeighbor(@NonNull BGPPeerState neighbor, @NonNull BGPTableTypeRegistryConsumer bgpTableTypeRegistry)
neighbor
- containing Neighbor state counterspublic static @Nullable State buildNeighborState(@Nullable BGPSessionState sessionState, BGPPeerMessagesState bgpPeerMessagesState)
sessionState
- BGPPeerState containing Operational state countersbgpPeerMessagesState
- message statepublic static @Nullable Timers buildTimer(@Nullable BGPTimersState neighbor)
neighbor
- BGPPeerState containing Operational state counterspublic static @Nullable Transport buildTransport(@Nullable BGPTransportState neighbor)
neighbor
- BGPPeerState containing Operational state counterspublic static ErrorHandling buildErrorHandling(@Nullable BGPErrorHandlingState errorHandlingState)
errorHandlingState
- BGPErrorHandlingState containing ErrorHandlingState Operational state counterspublic static @NonNull GracefulRestart buildGracefulRestart(@NonNull BGPGracelfulRestartState neighbor)
neighbor
- BGPPeerState containing Operational state counterspublic static AfiSafis buildAfisSafis(@NonNull BGPPeerState neighbor, @NonNull BGPTableTypeRegistryConsumer bgpTableTypeRegistry)
neighbor
- BGPPeerState containing Operational state counterspublic static NeighborStateAugmentation buildCapabilityState(@NonNull BGPSessionState neighbor)
public static @NonNull BgpNeighborStateAugmentation buildMessageState(@NonNull BGPPeerMessagesState neighbor)
public static BigInteger toBigInteger(long updateReceivedCounter)
public static @NonNull NeighborErrorHandlingStateAugmentation buildErrorHandlingState(long erroneousUpdateCount)
erroneousUpdateCount
- erroneous Update Countpublic static @NonNull List<AfiSafi> buildAfisSafisState(@NonNull BGPAfiSafiState neighbor, @NonNull BGPTableTypeRegistryConsumer bgpTableTypeRegistry)
public static @NonNull List<Class<? extends BgpCapability>> buildSupportedCapabilities(@NonNull BGPSessionState neighbor)
Copyright © 2020 OpenDaylight. All rights reserved.