Class PlanSteps

java.lang.Object
com.eqixiac.equinix.design.plan.PlanSteps

public final class PlanSteps extends Object
Derives the dependency-ordered PlanSteps of a plan: Cloud Routers, then provider connections (a redundancy group's PRIMARY before its SECONDARY), then backbone links, then routing protocols (DIRECT before BGP on the same connection, as Fabric requires), then the elements the SDK does not create (Interconnects and native multicloud links).

A planned resource without a logical key (a hand-built plan) gets the fallback key <kind>/<name>, so every step has a key.

  • Method Details

    • of

      public static List<PlanStep> of(DeploymentPlan plan)
      The steps of a plan, in creation order.
      Parameters:
      plan - the plan
      Returns:
      the steps; empty for an empty plan
    • keyOf

      public static String keyOf(PlannedCloudRouter router)
      The router's logical key, or router/<name> when it has none.
      Parameters:
      router - the planned router
      Returns:
      the key
    • keyOf

      public static String keyOf(PlannedConnection conn)
      The connection's logical key, or connection/<name> when it has none.
      Parameters:
      conn - the planned connection
      Returns:
      the key
    • keyOf

      public static String keyOf(PlannedRoutingProtocol rp)
      The routing protocol's logical key, or rp/<name> when it has none.
      Parameters:
      rp - the planned routing protocol
      Returns:
      the key
    • keyOf

      public static String keyOf(PlannedInterconnect ic)
      The Interconnect's logical key, or interconnect/<name> when it has none.
      Parameters:
      ic - the planned Interconnect
      Returns:
      the key