day1-2: rename connection-point-ref to external-connection-point-ref
[osm/IM.git] / models / yang / vnfd-base.yang
index 38bede6..28a4961 100644 (file)
@@ -1,7 +1,7 @@
-
 /*
  *
  *   Copyright 2017 RIFT.IO Inc
+ *   Copyright 2018-2020 ETSI
  *
  *   Licensed under the Apache License, Version 2.0 (the "License");
  *   you may not use this file except in compliance with the License.
@@ -66,6 +66,17 @@ module vnfd-base
       type boolean;
       default true;
     }
+
+    leaf port-security-disable-strategy {
+      description "Strategy to disable port security, either Enables the port security for the port.
+                   full                : disable port security in the whole port
+                   allow-address-pairs : allow address pairs for virtual IP (any virtual IP can be configured)";
+      type enumeration {
+        enum full;
+        enum allow-address-pairs;
+      }
+      default full;
+    }
   }
 
   typedef interface-type {
@@ -661,6 +672,15 @@ module vnfd-base
                 ";
               type string;
             }
+            leaf helm-version {
+              description
+                "Helm version to use for this helm-chart, v3 by default";
+              type enumeration {
+                enum v2;
+                enum v3;
+              }
+              default v3;
+            }
           }
 
           case juju-bundle {
@@ -677,6 +697,38 @@ module vnfd-base
           }
         }
 
+        list service {
+          description
+            "List of Kubernetes services exposed by the KDU.
+             If empty, all services are assumed to be exposed in the CP associated to the first network
+             in k8s-cluster.nets.";
+          key name;
+
+          leaf name {
+            description "Name of the Kubernetes service exposed by he KDU model";
+            type string;
+          }
+
+          leaf mgmt-service {
+            description
+                "Flag to indicate that this Kubernetes service is a mgmt service
+                to be used for KDU configuration. Defaults to false (if no present).
+                All services with mgmt-service set to true will be passed to the execution
+                environment in charge of the KDU configuration.";
+            type boolean;
+            default false;
+          }
+
+          leaf external-connection-point-ref {
+            description
+              "Leaf Ref to the particular external connection point";
+            type leafref {
+              path "../../../connection-point/name";
+            }
+          }
+
+        }
+
       }
 
       container k8s-cluster {