package org.opendaylight.netvirt.openstack.netvirt.providers.openflow13.services;
import java.math.BigInteger;
+import java.util.ArrayList;
import java.util.List;
-
import org.opendaylight.netvirt.openstack.netvirt.api.ClassifierProvider;
+import org.opendaylight.netvirt.openstack.netvirt.providers.ConfigInterface;
import org.opendaylight.netvirt.openstack.netvirt.providers.openflow13.AbstractServiceInstance;
import org.opendaylight.netvirt.openstack.netvirt.providers.openflow13.Service;
-import org.opendaylight.netvirt.openstack.netvirt.providers.ConfigInterface;
import org.opendaylight.netvirt.utils.mdsal.openflow.ActionUtils;
import org.opendaylight.netvirt.utils.mdsal.openflow.FlowUtils;
import org.opendaylight.netvirt.utils.mdsal.openflow.InstructionUtils;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.NxmNxReg0;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowjava.nx.match.rev140421.NxmNxReg6;
import org.opendaylight.yang.gen.v1.urn.opendaylight.openflowplugin.extension.nicira.action.rev140714.dst.choice.grouping.dst.choice.DstNxRegCaseBuilder;
-
-import com.google.common.collect.Lists;
import org.osgi.framework.BundleContext;
import org.osgi.framework.ServiceReference;
InstructionsBuilder isb = new InstructionsBuilder();
// Instructions List Stores Individual Instructions
- List<Instruction> instructions = Lists.newArrayList();
+ List<Instruction> instructions = new ArrayList<>();
InstructionUtils.createSetTunnelIdInstructions(ib, new BigInteger(segmentationId));
ApplyActionsCase aac = (ApplyActionsCase) ib.getInstruction();
InstructionsBuilder isb = new InstructionsBuilder();
// Instructions List Stores Individual Instructions
- List<Instruction> instructions = Lists.newArrayList();
+ List<Instruction> instructions = new ArrayList<>();
// Set VLAN ID Instruction
InstructionUtils.createSetVlanInstructions(ib, new VlanId(Integer.valueOf(segmentationId)));
InstructionsBuilder isb = new InstructionsBuilder();
// Instructions List Stores Individual Instructions
- List<Instruction> instructions = Lists.newArrayList();
+ List<Instruction> instructions = new ArrayList<>();
// Call the InstructionBuilder Methods Containing Actions
InstructionUtils.createDropInstructions(ib);
InstructionsBuilder isb = new InstructionsBuilder();
// Instructions List Stores Individual Instructions
- List<Instruction> instructions = Lists.newArrayList();
+ List<Instruction> instructions = new ArrayList<>();
- List<Action> actionList = Lists.newArrayList();
+ List<Action> actionList = new ArrayList<>();
ActionBuilder ab = new ActionBuilder();
ab.setAction(ActionUtils.nxLoadRegAction(new DstNxRegCaseBuilder().setNxReg(REG_FIELD).build(),
BigInteger.valueOf(REG_VALUE_FROM_REMOTE)));
InstructionsBuilder isb = new InstructionsBuilder();
// Instructions List Stores Individual Instructions
- List<Instruction> instructions = Lists.newArrayList();
+ List<Instruction> instructions = new ArrayList<>();
// Append the default pipeline after the first classification
InstructionBuilder ib = this.getMutablePipelineInstructionBuilder();
InstructionsBuilder isb = new InstructionsBuilder();
// Instructions List Stores Individual Instructions
- List<Instruction> instructions = Lists.newArrayList();
+ List<Instruction> instructions = new ArrayList<>();
// Call the InstructionBuilder Methods Containing Actions
InstructionUtils.createSendToControllerInstructions(FlowUtils.getNodeName(dpidLong), ib);
if (write) {
InstructionsBuilder isb = new InstructionsBuilder();
- List<Instruction> instructions = Lists.newArrayList();
+ List<Instruction> instructions = new ArrayList<>();
InstructionBuilder ib =
InstructionUtils.createGotoTableInstructions(new InstructionBuilder(), getTable());
ib.setOrder(0);