Revert "Full Juju Charm support"
[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 ietf-inet-types {
31     prefix "inet";
32   }
33
34   import vlr {
35     prefix "vlr";
36   }
37
38   import vnfd-base {
39     prefix "vnfd-base";
40   }
41
42   import rw-cloud {
43     prefix "rw-cloud";
44   }
45
46   import ietf-yang-types {
47     prefix "yang";
48   }
49
50   import rw-project {
51     prefix "rw-project";
52   }
53
54   revision 2017-02-08 {
55     description
56       "Update model to support projects.";
57   }
58
59   revision 2015-09-30 {
60     description
61       "Initial revision. This YANG file augments
62        the base MANO VNFD";
63     reference
64       "Derived from earlier versions of base YANG files";
65   }
66
67   augment /rw-project:project/vlr:vlr-catalog/vlr:vlr {
68
69     leaf datacenter {
70       description
71           "Datacenter name to use when instantiating
72           the network service.";
73       type string;
74     }
75
76
77     leaf network_pool {
78       description "The network pool the resource was allocated from.";
79       type string;
80     }
81
82     leaf assigned-subnet {
83       description "Subnet added for the VL";
84       type string;
85     }
86
87     leaf operational-status-details {
88       description
89         "The error message in case of a failed VLR operational status";
90       type string;
91     }
92
93     list virtual-connection-points {
94       key name;
95       uses vnfd-base:common-connection-point;
96
97       leaf-list associated-cps {
98         type string;
99       }
100
101       leaf connection-point-id {
102         description "VIM identifier for connection point";
103         type string;
104       }
105       
106       leaf ip-address {
107         description "IP Address of virtual connection point";
108         type inet:ip-address;
109       }
110       leaf mac-address {
111         description "MAC Address of the virtual connection point";
112         type string;
113       }
114     }
115   }
116 }
117
118 // vim: sw=2