Lior Vernia has uploaded a new change for review.

Change subject: core: Added feature support versions for Host QoS
......................................................................

core: Added feature support versions for Host QoS

Defined it to be supported in cluster compatibility version 3.4 and
up.

Change-Id: Id66a22be4a30716f70af9bfcf2e467156d9c2a42
Signed-off-by: Lior Vernia <[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, 12 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/97/22597/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 5816e5e..0328036 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
@@ -178,6 +178,10 @@
         return supportedInConfig(ConfigValues.NetworkQosSupported, version);
     }
 
+    public static boolean HostNetworkQos(Version version) {
+        return supportedInConfig(ConfigValues.HostNetworkQosSupported, 
version);
+    }
+
     /**
      * @param version
      *            Compatibility version to check for.
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 1cb083d..4b836dc 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
@@ -1507,6 +1507,10 @@
 
     @TypeConverterAttribute(Boolean.class)
     @DefaultValueAttribute("true")
+    HostNetworkQosSupported,
+
+    @TypeConverterAttribute(Boolean.class)
+    @DefaultValueAttribute("true")
     CloudInitSupported,
 
     @TypeConverterAttribute(Boolean.class)
diff --git a/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql 
b/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
index c5aa861..5c92fbf 100644
--- a/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
+++ b/packaging/dbscripts/upgrade/pre_upgrade/0000_config.sql
@@ -220,6 +220,10 @@
 select fn_db_add_config_value('NetworkQosSupported','false','3.0');
 select fn_db_add_config_value('NetworkQosSupported','false','3.1');
 select fn_db_add_config_value('NetworkQosSupported','false','3.2');
+select fn_db_add_config_value('HostNetworkQosSupported', 'false', '3.0');
+select fn_db_add_config_value('HostNetworkQosSupported', 'false', '3.1');
+select fn_db_add_config_value('HostNetworkQosSupported', 'false', '3.2');
+select fn_db_add_config_value('HostNetworkQosSupported', 'false', '3.3');
 select fn_db_add_config_value('CloudInitSupported','false','3.0');
 select fn_db_add_config_value('CloudInitSupported','false','3.1');
 select fn_db_add_config_value('CloudInitSupported','false','3.2');


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

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

Reply via email to