Added calling of super constructor to PacketProcessingServiceImpl 99/18099/1
authorJozef Gloncak <jgloncak@cisco.com>
Fri, 10 Apr 2015 11:46:22 +0000 (13:46 +0200)
committerJozef Gloncak <jgloncak@cisco.com>
Fri, 10 Apr 2015 11:47:40 +0000 (13:47 +0200)
Change-Id: I45e8e56d122194b6ebe635314d89b03e6df251c4
Signed-off-by: Jozef Gloncak <jgloncak@cisco.com>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/PacketProcessingServiceImpl.java
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/util/MdSalRegistratorUtils.java

index 975006481d5066c6fe40284da12cad4e0b5dd502..d2f49d1b1af9bff554f332a8520b5aff94fccee1 100644 (file)
@@ -7,6 +7,9 @@
  */
 package org.opendaylight.openflowplugin.impl.services;
 
+import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
+import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
+
 import com.google.common.base.Function;
 import com.google.common.util.concurrent.JdkFutureAdapters;
 import com.google.common.util.concurrent.ListenableFuture;
@@ -22,6 +25,10 @@ import org.opendaylight.yangtools.yang.common.RpcResult;
 
 public class PacketProcessingServiceImpl extends CommonService implements PacketProcessingService {
 
+    public PacketProcessingServiceImpl(final RequestContextStack requestContextStack, final DeviceContext deviceContext) {
+        super(requestContextStack, deviceContext);
+    }
+
     @Override
     public Future<RpcResult<Void>> transmitPacket(final TransmitPacketInput input) {
 
index be5ebd442dfd6d3b70518415a709e5c590a84bdc..26d081d4cb40a8bd69897841d01abc1ab1ca7ca3 100644 (file)
@@ -33,10 +33,11 @@ public class MdSalRegistratorUtils {
 
     public static void registerServices(final RpcContext rpcContext, final DeviceContext deviceContext) {
         rpcContext.registerRpcServiceImplementation(SalFlowService.class, new SalFlowServiceImpl(rpcContext, deviceContext));
+        //TODO: add constructors with rcpContext and deviceContext to meter, group, table constructors
         rpcContext.registerRpcServiceImplementation(SalMeterService.class, new SalMeterServiceImpl());
         rpcContext.registerRpcServiceImplementation(SalGroupService.class, new SalGroupServiceImpl());
         rpcContext.registerRpcServiceImplementation(SalTableService.class, new SalTableServiceImpl());
-        rpcContext.registerRpcServiceImplementation(PacketProcessingService.class, new PacketProcessingServiceImpl());
+        rpcContext.registerRpcServiceImplementation(PacketProcessingService.class, new PacketProcessingServiceImpl(rpcContext, deviceContext));
         rpcContext.registerRpcServiceImplementation(NodeConfigService.class, new NodeConfigServiceImpl());
     }
 }