Search in sources :

Example 1 with BGPActivator

use of org.opendaylight.protocol.bgp.flowspec.BGPActivator in project bgpcep by opendaylight.

the class FSExtendedCommunitiesTest method setUp.

@Before
public void setUp() throws Exception {
    final SimpleFlowspecExtensionProviderContext fsContext = new SimpleFlowspecExtensionProviderContext();
    final FlowspecActivator activator = new FlowspecActivator(fsContext);
    this.act = new BGPActivator(activator);
    final BGPExtensionProviderContext context = new SimpleBGPExtensionProviderContext();
    this.act.start(context);
    this.registry = context.getExtendedCommunityRegistry();
}
Also used : FlowspecActivator(org.opendaylight.protocol.bgp.flowspec.FlowspecActivator) SimpleBGPExtensionProviderContext(org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleBGPExtensionProviderContext) SimpleBGPExtensionProviderContext(org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleBGPExtensionProviderContext) BGPExtensionProviderContext(org.opendaylight.protocol.bgp.parser.spi.BGPExtensionProviderContext) BGPActivator(org.opendaylight.protocol.bgp.flowspec.BGPActivator) SimpleFlowspecExtensionProviderContext(org.opendaylight.protocol.bgp.flowspec.SimpleFlowspecExtensionProviderContext) Before(org.junit.Before)

Aggregations

Before (org.junit.Before)1 BGPActivator (org.opendaylight.protocol.bgp.flowspec.BGPActivator)1 FlowspecActivator (org.opendaylight.protocol.bgp.flowspec.FlowspecActivator)1 SimpleFlowspecExtensionProviderContext (org.opendaylight.protocol.bgp.flowspec.SimpleFlowspecExtensionProviderContext)1 BGPExtensionProviderContext (org.opendaylight.protocol.bgp.parser.spi.BGPExtensionProviderContext)1 SimpleBGPExtensionProviderContext (org.opendaylight.protocol.bgp.parser.spi.pojo.SimpleBGPExtensionProviderContext)1