Tabnine Logo
FlowObjectiveService.allocateNextId
Code IndexAdd Tabnine to your IDE (free)

How to use
allocateNextId
method
in
org.onosproject.net.flowobjective.FlowObjectiveService

Best Java code snippets using org.onosproject.net.flowobjective.FlowObjectiveService.allocateNextId (Showing top 6 results out of 315)

origin: org.onosproject/onos-core-net

private List<Objective> createBroadcastObjective(ForwardingInstructions instructions,
                         Set<TrafficTreatment> treatmentsWithDifferentPort,
                         LinkCollectionIntent intent) {
  List<Objective> objectives = Lists.newArrayList();
  ForwardingObjective forwardingObjective;
  NextObjective nextObjective;
  Integer nextId = flowObjectiveService.allocateNextId();
  forwardingObjective = buildForwardingObjective(instructions.selector(),
                          nextId, intent.priority());
  DefaultNextObjective.Builder nxBuilder = DefaultNextObjective.builder();
  nxBuilder.withId(nextId)
      .withMeta(instructions.selector())
      .withType(NextObjective.Type.BROADCAST)
      .fromApp(appId)
      .withPriority(intent.priority())
      .makePermanent();
  treatmentsWithDifferentPort.forEach(nxBuilder::addTreatment);
  nextObjective = nxBuilder.add();
  objectives.add(forwardingObjective);
  objectives.add(nextObjective);
  return objectives;
}
origin: org.onosproject/onos-core-net

private List<Objective> createSimpleNextObjective(ForwardingInstructions instructions,
                         LinkCollectionIntent intent) {
  List<Objective> objectives = Lists.newArrayList();
  ForwardingObjective forwardingObjective;
  NextObjective nextObjective;
  Integer nextId = flowObjectiveService.allocateNextId();
  forwardingObjective = buildForwardingObjective(instructions.selector(),
                          nextId, intent.priority());
  DefaultNextObjective.Builder nxBuilder = DefaultNextObjective.builder();
  nextObjective = nxBuilder.withId(nextId)
      .withMeta(instructions.selector())
      .addTreatment(instructions.treatment())
      .withType(NextObjective.Type.SIMPLE)
      .fromApp(appId)
      .makePermanent()
      .withPriority(intent.priority())
      .add();
  objectives.add(forwardingObjective);
  objectives.add(nextObjective);
  return objectives;
}
origin: org.onosproject/onos-core-net

.withId(flowObjectiveService.allocateNextId())
.addTreatment(treatment)
.withType(NextObjective.Type.SIMPLE)
origin: org.onosproject/onos-app-routing

int nextId = flowObjectiveService.allocateNextId();
NextObjective.Builder nextObjBuilder = DefaultNextObjective
    .builder().withId(nextId)
origin: org.onosproject/onos-app-routing

private int createPeerGroup(MacAddress srcMac, MacAddress dstMac,
    VlanId vlanId, DeviceId deviceId, PortNumber port) {
  int nextId = flowObjectiveService.allocateNextId();
  NextObjective.Builder nextObjBuilder = DefaultNextObjective.builder()
      .withId(nextId)
      .withType(NextObjective.Type.SIMPLE)
      .fromApp(appId);
  TrafficTreatment.Builder ttBuilder = DefaultTrafficTreatment.builder();
  ttBuilder.setEthSrc(srcMac);
  ttBuilder.setEthDst(dstMac);
  ttBuilder.setOutput(port);
  nextObjBuilder.addTreatment(ttBuilder.build());
  TrafficSelector.Builder metabuilder = DefaultTrafficSelector.builder();
  VlanId matchVlanId = (vlanId.equals(VlanId.NONE)) ?
      VlanId.vlanId(SingleSwitchFibInstaller.ASSIGNED_VLAN) :
      vlanId;
  metabuilder.matchVlanId(matchVlanId);
  nextObjBuilder.withMeta(metabuilder.build());
  flowObjectiveService.next(deviceId, nextObjBuilder.add());
  return nextId;
}
origin: org.onosproject/onos-app-routing

int nextId = flowObjectiveService.allocateNextId();
NextObjective.Builder nextBuilder = DefaultNextObjective.builder()
    .withId(nextId)
org.onosproject.net.flowobjectiveFlowObjectiveServiceallocateNextId

Popular methods of FlowObjectiveService

  • forward
  • apply
  • clearQueue
  • filter
  • getFilteringObjQueue
  • getFilteringObjQueueHead
  • getForwardingObjQueue
  • getForwardingObjQueueHead
  • getNextMappings
  • getNextObjQueue
  • getNextObjQueueHead
  • getPendingFlowObjectives
  • getNextObjQueueHead,
  • getPendingFlowObjectives,
  • initPolicy,
  • next

Popular in Java

  • Parsing JSON documents to java classes using gson
  • scheduleAtFixedRate (Timer)
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • ObjectMapper (com.fasterxml.jackson.databind)
    ObjectMapper provides functionality for reading and writing JSON, either to and from basic POJOs (Pl
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • JLabel (javax.swing)
  • JPanel (javax.swing)
  • IOUtils (org.apache.commons.io)
    General IO stream manipulation utilities. This class provides static utility methods for input/outpu
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now