Moti Asayag has uploaded a new change for review.

Change subject: core: Add network filter config value (#809814)
......................................................................

core: Add network filter config value (#809814)

https://bugzilla.redhat.com/809814

A new configuration value is introduced:
EnableMACAntiSpoofingFilterRules - a system level config to
enable/disable network filtering feature.

Change-Id: If703dd504c5d71bffec354fd850b39571dab9c28
Signed-off-by: Moti Asayag <masa...@redhat.com>
---
M backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql
M 
backend/manager/modules/common/src/main/java/org/ovirt/engine/core/common/config/ConfigValues.java
M 
backend/manager/tools/engine-config/src/main/resources/engine-config.properties
3 files changed, 11 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/ovirt-engine refs/changes/55/7355/1

diff --git a/backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql 
b/backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql
index cae394d..87a3389 100644
--- a/backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql
+++ b/backend/manager/dbscripts/upgrade/pre_upgrade/0000_config.sql
@@ -259,6 +259,10 @@
 select fn_db_add_config_value('SupportBridgesReportByVDSM','false','3.0');
 select fn_db_add_config_value('SupportBridgesReportByVDSM','false','3.1');
 select fn_db_add_config_value('SupportBridgesReportByVDSM','true','3.2');
+select fn_db_add_config_value('EnableMACAntiSpoofingFilterRules','false', 
'2.2');
+select fn_db_add_config_value('EnableMACAntiSpoofingFilterRules','false', 
'3.0');
+select fn_db_add_config_value('EnableMACAntiSpoofingFilterRules','false', 
'3.1');
+select fn_db_add_config_value('EnableMACAntiSpoofingFilterRules','true', 
'3.2');
 --Handling Organization Name
 select fn_db_add_config_value('OrganizationName','oVirt','general');
 select fn_db_add_config_value('OriginType','OVIRT','general');
@@ -483,6 +487,7 @@
 -- AutoRecoveryConfiguration
 select fn_db_add_config_value('AutoRecoveryAllowedTypes','{\"storage 
domains\":\"false\",\"hosts\":\"false\"}','general');
 
+
 
------------------------------------------------------------------------------------
 --                  Update with override section
 
------------------------------------------------------------------------------------
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 494ac71..586972c 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
@@ -1442,6 +1442,10 @@
     @DefaultValueAttribute("ovirt-engine")
     SSHKeyAlias(377),
 
+    @TypeConverterAttribute(Boolean.class)
+    @DefaultValueAttribute("true")
+    EnableMACAntiSpoofingFilterRules(378),
+
     Invalid(65535);
 
     private int intValue;
diff --git 
a/backend/manager/tools/engine-config/src/main/resources/engine-config.properties
 
b/backend/manager/tools/engine-config/src/main/resources/engine-config.properties
index ec83249..849ec5d 100644
--- 
a/backend/manager/tools/engine-config/src/main/resources/engine-config.properties
+++ 
b/backend/manager/tools/engine-config/src/main/resources/engine-config.properties
@@ -210,3 +210,5 @@
 NetworkConnectivityCheckTimeoutInSeconds.description="The time to wait before 
rolling back network changes in case the engine losses connectivity with the 
host in seconds"
 NetworkConnectivityCheckTimeoutInSeconds.type=Integer
 NetworkConnectivityCheckTimeoutInSeconds.validValues=10..160
+EnableMACAntiSpoofingFilterRules.description="Indicates if Network Filtering 
should be enabled or not."
+EnableMACAntiSpoofingFilterRules.validValues=true,false
\ No newline at end of file


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If703dd504c5d71bffec354fd850b39571dab9c28
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Moti Asayag <masa...@redhat.com>
_______________________________________________
Engine-patches mailing list
Engine-patches@ovirt.org
http://lists.ovirt.org/mailman/listinfo/engine-patches

Reply via email to