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;
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
*/
private static final Splitter PREFIX_SPLITTER = Splitter.on('/');
@Override
- public Object convert(final SetNwSrcActionCase source, final BigInteger datapathid) {
+ public Class<?> getType() {
+ return SetNwSrcActionCase.class;
+ }
+
+ @Override
+ public Object convert(final SetNwSrcActionCase source) {
Address address = source.getSetNwSrcAction().getAddress();
if (address instanceof Ipv4) {
Iterable<String> addressParts = PREFIX_SPLITTER.split(((Ipv4) address).getIpv4Address().getValue());