package org.dasein.cloud.cloudstack;

import org.dasein.cloud.AbstractCapabilities;
import org.dasein.cloud.dc.DataCenterCapabilities;

import javax.annotation.Nonnull;
import java.util.Locale;

/**
 * User: daniellemayne
 * Date: 01/08/2014
 * Time: 12:50
 */
public class CSTopologyCapabilities extends AbstractCapabilities<CSCloud> implements DataCenterCapabilities {
    public CSTopologyCapabilities(@Nonnull CSCloud provider) {
        super(provider);
    }
    @Override
    public String getProviderTermForDataCenter(Locale locale) {
        return "cluster";
    }

    @Override
    public String getProviderTermForRegion(Locale locale) {
        return "datacenter";
    }

    @Override
    public boolean supportsAffinityGroups() {
        return true;
    }

    @Override
    public boolean supportsResourcePools() {
        return true;
    }

    @Override
    public boolean supportsStoragePools() {
        return true;
    }
}

@@ -556,15 +556,12 @@
 rn %22
-cluster
+zone
 %22;%0A 
@@ -660,18 +660,14 @@
 rn %22
-datacenter
+region
 %22;%0A 
@@ -739,35 +739,36 @@
 %0A        return 
-tru
+fals
 e;%0A    %7D%0A%0A    @O
@@ -827,35 +827,36 @@
 %0A        return 
-tru
+fals
 e;%0A    %7D%0A%0A    @O
@@ -926,11 +926,12 @@
 urn 
-tru
+fals
 e;%0A 

fix dc capabilities