Support HKG region for Rackspace providers.

This commit is contained in:
Everett Toews 2013-10-10 14:54:32 -05:00
parent 04c9c6afd2
commit 747fde69e9
3 changed files with 6 additions and 3 deletions

View File

@ -64,11 +64,12 @@ public class CloudBlockStorageUSProviderMetadata extends BaseProviderMetadata {
public static Properties defaultProperties() {
Properties properties = new Properties();
properties.setProperty(CREDENTIAL_TYPE, CloudIdentityCredentialTypes.API_KEY_CREDENTIALS);
properties.setProperty(PROPERTY_ZONES, "ORD,DFW,IAD,SYD");
properties.setProperty(PROPERTY_ZONES, "ORD,DFW,IAD,SYD,HKG");
properties.setProperty(PROPERTY_ZONE + ".ORD." + ISO3166_CODES, "US-IL");
properties.setProperty(PROPERTY_ZONE + ".DFW." + ISO3166_CODES, "US-TX");
properties.setProperty(PROPERTY_ZONE + ".IAD." + ISO3166_CODES, "US-VA");
properties.setProperty(PROPERTY_ZONE + ".SYD." + ISO3166_CODES, "AU-NSW");
properties.setProperty(PROPERTY_ZONE + ".HKG." + ISO3166_CODES, "HK");
return properties;
}

View File

@ -53,11 +53,12 @@ public class CloudLoadBalancersUSProviderMetadata extends BaseProviderMetadata {
public static Properties defaultProperties() {
Properties properties = new Properties();
properties.setProperty(PROPERTY_ZONES, "ORD,DFW,IAD,SYD");
properties.setProperty(PROPERTY_ZONES, "ORD,DFW,IAD,SYD,HKG");
properties.setProperty(PROPERTY_ZONE + ".ORD." + ISO3166_CODES, "US-IL");
properties.setProperty(PROPERTY_ZONE + ".DFW." + ISO3166_CODES, "US-TX");
properties.setProperty(PROPERTY_ZONE + ".IAD." + ISO3166_CODES, "US-VA");
properties.setProperty(PROPERTY_ZONE + ".SYD." + ISO3166_CODES, "AU-NSW");
properties.setProperty(PROPERTY_ZONE + ".HKG." + ISO3166_CODES, "HK");
return properties;
}

View File

@ -65,11 +65,12 @@ public class CloudServersUSProviderMetadata extends BaseProviderMetadata {
public static Properties defaultProperties() {
Properties properties = new Properties();
properties.setProperty(CREDENTIAL_TYPE, CloudIdentityCredentialTypes.API_KEY_CREDENTIALS);
properties.setProperty(PROPERTY_ZONES, "ORD,DFW,IAD,SYD");
properties.setProperty(PROPERTY_ZONES, "ORD,DFW,IAD,SYD,HKG");
properties.setProperty(PROPERTY_ZONE + ".ORD." + ISO3166_CODES, "US-IL");
properties.setProperty(PROPERTY_ZONE + ".DFW." + ISO3166_CODES, "US-TX");
properties.setProperty(PROPERTY_ZONE + ".IAD." + ISO3166_CODES, "US-VA");
properties.setProperty(PROPERTY_ZONE + ".SYD." + ISO3166_CODES, "AU-NSW");
properties.setProperty(PROPERTY_ZONE + ".HKG." + ISO3166_CODES, "HK");
return properties;
}