import org.opendaylight.controller.forwardingrulesmanager.IForwardingRulesManager;
import org.opendaylight.controller.sal.action.Action;
import org.opendaylight.controller.sal.action.Drop;
+import org.opendaylight.controller.sal.core.ConstructionException;
import org.opendaylight.controller.sal.core.Node;
import org.opendaylight.controller.sal.flowprogrammer.Flow;
import org.opendaylight.controller.sal.match.Match;
// Set the systemPackages (used by clustering)
systemPackages("sun.reflect", "sun.reflect.misc", "sun.misc"),
// List framework bundles
- mavenBundle("equinoxSDK381", "org.eclipse.equinox.console",
- "1.0.0.v20120522-1841"),
- mavenBundle("equinoxSDK381", "org.eclipse.equinox.util",
- "1.0.400.v20120522-2049"),
- mavenBundle("equinoxSDK381", "org.eclipse.osgi.services",
- "3.3.100.v20120522-1822"),
- mavenBundle("equinoxSDK381", "org.eclipse.equinox.ds",
- "1.4.0.v20120522-1841"),
- mavenBundle("equinoxSDK381", "org.apache.felix.gogo.command",
- "0.8.0.v201108120515"),
- mavenBundle("equinoxSDK381", "org.apache.felix.gogo.runtime",
- "0.8.0.v201108120515"),
- mavenBundle("equinoxSDK381", "org.apache.felix.gogo.shell",
- "0.8.0.v201110170705"),
+ mavenBundle("equinoxSDK381", "org.eclipse.equinox.console").versionAsInProject(),
+ mavenBundle("equinoxSDK381", "org.eclipse.equinox.util").versionAsInProject(),
+ mavenBundle("equinoxSDK381", "org.eclipse.osgi.services").versionAsInProject(),
+ mavenBundle("equinoxSDK381", "org.eclipse.equinox.ds").versionAsInProject(),
+ mavenBundle("equinoxSDK381", "org.apache.felix.gogo.command").versionAsInProject(),
+ mavenBundle("equinoxSDK381", "org.apache.felix.gogo.runtime").versionAsInProject(),
+ mavenBundle("equinoxSDK381", "org.apache.felix.gogo.shell").versionAsInProject(),
// List logger bundles
mavenBundle("org.slf4j", "slf4j-api").versionAsInProject(),
mavenBundle("org.slf4j", "log4j-over-slf4j")
mavenBundle("org.opendaylight.controller", "containermanager")
.versionAsInProject(),
mavenBundle("org.opendaylight.controller",
- "containermanager.implementation").versionAsInProject(),
+ "containermanager.it.implementation").versionAsInProject(),
mavenBundle("org.opendaylight.controller",
"forwardingrulesmanager").versionAsInProject(),
.versionAsInProject(),
mavenBundle("org.opendaylight.controller",
"hosttracker.implementation").versionAsInProject(),
+ mavenBundle("org.opendaylight.controller",
+ "connectionmanager.implementation").versionAsInProject(),
+ mavenBundle("org.opendaylight.controller",
+ "connectionmanager").versionAsInProject(),
+ mavenBundle("org.opendaylight.controller",
+ "sal.connection").versionAsInProject(),
+ mavenBundle("org.opendaylight.controller",
+ "sal.connection.implementation").versionAsInProject(),
// needed by hosttracker
mavenBundle("org.opendaylight.controller", "topologymanager")
List<Action> actions = new ArrayList<Action>();
actions.add(action);
flow.setActions(actions);
-
- Node node = NodeCreator.createOFNode(1L);
- FlowEntry fe = new FlowEntry("g1", "f1", flow, node);
-
- Status stat = manager.installFlowEntry(fe);
-
- // OF plugin is not there in integration testing mode
- Assert.assertTrue(stat.getCode() == StatusCode.NOSERVICE);
+ Node node;
+ try {
+ // Must use a node published by the stub protocol plugin else
+ // connection manager will not report it as a local node
+ node = new Node("STUB", 51966);
+ FlowEntry fe = new FlowEntry("g1", "f1", flow, node);
+ Status stat = manager.installFlowEntry(fe);
+
+ Assert.assertTrue(stat.getCode() == StatusCode.SUCCESS);
+ } catch (ConstructionException e) {
+ // Got a failure while allocating the node
+ Assert.assertTrue(false);
+ }
}
-
}