Fix SO crash on instantiate from UI
[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 "rw-pb-ext";
29   }
30
31   import rwsdn {
32     prefix "rwsdn";
33   }
34
35   revision 2015-09-14 {
36     description
37       "Initial revision.";
38   }
39
40   list sdn-account {
41     rw-pb-ext:msg-new SDNAccountConfig;
42
43     key "name";
44     leaf name {
45       type string;
46     }
47
48     uses rwsdn:sdn-provider-auth;
49     uses rwsdn:connection-status;
50   }
51
52   rpc update-sdn-status {
53     description "Begin sdn accunt connection status";
54     input {
55       leaf sdn-account {
56         mandatory true;
57         description
58           "The sdn account name to update connection status for";
59         type string;
60       }
61     }
62   }
63 }