Newer
Older
# Copyright 2022-2025 ETSI SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
# 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.
# This file includes original contributions from Telefonica Innovación Digital S.L.
import logging, os, json
DEFAULT_LOGGING_LEVEL = logging.INFO
# Default port for NSC deployment
NSC_PORT = 8081
# Paths
# Obtain the absolute path of the current file
SRC_PATH = os.path.dirname(os.path.abspath(__file__))
with open(os.path.join(SRC_PATH, 'IPs.json')) as f:
ips = json.load(f)
# Create the path to the desired file relative to the current file
TEMPLATES_PATH = os.path.join(SRC_PATH, "templates")
# Mapper
# Flag to determine if the NSC performs NRPs
NRP_ENABLED = False
# Planner Flags
PLANNER_ENABLED = True
# Flag to determine if external PCE is used
PCE_EXTERNAL = False
# Realizer
# Controller Flags
# If True, config is not sent to controllers
#####TERAFLOW#####
UPLOAD_TYPE = "WEBUI" # "WEBUI" or "NBI"
NBI_L2_PATH = "restconf/data/ietf-l2vpn-svc:l2vpn-svc/vpn-services"
NBI_L3_PATH = "restconf/data/ietf-l3vpn-svc:l3vpn-svc/vpn-services"
# Flag to determine if additional L2VPN configuration support is required for deploying L2VPNs with path selection
#####IXIA#####
# IXIA NEII IP
IXIA_IP = ips.get('IXIA_IP')
# WebUI