254bca2672afc9e5a393514c7d91ee081cb413f3
[osm/SO.git] / models / plugins / yang / vnffgd.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 vnffgd
22 {
23   namespace "urn:ietf:params:xml:ns:yang:nfvo:vnffgd";
24   prefix "vnffgd";
25
26   import ietf-inet-types {
27     prefix "inet";
28   }
29
30   import ietf-yang-types {
31     prefix "yang";
32   }
33
34   import mano-types {
35     prefix "manotypes";
36   }
37
38   import rw-project {
39     prefix "rw-project";
40   }
41
42   revision 2017-02-08 {
43     description
44       "Update model to support projects.";
45   }
46
47   revision 2014-10-27 {
48     description
49       "Initial revision. This YANG file defines 
50        the VNF Forwarding Graph Descriptor (VNFFGD)";
51     reference
52       "Derived from earlier versions of base YANG files";
53   }
54
55   augment "/rw-project:project" {
56     container vnffgd-catalog {
57
58       list vnffgd {
59         key "id";
60
61         leaf name {
62           description "VNF Forwarding Graph Descriptor name.";
63           type string;
64         }
65
66         leaf id {
67           description "Identifier for the VNFFGD.";
68           type yang:uuid;
69         }
70
71         leaf provider {
72           description "Provider of the VNFFGD.";
73           type string;
74         }
75
76         leaf description {
77           description "Description of the VNFFGD.";
78           type string;
79         }
80
81         leaf version {
82           description "Version of the VNFFGD";
83           type string;
84         }
85
86         //TODO: Add more content here
87       }
88     }
89   }
90 }