Enum Class PeeringPolicy

java.lang.Object
java.lang.Enum<PeeringPolicy>
com.eqixiac.equinix.design.peering.enums.PeeringPolicy
All Implemented Interfaces:
Serializable, Comparable<PeeringPolicy>, Constable

public enum PeeringPolicy extends Enum<PeeringPolicy>
Peering policy classification from PeeringDB's policy_general field.

A network's peering policy dramatically affects whether peering can be established. Two networks at the same Equinix IX may be unable to peer if one has a RESTRICTIVE policy requiring traffic minimums or geographic coverage.

  • OPEN - Will peer with anyone who requests it. Easiest to establish.
  • SELECTIVE - Evaluates peering requests on a case-by-case basis. May require minimum traffic or presence in multiple locations.
  • RESTRICTIVE - Has strict requirements for peering (traffic ratios, contracts, geographic presence). Most difficult to establish.
  • NO - Does not peer. Only reachable via transit or private connectivity (e.g., Fabric).
Author:
ianjones
See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static PeeringPolicy[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PeeringPolicy valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • fromPeeringDb

      public static PeeringPolicy fromPeeringDb(String pdbValue)
      Parses the PeeringDB policy_general string to an enum value.
      Parameters:
      pdbValue - the raw PeeringDB value (e.g., "Open", "Selective", "Restrictive", "No")
      Returns:
      the matching policy, or UNKNOWN if unrecognized or null