Add management interface augment 14/8614/11
authorTomás Villaseca <tvillaseca@whitestack.com>
Mon, 17 Feb 2020 15:35:46 +0000 (12:35 -0300)
committerTomás Villaseca <tvillaseca@whitestack.com>
Fri, 15 May 2020 05:08:24 +0000 (01:08 -0400)
Change-Id: Ia2edd951d9c8820b899c62622d299b670dfbebaa
Signed-off-by: Tomás Villaseca <tvillaseca@whitestack.com>
augments/mgmt-interface.yang [new file with mode: 0644]

diff --git a/augments/mgmt-interface.yang b/augments/mgmt-interface.yang
new file mode 100644 (file)
index 0000000..d9cf686
--- /dev/null
@@ -0,0 +1,43 @@
+/*
+  Copyright 2020 Whitestack LLC
+
+  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 mgmt-interface {
+    yang-version 1.1;
+    namespace "urn:etsi:osm:yang:augments:mgmt-interface";
+    prefix "mgmt-interface";
+
+    import etsi-nfv-vnfd {
+        prefix vnfd;
+    }
+
+    import ietf-inet-types {
+        prefix "inet";
+    }
+    grouping extended-mgmt-interface {
+        leaf mgmt-cp {
+            description
+              "Connection point over which the VNF is managed.";
+            type leafref {
+                path "/vnfd:vnfd/vnfd:ext-cpd/vnfd:id";
+            }
+        }
+    }
+
+    augment "/vnfd:vnfd" {
+        uses extended-mgmt-interface;
+    }
+}
\ No newline at end of file