oci_fastconnect adapter

Inmanta module to manage Oracle Cloud Infrastructure VirtualCircuits.

Features

  • Create, Update and Delete OCI VirtualCircuit.

  • Monitor VirtualCircuit state.

Usage example

This simple example shows how to deploy a VirtualCircuit in active state and attach it to a provider physical connection using a crossconnect mapping

import oci_fastconnect
import oci_fastconnect::base
import oci_fastconnect::virtual_circuit

provider_api = oci_fastconnect::base::Api(
    name="provider",
    profile_name="provider",
    config_file="./config.toml",
)

virtual_circuit = oci_fastconnect::VirtualCircuit(
    api=provider_api,
    name="test-circuit",
    id="ocid_1234",
    provider_state="ACTIVE",
    cross_connect_mappings=[
        oci_fastconnect::virtual_circuit::CrossConnectMapping(
            cross_connect_or_cross_connect_group_id="ocid1.crossconnectgroup.oc1.test.abcdefg",
            vlan=42,
        ),
    ],
)

oci_fastconnect::VirtualCircuitStateCheck(
    api=provider_api,
    virtual_circuit_id=virtual_circuit.id
)