package org.batfish.datamodel;

/**
 * Configuration-wise, how a route got into the BGP RIB. Used in tie-breaking on some vendors, and
 * to distinguish which next-hop-IP preference to use for locally-originated routes.
 */
public enum OriginMechanism {
  /** Created on the device independently of any existing route with the same prefix. */
  GENERATED,
  /** Learned from a peer. */
  LEARNED,
  /** Locally originated via a {@code network} statement. */
  NETWORK,
  /**
   * Locally originated via a {@code redistribute} statement, or via export from main RIB on devices
   * that do so.
   */
  REDISTRIBUTE;
}

@@ -395,16 +395,21 @@
 D,%0A  /**
+%0A   *
  Locally
@@ -451,17 +451,72 @@
 tatement
-.
+ on a vendor with an independent network%0A   * policy.%0A  
  */%0A  NE
@@ -588,17 +588,17 @@
 tatement
-,
+;
  or via 
@@ -644,16 +644,139 @@
 at do so
+; or via a %7B@code network%7D statement on vendors with a redistribution policy but%0A   * without an independent network policy
 .%0A   */%0A

Update OriginMechanism javadoc (#7706)