/*
- * Copyright (c) 2013 Ericsson AB. All rights reserved.
+ * 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;
public Instruction buildInstruction(InstructionInfo instructionInfo, int instructionKey) {
List<ActionInfo> mkActions = instructionInfo.getActionInfos();
List<Action> listAction = new ArrayList <Action> ();
+ int actionKey = 0 ;
for(ActionInfo mkAction: mkActions) {
ActionType actionType = mkAction.getActionType();
+ mkAction.setActionKey(actionKey++);
listAction.add(actionType.buildAction(mkAction));
}
ApplyActions applyActions = new ApplyActionsBuilder().setAction(listAction).build();
public Instruction buildInstruction(InstructionInfo instructionInfo, int instructionKey) {
List<ActionInfo> mkActions = instructionInfo.getActionInfos();
List<Action> listAction = new ArrayList <Action> ();
+ int actionKey = 0 ;
for(ActionInfo mkAction: mkActions) {
ActionType actionType = mkAction.getActionType();
+ mkAction.setActionKey(actionKey++);
listAction.add(actionType.buildAction(mkAction));
}
WriteActions writeActions = new WriteActionsBuilder().setAction(listAction).build();