Tal Nisan has uploaded a new change for review.

Change subject: core: Add config values for mixed domain types in data center
......................................................................

core: Add config values for mixed domain types in data center

Change-Id: I9dd924bd1e53136fc5a1b6195700c7920658dde0
Bug-Url: https://bugzilla.redhat.com/1083560
Signed-off-by: Tal Nisan <[email protected]>
---
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/FeatureSupported.java
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
M packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
3 files changed, 20 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/67/26467/1

diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/FeatureSupported.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/FeatureSupported.java
index ee4ee3e..e5cd468 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/FeatureSupported.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/FeatureSupported.java
@@ -296,4 +296,13 @@
     public static boolean ovfStoreOnAnyDomain(Version version) {
         return supportedInConfig(ConfigValues.OvfStoreOnAnyDomain, version);
     }
+
+    /**
+     * @param version
+     *            Compatibility version to check for.
+     * @return <code>true</code> if mixed domain type is supported for the 
given version.
+     */
+    public static boolean mixedDomainTypesOnDataCenter(Version version) {
+        return supportedInConfig(ConfigValues.MixedDomainTypesInDataCenter, 
version);
+    }
 }
diff --git 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
index 889b559..3c969a4 100644
--- 
a/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
+++ 
b/backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
@@ -1678,5 +1678,9 @@
     @DefaultValueAttribute("2")
     StorageDomainOvfStoreCount,
 
+    @TypeConverterAttribute(Boolean.class)
+    @DefaultValueAttribute("true")
+    MixedDomainTypesInDataCenter,
+
     Invalid;
 }
diff --git a/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql 
b/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
index e623f56..91e2d57 100644
--- a/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
+++ b/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
@@ -239,6 +239,13 @@
 select fn_db_add_config_value('OvfStoreOnAnyDomain','false','3.3');
 select fn_db_add_config_value('OvfStoreOnAnyDomain','false','3.4');
 
+-- Mixed domain types in a data center support
+select fn_db_add_config_value('MixedDomainTypesInDataCenter','false','3.0');
+select fn_db_add_config_value('MixedDomainTypesInDataCenter','false','3.1');
+select fn_db_add_config_value('MixedDomainTypesInDataCenter','false','3.2');
+select fn_db_add_config_value('MixedDomainTypesInDataCenter','false','3.3');
+select fn_db_add_config_value('MixedDomainTypesInDataCenter','true','3.4');
+
 -- by default use no proxy
 select fn_db_add_config_value('SpiceProxyDefault','','general');
 


-- 
To view, visit http://gerrit.ovirt.org/26467
To unsubscribe, visit http://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I9dd924bd1e53136fc5a1b6195700c7920658dde0
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Tal Nisan <[email protected]>
_______________________________________________
Engine-patches mailing list
[email protected]
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to