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";
92 "Update model to support projects.";
100 // typedef ro-endpoint-method {
101 // type enumeration {
107 grouping ro-endpoint {
108 // leaf ro-endpoint-method {
109 // description "interface between CM & RO, defaults to netconf";
110 // type ro-endpoint-method;
114 type inet:ip-address;
115 description "IP Address";
119 type inet:port-number;
120 description "Port Number";
124 description "RO endpoint username";
129 description "RO endpoint password";
135 grouping vnf-cfg-items {
136 leaf configuration-file {
137 description "Location of the confguration file on CM system";
140 leaf translator-script {
141 description "Script that translates the templates in the configuration-file using VNFR information
142 Currently, we only use IP address translations.
143 configuration will use connection point name instead of IP addresses.";
148 augment "/rw-project:project" {
149 container cm-config {
150 description "Service Orchestrator specific configuration";
151 rwpb:msg-new "SoConfig";
152 rwcli:new-mode "cm-config";
154 container ro-endpoint {
155 description "Resource Orchestrator endpoint ip address";
156 rwpb:msg-new "RoEndpoint";
160 //uses vnf-cfg-items;
165 description "Indicates NSR bringup complete, now initiate configuration of the NSR";
172 // =================== SHOW ==================
173 typedef record-state {
179 enum cfg-process-failed;
182 enum failed-connection;
183 enum netconf-connected;
184 enum netconf-ssh-connected;
185 enum restconf-connected;
193 // TBD: Do we need this typedef, currently not used anywhere
205 // This is also used by RO (Resource Orchestrator) to indicate NSR is ready
206 // It will only fill in IDs
207 augment "/rw-project:project" {
209 rwpb:msg-new "CmOpdata";
211 description "CM NS & VNF states";
214 description "CM various states";
219 description "List of NS Records";
225 description "NSR name.";
229 description "State of NSR";
233 description "Details of the state of NSR, in case of errors";
238 description "List of VNF Records within NS Record";
244 description "VNFR name.";
248 description "Last known state of this VNFR";
251 container mgmt-interface {
253 type inet:ip-address;
256 type inet:port-number;
265 list connection-point {
268 description "Connection Point name";
272 description "IP address assigned to this connection point";
273 type inet:ip-address;