Class AzureExpressRouteAdapter<T>
- Type Parameters:
T- the type of the Azure SDK object being adapted
- All Implemented Interfaces:
CloudProviderConnectionAdapter<T>
When creating an Equinix Fabric connection to Azure ExpressRoute you need:
- Authentication Key: the ExpressRoute Service Key (a GUID provided by Azure)
- Service Profile: the Equinix Fabric service profile UUID for Azure ExpressRoute
- Peering Type:
PeeringType.PRIVATEorPeeringType.MICROSOFT - Metro: the Equinix metro of the ExpressRoute peering location (for example
"SV"for Silicon Valley), sent aszSide.accessPoint.location.metroCode
No sellerRegion is sent: none of the Fabric v4 4.34.0 Azure examples
(Colo2Sp-Azure-Primary, Vd2Sp-Azure, Fcr2Sp-Azure, Metal2Sp-Azure)
carries one; the peering location is expressed by the metro. getSellerRegion() returns
null.
AzureExpressRouteAdapter<?> adapter = AzureExpressRouteAdapter.of(
"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx", // ExpressRoute Service Key
"equinix-azure-profile-uuid", // Equinix service profile
PeeringType.PRIVATE, // Peering type
"SV" // Equinix metro of the peering location
);
Connection conn = fabric.connections()
.define(ConnectionType.EVPL_VC)
.name("Azure-ExpressRoute")
.bandwidth(100)
.aSideAccessPointPort(portUuid, LinkProtocol.qinq().vlanSTag(1500).vlanCTag(10).create())
.zSideCloudProvider(adapter)
.notification("ops@example.com")
.create();
- Author:
- ianjones
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAzureExpressRouteAdapter(T source, String expressRouteServiceKey, String serviceProfileUuid, PeeringType peeringType, String metroCode) Creates an adapter wrapping an Azure ExpressRoute SDK object. -
Method Summary
Modifier and TypeMethodDescriptiondescribe()Returns a human-readable description of the cloud provider connection for use in logging and diagnostics.Returns 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.Azure connections send nosellerRegion(see the class description).static AzureExpressRouteAdapter<Void> of(String expressRouteServiceKey, String serviceProfileUuid, PeeringType peeringType, String metroCode) Creates an adapter without an Azure SDK object.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloudProviderConnectionAdapter
getActivationKey, getAuthenticationKey, getMetroCode, getServiceProfileUuid, getSourceModifier and TypeMethodDescriptiondefault StringReturns the activation key to send asAccessPoint.activationKey, ornullto omit that property.Returns the authentication key required by the cloud provider to authorize the connection.default StringReturns the metro code to send asAccessPoint.location.metroCodeon the provider side.Returns the Equinix Fabric service profile UUID for this cloud provider.Returns the underlying cloud provider SDK object that was adapted.
-
Constructor Details
-
AzureExpressRouteAdapter
public AzureExpressRouteAdapter(T source, String expressRouteServiceKey, String serviceProfileUuid, PeeringType peeringType, String metroCode) Creates an adapter wrapping an Azure ExpressRoute SDK object.- Parameters:
source- the Azure SDK object (e.g.,ExpressRouteCircuit)expressRouteServiceKey- the ExpressRoute Service Key (GUID)serviceProfileUuid- the Equinix Fabric service profile UUID for AzurepeeringType- the peering type (PRIVATE or MICROSOFT)metroCode- the Equinix metro of the peering location, e.g."SV"; required
-
-
Method Details
-
of
public static AzureExpressRouteAdapter<Void> of(String expressRouteServiceKey, String serviceProfileUuid, PeeringType peeringType, String metroCode) Creates an adapter without an Azure SDK object.- Parameters:
expressRouteServiceKey- the ExpressRoute Service Key (GUID)serviceProfileUuid- the Equinix Fabric service profile UUID for AzurepeeringType- the peering typemetroCode- the Equinix metro of the peering location; required- Returns:
- a new adapter configured for Azure ExpressRoute
-
getSellerRegion
Azure connections send nosellerRegion(see the class description).- Specified by:
getSellerRegionin interfaceCloudProviderConnectionAdapter<T>- Returns:
null
-
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
-
describe
Description copied from interface:CloudProviderConnectionAdapterReturns a human-readable description of the cloud provider connection for use in logging and diagnostics.- Specified by:
describein interfaceCloudProviderConnectionAdapter<T>- Returns:
- a description string such as "AWS Direct Connect to us-east-1"
-