4e6d9aa8384487cc9b0ee11cc215dc17f2b031e3
[osm/SO.git] / rwlaunchpad / plugins / yang / rw-nsm.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
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-nsd {
47     prefix "rw-nsd";
48   }
49   import nsd {
50     prefix "nsd";
51   }
52   import rw-nsr {
53     prefix "rw-nsr";
54   }
55   import vld {
56     prefix "vld";
57   }
58   import rw-vlr {
59     prefix "rw-vlr";
60   }
61   import rw-vns {
62     prefix "rw-vns";
63   }
64   import rw-vnfd {
65     prefix "rw-vnfd";
66   }
67   import vnfd {
68     prefix "vnfd";
69   }
70   import rw-vnfr {
71     prefix "rw-vnfr";
72   }
73
74   import rw-yang-types {
75     prefix "rwt";
76   }
77
78   import rw-launchpad {
79     prefix "rw-launchpad";
80   }
81
82   import rw-cloud {
83     prefix "rw-cloud";
84   }
85
86   import rw-sdn {
87     prefix "rw-sdn";
88   }
89
90   import rw-config-agent {
91     prefix "rw-config-agent";
92   }
93
94   revision 2015-10-07 {
95     description
96       "Initial revision.";
97   }
98
99   grouping cm-endpoint {
100     leaf cm-ip-address {
101       type inet:ip-address;
102       description "IP Address";
103       default "127.0.0.1";
104     }
105     leaf cm-port {
106       type inet:port-number;
107       description "Port Number";
108       default 2022;
109     }
110     leaf cm-username {
111       description "RO endpoint username";
112       type string;
113       default "admin";
114     }
115     leaf cm-password {
116       description "RO endpoint password";
117       type string;
118       default "admin";
119     }
120   }
121
122   container ro-config {
123     description "Resource Orchestrator endpoint ip address";
124     rwpb:msg-new "roConfig";
125     rwcli:new-mode "ro-config";
126
127     container cm-endpoint {
128       description "Service Orchestrator endpoint ip address";
129       rwpb:msg-new "SoEndpoint";
130       uses cm-endpoint;
131     }
132   }
133 }