Commit df8decf1 authored by Mohamad Rahhal's avatar Mohamad Rahhal
Browse files

NBI component - NBI - Connector - NOS : First Commit

parent fe753185
Loading
Loading
Loading
Loading
+7 −0
Original line number Original line Diff line number Diff line
@@ -106,3 +106,10 @@ spec:
                name: nbiservice
                name: nbiservice
                port:
                port:
                  number: 8080
                  number: 8080
          - path: /()(ztp-api/.*)
            pathType: Prefix
            backend:
              service:
                name: nbiservice
                port:
                  number: 8080
+6 −6
Original line number Original line Diff line number Diff line
@@ -15,16 +15,16 @@
apiVersion: apps/v1
apiVersion: apps/v1
kind: Deployment
kind: Deployment
metadata:
metadata:
  name: ztp_serverservice
  name: ztp-serverservice
spec:
spec:
  selector:
  selector:
    matchLabels:
    matchLabels:
      app: ztp_serverservice
      app: ztp-serverservice
  #replicas: 1
  #replicas: 1
  template:
  template:
    metadata:
    metadata:
      labels:
      labels:
        app: ztp_serverservice
        app: ztp-serverservice
    spec:
    spec:
      terminationGracePeriodSeconds: 5
      terminationGracePeriodSeconds: 5
      containers:
      containers:
@@ -55,13 +55,13 @@ spec:
apiVersion: v1
apiVersion: v1
kind: Service
kind: Service
metadata:
metadata:
  name: ztp_serverservice
  name: ztp-serverservice
  labels:
  labels:
    app: ztp_serverservice
    app: ztp-serverservice
spec:
spec:
  type: ClusterIP
  type: ClusterIP
  selector:
  selector:
    app: ztp_serverservice
    app: ztp-serverservice
  ports:
  ports:
    - name: http
    - name: http
      protocol: TCP
      protocol: TCP
+3 −0
Original line number Original line Diff line number Diff line
@@ -22,6 +22,9 @@ 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="context device pathcomp service slice nbi webui"
export TFS_COMPONENTS="context device pathcomp service slice nbi webui"


# Uncomment to activate ZTP
export TFS_COMPONENTS="${TFS_COMPONENTS} ztp_server"

# Uncomment to activate Monitoring (old)
# Uncomment to activate Monitoring (old)
#export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring"
#export TFS_COMPONENTS="${TFS_COMPONENTS} monitoring"


+28 −0
Original line number Original line Diff line number Diff line
#!/bin/bash
# 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.

########################################################################################################################
# Define your deployment settings here
########################################################################################################################

# If not already set, set the name of the Kubernetes namespace to deploy to.
export TFS_K8S_NAMESPACE=${TFS_K8S_NAMESPACE:-"tfs"}

########################################################################################################################
# Automated steps start here
########################################################################################################################

kubectl -n ${TFS_K8S_NAMESPACE:-tfs} logs deploy/ztp-serverservice -c server
+3 −0
Original line number Original line Diff line number Diff line
@@ -89,6 +89,9 @@ COPY src/vnt_manager/__init__.py vnt_manager/__init__.py
COPY src/vnt_manager/client/. vnt_manager/client/
COPY src/vnt_manager/client/. vnt_manager/client/
RUN mkdir -p /var/teraflow/tests/tools
RUN mkdir -p /var/teraflow/tests/tools
COPY src/tests/tools/mock_osm/. tests/tools/mock_osm/
COPY src/tests/tools/mock_osm/. tests/tools/mock_osm/
COPY src/ztp_server/__init__.py ztp_server/__init__.py
COPY src/ztp_server/client/. ztp_server/client/



# Start the service
# Start the service
# NOTE: Configured single worker to prevent issues with multi-worker synchronization. To be invetsigated.
# NOTE: Configured single worker to prevent issues with multi-worker synchronization. To be invetsigated.
Loading