Merge from OSM SO master
[osm/SO.git] / models / plugins / yang / rw-vlr.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 rw-vlr
22 {
23   namespace "http://riftio.com/ns/riftware-1.0/rw-vlr";
24   prefix "rw-vlr";
25
26   import mano-types {
27     prefix "manotypes";
28   }
29
30   import vlr {
31     prefix "vlr";
32   }
33
34   import rw-cloud {
35     prefix "rw-cloud";
36   }
37
38   import ietf-yang-types {
39     prefix "yang";
40   }
41
42   import rw-project {
43     prefix "rw-project";
44   }
45
46   revision 2017-02-08 {
47     description
48       "Update model to support projects.";
49   }
50
51   revision 2015-09-30 {
52     description
53       "Initial revision. This YANG file augments
54        the base MANO VNFD";
55     reference
56       "Derived from earlier versions of base YANG files";
57   }
58
59   augment /rw-project:project/vlr:vlr-catalog/vlr:vlr {
60     leaf cloud-account {
61       description
62         "The cloud account to use when requesting resources for
63          this vlr";
64       type leafref {
65         path "../../../rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
66       }
67     }
68     leaf om-datacenter {
69       description
70           "Openmano datacenter name to use when instantiating
71           the network service.  This is only used when openmano
72           is selected as the cloud account.  This should be superceded
73           by multiple cloud accounts when that becomes available.";
74       type string;
75     }
76
77
78     leaf network_pool {
79       description "The network pool the resource was allocated from.";
80       type string;
81     }
82
83     leaf assigned-subnet {
84       description "Subnet added for the VL";
85       type string;
86     }
87
88     leaf operational-status-details {
89       description
90         "The error message in case of a failed VLR operational status";
91       type string;
92     }
93   }
94 }
95
96 // vim: sw=2