Tabnine Logo
Interface.connectPoint
Code IndexAdd Tabnine to your IDE (free)

How to use
connectPoint
method
in
org.onosproject.net.intf.Interface

Best Java code snippets using org.onosproject.net.intf.Interface.connectPoint (Showing top 6 results out of 315)

origin: org.onosproject/onos-core-net

@Override
public void registerNeighbourHandler(Interface intf,
                   NeighbourMessageHandler handler,
                   ApplicationId appId) {
  register(intf.connectPoint(), new HandlerRegistration(handler, intf, appId));
}
origin: org.onosproject/onos-core-net

@Override
public void unregisterNeighbourHandler(Interface intf,
                    NeighbourMessageHandler handler,
                    ApplicationId appId) {
  unregister(intf.connectPoint(), new HandlerRegistration(handler, intf, appId));
}
origin: org.onosproject/onos-core-net

@Override
public void add(Interface intf) {
  InterfaceConfig config =
      configService.addConfig(intf.connectPoint(), CONFIG_CLASS);
  config.addInterface(intf);
  configService.applyConfig(intf.connectPoint(), CONFIG_CLASS, config.node());
}
origin: org.onosproject/onos-core-net

/**
 * Sends an ARP or NDP request for the given IP address.
 *
 * @param targetIp IP address to send the request for
 */
private void sendRequest(IpAddress targetIp) {
  interfaceService.getMatchingInterfaces(targetIp).forEach(intf -> {
    if (!edgePortService.isEdgePoint(intf.connectPoint())) {
      log.warn("Aborting attempt to send probe out non-edge port: {}", intf);
      return;
    }
    intf.ipAddressesList().stream()
        .filter(ia -> ia.subnetAddress().contains(targetIp))
        .forEach(ia -> {
          MacAddress probeMac = intf.mac();
          IpAddress probeIp = !probeMac.equals(MacAddress.ONOS) ?
              ia.ipAddress() :
              (ia.ipAddress().isIp4() ? Ip4Address.ZERO : Ip6Address.ZERO);
          sendProbe(intf.connectPoint(), targetIp, probeIp, probeMac, intf.vlan());
          // account for use-cases where tagged-vlan config is used
          if (!intf.vlanTagged().isEmpty()) {
            intf.vlanTagged().forEach(tag -> {
              sendProbe(intf.connectPoint(), targetIp, probeIp, probeMac, tag);
            });
          }
        });
  });
}
origin: org.onosproject/onos-cli

       NO_NAME : intf.name();
print(formatStringBuilder.toString(), name, intf.connectPoint().deviceId(),
    intf.connectPoint().port());
origin: org.onosproject/onos-core-net

@Override
public void forward(NeighbourMessageContext context, Interface outIntf) {
  Ethernet packetOut = context.packet().duplicate();
  if (outIntf.vlan().equals(VlanId.NONE)) {
    // The egress interface has no VLAN Id. Send out an untagged
    // packet
    packetOut.setVlanID(Ethernet.VLAN_UNTAGGED);
  } else {
    // The egress interface has a VLAN set. Send out a tagged packet
    packetOut.setVlanID(outIntf.vlan().toShort());
  }
  sendTo(packetOut, outIntf.connectPoint());
}
org.onosproject.net.intfInterfaceconnectPoint

Popular methods of Interface

  • ipAddressesList
  • mac
  • name
  • vlan
  • vlanNative
  • vlanTagged
  • vlanUntagged
  • <init>
  • equals

Popular in Java

  • Reading from database using SQL prepared statement
  • getResourceAsStream (ClassLoader)
  • putExtra (Intent)
  • findViewById (Activity)
  • VirtualMachine (com.sun.tools.attach)
    A Java virtual machine. A VirtualMachine represents a Java virtual machine to which this Java vir
  • BufferedImage (java.awt.image)
    The BufferedImage subclass describes an java.awt.Image with an accessible buffer of image data. All
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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