Generalize member-vnf-index as string in constituent-vnfd in NSD to allow symbolic...
[osm/IM.git] / models / yang / vnfd.yang
1
2 /*
3  *
4  *   Copyright 2016-2017 RIFT.IO Inc
5  *
6  *   Licensed under the Apache License, Version 2.0 (the "License");
7  *   you may not use this file except in compliance with the License.
8  *   You may obtain a copy of the License at
9  *
10  *       http://www.apache.org/licenses/LICENSE-2.0
11  *
12  *   Unless required by applicable law or agreed to in writing, software
13  *   distributed under the License is distributed on an "AS IS" BASIS,
14  *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15  *   See the License for the specific language governing permissions and
16  *   limitations under the License.
17  *
18  *
19  */
20
21 module vnfd
22 {
23   namespace "urn:ietf:params:xml:ns:yang:nfvo:vnfd";
24   prefix "vnfd";
25
26   import vnfd-base {
27     prefix "vnfd-base";
28   }
29
30   revision 2017-02-28 {
31     description
32       "Update model to support projects.";
33   }
34
35   revision 2015-09-10 {
36     description
37       "Initial revision. This YANG file defines
38        the Virtual Network Function (VNF)";
39     reference
40       "Derived from earlier versions of base YANG files";
41   }
42   container vnfd-catalog {
43     description
44       "Virtual Network Function Descriptor (VNFD).";
45
46     leaf schema-version {
47       description "Schema version for the VNFD. If unspecified, it assumes v3.0";
48       type string;
49       default "v3.0";
50     }
51
52     list vnfd {
53       key "id";
54
55         uses vnfd-base:vnfd-descriptor;
56     }
57   }
58 }
59
60 // vim: sw=2