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