Bug 5540 - ConvertorManager base
[openflowplugin.git] / openflowplugin / src / main / java / org / opendaylight / openflowplugin / openflow / md / core / sal / convertor / action / ActionSetNwDstConvertorImpl.java
index 0ea9d72addd6196ffab5854e09ebf0a60ccfa222..15909e8fa042546d6af8585b05a6556ba6ec80f3 100644 (file)
@@ -8,8 +8,7 @@
 
 package org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.action;
 
-import java.math.BigInteger;
-
+import com.google.common.base.Splitter;
 import org.opendaylight.openflowplugin.openflow.md.core.sal.convertor.common.Convertor;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv4Address;
 import org.opendaylight.yang.gen.v1.urn.ietf.params.xml.ns.yang.ietf.inet.types.rev130715.Ipv6Address;
@@ -18,8 +17,6 @@ import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.addr
 import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.address.address.Ipv4;
 import org.opendaylight.yang.gen.v1.urn.opendaylight.action.types.rev131112.address.address.Ipv6;
 
-import com.google.common.base.Splitter;
-
 /**
  * Utility class for converting a MD-SAL action subelement into the OF subelement
  */
@@ -27,7 +24,12 @@ public class ActionSetNwDstConvertorImpl implements Convertor<SetNwDstActionCase
     private static final Splitter PREFIX_SPLITTER = Splitter.on('/');
 
     @Override
-    public Object convert(final SetNwDstActionCase source, final BigInteger datapathid) {
+    public Class<?> getType() {
+        return SetNwDstActionCase.class;
+    }
+
+    @Override
+    public Object convert(final SetNwDstActionCase source) {
         Address address = source.getSetNwDstAction().getAddress();
         if (address instanceof Ipv4) {
             Iterable<String> addressParts = PREFIX_SPLITTER.split(((Ipv4) address).getIpv4Address().getValue());