Feature 5648: specification of IP addresses at CP level 56/5756/4
authorgarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 5 Dec 2017 12:47:09 +0000 (13:47 +0100)
committergarciadeblas <gerardo.garciadeblas@telefonica.com>
Tue, 5 Dec 2017 16:02:03 +0000 (17:02 +0100)
Change-Id: I56b62e514e4dd4712df7b05353c90a5fdea7f421
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
models/yang/nsd.yang
models/yang/vnfd-base.yang

index 4a88eac..6c8b8c5 100644 (file)
@@ -35,6 +35,10 @@ module nsd
     prefix "manotypes";
   }
 
     prefix "manotypes";
   }
 
+  import ietf-inet-types {
+    prefix "inet";
+  }
+
   revision 2017-02-28 {
     description
       "Update model to support projects.";
   revision 2017-02-28 {
     description
       "Update model to support projects.";
@@ -100,6 +104,15 @@ module nsd
           }
         }
 
           }
         }
 
+        leaf vnfd-connection-point-ref {
+          description "A reference to a connection point name";
+          type leafref {
+            path "/vnfd:vnfd-catalog/vnfd:vnfd" +
+                 "[vnfd:id = current()/../vnfd-id-ref]/" +
+                 "vnfd:connection-point/vnfd:name";
+          }
+        }
+
         leaf vnfd-id-ref {
           description
               "A reference to a VNFD";
         leaf vnfd-id-ref {
           description
               "A reference to a VNFD";
@@ -110,14 +123,11 @@ module nsd
           }
         }
 
           }
         }
 
-        leaf vnfd-connection-point-ref {
-          description "A reference to a connection point name";
-          type leafref {
-            path "/vnfd:vnfd-catalog/vnfd:vnfd" +
-                 "[vnfd:id = current()/../vnfd-id-ref]/" +
-                 "vnfd:connection-point/vnfd:name";
-          }
+        leaf ip-address {
+          description "IP address of the connection point";
+          type inet:ip-address;
         }
         }
+
       }
     }
   }
       }
     }
   }
index 8e4333a..9163e33 100644 (file)
@@ -303,6 +303,10 @@ module vnfd-base
               path "../../../vdu/internal-connection-point/id";
             }
           }
               path "../../../vdu/internal-connection-point/id";
             }
           }
+          leaf ip-address {
+            description "IP address of the internal connection point";
+            type inet:ip-address;
+          }
         }
 
         uses manotypes:provider-network;
         }
 
         uses manotypes:provider-network;