Class GlobalUtil

java.lang.Object
org.opendaylight.protocol.bgp.state.GlobalUtil

public final class GlobalUtil extends Object
  • 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 State
      bgpTableTypeRegistry - 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 State
      bgpTableTypeRegistry - BGP TableType Registry
      Returns:
      List containing per afi/safi operational state
    • buildState

      public static @NonNull State buildState(BGPRibState ribState)
      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 State
      tablesKey - table Key
      bgpTableTypeRegistry - BGP TableType Registry
      Returns:
      Afi Safi Operational State