X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=vpnservice%2Faclservice%2Fimpl%2Fsrc%2Fmain%2Fjava%2Forg%2Fopendaylight%2Fnetvirt%2Faclservice%2FStatefulIngressAclServiceImpl.java;h=887413636868163aa8046dc07aa490654388b256;hb=de2e5a49d4829c9a6ef3c35509f5f6780999de8c;hp=825db705accc876038fdb8a1af4005e701d609d2;hpb=fccdc67efed2aaf8c8cabec0a3f90dccee3ff649;p=netvirt.git diff --git a/vpnservice/aclservice/impl/src/main/java/org/opendaylight/netvirt/aclservice/StatefulIngressAclServiceImpl.java b/vpnservice/aclservice/impl/src/main/java/org/opendaylight/netvirt/aclservice/StatefulIngressAclServiceImpl.java index 825db705ac..8874136368 100644 --- a/vpnservice/aclservice/impl/src/main/java/org/opendaylight/netvirt/aclservice/StatefulIngressAclServiceImpl.java +++ b/vpnservice/aclservice/impl/src/main/java/org/opendaylight/netvirt/aclservice/StatefulIngressAclServiceImpl.java @@ -14,7 +14,6 @@ import java.util.Map; import org.opendaylight.controller.md.sal.binding.api.DataBroker; import org.opendaylight.genius.mdsalutil.ActionInfo; -import org.opendaylight.genius.mdsalutil.ActionType; import org.opendaylight.genius.mdsalutil.InstructionInfo; import org.opendaylight.genius.mdsalutil.InstructionType; import org.opendaylight.genius.mdsalutil.MatchFieldType; @@ -23,6 +22,7 @@ import org.opendaylight.genius.mdsalutil.MatchInfoBase; import org.opendaylight.genius.mdsalutil.NwConstants; import org.opendaylight.genius.mdsalutil.NxMatchFieldType; import org.opendaylight.genius.mdsalutil.NxMatchInfo; +import org.opendaylight.genius.mdsalutil.actions.ActionNxConntrack; import org.opendaylight.genius.mdsalutil.interfaces.IMdsalApiManager; import org.opendaylight.netvirt.aclservice.api.AclServiceManager.Action; import org.opendaylight.netvirt.aclservice.api.AclServiceManager.MatchCriteria; @@ -88,8 +88,7 @@ public class StatefulIngressAclServiceImpl extends AbstractIngressAclServiceImpl Long elanTag = AclServiceUtils.getElanIdFromInterface(portId, dataBroker); List actionsInfos = new ArrayList<>(); - actionsInfos.add(new ActionInfo(ActionType.nx_conntrack, - new String[] {"1", "0", elanTag.toString(), "255"}, 2)); + actionsInfos.add(new ActionNxConntrack(2, 1, 0, elanTag.intValue(), (short) 255)); List instructions = getDispatcherTableResubmitInstructions(actionsInfos); int priority = this.aclDataUtil.getAclFlowPriority(aclName); @@ -127,9 +126,7 @@ public class StatefulIngressAclServiceImpl extends AbstractIngressAclServiceImpl List actionsInfos = new ArrayList<>(); Long elanTag = AclServiceUtils.getElanIdFromInterface(portId, dataBroker); - actionsInfos.add(new ActionInfo(ActionType.nx_conntrack, - new String[] {"0", "0", elanTag.toString(), Short.toString( - NwConstants.EGRESS_ACL_FILTER_TABLE)}, 2)); + actionsInfos.add(new ActionNxConntrack(2, 0, 0, elanTag.intValue(), NwConstants.EGRESS_ACL_FILTER_TABLE)); instructions.add(new InstructionInfo(InstructionType.apply_actions, actionsInfos)); String flowName = "Ingress_Fixed_Conntrk_" + dpId + "_" + attachMac + "_" + String.valueOf(attachIp.getValue()) + "_" + flowId;