Rift.IO OSM R1 Initial Submission
[osm/UI.git] / skyquake / plugins / composer / src / schemas / yang / mano-base.yang.src
1
2 /*
3  * 
4  *   Copyright 2016 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 mano-base
22 {
23   namespace "http://riftio.com/ns/riftware-1.0/mano-base";
24   prefix "manobase";
25
26   import ietf-yang-types {
27     prefix "yang";
28   }
29
30   import rw-cli-ext {
31     prefix "rwcli";
32   }
33
34   revision 2015-08-25 {
35     description
36       "This YANG file provides agument points for VNF specific 
37        configuration and operational data";
38     reference
39       "Derived from earlier versions of base YANG files";
40   }
41
42   container vnf-config {
43     description
44         "Container for VNF configuration data";
45     list vnf {
46       description
47           "The VNF configuration data YANG moodel augments this path";
48       rwcli:new-mode "vnf";
49       key "name instance";
50       leaf name {
51         description
52             "Name of the VNF.";
53         type string;
54       }
55       leaf instance{
56         description
57           "Instance number of the VNF.";
58         type uint32;
59       }
60       leaf id {
61         description
62             "Identifier for the VNF";
63         type yang:uuid;
64       }
65     }
66   }
67
68   container vnf-opdata {
69     description
70         "Container for VNF operational data";
71     config false;
72     list vnf {
73       description
74           "The VNF operational data YANG model augments this path";
75       key "name instance";
76       config false;
77       leaf name {
78         description
79           "Name of the VNF.";
80         type string;
81       }
82       leaf instance{
83         description
84           "Instance number of the VNF.";
85         type uint32;
86       }
87       leaf id {
88         description
89             "Identifier for the VNF";
90         type yang:uuid;
91       }
92     }
93   }
94 }