Tabnine Logo
EigrpInterface.getHostname
Code IndexAdd Tabnine to your IDE (free)

How to use
getHostname
method
in
org.batfish.datamodel.eigrp.EigrpInterface

Best Java code snippets using org.batfish.datamodel.eigrp.EigrpInterface.getHostname (Showing top 5 results out of 315)

origin: batfish/batfish

@VisibleForTesting
static Multiset<Row> getEigrpEdges(
  Set<String> includeNodes,
  Set<String> includeRemoteNodes,
  Network<EigrpInterface, EigrpEdge> eigrpTopology) {
 return eigrpTopology.edges().stream()
   .filter(
     eigrpEdge ->
       includeNodes.contains(eigrpEdge.getNode1().getHostname())
         && includeRemoteNodes.contains(eigrpEdge.getNode2().getHostname()))
   .map(EdgesAnswerer::eigrpEdgeToRow)
   .collect(Collectors.toCollection(HashMultiset::create));
}
origin: batfish/batfish

@Nonnull
public IpEdge toIpEdge(NetworkConfigurations nc) {
 return new IpEdge(
   _node1.getHostname(),
   _node1.getInterface(nc).getAddress().getIp(),
   _node2.getHostname(),
   _node2.getInterface(nc).getAddress().getIp());
}
origin: batfish/batfish

private void queueOutgoingExternalRoutes(
  Map<String, Node> allNodes, @Nonnull RibDelta<EigrpExternalRoute> delta) {
 // Loop over neighbors, enqueue messages
 for (EigrpEdge edge : _incomingRoutes.keySet()) {
  Queue<RouteAdvertisement<EigrpExternalRoute>> queue =
    requireNonNull(
        allNodes
          .get(edge.getNode1().getHostname())
          .getVirtualRouters()
          .get(edge.getNode1().getVrf())
          .getEigrpProcess(_asn))
      ._incomingRoutes
      .get(edge.reverse());
  VirtualRouter.queueDelta(queue, delta);
 }
}
origin: batfish/batfish

/**
 * Propagate EIGRP internal routes from every valid EIGRP neighbors
 *
 * @param nodes mapping of node names to instances.
 * @param topology network topology
 * @param nc All network configurations
 * @return true if new routes have been added to the staging RIB
 */
boolean propagateInternalRoutes(
  Map<String, Node> nodes,
  Network<EigrpInterface, EigrpEdge> topology,
  NetworkConfigurations nc) {
 return _interfaces.stream()
   .filter(topology.nodes()::contains)
   .flatMap(n -> topology.inEdges(n).stream())
   .map(
     edge ->
       propagateInternalRoutesFromNeighbor(
         nodes.get(edge.getNode1().getHostname()),
         edge.getNode2().getInterfaceSettings(nc).getMetric(),
         edge.getNode1().getInterface(nc)))
   .reduce(false, (a, b) -> a || b);
}
origin: batfish/batfish

@VisibleForTesting
static Row eigrpEdgeToRow(EigrpEdge eigrpEdge) {
 RowBuilder row = Row.builder();
 row.put(
     COL_INTERFACE,
     new NodeInterfacePair(
       eigrpEdge.getNode1().getHostname(), eigrpEdge.getNode1().getInterfaceName()))
   .put(
     COL_REMOTE_INTERFACE,
     new NodeInterfacePair(
       eigrpEdge.getNode2().getHostname(), eigrpEdge.getNode2().getInterfaceName()));
 return row.build();
}
org.batfish.datamodel.eigrpEigrpInterfacegetHostname

Popular methods of EigrpInterface

  • <init>
  • getInterface
  • equals
  • getInterfaceName
  • getInterfaceSettings
  • getVrf

Popular in Java

  • Parsing JSON documents to java classes using gson
  • getContentResolver (Context)
  • getSystemService (Context)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • Kernel (java.awt.image)
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • UnknownHostException (java.net)
    Thrown when a hostname can not be resolved.
  • NoSuchElementException (java.util)
    Thrown when trying to retrieve an element past the end of an Enumeration or Iterator.
  • ThreadPoolExecutor (java.util.concurrent)
    An ExecutorService that executes each submitted task using one of possibly several pooled threads, n
  • JFrame (javax.swing)
  • CodeWhisperer alternatives
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