Merge from OSM SO master
[osm/SO.git] / rwlaunchpad / plugins / yang / rw-nsm.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
22 /**
23  * @file rw-nsm.yang
24  * @author Rajesh Velandy
25  * @date 2015/10/07
26  * @brief NSM  yang
27  */
28
29 module rw-nsm
30 {
31   namespace "http://riftio.com/ns/riftware-1.0/rw-nsm";
32   prefix "rw-nsm";
33
34   import rw-pb-ext {
35     prefix "rwpb";
36   }
37
38   import rw-cli-ext {
39     prefix "rwcli";
40   }
41
42   import ietf-inet-types {
43     prefix "inet";
44   }
45
46   import rw-project-nsd {
47     prefix "rw-project-nsd";
48   }
49
50   import project-nsd {
51     prefix "project-nsd";
52   }
53
54   import rw-nsr {
55     prefix "rw-nsr";
56   }
57
58   import vld {
59     prefix "vld";
60   }
61
62   import rw-vlr {
63     prefix "rw-vlr";
64   }
65
66   import rw-vns {
67     prefix "rw-vns";
68   }
69
70   import rw-project-vnfd {
71     prefix "rw-project-vnfd";
72   }
73
74   import project-vnfd {
75     prefix "project-vnfd";
76   }
77
78   import rw-vnfr {
79     prefix "rw-vnfr";
80   }
81
82   import rw-yang-types {
83     prefix "rwt";
84   }
85
86   import rw-launchpad {
87     prefix "rw-launchpad";
88   }
89
90   import rw-cloud {
91     prefix "rw-cloud";
92   }
93
94   import rw-sdn {
95     prefix "rw-sdn";
96   }
97
98   import rw-config-agent {
99     prefix "rw-config-agent";
100   }
101
102   import rw-project {
103     prefix "rw-project";
104   }
105
106   import rw-project-mano {
107     prefix "rw-project-mano";
108   }
109
110   revision 2017-02-08 {
111     description
112       "Update model to support projects.";
113   }
114
115   revision 2015-10-07 {
116     description
117       "Initial revision.";
118   }
119
120   grouping cm-endpoint {
121     leaf cm-ip-address {
122       type inet:ip-address;
123       description "IP Address";
124       default "127.0.0.1";
125     }
126     leaf cm-port {
127       type inet:port-number;
128       description "Port Number";
129       default 2022;
130     }
131     leaf cm-username {
132       description "RO endpoint username";
133       type string;
134       default "admin";
135     }
136     leaf cm-password {
137       description "RO endpoint password";
138       type string;
139       default "admin";
140     }
141   }
142
143   augment "/rw-project:project" {
144     container ro-config {
145       description "Resource Orchestrator endpoint ip address";
146       rwpb:msg-new "roConfig";
147       rwcli:new-mode "ro-config";
148
149       container cm-endpoint {
150         description "Service Orchestrator endpoint ip address";
151         rwpb:msg-new "SoEndpoint";
152         uses cm-endpoint;
153       }
154     }
155   }
156 }