Merge "Fix SO restart without test-name"
[osm/SO.git] / common / plugins / yang / rw-cloud.yang
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-cloud
22 {
23   namespace "http://riftio.com/ns/riftware-1.0/rw-cloud";
24   prefix "rw-cloud";
25
26
27   import rw-pb-ext {
28     prefix "rw-pb-ext";
29   }
30
31   import rwcal {
32     prefix "rwcal";
33   }
34
35   import rw-sdn {
36     prefix "rw-sdn";
37   }
38
39   revision 2015-09-14 {
40     description
41       "Initial revision.";
42   }
43
44   container cloud {
45     rw-pb-ext:msg-new CloudConfig;
46     list account {
47       rw-pb-ext:msg-new CloudAccount;
48       description "Configure Cloud Accounts";
49
50       max-elements 16;
51       key "name";
52
53       leaf name {
54         mandatory true;
55         type string {
56             length "1..255";
57         }
58       }
59
60       leaf sdn-account {
61         description "Configured SDN account associated with this cloud account";
62         type leafref {
63           path "/rw-sdn:sdn-account/rw-sdn:name";
64         }
65       }
66
67       uses rwcal:provider-auth;
68       uses rwcal:connection-status;
69     }
70   }
71
72   rpc update-cloud-status {
73     description "Begin cloud account connection status";
74     input {
75       leaf cloud-account {
76         mandatory true;
77         description
78           "The cloud account name to update connection status for";
79         type string;
80       }
81     }
82   }
83
84   notification cloud-notif {
85     description "Notification for cloud account credentials";
86     leaf name {
87       description "Cloud account name";
88       type string;
89     }
90
91     leaf message {
92       description "Notification message";
93       type string;
94     }
95   }
96
97 }
98