Class GlobalUtil


  • public final class GlobalUtil
    extends Object
    • Method Detail

      • 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 List<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 State buildState​(BGPRibState ribState)
        Build Openconfig Global State.
        Parameters:
        ribState - containing RIb Operational State
        Returns:
        Openconfig Global State
      • buildAfiSafi

        public static 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