From 20074c4e75e926977b25d57bebf841f44ada12a0 Mon Sep 17 00:00:00 2001 From: ojasdubey Date: Mon, 5 Feb 2018 18:39:44 +0530 Subject: VLAN tagging - Enable first stage translation 1. Added toggle for vlan tagging feature 2. Enabled existing translation of feature with toggle 3. Enabled unit tests for the same 4. Deleted unused test data 5. Updated license text 6. Updated code based on review comments Change-Id: I755df4889f18a32061e9d4d1ebec09162b2d8b83 Issue-ID: SDC-998 Signed-off-by: ojasdubey --- .../sdc/common/togglz/ToggleableFeature.java | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'openecomp-be/lib/openecomp-common-lib/src/main/java/org') diff --git a/openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/togglz/ToggleableFeature.java b/openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/togglz/ToggleableFeature.java index aab9845573..2fa71a52d1 100644 --- a/openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/togglz/ToggleableFeature.java +++ b/openecomp-be/lib/openecomp-common-lib/src/main/java/org/openecomp/sdc/common/togglz/ToggleableFeature.java @@ -1,3 +1,19 @@ +/* + * Copyright © 2016-2017 European Support Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.openecomp.sdc.common.togglz; import org.togglz.core.Feature; @@ -7,7 +23,10 @@ import org.togglz.core.context.FeatureContext; public enum ToggleableFeature implements Feature { @Label ("Forwarder Capability") - FORWARDER_CAPABILITY; + FORWARDER_CAPABILITY, + + @Label ("VLAN Tagging") + VLAN_TAGGING; public boolean isActive() { return FeatureContext.getFeatureManager().isActive(this); -- cgit 1.2.3-korg