Class AzureExpressRouteAdapter<T>
- Type Parameters:
T- the type of the Azure SDK object being adapted
- All Implemented Interfaces:
CloudProviderConnectionAdapter<T>
Azure ExpressRoute provides private, dedicated connections between Azure data centers and on-premises infrastructure. When creating an Equinix Fabric connection to Azure, you need:
- Authentication Key: The ExpressRoute Service Key (a GUID provided by Azure)
- Seller Region: The Azure region or peering location (e.g.,
"Silicon Valley","Washington DC") - Service Profile: The Equinix Fabric service profile UUID for Azure ExpressRoute
- Peering Type:
PeeringType.PRIVATEorPeeringType.MICROSOFT
Usage with Azure SDK Object
// From Azure SDK
ExpressRouteCircuit circuit = azureClient.getExpressRouteCircuit("myResourceGroup", "myCircuit");
AzureExpressRouteAdapter<ExpressRouteCircuit> adapter = new AzureExpressRouteAdapter<>(
circuit,
circuit.serviceKey(), // ExpressRoute Service Key (GUID)
circuit.peeringLocation(), // e.g., "Silicon Valley"
"equinix-azure-profile-uuid", // Equinix service profile for Azure
PeeringType.PRIVATE // Private or Microsoft peering
);
Connection conn = fabric.connections()
.define(ConnectionType.EVPL_VC)
.name("Azure-ExpressRoute")
.bandwidth(100)
.aSideAccessPointPort(portUuid, LinkProtocol.dot1q().vlanTag(1500).create())
.zSideCloudProvider(adapter)
.notification("ops@example.com")
.create();
Manual Construction (No Azure SDK)
AzureExpressRouteAdapter<?> adapter = AzureExpressRouteAdapter.of(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ExpressRoute Service Key
"Silicon Valley", // Peering location
"equinix-azure-profile-uuid", // Equinix service profile
PeeringType.PRIVATE // Peering type
);
- Author:
- ianjones
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAzureExpressRouteAdapter(T source, String expressRouteServiceKey, String peeringLocation, String serviceProfileUuid, PeeringType peeringType) Creates an adapter wrapping an Azure ExpressRoute SDK object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the preferred connection type for this cloud provider.Returns the preferred link protocol for this cloud provider connection.Returns the preferred peering type for this cloud provider connection.Returns the cloud provider type for this adapter.static AzureExpressRouteAdapter<Void> of(String expressRouteServiceKey, String peeringLocation, String serviceProfileUuid, PeeringType peeringType) Creates an adapter without an Azure SDK object, using manually specified parameters.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface api.equinix.javasdk.fabric.model.implementation.cloud.CloudProviderConnectionAdapter
describe, getAuthenticationKey, getSellerRegion, getServiceProfileUuid, getSource
-
Constructor Details
-
AzureExpressRouteAdapter
public AzureExpressRouteAdapter(T source, String expressRouteServiceKey, String peeringLocation, String serviceProfileUuid, PeeringType peeringType) Creates an adapter wrapping an Azure ExpressRoute SDK object.- Parameters:
source- the Azure SDK object (e.g.,ExpressRouteCircuit)expressRouteServiceKey- the ExpressRoute Service Key (GUID)peeringLocation- the Azure peering location (e.g.,"Silicon Valley")serviceProfileUuid- the Equinix Fabric service profile UUID for AzurepeeringType- the peering type (PRIVATE or MICROSOFT)
-
-
Method Details
-
of
public static AzureExpressRouteAdapter<Void> of(String expressRouteServiceKey, String peeringLocation, String serviceProfileUuid, PeeringType peeringType) Creates an adapter without an Azure SDK object, using manually specified parameters.- Parameters:
expressRouteServiceKey- the ExpressRoute Service Key (GUID)peeringLocation- the Azure peering locationserviceProfileUuid- the Equinix Fabric service profile UUID for AzurepeeringType- the peering type- Returns:
- a new adapter configured for Azure ExpressRoute
-
getProviderType
Description copied from interface:CloudProviderConnectionAdapterReturns the cloud provider type for this adapter.Used for logging, diagnostics, and provider-specific defaults. Implementations should return the appropriate
CloudProviderTypeconstant.- Specified by:
getProviderTypein interfaceCloudProviderConnectionAdapter<T>- Returns:
- the cloud provider type
-
getPreferredConnectionType
Description copied from interface:CloudProviderConnectionAdapterReturns the preferred connection type for this cloud provider.Most cloud provider connections use
ConnectionType.EVPL_VC, but implementations can override this to return a different default. The user can always override the connection type when calling the builder.- Specified by:
getPreferredConnectionTypein interfaceCloudProviderConnectionAdapter<T>- Returns:
- the preferred connection type; defaults to
ConnectionType.EVPL_VC
-
getPreferredLinkProtocol
Description copied from interface:CloudProviderConnectionAdapterReturns the preferred link protocol for this cloud provider connection.Most cloud provider connections use DOT1Q encapsulation. Implementations can override this to provide a provider-specific default. Returns
nullto indicate no default (the user must specify the link protocol explicitly).- Specified by:
getPreferredLinkProtocolin interfaceCloudProviderConnectionAdapter<T>- Returns:
- the preferred link protocol, or
nullif none
-
getPreferredPeeringType
Description copied from interface:CloudProviderConnectionAdapterReturns the preferred peering type for this cloud provider connection.Relevant for providers that support multiple peering types (e.g., Azure ExpressRoute supports PRIVATE and MICROSOFT peering). Returns
nullto indicate no preference.- Specified by:
getPreferredPeeringTypein interfaceCloudProviderConnectionAdapter<T>- Returns:
- the preferred peering type, or
nullif not applicable
-