X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=mdsalutil%2Fmdsalutil-api%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fvpnservice%2Fmdsalutil%2Finterfaces%2FIMdsalApiManager.java;h=defa0f596c77693c5e09eb41cba746d046caddeb;hb=84d7f74b3676cd9ddacae9543559a5dc2cf2fcc3;hp=f3de364e428544400c0cfb046066b1a0c2482acc;hpb=2bfbbe0cf9942ff975dc82fc298c603fd9cef6a6;p=vpnservice.git diff --git a/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/interfaces/IMdsalApiManager.java b/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/interfaces/IMdsalApiManager.java index f3de364e..defa0f59 100644 --- a/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/interfaces/IMdsalApiManager.java +++ b/mdsalutil/mdsalutil-api/src/main/java/org/opendaylight/vpnservice/mdsalutil/interfaces/IMdsalApiManager.java @@ -1,23 +1,35 @@ +/* + * Copyright (c) 2015 Ericsson India Global Services Pvt Ltd. and others. All rights reserved. + * + * This program and the accompanying materials are made available under the + * terms of the Eclipse Public License v1.0 which accompanies this distribution, + * and is available at http://www.eclipse.org/legal/epl-v10.html + */ package org.opendaylight.vpnservice.mdsalutil.interfaces; -//import java.math.BigInteger; +import java.math.BigInteger; import java.util.List; +import com.google.common.util.concurrent.CheckedFuture; +import org.opendaylight.controller.md.sal.binding.api.WriteTransaction; +import org.opendaylight.controller.md.sal.common.api.data.TransactionCommitFailedException; import org.opendaylight.vpnservice.mdsalutil.ActionInfo; -//import org.opendaylight.vpnservice.mdsalutil.BucketInfo; -//import org.opendaylight.vpnservice.mdsalutil.DpnState; import org.opendaylight.vpnservice.mdsalutil.FlowEntity; import org.opendaylight.vpnservice.mdsalutil.GroupEntity; -//import org.opendaylight.vpnservice.mdsalutil.InstructionInfo; -//import org.opendaylight.vpnservice.mdsalutil.MatchInfo; -//import org.opendaylight.vpnservice.mdsalutil.SyncStatus; -//import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.Table; -//import org.opendaylight.yang.gen.v1.urn.opendaylight.group.types.rev131018.GroupTypes; +import org.opendaylight.yang.gen.v1.urn.opendaylight.flow.inventory.rev130819.tables.table.Flow; public interface IMdsalApiManager { public void installFlow(FlowEntity flowEntity); + public CheckedFuture installFlow(BigInteger dpId, Flow flowEntity); + + public CheckedFuture removeFlow(BigInteger dpId, Flow flowEntity); + + public CheckedFuture removeFlow(BigInteger dpId, FlowEntity flowEntity); + + public CheckedFuture installFlow(BigInteger dpId, FlowEntity flowEntity); + public void removeFlow(FlowEntity flowEntity); public void installGroup(GroupEntity groupEntity); @@ -26,10 +38,10 @@ public interface IMdsalApiManager { public void removeGroup(GroupEntity groupEntity); - public void sendPacketOut(long lDpnId, int groupId, byte[] payload); + public void sendPacketOut(BigInteger dpnId, int groupId, byte[] payload); - public void sendPacketOutWithActions(long lDpnId, long groupId, byte[] payload, List actionInfos); + public void sendPacketOutWithActions(BigInteger dpnId, long groupId, byte[] payload, List actionInfos); - public void sendARPPacketOutWithActions(long dpid, byte[] payload, List action_info); + public void sendARPPacketOutWithActions(BigInteger dpnId, byte[] payload, List action_info); - } +}