use of org.opendaylight.genius.mdsalutil.instructions.InstructionWriteActions in project netvirt by opendaylight.
the class ElanInterfaceManager method getInstructionsForOutGroup.
private List<InstructionInfo> getInstructionsForOutGroup(long groupId) {
List<InstructionInfo> mkInstructions = new ArrayList<>();
mkInstructions.add(new InstructionWriteActions(Collections.singletonList(new ActionGroup(groupId))));
return mkInstructions;
}
use of org.opendaylight.genius.mdsalutil.instructions.InstructionWriteActions in project genius by opendaylight.
the class MdSalUtilTest method createFlowEntity.
// Methods to test the install Flow and Group
public FlowEntity createFlowEntity(String dpnId, String tableId) {
BigInteger dpId;
final int serviceId = 0;
List<ActionInfo> listActionInfo = new ArrayList<>();
listActionInfo.add(new ActionPuntToController());
dpId = new BigInteger(dpnId.split(":")[1]);
List<MatchInfo> mkMatches = new ArrayList<>();
final BigInteger cookie = new BigInteger("9000000", 16);
short shortTableId = Short.parseShort(tableId);
mkMatches.add(new MatchTunnelId(new BigInteger("0000000000000000", 16)));
List<InstructionInfo> mkInstructions = new ArrayList<>();
mkInstructions.add(new InstructionWriteActions(listActionInfo));
FlowEntity terminatingServiceTableFlowEntity = MDSALUtil.buildFlowEntity(dpId, shortTableId, getFlowRef(shortTableId, serviceId), 5, "Terminating Service Flow Entry: " + serviceId, 0, 0, cookie.add(BigInteger.valueOf(serviceId)), null, null);
return terminatingServiceTableFlowEntity;
}
Aggregations