Class GlobalUtil
java.lang.Object
org.opendaylight.protocol.bgp.state.GlobalUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable AfiSafi
buildAfiSafi
(BGPRibState ribState, TablesKey tablesKey, BGPTableTypeRegistryConsumer bgpTableTypeRegistry) Build Afi Safi containing State.static Map
<AfiSafiKey, AfiSafi> buildAfisSafis
(BGPRibState ribState, BGPTableTypeRegistryConsumer bgpTableTypeRegistry) Build per AFI SAFI Openconfig Global State containing RIB group stats from a list of BGP RIB State.static @NonNull Global
buildGlobal
(BGPRibState ribState, BGPTableTypeRegistryConsumer bgpTableTypeRegistry) Build Openconfig Global containing RIB group stats from a list of BGP RIB State.static @NonNull State
buildState
(BGPRibState ribState) Build Openconfig Global State.
-
Method Details
-
buildGlobal
public static @NonNull Global buildGlobal(BGPRibState ribState, BGPTableTypeRegistryConsumer bgpTableTypeRegistry) Build Openconfig Global containing RIB group stats from a list of BGP RIB State.- Parameters:
ribState
- containing RIb Operational StatebgpTableTypeRegistry
- BGP TableType Registry- Returns:
- Global containing state
-
buildAfisSafis
public static Map<AfiSafiKey,AfiSafi> buildAfisSafis(BGPRibState ribState, BGPTableTypeRegistryConsumer bgpTableTypeRegistry) Build per AFI SAFI Openconfig Global State containing RIB group stats from a list of BGP RIB State.- Parameters:
ribState
- containing RIb Operational StatebgpTableTypeRegistry
- BGP TableType Registry- Returns:
- List containing per afi/safi operational state
-
buildState
Build Openconfig Global State.- Parameters:
ribState
- containing RIb Operational State- Returns:
- Openconfig Global State
-
buildAfiSafi
public static @Nullable AfiSafi buildAfiSafi(BGPRibState ribState, TablesKey tablesKey, BGPTableTypeRegistryConsumer bgpTableTypeRegistry) Build Afi Safi containing State.- Parameters:
ribState
- containing RIb Operational StatetablesKey
- table KeybgpTableTypeRegistry
- BGP TableType Registry- Returns:
- Afi Safi Operational State
-