congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
AbstractRoute.getTag
Code IndexAdd Tabnine to your IDE (free)

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

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

origin: batfish/batfish

.setAdminDistance(route.getAdministrativeCost())
.setMetric(route.getMetric())
.setTag(route.getTag())
.build()));
origin: batfish/batfish

@Override
public Result evaluate(Environment environment) {
 int lhs;
 if (environment.getReadFromIntermediateBgpAttributes()) {
  lhs = environment.getIntermediateBgpAttributes().getTag();
 } else if (environment.getUseOutputAttributes()) {
  lhs = environment.getOutputRoute().getTag();
 } else {
  lhs = environment.getOriginalRoute().getTag();
 }
 int rhs = _tag.evaluate(environment);
 return _cmp.apply(lhs, rhs);
}
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

transformedOutgoingRouteBuilder.setTag(route.getTag());
origin: batfish/batfish

AbstractRoute or = environment.getOriginalRoute();
ir.setMetric(or.getMetric());
ir.setTag(or.getTag());
org.batfish.datamodelAbstractRoutegetTag

Javadoc

Return the route's tag or #NO_TAG if no tag is present

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.
  • getProtocol
  • 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
  • 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
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • setRequestProperty (URLConnection)
  • getResourceAsStream (ClassLoader)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • JCheckBox (javax.swing)
  • JTable (javax.swing)
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Scheduler (org.quartz)
    This is the main interface of a Quartz Scheduler. A Scheduler maintains a registry of org.quartz.Job
  • Best plugins for Eclipse
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