Commit c74fe044 authored by Maria Ruiz's avatar Maria Ruiz
Browse files

prueba ini

parent 747d37e0
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -20,6 +20,7 @@ from flask_restx import Api
from flask_cors import CORS
from swagger.tfs_namespace import tfs_ns
from swagger.ixia_namespace import ixia_ns
from swagger.sat_namespace import sat_ns  
from src.Constants import NSC_PORT, WEBUI_DEPLOY
from src.webui.gui import gui_bp

@@ -38,6 +39,7 @@ api = Api(
# Register namespaces
api.add_namespace(tfs_ns, path="/tfs")
api.add_namespace(ixia_ns, path="/ixia")
api.add_namespace(sat_ns, path="/sat")  #MR
#gui_bp = Blueprint('gui', __name__, template_folder='templates')

if WEBUI_DEPLOY:
+6 −3
Original line number Diff line number Diff line
@@ -17,7 +17,8 @@
import logging, os, json

# Default logging level
DEFAULT_LOGGING_LEVEL = logging.INFO
#DEFAULT_LOGGING_LEVEL = logging.INFO
DEFAULT_LOGGING_LEVEL = logging.DEBUG #MR

# Default port for NSC deployment
NSC_PORT = 8081
@@ -32,7 +33,8 @@ with open(os.path.join(SRC_PATH, 'IPs.json')) as f:
TEMPLATES_PATH = os.path.join(SRC_PATH, "templates")

# Dump templates
DUMP_TEMPLATES = False
#DUMP_TEMPLATES = False
DUMP_TEMPLATES = True #MR

# Mapper 

@@ -47,7 +49,8 @@ PCE_EXTERNAL = False

# Controller Flags
# If True, config is not sent to controllers
DUMMY_MODE = False
#DUMMY_MODE = False
DUMMY_MODE = True #MR

#####TERAFLOW#####
# Teraflow IP
+488 −1

File changed.

Preview size limit exceeded, changes collapsed.

+160 −0
Original line number Diff line number Diff line
[
  {
    "ietf-network-slice-service:network-slice-services": {
      "slo-sle-templates": {
        "slo-sle-template": [
          {
            "id": "A",
            "description": "",
            "slo-policy": {
              "metric-bound": [
                {
                  "metric-type": "one-way-bandwidth",
                  "metric-unit": "kbps",
                  "bound": 2
                },
                {
                  "metric-type": "one-way-delay-maximum",
                  "metric-unit": "milliseconds",
                  "bound": 20
                }
              ]
            },
            "sle-policy": {
              "security": "",
              "isolation": "",
              "path-constraints": {
                "service-functions": "",
                "diversity": {
                  "diversity": {
                    "diversity-type": ""
                  }
                }
              }
            }
          }
        ]
      },
      "slice-service": [
        {
          "id": "slice-service-27dafab1-18d5-4a6e-ba6d-15835097a462",
          "description": "Transport network slice mapped with 3GPP slice NetworkSlice1",
          "service-tags": {
            "tag-type": {
              "tag-type": "",
              "value": ""
            }
          },
          "slo-sle-policy": {
            "slo-sle-template": "SAT"
          },
          "status": {},
          "sdps": {
            "sdp": [
              {
                "id": "",
                "geo-location": "",
                "node-id": "HUB",
                "sdp-ip-address": "10.0.200.1", 
                "tp-ref": "",
                "service-match-criteria": {
                  "match-criterion": [
                    {
                      "index": 1,
                      "match-type": "VLAN",
                      "value": "102",
                      "target-connection-group-id": "HUB_STATION_102"
                    }
                  ]
                },
                "incoming-qos-policy": "",
                "outgoing-qos-policy": "",
                "sdp-peering": {
                  "peer-sap-id": "",
                  "protocols": ""
                },
                "ac-svc-ref": [],
                "attachment-circuits": {
                  "attachment-circuit": [
                    {
                      "id": "1",
                      "ac-ipv4-address": "10.0.200.1",
                      "ac-ipv4-prefix-length": 0,
                      "sdp-peering": {
                        "peer-sap-id": "H"
                      },
                      "status": {}
                    }
                  ]
                },
                "status": {},
                "sdp-monitoring": ""
              },
              {
                "id": "",
                "geo-location": "",
                "node-id": "STATION",
                "sdp-ip-address": "10.0.102.2",
                "tp-ref": "",
                "service-match-criteria": {
                  "match-criterion": [
                    {
                      "index": 1,
                      "match-type": "VLAN",
                      "value": "102",
                      "target-connection-group-id": "HUB_STATION_102"
                    }
                  ]
                },
                "incoming-qos-policy": "",
                "outgoing-qos-policy": "",
                "sdp-peering": {
                  "peer-sap-id": "",
                  "protocols": ""
                },
                "ac-svc-ref": [],
                "attachment-circuits": {
                  "attachment-circuit": [
                    {
                      "id": "2",
                      "ac-ipv4-address": "10.0.102.2",
                      "ac-ipv4-prefix-length": 0,
                      "sdp-peering": {
                        "peer-sap-id": "S"
                      },
                      "status": {}
                    }
                  ]
                },
                "status": {},
                "sdp-monitoring": ""
              }
            ]
          },
          "connection-groups": {
            "connection-group": [
              {
                "id": "HUB_STATION_102",
                "connectivity-type": "ietf-vpn-common:any-to-any",
                "connectivity-construct": [
                  {
                    "id": 1,
                    "a2a-sdp": [
                      {
                        "sdp-id": "01"
                      },
                      {
                        "sdp-id": "02"
                      }
                    ]
                  }
                ],
                "status": {}
              }
            ]
          }
        }
      ]
    }
  }
]
 No newline at end of file
+160 −0
Original line number Diff line number Diff line
[
  {
    "ietf-network-slice-service:network-slice-services": {
      "slo-sle-templates": {
        "slo-sle-template": [
          {
            "id": "A",
            "description": "",
            "slo-policy": {
              "metric-bound": [
                {
                  "metric-type": "one-way-bandwidth",
                  "metric-unit": "kbps",
                  "bound": 2
                },
                {
                  "metric-type": "one-way-delay-maximum",
                  "metric-unit": "milliseconds",
                  "bound": 20
                }
              ]
            },
            "sle-policy": {
              "security": "",
              "isolation": "",
              "path-constraints": {
                "service-functions": "",
                "diversity": {
                  "diversity": {
                    "diversity-type": ""
                  }
                }
              }
            }
          }
        ]
      },
      "slice-service": [
        {
          "id": "slice-service-27dafab1-18d5-4a6e-ba6d-15835097a462",
          "description": "Transport network slice mapped with 3GPP slice NetworkSlice1",
          "service-tags": {
            "tag-type": {
              "tag-type": "",
              "value": ""
            }
          },
          "slo-sle-policy": {
            "slo-sle-template": "A"
          },
          "status": {},
          "sdps": {
            "sdp": [
              {
                "id": "",
                "geo-location": "",
                "node-id": "CU-N2",
                "sdp-ip-address": "10.60.11.3",
                "tp-ref": "",
                "service-match-criteria": {
                  "match-criterion": [
                    {
                      "index": 1,
                      "match-type": "VLAN",
                      "value": "100",
                      "target-connection-group-id": "CU-N2_AMF-N2"
                    }
                  ]
                },
                "incoming-qos-policy": "",
                "outgoing-qos-policy": "",
                "sdp-peering": {
                  "peer-sap-id": "",
                  "protocols": ""
                },
                "ac-svc-ref": [],
                "attachment-circuits": {
                  "attachment-circuit": [
                    {
                      "id": "100",
                      "ac-ipv4-address": "10.60.11.3",
                      "ac-ipv4-prefix-length": 0,
                      "sdp-peering": {
                        "peer-sap-id": "4.4.4.4"
                      },
                      "status": {}
                    }
                  ]
                },
                "status": {},
                "sdp-monitoring": ""
              },
              {
                "id": "",
                "geo-location": "",
                "node-id": "AMF-N2",
                "sdp-ip-address": "10.60.60.105",
                "tp-ref": "",
                "service-match-criteria": {
                  "match-criterion": [
                    {
                      "index": 1,
                      "match-type": "VLAN",
                      "value": "100",
                      "target-connection-group-id": "CU-N2_AMF-N2"
                    }
                  ]
                },
                "incoming-qos-policy": "",
                "outgoing-qos-policy": "",
                "sdp-peering": {
                  "peer-sap-id": "",
                  "protocols": ""
                },
                "ac-svc-ref": [],
                "attachment-circuits": {
                  "attachment-circuit": [
                    {
                      "id": "200",
                      "ac-ipv4-address": "10.60.60.105",
                      "ac-ipv4-prefix-length": 0,
                      "sdp-peering": {
                        "peer-sap-id": "5.5.5.5"
                      },
                      "status": {}
                    }
                  ]
                },
                "status": {},
                "sdp-monitoring": ""
              }
            ]
          },
          "connection-groups": {
            "connection-group": [
              {
                "id": "CU-N2_AMF-N2",
                "connectivity-type": "ietf-vpn-common:any-to-any",
                "connectivity-construct": [
                  {
                    "id": 1,
                    "a2a-sdp": [
                      {
                        "sdp-id": "01"
                      },
                      {
                        "sdp-id": "02"
                      }
                    ]
                  }
                ],
                "status": {}
              }
            ]
          }
        }
      ]
    }
  }
]
 No newline at end of file
Loading