Resolve "(TID) RESTCONF-based NBI"

Closes #24 (closed)

Edited by Lluis Gifre Renom

Merge request reports

Loading

scripts/show_logs_nsc.sh

100644 → 100755
+0 −0

File mode changed from 100644 to 100755.

+518 −0

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1
Changes for src/config/.env.example: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
# -------------------------
# General
# -------------------------
NSC_PORT=8081
NSC_PORT=8086
# Options: CRITICAL, ERROR, WARNING, INFO, DEBUG, NOTSET
LOGGING_LEVEL=INFO
DUMP_TEMPLATES=false
+1 −1
Changes for src/config/constants.py: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -18,7 +18,7 @@ from pathlib import Path
import os

# Default port for NSC deployment
NSC_PORT = os.getenv("NSC_PORT", "8081")
NSC_PORT = os.getenv("NSC_PORT", "8086")

# Paths
BASE_DIR = Path(__file__).resolve().parent.parent.parent
+4 −0
Changes for src/database/store_data.py: 4 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
# This file is an original contribution from Telefonica Innovación Digital S.L.

from src.database.db import save_data, update_data
from src.database.sysrepo_store import create_data_store

def store_data(intent, slice_id, controller_type=None):
    """
@@ -31,8 +32,11 @@ def store_data(intent, slice_id, controller_type=None):
    """
    # Update or add new slice intent
    if slice_id:
        if controller_type != "RESTCONF": 
            update_data(slice_id, intent, controller_type)
        
    else:
        # Add new slice intent
        slice_id = intent["ietf-network-slice-service:network-slice-services"]["slice-service"][0]["id"]
        if controller_type != "RESTCONF": 
            save_data(slice_id, intent, controller_type)
 No newline at end of file
Loading
Loading