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 namespace "http://riftio.com/ns/riftware-1.0/rw-nsr";
42 import rw-config-agent {
43 prefix "rw-config-agent";
50 import ietf-yang-types {
56 "Initial revision. This YANG file augments
59 "Derived from earlier versions of base YANG files";
62 grouping operational-events {
63 list operational-events {
66 "Recent operational events for this network service.
67 Though the model does not impose any restrictions on the numbe of events,
68 the max operational events will be limited to the most recent 10";
71 description "The id of the instance";
77 "The timestamp of this event expressed as seconds since
78 unix epoch - 1970-01-01T00:00:00Z";
82 description "Short description of the event";
87 "The description of this event";
92 "The detailed description of this event (in case of errors)";
99 grouping rw-ns-instance-config {
102 "The configured cloud account which the NSR is instantiated within.
103 All VDU's, Virtual Links, and provider networks will be requested
104 using the cloud-account's associated CAL instance";
106 path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
112 "Openmano datacenter name to use when instantiating
113 the network service. This is only used when openmano
114 is selected as the cloud account. This should be superceded
115 by multiple cloud accounts when that becomes available.";
119 list vnf-cloud-account-map {
121 "Mapping VNF to Cloud Account where VNF will be instantiated";
123 key "member-vnf-index-ref";
124 leaf member-vnf-index-ref {
130 "The configured cloud account where VNF is instantiated within.
131 All VDU's, Virtual Links, and provider networks will be requested
132 using the cloud-account's associated CAL instance";
134 path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
140 "Openmano datacenter name to use when instantiating
141 the network service. This is only used when openmano
142 is selected as the cloud account. This should be superceded
143 by multiple cloud accounts when that becomes available.";
147 leaf config-agent-account {
149 "The configured config agent account to use for instantiating this VNF.
150 The configuration for this VNF will be driven using the specified config
153 path "/rw-config-agent:config-agent/rw-config-agent:account/rw-config-agent:name";
158 list vl-cloud-account-map {
160 "Mapping VL to Cloud Account where VL will be instantiated";
166 "A reference to a vld.
167 leafref path ../../nsd/vld/id";
171 leaf-list cloud-accounts {
173 "The configured list of cloud accounts where VL is instantiated.
174 All VDU's, Virtual Links, and provider networks will be requested
175 using the cloud-account's associated CAL instance";
177 path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
181 leaf-list om-datacenters {
183 "Openmano datacenter names to use when instantiating
184 the VLs. This is only used when openmano
185 is selected as the cloud account. This should be superceded
186 by multiple cloud accounts when that becomes available.";
193 augment /nsr:ns-instance-config/nsr:nsr {
194 uses rw-ns-instance-config;
197 augment /nsr:start-network-service/nsr:input{
198 uses rw-ns-instance-config;
201 augment /nsr:ns-instance-opdata/nsr:nsr {
202 uses manotypes:action-param;
203 uses manotypes:control-param;
207 "The SDN account associted with the cloud account using which an
208 NS was instantiated.";
210 path "/rw-sdn:sdn/rw-sdn:account/rw-sdn:name";
214 leaf config-status-details {
216 "The configuration status error details of the NS instance, in case of any errors";
220 container nfvi-metrics {
224 "Label to show in UI";
231 "The number of active VMs.";
237 "The number of inactive VMs.";
242 uses manotypes:nfvi-metrics;
245 container epa-param {
246 container ovs-acceleration {
249 "Label to show in UI for the param";
251 default "OVS ACCELERATION";
256 "Number of VMs with the EPA attribute";
262 "Unit label to show in the UI";
268 container ovs-offload {
271 "Label to show in UI for the param";
273 default "OVS OFFLOAD";
278 "Number of VMs with the EPA attribute";
284 "Unit label to show in the UI";
294 "Label to show in UI for the param";
301 "Number of VMs with the EPA attribute";
307 "Unit label to show in the UI";
317 "Label to show in UI for the param";
324 "Number of VMs with the EPA attribute";
330 "Unit label to show in the UI";
339 "Label to show in UI for the param";
346 "Number of VMs with the EPA attribute";
352 "Unit label to show in the UI";
359 uses operational-events;
363 augment /nsr:ns-instance-opdata/nsr:nsr/nsr:vlr {
364 leaf assigned-subnet {
365 description "Subnet added for the VL";
370 "The configured cloud account in which the VL is instantiated within.";
372 path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
377 "Openmano datacenter name to use when instantiating
378 the network service. This is only used when openmano
379 is selected as the cloud account. This should be superceded
380 by multiple cloud accounts when that becomes available.";
385 augment /nsr:ns-instance-opdata/nsr:nsr/nsr:constituent-vnfr-ref {
388 "The configured cloud account in which the VNF is instantiated within.
389 All VDU's, Virtual Links, and provider networks will be requested
390 using the cloud-account's associated CAL instance";
392 path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
397 "Openmano datacenter name to use when instantiating
398 the network service. This is only used when openmano
399 is selected as the cloud account. This should be superceded
400 by multiple cloud accounts when that becomes available.";
405 augment /nsr:ns-instance-config {
406 leaf nfvi-polling-period {
408 "Defines the period (secons) that the NFVI metrics are polled at";
414 notification nsm-notification {
415 description "Notification for NSM Events.
416 The timestamp of this event is automatically expressed
417 in human readble format - 1970-01-01T00:00:00Z";
420 description "Short name of the event";
425 description "The description of this event";
430 description "The detailed description of this event, in case of errors";