Tabnine Logo
AbstractRoute.getProtocol
Code IndexAdd Tabnine to your IDE (free)

How to use
getProtocol
method
in
org.batfish.datamodel.AbstractRoute

Best Java code snippets using org.batfish.datamodel.AbstractRoute.getProtocol (Showing top 7 results out of 315)

origin: batfish/batfish

 @Override
 protected RoutingProtocol featureValueOf(AbstractRoute actual) {
  return actual.getProtocol();
 }
}
origin: batfish/batfish

@Override
public Result evaluate(Environment environment) {
 Result result = new Result();
 // Workaround: Treat ISIS_ANY as a special value
 if (_protocol == RoutingProtocol.ISIS_ANY) {
  result.setBooleanValue(ISIS_EXPANSION.contains(environment.getOriginalRoute().getProtocol()));
 } else {
  result.setBooleanValue(environment.getOriginalRoute().getProtocol().equals(_protocol));
 }
 return result;
}
origin: batfish/batfish

  route ->
    (network == null || network.equals(route.getNetwork()))
      && protocolSpec.getProtocols().contains(route.getProtocol()))
.forEach(
  route ->
origin: batfish/batfish

  route ->
    (network == null || network.equals(route.getNetwork()))
      && protocolSpec.getProtocols().contains(route.getProtocol()))
.forEach(
  route ->
        new RouteRowSecondaryKey(
          route.getNextHopIp(),
          route.getProtocol().protocolName()),
        k -> new TreeSet<>())
      .add(
origin: batfish/batfish

_dataPlane.getRibs().get(currentNodeName).get(vrfName).longestPrefixMatch(dstIp).stream()
  .sorted()
  .map(rc -> new RouteInfo(rc.getProtocol(), rc.getNetwork(), rc.getNextHopIp()))
  .distinct()
  .collect(ImmutableList.toImmutableList());
origin: batfish/batfish

/**
 * Converts a {@link AbstractRoute} to a {@link Row}
 *
 * @param hostName {@link String} host-name of the node containing the route
 * @param vrfName {@link String} name of the VRF containing the route
 * @param abstractRoute {@link AbstractRoute} to convert
 * @param columnMetadataMap Column metadata of the columns for this {@link Row} c
 * @return {@link Row} representing the {@link AbstractRoute}
 */
private static Row abstractRouteToRow(
  String hostName,
  String vrfName,
  AbstractRoute abstractRoute,
  Map<String, ColumnMetadata> columnMetadataMap,
  @Nullable Map<Ip, Set<String>> ipOwners) {
 return Row.builder(columnMetadataMap)
   .put(COL_NODE, new Node(hostName))
   .put(COL_VRF_NAME, vrfName)
   .put(COL_NETWORK, abstractRoute.getNetwork())
   .put(COL_NEXT_HOP_IP, abstractRoute.getNextHopIp())
   .put(COL_NEXT_HOP, computeNextHopNode(abstractRoute.getNextHopIp(), ipOwners))
   .put(COL_PROTOCOL, abstractRoute.getProtocol())
   .put(
     COL_TAG, abstractRoute.getTag() == AbstractRoute.NO_TAG ? null : abstractRoute.getTag())
   .put(COL_ADMIN_DISTANCE, abstractRoute.getAdministrativeCost())
   .put(COL_METRIC, abstractRoute.getMetric())
   .build();
}
origin: batfish/batfish

RoutingProtocol remoteRouteProtocol = route.getProtocol();
transformedOutgoingRouteBuilder.setSrcProtocol(route.getProtocol());
return transformedOutgoingRouteBuilder;
org.batfish.datamodelAbstractRoutegetProtocol

Popular methods of AbstractRoute

  • getMetric
  • getNetwork
    IPV4 network of this route
  • getNextHopIp
    Next hop IP for this route. If not known, Route#UNSET_ROUTE_NEXT_HOP_IP must be returned.
  • getNextHopInterface
    Name of the next-hop interface for this route. If not known, Route#UNSET_NEXT_HOP_INTERFACE must be
  • getNonForwarding
    Returns true if this route is non-forwarding, i.e., it can be installed in the main RIB but not the
  • getTag
    Return the route's tag or #NO_TAG if no tag is present
  • getAdministrativeCost
  • getNonRouting
    Check if this route is "non-routing", i.e., should not be installed in the main RIB.
  • toBuilder
    Return a AbstractRouteBuilder pre-populated with the values for this route.

Popular in Java

  • Creating JSON documents from java classes using gson
  • setRequestProperty (URLConnection)
  • getApplicationContext (Context)
  • getSharedPreferences (Context)
  • Menu (java.awt)
  • FileReader (java.io)
    A specialized Reader that reads from a file in the file system. All read requests made by calling me
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • Date (java.sql)
    A class which can consume and produce dates in SQL Date format. Dates are represented in SQL as yyyy
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • IsNull (org.hamcrest.core)
    Is the value null?
  • 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