fix for BUG 596 81/5781/2
authorMichal Rehak <mirehak@cisco.com>
Wed, 26 Mar 2014 19:21:11 +0000 (12:21 -0700)
committerPrasanna Huddar <prasanna.huddar@ericsson.com>
Thu, 27 Mar 2014 04:49:44 +0000 (04:49 +0000)
- SalPortService wont be supported for now

Change-Id: Ia9f140d969e324630fbe7d64bd03ff8d198bc0c5
Signed-off-by: Michal Rehak <mirehak@cisco.com>
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/ModelDrivenSwitch.java
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/AbstractModelDrivenSwitch.java
openflowplugin/src/main/java/org/opendaylight/openflowplugin/openflow/md/core/sal/ModelDrivenSwitchImpl.java

index cb31ba3895e2958f31e321f476ada8d4192d89c8..500021411b9abb133813012c9064337f1526aefd 100644 (file)
@@ -39,8 +39,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.Upd
 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.OpendaylightMeterStatisticsService;
 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.port.service.rev131107.GetPortOutput;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.port.service.rev131107.SalPortService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.service.rev131107.UpdatePortInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.service.rev131107.UpdatePortOutput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.statistics.rev131214.OpendaylightPortStatisticsService;
@@ -53,11 +51,13 @@ import org.opendaylight.yangtools.concepts.Identifiable;
 import org.opendaylight.yangtools.yang.binding.InstanceIdentifier;
 import org.opendaylight.yangtools.yang.common.RpcResult;
 
+/**
+ * interface concatenating all md-sal services provided by OF-switch
+ */
 public interface ModelDrivenSwitch extends //
         SalGroupService, //
         SalFlowService, //
         SalMeterService, //
-        SalPortService, //
         SalTableService,//
         PacketProcessingService, //
         OpendaylightGroupStatisticsService, //
@@ -105,10 +105,11 @@ public interface ModelDrivenSwitch extends //
     @Override
     public Future<RpcResult<UpdateMeterOutput>> updateMeter(UpdateMeterInput input);
     
-    @Override
-    public Future<RpcResult<GetPortOutput>> getPort();
-    
-    @Override
+    /**
+     * FIXME: previously propagated from SalPortService, should get removed or used via service
+     * @param input
+     * @return result of port update action
+     */
     public Future<RpcResult<UpdatePortOutput>> updatePort(UpdatePortInput input);
     
     @Override
index 81b3bd3a550f9f0a8e40053fc8ffa2e2d33dd876..d4df558f4d0bee2898e3b38619fb2ffc7fe84eca 100644 (file)
@@ -21,7 +21,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.inventory.rev130819.nodes.N
 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.service.rev130918.SalMeterService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.meter.statistics.rev131111.OpendaylightMeterStatisticsService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.PacketProcessingService;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.port.service.rev131107.SalPortService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.statistics.rev131214.OpendaylightPortStatisticsService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.queue.statistics.rev131216.OpendaylightQueueStatisticsService;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.table.service.rev131026.SalTableService;
@@ -46,8 +45,6 @@ public abstract class AbstractModelDrivenSwitch implements ModelDrivenSwitch {
 
     private RoutedRpcRegistration<PacketProcessingService> packetRegistration;
 
-    private RoutedRpcRegistration<SalPortService> portRegistration;
-    
     private RoutedRpcRegistration<OpendaylightFlowStatisticsService> flowStatisticsRegistration;
 
     private RoutedRpcRegistration<OpendaylightGroupStatisticsService> groupStatisticsRegistration;
@@ -93,11 +90,6 @@ public abstract class AbstractModelDrivenSwitch implements ModelDrivenSwitch {
         tableRegistration.registerPath(NodeContext.class, getIdentifier());
         builder.add(tableRegistration);
 
-        portRegistration = ctx.addRoutedRpcImplementation(SalPortService.class, this);
-        portRegistration.registerPath(NodeContext.class, getIdentifier());
-        builder.add(portRegistration);
-
-
         packetRegistration = ctx.addRoutedRpcImplementation(PacketProcessingService.class, this);
         packetRegistration.registerPath(NodeContext.class, getIdentifier());
         builder.add(packetRegistration);
index 63072174a0975c9dcbe21704d344290736354b38..5d64e284e68c9f0e76259c64fb06121093d81530 100644 (file)
@@ -151,7 +151,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.table.features._case.MultipartRequestTableFeaturesBuilder;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.multipart.request.multipart.request.body.multipart.request.table.features._case.multipart.request.table.features.TableFeatures;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.packet.service.rev130709.TransmitPacketInput;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.port.service.rev131107.GetPortOutput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.service.rev131107.UpdatePortInput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.service.rev131107.UpdatePortOutput;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.port.service.rev131107.UpdatePortOutputBuilder;
@@ -1219,12 +1218,6 @@ public class ModelDrivenSwitchImpl extends AbstractModelDrivenSwitch {
 
     }
 
-    @Override
-    public Future<RpcResult<GetPortOutput>> getPort() {
-        // TODO Auto-generated method stub
-        return null;
-    }
-
     @Override
     public Future<RpcResult<UpdatePortOutput>> updatePort(UpdatePortInput input) {
         PortModInput ofPortModInput = null;