Rift.IO OSM R1 Initial Submission
[osm/UI.git] / skyquake / plugins / composer / src / schemas / yang / rw-vlr.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 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 "rwcloud";
36   }
37
38   import ietf-yang-types {
39     prefix "yang";
40   }
41
42   revision 2015-09-30 {
43     description
44       "Initial revision. This YANG file augments
45        the base MANO VNFD";
46     reference
47       "Derived from earlier versions of base YANG files";
48   }
49
50   augment /vlr:vlr-catalog/vlr:vlr {
51     leaf cloud-account {
52       description
53         "The cloud account to use when requesting resources for
54          this vlr";
55       type leafref {
56         path "/rwcloud:cloud/rwcloud:account/rwcloud:name";
57       }
58     }
59
60     leaf network_pool {
61       description "The network pool the resource was allocated from.";
62       type string;
63     }
64
65     leaf assigned-subnet {
66       description "Subnet added for the VL";
67       type string;
68     }
69   }
70 }
71
72 // vim: sw=2