4 * Copyright 2016-2017 RIFT.IO Inc
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
10 * http://www.apache.org/licenses/LICENSE-2.0
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.
23 * @file rw-conman.yang
24 * @author Manish Patel
26 * @brief Service Orchestrator configuration yang
31 namespace "http://riftio.com/ns/riftware-1.0/rw-conman";
42 import rw-project-vnfd {
43 prefix "rw-project-vnfd";
46 import rw-project-nsd {
47 prefix "rw-project-nsd";
62 import rw-yang-types {
66 import ietf-inet-types {
70 import ietf-yang-types {
82 import rw-config-agent {
83 prefix "rw-config-agent";
90 import rw-project-mano {
91 prefix "rw-project-mano";
96 "Update model to support projects.";
104 // typedef ro-endpoint-method {
105 // type enumeration {
111 grouping ro-endpoint {
112 // leaf ro-endpoint-method {
113 // description "interface between CM & RO, defaults to netconf";
114 // type ro-endpoint-method;
118 type inet:ip-address;
119 description "IP Address";
123 type inet:port-number;
124 description "Port Number";
128 description "RO endpoint username";
133 description "RO endpoint password";
139 grouping vnf-cfg-items {
140 leaf configuration-file {
141 description "Location of the confguration file on CM system";
144 leaf translator-script {
145 description "Script that translates the templates in the configuration-file using VNFR information
146 Currently, we only use IP address translations.
147 configuration will use connection point name instead of IP addresses.";
152 augment "/rw-project:project" {
153 container cm-config {
154 description "Service Orchestrator specific configuration";
155 rwpb:msg-new "SoConfig";
156 rwcli:new-mode "cm-config";
158 container ro-endpoint {
159 description "Resource Orchestrator endpoint ip address";
160 rwpb:msg-new "RoEndpoint";
164 //uses vnf-cfg-items;
169 description "Indicates NSR bringup complete, now initiate configuration of the NSR";
176 // =================== SHOW ==================
177 typedef record-state {
183 enum cfg-process-failed;
186 enum failed-connection;
187 enum netconf-connected;
188 enum netconf-ssh-connected;
189 enum restconf-connected;
197 // TBD: Do we need this typedef, currently not used anywhere
209 // This is also used by RO (Resource Orchestrator) to indicate NSR is ready
210 // It will only fill in IDs
211 augment "/rw-project:project" {
213 rwpb:msg-new "CmOpdata";
215 description "CM NS & VNF states";
218 description "CM various states";
223 description "List of NS Records";
229 description "NSR name.";
233 description "State of NSR";
237 description "Details of the state of NSR, in case of errors";
242 description "List of VNF Records within NS Record";
248 description "VNFR name.";
252 description "Last known state of this VNFR";
255 container mgmt-interface {
257 type inet:ip-address;
260 type inet:port-number;
269 list connection-point {
272 description "Connection Point name";
276 description "IP address assigned to this connection point";
277 type inet:ip-address;