Interface Peer

    • Method Detail

      • getName

        @NonNull String getName()
        Return peer's symbolic name.
        Returns:
        symbolic name.
      • getRawIdentifier

        byte[] getRawIdentifier()
        Return the peer's BGP identifier as raw byte array.
        Returns:
        byte[] raw identifier
      • close

        @NonNull com.google.common.util.concurrent.FluentFuture<? extends Object> close()
        Close Peers and performs asynchronously DS clean up.
        Returns:
        future
      • refreshRibOut

        <C extends Routes & org.opendaylight.yangtools.yang.binding.DataObject & org.opendaylight.yangtools.yang.binding.ChoiceIn<Tables>,​S extends org.opendaylight.yangtools.yang.binding.ChildOf<? super C>,​R extends Route & org.opendaylight.yangtools.yang.binding.ChildOf<? super S> & org.opendaylight.yangtools.yang.binding.Identifiable<I>,​I extends org.opendaylight.yangtools.yang.binding.Identifier<R>> void refreshRibOut​(@NonNull RouteEntryDependenciesContainer entryDep,
                                                                                                                                                                                                                                                                                                                                                                                                                                                            @NonNull List<StaleBestPathRoute<C,​S,​R,​I>> staleRoutes,
                                                                                                                                                                                                                                                                                                                                                                                                                                                            @NonNull List<AdvertizedRoute<C,​S,​R,​I>> newRoutes)
        Update peers ribout after path selection processing.
        Parameters:
        entryDep - RouteEntryDependenciesContainer
        staleRoutes - routes to be removed.
        newRoutes - routes to be advertized.
      • initializeRibOut

        <C extends Routes & org.opendaylight.yangtools.yang.binding.DataObject & org.opendaylight.yangtools.yang.binding.ChoiceIn<Tables>,​S extends org.opendaylight.yangtools.yang.binding.ChildOf<? super C>,​R extends Route & org.opendaylight.yangtools.yang.binding.ChildOf<? super S> & org.opendaylight.yangtools.yang.binding.Identifiable<I>,​I extends org.opendaylight.yangtools.yang.binding.Identifier<R>> void initializeRibOut​(@NonNull RouteEntryDependenciesContainer entryDep,
                                                                                                                                                                                                                                                                                                                                                                                                                                                               @NonNull List<ActualBestPathRoutes<C,​S,​R,​I>> routes)
        Stores under peers rib Out already present routes, before proceed to process any new route advertizement.
        Parameters:
        entryDep - RouteEntryDependenciesContainer
        routes - routes to be advertized.
      • reEvaluateAdvertizement

        <C extends Routes & org.opendaylight.yangtools.yang.binding.DataObject & org.opendaylight.yangtools.yang.binding.ChoiceIn<Tables>,​S extends org.opendaylight.yangtools.yang.binding.ChildOf<? super C>,​R extends Route & org.opendaylight.yangtools.yang.binding.ChildOf<? super S> & org.opendaylight.yangtools.yang.binding.Identifiable<I>,​I extends org.opendaylight.yangtools.yang.binding.Identifier<R>> void reEvaluateAdvertizement​(@NonNull RouteEntryDependenciesContainer entryDep,
                                                                                                                                                                                                                                                                                                                                                                                                                                                                      @NonNull List<ActualBestPathRoutes<C,​S,​R,​I>> routes)
        Applies all policies through all present routes, and advertize/withdraws based on new results. Scenario would be for example a removal of RT membership. And reprocess VPN routes.
        Parameters:
        entryDep - RouteEntryDependenciesContainer
        routes - routes to be updated.