- [ ] ditch AAA and use Filter from Jetty for BASIC auth instead
-- [ ] NeutronWiring with Web API (req. by netvirt, but not genius)
+- [X] NeutronModule with Web API (req. by netvirt, but not genius)
- [ ] ovsdb https://github.com/vorburger/opendaylight-simple/issues/47
- [ ] CDS instead of in-memory DS: [CONTROLLER-1831](https://jira.opendaylight.org/browse/CONTROLLER-1831)
- [X] OpenFlowPlugin wiring ConfigurationServiceFactoryImpl (OPNFLWPLUG-1037)
-- [ ] OpenFlowPluginWiring PacketProcessingService <odl:action-provider>
-- [ ] OpenFlowPlugin wiring
+- [X] OpenFlowPluginWiring PacketProcessingService <odl:action-provider>
+- [X] OpenFlowPlugin wiring
- [X] skitt's https://github.com/vorburger/opendaylight-simple/issues/38
- [ ] DiagStatusWiring auto-discover ServiceStatusProvider
- [ ] why does maven-assembly-plugin dependencySet attempt to constantly re-download all SNAPSHOT unless we use -nsu -o
- [ ] MINOR: why does "java -jar lib/ch.vorburger.opendaylight.simple.poc-1.5.0-SNAPSHOT.jar" not work? (MANIFEST.MF has all lib/*)
-- [ ] create a Binding Generator? (reflecting upon annotated classes)
- [X] [re-implement ClassPathScanner](https://github.com/vorburger/opendaylight-simple/pull/18#issuecomment-426859615) using [ClassGraph](https://github.com/classgraph/classgraph) used in [INFRAUTILS-52](https://jira.opendaylight.org/browse/INFRAUTILS-52) (and rename it to something more appropriate)
- [X] read YANG XML configuration files using [DataStoreAppConfigDefaultXMLReader](https://git.opendaylight.org/gerrit/#/c/76416/3/opendaylight/blueprint/src/test/java/org/opendaylight/controller/blueprint/tests/DataStoreAppConfigDefaultXMLReaderTest.java)
*/
package org.opendaylight.openflowplugin.simple;
-import com.google.common.util.concurrent.ListenableFuture;
import com.google.inject.Provides;
import javax.inject.Singleton;
import org.opendaylight.controller.md.sal.binding.api.DataBroker;
import org.opendaylight.openflowplugin.impl.ForwardingPingPongDataBroker;
import org.opendaylight.openflowplugin.impl.PingPongDataBroker;
import org.opendaylight.openflowplugin.impl.configuration.ConfigurationServiceFactoryImpl;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketOutput;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfig;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflowplugin.app.forwardingrules.manager.config.rev160511.ForwardingRulesManagerConfig;
-import org.opendaylight.yangtools.yang.common.RpcResult;
public class OpenFlowPluginWiring extends AutoWiringModule {
protected void configure() {
super.configure(); // this does the auto-wiring
- // TODO remove NoPacketProcessingService and replace by real PacketProcessingServiceImpl
- bind(PacketProcessingService.class).to(NoPacketProcessingService.class);
-
// TODO curious that this is needed despite SwitchConnectionProviderFactoryImpl being annotated?!
bind(SwitchConnectionProviderFactory.class).to(SwitchConnectionProviderFactoryImpl.class);
}
@Singleton ForwardingRulesManagerConfig getForwardingRulesManagerConfig(ConfigReader configReader) {
return configReader.read("/initial/openflow-frm-config", ForwardingRulesManagerConfig.class);
}
-
- private static class NoPacketProcessingService implements PacketProcessingService {
-
- // TODO <odl:action-provider
- // interface="org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService"/>
- // bind(PacketProcessingService.class).to(PacketProcessingServiceImpl.class);
-
- @Override
- public ListenableFuture<RpcResult<TransmitPacketOutput>> transmitPacket(TransmitPacketInput input) {
- throw new UnsupportedOperationException("TODO Implement me...");
- }
- }
}
import org.opendaylight.infrautils.simple.ReadyWiring;
import org.opendaylight.infrautils.simple.testutils.AbstractSimpleDistributionTest;
import org.opendaylight.infrautils.web.WebWiring;
+import org.opendaylight.openflowplugin.api.openflow.OpenFlowPluginProvider;
import org.opendaylight.openflowplugin.simple.OpenFlowPluginWiring;
import org.opendaylight.serviceutils.simple.ServiceUtilsWiring;
import org.opendaylight.yang.gen.v1.urn.opendaylight.params.xml.ns.yang.openflow.provider.config.rev160510.OpenflowProviderConfig;
new ControllerWiring(), new DiagStatusWiring(), new WebWiring(), new ReadyWiring(),
new AnnotationsModule());
+ @Inject OpenFlowPluginProvider ofpProvider;
@Inject OpenflowProviderConfig ofpConfig;
@Inject ForwardingRulesManagerConfig frmConfig;