4 * Copyright 2016 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";
83 // typedef ro-endpoint-method {
90 grouping ro-endpoint {
91 // leaf ro-endpoint-method {
92 // description "interface between CM & RO, defaults to netconf";
93 // type ro-endpoint-method;
98 description "IP Address";
102 type inet:port-number;
103 description "Port Number";
107 description "RO endpoint username";
112 description "RO endpoint password";
118 grouping vnf-cfg-items {
119 leaf configuration-file {
120 description "Location of the confguration file on CM system";
123 leaf translator-script {
124 description "Script that translates the templates in the configuration-file using VNFR information
125 Currently, we only use IP address translations.
126 configuration will use connection point name instead of IP addresses.";
131 container cm-config {
132 description "Service Orchestrator specific configuration";
133 rwpb:msg-new "SoConfig";
134 rwcli:new-mode "cm-config";
136 container ro-endpoint {
137 description "Resource Orchestrator endpoint ip address";
138 rwpb:msg-new "RoEndpoint";
142 //uses vnf-cfg-items;
147 description "Indicates NSR bringup complete, now initiate configuration of the NSR";
153 // =================== SHOW ==================
154 typedef record-state {
160 enum cfg-process-failed;
163 enum failed-connection;
164 enum netconf-connected;
165 enum netconf-ssh-connected;
166 enum restconf-connected;
174 // TBD: Do we need this typedef, currently not used anywhere
186 // This is also used by RO (Resource Orchestrator) to indicate NSR is ready
187 // It will only fill in IDs
189 rwpb:msg-new "CmOpdata";
191 description "CM NS & VNF states";
194 description "CM various states";
199 description "List of NS Records";
205 description "NSR name.";
209 description "State of NSR";
213 description "Details of the state of NSR, in case of errors";
218 description "List of VNF Records within NS Record";
224 description "VNFR name.";
228 description "Last known state of this VNFR";
231 container mgmt-interface {
233 type inet:ip-address;
236 type inet:port-number;
245 list connection-point {
248 description "Connection Point name";
252 description "IP address assigned to this connection point";
253 type inet:ip-address;