Search in sources :

Example 6 with SimpleRIBExtensionProviderContext

use of org.opendaylight.protocol.bgp.rib.spi.SimpleRIBExtensionProviderContext in project bgpcep by opendaylight.

the class ActivatorTest method testRIBActivator.

@Test
public void testRIBActivator() {
    final RIBActivator ribAct = new RIBActivator();
    final RIBExtensionProviderContext context = new SimpleRIBExtensionProviderContext();
    assertNull(context.getRIBSupport(LinkstateAddressFamily.class, LinkstateSubsequentAddressFamily.class));
    ribAct.startRIBExtensionProvider(context);
    assertNotNull(context.getRIBSupport(LinkstateAddressFamily.class, LinkstateSubsequentAddressFamily.class));
    ribAct.close();
}
Also used : SimpleRIBExtensionProviderContext(org.opendaylight.protocol.bgp.rib.spi.SimpleRIBExtensionProviderContext) RIBExtensionProviderContext(org.opendaylight.protocol.bgp.rib.spi.RIBExtensionProviderContext) SimpleRIBExtensionProviderContext(org.opendaylight.protocol.bgp.rib.spi.SimpleRIBExtensionProviderContext) RIBActivator(org.opendaylight.protocol.bgp.linkstate.impl.RIBActivator) LinkstateSubsequentAddressFamily(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev171207.LinkstateSubsequentAddressFamily) LinkstateAddressFamily(org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.linkstate.rev171207.LinkstateAddressFamily) Test(org.junit.Test)

Aggregations

SimpleRIBExtensionProviderContext (org.opendaylight.protocol.bgp.rib.spi.SimpleRIBExtensionProviderContext)6 RIBActivator (org.opendaylight.protocol.bgp.inet.RIBActivator)4 Before (org.junit.Before)3 ModuleInfoBackedContext (org.opendaylight.mdsal.binding.generator.impl.ModuleInfoBackedContext)3 ClusterSingletonService (org.opendaylight.mdsal.singleton.common.api.ClusterSingletonService)3 RIBExtensionProviderContext (org.opendaylight.protocol.bgp.rib.spi.RIBExtensionProviderContext)3 NioEventLoopGroup (io.netty.channel.nio.NioEventLoopGroup)2 InetSocketAddress (java.net.InetSocketAddress)2 Test (org.junit.Test)2 BindingToNormalizedNodeCodec (org.opendaylight.mdsal.binding.dom.adapter.BindingToNormalizedNodeCodec)2 BindingNormalizedNodeCodecRegistry (org.opendaylight.mdsal.binding.dom.codec.impl.BindingNormalizedNodeCodecRegistry)2 ClusterSingletonServiceRegistration (org.opendaylight.mdsal.singleton.common.api.ClusterSingletonServiceRegistration)2 BGPActivator (org.opendaylight.protocol.bgp.parser.impl.BGPActivator)2 SimpleBGPExtensionProviderContext (org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleBGPExtensionProviderContext)2 DestinationIpv4Case (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.inet.rev171207.update.attributes.mp.reach.nlri.advertized.routes.destination.type.DestinationIpv4Case)2 BgpParameters (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev171207.open.message.BgpParameters)2 MultiprotocolCapability (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev171207.mp.capabilities.MultiprotocolCapability)2 AdvertizedRoutes (org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev171207.update.attributes.mp.reach.nlri.AdvertizedRoutes)2 EventBus (com.google.common.eventbus.EventBus)1 ArrayList (java.util.ArrayList)1