Search in sources :

Example 1 with BackendAddressPoolInner

use of com.microsoft.azure.management.network.implementation.BackendAddressPoolInner in project photon-model by vmware.

the class AzureLoadBalancerService method buildBackendPools.

/**
 * Build Azure backend pool model
 * We create one backend pool and add all VMs to that pool
 *
 * @param context Azure load balancer context
 * @return List of backend pools
 */
private List<BackendAddressPoolInner> buildBackendPools(AzureLoadBalancerContext context) {
    BackendAddressPoolInner backendAddressPoolInner = new BackendAddressPoolInner();
    backendAddressPoolInner.withName(String.format("%s-backend-pool", context.loadBalancerStateExpanded.name));
    return Lists.newArrayList(backendAddressPoolInner);
}
Also used : BackendAddressPoolInner(com.microsoft.azure.management.network.implementation.BackendAddressPoolInner)

Aggregations

BackendAddressPoolInner (com.microsoft.azure.management.network.implementation.BackendAddressPoolInner)1