From 5676ceccd2d8b6ee61981a8e66ae778ec187749d Mon Sep 17 00:00:00 2001
From: garciaale <agarcia@whitestack.com>
Date: Fri, 11 Dec 2020 13:44:02 -0300
Subject: [PATCH] Adds SAPD to Slice NSDs to expose connection points

Signed-off-by: garciaale <agarcia@whitestack.com>
---
 .../slice_basic_middle_nsd.yaml               | 33 ++++++++++++-------
 slice_basic_ns/slice_basic_nsd.yaml           | 32 ++++++++++++------
 2 files changed, 44 insertions(+), 21 deletions(-)

diff --git a/slice_basic_middle_ns/slice_basic_middle_nsd.yaml b/slice_basic_middle_ns/slice_basic_middle_nsd.yaml
index f6d20d9c..2da176c6 100644
--- a/slice_basic_middle_ns/slice_basic_middle_nsd.yaml
+++ b/slice_basic_middle_ns/slice_basic_middle_nsd.yaml
@@ -1,7 +1,28 @@
 nsd:
   nsd:
-  - description: NSD to be used on Slice Testing
+  - id: slice_basic_middle_ns
+    name: slice_basic_middle_ns
+    description: NSD to be used on Slice Testing
     designer: OSM
+    version: '1.0'
+
+    vnfd-id:
+    - slice_basic_middle_vnf
+
+    sapd:
+    - id: nsd_cp_mgmt
+      virtual-link-desc: nsd_vnfd_vld_mgmt
+    - id: nsd_cp_data1
+      virtual-link-desc: nsd_vnfd_vld_data1
+    - id: nsd_cp_data2
+      virtual-link-desc: nsd_vnfd_vld_data2
+
+    virtual-link-desc:
+    - id: nsd_vnfd_vld_mgmt
+      mgmt-network: true
+    - id: nsd_vnfd_vld_data1
+    - id: nsd_vnfd_vld_data2
+
     df:
     - id: default-df
       vnf-profile:
@@ -20,13 +41,3 @@ nsd:
             constituent-cpd-id: eth2-ext
           virtual-link-profile-id: nsd_vnfd_vld_data2
         vnfd-id: slice_basic_middle_vnf
-    id: slice_basic_middle_ns
-    name: slice_basic_middle_ns
-    version: '1.0'
-    virtual-link-desc:
-    - id: nsd_vnfd_vld_mgmt
-      mgmt-network: true
-    - id: nsd_vnfd_vld_data1
-    - id: nsd_vnfd_vld_data2
-    vnfd-id:
-    - slice_basic_middle_vnf
diff --git a/slice_basic_ns/slice_basic_nsd.yaml b/slice_basic_ns/slice_basic_nsd.yaml
index 0f40f740..bb84cc1e 100644
--- a/slice_basic_ns/slice_basic_nsd.yaml
+++ b/slice_basic_ns/slice_basic_nsd.yaml
@@ -1,7 +1,25 @@
 nsd:
   nsd:
-  - description: NSD to be used on Slice Testing
+  - id: slice_basic_ns
+    name: slice_basic_ns
+    description: NSD to be used on Slice Testing
     designer: OSM
+    version: '1.0'
+
+    vnfd-id:
+    - slice_basic_vnf
+
+    sapd:
+    - id: nsd_cp_mgmt
+      virtual-link-desc: nsd_vnfd_vld_mgmt
+    - id: nsd_cp_data
+      virtual-link-desc: nsd_vnfd_vld_data
+
+    virtual-link-desc:
+    - id: nsd_vnfd_vld_mgmt
+      mgmt-network: true
+    - id: nsd_vnfd_vld_data
+
     df:
     - id: default-df
       vnf-profile:
@@ -16,12 +34,6 @@ nsd:
             constituent-cpd-id: eth1-ext
           virtual-link-profile-id: nsd_vnfd_vld_data
         vnfd-id: slice_basic_vnf
-    id: slice_basic_ns
-    name: slice_basic_ns
-    version: '1.0'
-    virtual-link-desc:
-    - id: nsd_vnfd_vld_mgmt
-      mgmt-network: true
-    - id: nsd_vnfd_vld_data
-    vnfd-id:
-    - slice_basic_vnf
+
+
+
-- 
GitLab