Skip to content
Snippets Groups Projects
Commit e5baccf9 authored by Konstantinos Poulakakis's avatar Konstantinos Poulakakis
Browse files

Revert configuration files.

parent dd85c94c
No related branches found
No related tags found
2 merge requests!294Release TeraFlowSDN 4.0,!238Automation component skeleton
...@@ -207,24 +207,24 @@ export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"} ...@@ -207,24 +207,24 @@ export GRAF_EXT_PORT_HTTP=${GRAF_EXT_PORT_HTTP:-"3000"}
######################################################################################################################## ########################################################################################################################
# Deploy CockroachDB # Deploy CockroachDB
#./deploy/crdb.sh ./deploy/crdb.sh
# Deploy NATS # Deploy NATS
#./deploy/nats.sh ./deploy/nats.sh
# Deploy QuestDB # Deploy QuestDB
#./deploy/qdb.sh ./deploy/qdb.sh
# Deploy Apache Kafka # Deploy Apache Kafka
#./deploy/kafka.sh ./deploy/kafka.sh
# Expose Dashboard # Expose Dashboard
#./deploy/expose_dashboard.sh ./deploy/expose_dashboard.sh
# Deploy TeraFlowSDN # Deploy TeraFlowSDN
./deploy/tfs.sh ./deploy/tfs.sh
# Show deploy summary # Show deploy summary
#./deploy/show.sh ./deploy/show.sh
echo "Done!" echo "Done!"
...@@ -141,8 +141,8 @@ TMP_LOGS_FOLDER="${TMP_FOLDER}/${TFS_K8S_NAMESPACE}/logs" ...@@ -141,8 +141,8 @@ TMP_LOGS_FOLDER="${TMP_FOLDER}/${TFS_K8S_NAMESPACE}/logs"
mkdir -p $TMP_LOGS_FOLDER mkdir -p $TMP_LOGS_FOLDER
echo "Deleting and Creating a new namespace..." echo "Deleting and Creating a new namespace..."
#kubectl delete namespace $TFS_K8S_NAMESPACE --ignore-not-found kubectl delete namespace $TFS_K8S_NAMESPACE --ignore-not-found
#kubectl create namespace $TFS_K8S_NAMESPACE kubectl create namespace $TFS_K8S_NAMESPACE
sleep 2 sleep 2
printf "\n" printf "\n"
...@@ -252,7 +252,7 @@ echo "export PYTHONPATH=${PYTHONPATH}" >> $ENV_VARS_SCRIPT ...@@ -252,7 +252,7 @@ echo "export PYTHONPATH=${PYTHONPATH}" >> $ENV_VARS_SCRIPT
echo "Create Redis secret..." echo "Create Redis secret..."
# first try to delete an old one if exists # first try to delete an old one if exists
#kubectl delete secret redis-secrets --namespace=$TFS_K8S_NAMESPACE --ignore-not-found kubectl delete secret redis-secrets --namespace=$TFS_K8S_NAMESPACE --ignore-not-found
REDIS_PASSWORD=`uuidgen` REDIS_PASSWORD=`uuidgen`
kubectl create secret generic redis-secrets --namespace=$TFS_K8S_NAMESPACE \ kubectl create secret generic redis-secrets --namespace=$TFS_K8S_NAMESPACE \
--from-literal=REDIS_PASSWORD=$REDIS_PASSWORD --from-literal=REDIS_PASSWORD=$REDIS_PASSWORD
......
...@@ -20,13 +20,13 @@ ...@@ -20,13 +20,13 @@
export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/" export TFS_REGISTRY_IMAGES="http://localhost:32000/tfs/"
# Set the list of components, separated by spaces, you want to build images for, and deploy. # Set the list of components, separated by spaces, you want to build images for, and deploy.
export TFS_COMPONENTS="analytics" export TFS_COMPONENTS="context device pathcomp service slice nbi webui load_generator automation"
# Uncomment to activate Monitoring (old) # Uncomment to activate Monitoring (old)
#export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring" #export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring"
# Uncomment to activate Monitoring Framework (new) # Uncomment to activate Monitoring Framework (new)
#export TFS_COMPONENTS="${TFS_COMPONENTS} kpi_manager kpi_value_writer kpi_value_api telemetry analytics" export TFS_COMPONENTS="${TFS_COMPONENTS} kpi_manager kpi_value_writer kpi_value_api telemetry analytics"
# Uncomment to activate BGP-LS Speaker # Uncomment to activate BGP-LS Speaker
#export TFS_COMPONENTS="${TFS_COMPONENTS} bgpls_speaker" #export TFS_COMPONENTS="${TFS_COMPONENTS} bgpls_speaker"
...@@ -42,10 +42,10 @@ export TFS_COMPONENTS="analytics" ...@@ -42,10 +42,10 @@ export TFS_COMPONENTS="analytics"
#fi #fi
# Uncomment to activate ZTP # Uncomment to activate ZTP
#export TFS_COMPONENTS="${TFS_COMPONENTS} ztp" export TFS_COMPONENTS="${TFS_COMPONENTS} ztp"
# Uncomment to activate Policy Manager # Uncomment to activate Policy Manager
#export TFS_COMPONENTS="${TFS_COMPONENTS} policy" export TFS_COMPONENTS="${TFS_COMPONENTS} policy"
# Uncomment to activate Optical CyberSecurity # Uncomment to activate Optical CyberSecurity
#export TFS_COMPONENTS="${TFS_COMPONENTS} dbscanserving opticalattackmitigator opticalattackdetector opticalattackmanager" #export TFS_COMPONENTS="${TFS_COMPONENTS} dbscanserving opticalattackmitigator opticalattackdetector opticalattackmanager"
...@@ -75,7 +75,7 @@ export TFS_COMPONENTS="analytics" ...@@ -75,7 +75,7 @@ export TFS_COMPONENTS="analytics"
# Set the tag you want to use for your images. # Set the tag you want to use for your images.
export TFS_IMAGE_TAG="panos31" export TFS_IMAGE_TAG="dev"
# Set the name of the Kubernetes namespace to deploy TFS to. # Set the name of the Kubernetes namespace to deploy TFS to.
export TFS_K8S_NAMESPACE="tfs" export TFS_K8S_NAMESPACE="tfs"
...@@ -124,7 +124,7 @@ export CRDB_DEPLOY_MODE="single" ...@@ -124,7 +124,7 @@ export CRDB_DEPLOY_MODE="single"
export CRDB_DROP_DATABASE_IF_EXISTS="" export CRDB_DROP_DATABASE_IF_EXISTS=""
# Disable flag for re-deploying CockroachDB from scratch. # Disable flag for re-deploying CockroachDB from scratch.
export CRDB_REDEPLOY="YES" export CRDB_REDEPLOY=""
# ----- NATS ------------------------------------------------------------------- # ----- NATS -------------------------------------------------------------------
...@@ -143,7 +143,7 @@ export NATS_EXT_PORT_HTTP="8222" ...@@ -143,7 +143,7 @@ export NATS_EXT_PORT_HTTP="8222"
export NATS_DEPLOY_MODE="single" export NATS_DEPLOY_MODE="single"
# Disable flag for re-deploying NATS from scratch. # Disable flag for re-deploying NATS from scratch.
export NATS_REDEPLOY="YES" export NATS_REDEPLOY=""
# ----- QuestDB ---------------------------------------------------------------- # ----- QuestDB ----------------------------------------------------------------
...@@ -176,7 +176,7 @@ export QDB_TABLE_SLICE_GROUPS="tfs_slice_groups" ...@@ -176,7 +176,7 @@ export QDB_TABLE_SLICE_GROUPS="tfs_slice_groups"
export QDB_DROP_TABLES_IF_EXIST="" export QDB_DROP_TABLES_IF_EXIST=""
# Disable flag for re-deploying QuestDB from scratch. # Disable flag for re-deploying QuestDB from scratch.
export QDB_REDEPLOY="YES" export QDB_REDEPLOY=""
# ----- K8s Observability ------------------------------------------------------ # ----- K8s Observability ------------------------------------------------------
......
...@@ -11,10 +11,3 @@ ...@@ -11,10 +11,3 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# 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.
apscheduler==3.10.4
confluent-kafka==2.3.*
psycopg2-binary==2.9.*
SQLAlchemy==1.4.*
sqlalchemy-cockroachdb==1.4.*
SQLAlchemy-Utils==0.38.*
...@@ -19,8 +19,7 @@ from common.Settings import get_setting ...@@ -19,8 +19,7 @@ from common.Settings import get_setting
LOGGER = logging.getLogger(__name__) LOGGER = logging.getLogger(__name__)
# KFK_SERVER_ADDRESS_TEMPLATE = 'kafka-service.{:s}.svc.cluster.local:{:s}' KFK_SERVER_ADDRESS_TEMPLATE = 'kafka-service.{:s}.svc.cluster.local:{:s}'
KFK_SERVER_ADDRESS_TEMPLATE = '10.152.183.186'
class KafkaConfig(Enum): class KafkaConfig(Enum):
...@@ -30,10 +29,8 @@ class KafkaConfig(Enum): ...@@ -30,10 +29,8 @@ class KafkaConfig(Enum):
if kafka_server_address is None: if kafka_server_address is None:
KFK_NAMESPACE = get_setting('KFK_NAMESPACE') KFK_NAMESPACE = get_setting('KFK_NAMESPACE')
KFK_PORT = get_setting('KFK_SERVER_PORT') KFK_PORT = get_setting('KFK_SERVER_PORT')
kafka_server_address = KFK_SERVER_ADDRESS_TEMPLATE+':'+KFK_PORT kafka_server_address = KFK_SERVER_ADDRESS_TEMPLATE.format(KFK_NAMESPACE, KFK_PORT)
#print("XXXXXXXXXXXXXXXXXXXXXXXXX") # kafka_server_address = "127.0.0.1:9092"
print(kafka_server_address)
#kafka_server_address = "1"
return kafka_server_address return kafka_server_address
@staticmethod @staticmethod
......
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