org.opendaylight.protocol.bgp.concepts,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.types.rev130919.*,
</Export-Package>
- <Import-Package>
- com.google.common.base,
- org.opendaylight.protocol.concepts,
- org.opendaylight.yang.gen.v1.*,
- org.opendaylight.yangtools.yang.binding
- </Import-Package>
</instructions>
</configuration>
</plugin>
<configuration>
<instructions>
<Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
- <Import-Package>
- com.google.common.base,
- com.google.common.collect,
- com.google.common.primitives,
- org.opendaylight.protocol.concepts,
- org.opendaylight.protocol.framework,
- org.opendaylight.protocol.util,
- org.slf4j,
- </Import-Package>
<Export-Package>
org.opendaylight.protocol.bgp.parser,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.message.rev130918.*,
<Export-Package>
org.opendaylight.protocol.bgp.parser.mock
</Export-Package>
- <Import-Package>
- org.opendaylight.protocol.bgp.parser,
- org.opendaylight.protocol.framework,
- org.opendaylight.protocol.concepts
- </Import-Package>
</instructions>
</configuration>
</plugin>
<Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
<Export-Package>
org.opendaylight.protocol.bgp.parser.spi,
- </Export-Package>
+ org.opendaylight.protocol.bgp.parser.spi.osgi,
+ </Export-Package>
+ <Private-Package>
+ org.opendaylight.protocol.bgp.parser.spi.pojo,
+ </Private-Package>
</instructions>
</configuration>
</plugin>
<Export-Package>
org.opendaylight.protocol.bgp.rib.mock,
</Export-Package>
- <Import-Package>
- com.google.common.*,
- org.opendaylight.protocol.bgp.parser,
- org.opendaylight.protocol.bgp.parser.impl,
- org.opendaylight.protocol.bgp.rib.impl,
- org.opendaylight.protocol.concepts,
- org.opendaylight.protocol.framework,
- org.opendaylight.protocol.util,
- org.slf4j,
- </Import-Package>
</instructions>
</configuration>
</plugin>
import org.opendaylight.protocol.bgp.parser.BGPError;
import org.opendaylight.protocol.bgp.parser.BGPSessionListener;
import org.opendaylight.protocol.bgp.parser.impl.BGPMessageFactoryImpl;
-import org.opendaylight.protocol.bgp.parser.impl.SingletonProviderContext;
+import org.opendaylight.protocol.bgp.parser.spi.MessageRegistry;
import org.opendaylight.protocol.bgp.rib.impl.BGP;
import org.opendaylight.protocol.concepts.ListenerRegistration;
import org.opendaylight.protocol.framework.DeserializerException;
private final List<byte[]> allPreviousByteMessages;
private final List<Notification> allPreviousBGPMessages;
private final EventBus eventBus;
+
@GuardedBy("this")
private final List<EventBusRegistration> openRegistrations = Lists.newLinkedList();
- public BGPMock(final EventBus eventBus, final List<byte[]> bgpMessages) {
+ public BGPMock(final EventBus eventBus, final MessageRegistry registry, final List<byte[]> bgpMessages) {
this.allPreviousByteMessages = Lists.newLinkedList(bgpMessages);
this.eventBus = eventBus;
- this.allPreviousBGPMessages = this.parsePrevious(this.allPreviousByteMessages);
+ this.allPreviousBGPMessages = this.parsePrevious(registry, this.allPreviousByteMessages);
}
- private List<Notification> parsePrevious(final List<byte[]> msgs) {
+ private List<Notification> parsePrevious(final MessageRegistry registry, final List<byte[]> msgs) {
final List<Notification> messages = Lists.newArrayList();
- final ProtocolMessageFactory<Notification> parser = new BGPMessageFactoryImpl(SingletonProviderContext.getInstance().getMessageRegistry());
+ final ProtocolMessageFactory<Notification> parser = new BGPMessageFactoryImpl(registry);
try {
for (final byte[] b : msgs) {
<configuration>
<instructions>
<Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
- <Import-Package>
- org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.bgp.multiprotocol.rev130918.*,
- </Import-Package>
<Export-Package>
org.opendaylight.protocol.bgp.rib.spi
</Export-Package>
<Export-Package>
org.opendaylight.protocol.bgp.util,
</Export-Package>
- <Import-Package>
- org.opendaylight.protocol.bgp.concepts,
- org.opendaylight.protocol.bgp.parser,
- org.opendaylight.protocol.concepts,
- org.opendaylight.protocol.util,
- com.google.common.*,
- org.apache.commons.*,
- org.slf4j
- </Import-Package>
</instructions>
</configuration>
</plugin>
<configuration>
<instructions>
<Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
- <Import-Package>
- org.opendaylight.protocol.util,
- com.google.common.base,
- com.google.common.collect,
- com.google.common.net,
- com.google.common.primitives,
- </Import-Package>
<Export-Package>
org.opendaylight.protocol.concepts,
org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.iana.rev130816.*,
<configuration>
<instructions>
<Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
- <Import-Package>
- com.google.common.base,
- com.google.common.collect,
- org.opendaylight.protocol.concepts,
- org.slf4j,
- javax.net.ssl,
- org.opendaylight.protocol.util,
- javax.annotation,
- javax.management,
- io.netty.*,
- </Import-Package>
<Export-Package>
org.opendaylight.protocol.framework,
</Export-Package>
public final class BgpRibSpiBundleTest extends AbstractBundleTest {
@Override
protected Collection<String> prerequisiteBundles() {
- return Lists.newArrayList("bgp-parser-api", "bgp-rib-api", "concepts", "framework", "util");
+ return Lists.newArrayList("bgp-concepts", "bgp-parser-api", "bgp-rib-api", "concepts", "framework", "util");
}
@Override
+++ /dev/null
-/*
- * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.protocol.integration;
-
-import java.util.Collection;
-
-import com.google.common.collect.Lists;
-
-public final class BgpTesttoolBundleTest extends AbstractBundleTest {
- @Override
- protected Collection<String> prerequisiteBundles() {
- return Lists.newArrayList("bgp-parser-api", "bgp-concepts", "bgp-linkstate",
- "bgp-parser-impl", "bgp-parser-spi", "bgp-util", "concepts",
- "framework", "bgp-rib-api", "bgp-rib-impl", "bgp-rib-spi",
- "rsvp-api", "util");
- }
-
- @Override
- protected Collection<String> requiredBundles() {
- return Lists.newArrayList("bgp-testtool");
- }
-}
public final class PcepImplBundleTest extends AbstractBundleTest {
@Override
protected Collection<String> prerequisiteBundles() {
- return Lists.newArrayList("concepts", "framework", "pcep-api", "rsvp-api", "util");
+ return Lists.newArrayList("concepts", "framework", "pcep-api", "pcep-spi", "rsvp-api", "util");
}
@Override
public final class PcepSpiBundleTest extends AbstractBundleTest {
@Override
protected Collection<String> prerequisiteBundles() {
- return Lists.newArrayList("concepts", "framework", "pcep-api", "util");
+ return Lists.newArrayList("concepts", "framework", "pcep-api", "rsvp-api", "util");
}
@Override
+++ /dev/null
-/*
- * Copyright (c) 2013 Cisco Systems, Inc. and others. All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-package org.opendaylight.protocol.integration;
-
-import java.util.Collection;
-
-import com.google.common.collect.Lists;
-
-public final class PcepTesttoolBundleTest extends AbstractBundleTest {
- @Override
- protected Collection<String> prerequisiteBundles() {
- return Lists.newArrayList("concepts", "framework", "pcep-api", "pcep-impl", "rsvp-api", "util");
- }
-
- @Override
- protected Collection<String> requiredBundles() {
- return Lists.newArrayList("pcep-testtool");
- }
-}
<configuration>
<instructions>
<Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
- <Import-Package>
- org.opendaylight.protocol.concepts,
- org.opendaylight.protocol.framework,
- com.google.common.base,
- com.google.common.collect,
- com.google.common.primitives,
- javax.annotation,
- javax.management,
- javax.net.ssl,
- org.opendaylight.protocol.pcep,
- org.opendaylight.protocol.pcep.concepts,
- org.opendaylight.protocol.pcep.message,
- org.opendaylight.protocol.pcep.object,
- org.opendaylight.protocol.pcep.subobject,
- org.opendaylight.protocol.pcep.tlv,
- org.opendaylight.protocol.util,
- org.slf4j,
- io.netty.channel,
- io.netty.util.concurrent,
- </Import-Package>
<Export-Package>
org.opendaylight.protocol.pcep.impl.*,
</Export-Package>
<Export-Package>
org.opendaylight.protocol.pcep.spi,
</Export-Package>
- <Import-Package>
- org.opendaylight.protocol.concepts,
- org.opendaylight.protocol.framework,
- org.opendaylight.protocol.util,
- com.google.common.*,
- javax.management,
- org.slf4j.*
- </Import-Package>
</instructions>
</configuration>
</plugin>
<configuration>
<instructions>
<Bundle-Name>${project.groupId}.${project.artifactId}</Bundle-Name>
- <Import-Package>
- com.google.common.*,
- javax.net.ssl,
- </Import-Package>
<Export-Package>
org.opendaylight.protocol.util
</Export-Package>