Skip to content
Snippets Groups Projects
Commit 974acf01 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Slice component:

- Pre-merge code cleanup
parent bfa801f7
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!71OFC'23 + IETF L2VPN Device Driver + Device Controllers + Multiple small improvements
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
# See the License for the specific language governing permissions and # See the License for the specific language governing permissions and
# limitations under the License. # limitations under the License.
import logging
from typing import Dict, List, Optional, Set, Tuple from typing import Dict, List, Optional, Set, Tuple
from common.Constants import DEFAULT_CONTEXT_NAME from common.Constants import DEFAULT_CONTEXT_NAME
from common.Settings import get_setting from common.Settings import get_setting
...@@ -28,8 +27,6 @@ TRUE_VALUES = {'Y', 'YES', 'TRUE', 'T', 'E', 'ENABLE', 'ENABLED'} ...@@ -28,8 +27,6 @@ TRUE_VALUES = {'Y', 'YES', 'TRUE', 'T', 'E', 'ENABLE', 'ENABLED'}
NO_ISOLATION = IsolationLevelEnum.NO_ISOLATION NO_ISOLATION = IsolationLevelEnum.NO_ISOLATION
LOGGER = logging.getLogger(__name__)
def is_slice_grouping_enabled() -> bool: def is_slice_grouping_enabled() -> bool:
is_enabled = get_setting(SETTING_NAME_SLICE_GROUPING, default=None) is_enabled = get_setting(SETTING_NAME_SLICE_GROUPING, default=None)
if is_enabled is None: return False if is_enabled is None: return False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment