Fix in netslice-vld instantiation parameters: wrong connection point refs
[osm/IM.git] / models / yang / nst.yang
index 85e2917..c95a258 100644 (file)
@@ -1,9 +1,23 @@
-//INFORMATION
-//organization "CTTC";
-//contact "Pol Alemany, Ricard Vilalta, Juan Luis de la Cruz";
-//description "Network Slice components definition";
+/*
+ *
+ *   Copyright 2018 CTTC
+ *   Copyright 2018 Telefonica Investigacion y Desarrollo S.A.U.
+ *
+ *   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.
+ *
+ *
+ */
 
 
-// MODULE STRUCTURE
 module nst {
   //header information
   yang-version 1;
 module nst {
   //header information
   yang-version 1;
@@ -70,15 +84,15 @@ module nst {
 
     uses nsd-base:vld-common;
 
 
     uses nsd-base:vld-common;
 
-    list nsd-connection-point-ref {
+    list nss-connection-point-ref {
       description
           "A list of references to connection points.";
       description
           "A list of references to connection points.";
-      key "nsd-ref nsd-connection-point-ref";
+      key "nss-ref nsd-connection-point-ref";
 
 
-      leaf nsd-ref {
+      leaf nss-ref {
         description "Reference to nsd";
         type leafref {
         description "Reference to nsd";
         type leafref {
-          path "/nsd:nsd-catalog/nsd:nsd/nsd:id";
+          path "/nst:nst/nst:netslice-subnet/nst:id";
         }
       }
 
         }
       }