0441452722decd73154c59205e7e4d6bfe24185d
[osm/SO.git] / common / plugins / yang / rw-sdn.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-sdn
22 {
23   namespace "http://riftio.com/ns/riftware-1.0/rw-sdn";
24   prefix "rw-sdn";
25
26
27   import rw-pb-ext {
28     prefix "rwpb";
29   }
30
31   import rwsdnal {
32     prefix "rwsdnal";
33   }
34
35   revision 2015-09-14 {
36     description
37       "Initial revision.";
38   }
39
40   container sdn {
41     rwpb:msg-new SDNAccountConfig;
42     list account {
43       rwpb:msg-new SDNAccount;
44       key "name";
45       leaf name {
46         type string;
47       }
48
49       uses rwsdnal:sdn-provider-auth;
50       uses rwsdnal:connection-status;
51     }
52   }
53
54   rpc update-sdn-status {
55     description "Begin sdn accunt connection status";
56     input {
57       leaf sdn-account {
58         mandatory true;
59         description
60           "The sdn account name to update connection status for";
61         type string;
62       }
63     }
64   }
65 }