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";
54 import rw-yang-types {
58 import ietf-inet-types {
62 import ietf-yang-types {
74 import rw-config-agent {
75 prefix "rw-config-agent";
84 "Update model to support projects.";
92 // typedef ro-endpoint-method {
99 grouping ro-endpoint {
100 // leaf ro-endpoint-method {
101 // description "interface between CM & RO, defaults to netconf";
102 // type ro-endpoint-method;
106 type inet:ip-address;
107 description "IP Address";
111 type inet:port-number;
112 description "Port Number";
116 description "RO endpoint username";
121 description "RO endpoint password";
127 grouping vnf-cfg-items {
128 leaf configuration-file {
129 description "Location of the confguration file on CM system";
132 leaf translator-script {
133 description "Script that translates the templates in the configuration-file using VNFR information
134 Currently, we only use IP address translations.
135 configuration will use connection point name instead of IP addresses.";
140 augment "/rw-project:project" {
141 container cm-config {
142 description "Service Orchestrator specific configuration";
143 rwpb:msg-new "SoConfig";
144 rwcli:new-mode "cm-config";
146 container ro-endpoint {
147 description "Resource Orchestrator endpoint ip address";
148 rwpb:msg-new "RoEndpoint";
152 //uses vnf-cfg-items;
157 description "Indicates NSR bringup complete, now initiate configuration of the NSR";
164 // =================== SHOW ==================
165 typedef record-state {
171 enum cfg-process-failed;
174 enum failed-connection;
175 enum netconf-connected;
176 enum netconf-ssh-connected;
177 enum restconf-connected;
185 // TBD: Do we need this typedef, currently not used anywhere
197 // This is also used by RO (Resource Orchestrator) to indicate NSR is ready
198 // It will only fill in IDs
199 augment "/rw-project:project" {
201 rwpb:msg-new "CmOpdata";
203 description "CM NS & VNF states";
206 description "CM various states";
211 description "List of NS Records";
217 description "NSR name.";
221 description "State of NSR";
225 description "Details of the state of NSR, in case of errors";
230 description "List of VNF Records within NS Record";
236 description "VNFR name.";
240 description "Last known state of this VNFR";
243 container mgmt-interface {
245 type inet:ip-address;
248 type inet:port-number;
257 list connection-point {
260 description "Connection Point name";
264 description "IP address assigned to this connection point";
265 type inet:ip-address;