uninstall RIFT packages before installing new ones so that if the list of packages...
[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
27   import rw-pb-ext {
28     prefix "rwpb";
29   }
30
31   import mano-types {
32     prefix "manotypes";
33   }
34
35   import rw-project {
36     prefix "rw-project";
37   }
38
39   import rwsdn {
40     prefix "rwsdn";
41   }
42
43   revision 2017-02-08 {
44     description
45       "Update model to support projects.";
46   }
47
48   revision 2015-09-14 {
49     description
50       "Initial revision.";
51   }
52
53   augment "/rw-project:project" {
54     container sdn {
55       list account {
56         rwpb:msg-new SDNAccountConfig;
57         key "name";
58         leaf name {
59           type string;
60         }
61
62         uses rwsdn:sdn-provider-auth;
63         uses rwsdn:connection-status;
64       }
65     }
66   }
67
68   rpc update-sdn-status {
69     description "Begin sdn accunt connection status";
70     input {
71       leaf sdn-account {
72         mandatory true;
73         description
74           "The sdn account name to update connection status for";
75         type string;
76       }
77
78       uses manotypes:rpc-project-name;
79     }
80   }
81 }