update from RIFT as of 696b75d2fe9fb046261b08c616f1bcf6c0b54a9b second try
[osm/SO.git] / common / plugins / yang / rw-sdn.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-sdn
22 {
23   namespace "http://riftio.com/ns/riftware-1.0/rw-sdn";
24   prefix "rw-sdn";
25
26   import rw-project {
27     prefix "rw-project";
28   }
29
30   import rwsdnal {
31     prefix "rwsdnal";
32   }
33
34   import mano-types {
35     prefix "manotypes";
36   }
37
38   revision 2017-02-08 {
39     description
40       "Update model to support projects.";
41   }
42
43   revision 2015-09-14 {
44     description
45       "Initial revision.";
46   }
47
48   augment "/rw-project:project" {
49     container sdn {
50       list account {
51         key "name";
52         leaf name {
53           type string;
54         }
55
56         uses rwsdnal:sdn-provider-auth;
57         uses rwsdnal:connection-status;
58       }
59     }
60   }
61
62   rpc update-sdn-status {
63     description "Begin sdn accunt connection status";
64     input {
65       leaf sdn-account {
66         mandatory true;
67         description
68           "The sdn account name to update connection status for";
69         type string;
70       }
71
72       uses manotypes:rpc-project-name;
73     }
74   }
75
76   notification sdn-notif {
77     description "Notification for SDN account credentials";
78     leaf name {
79       description "SDN account name";
80       type string;
81     }
82
83     leaf message {
84       description "Notification message";
85       type string;
86     }
87   }
88 }