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)";
98 grouping nsd-ref-count {
101 description "This table maintains the number of NSRs used by each NSD";
104 description "Reference to NSD";
106 path "/nsd:nsd-catalog/nsd:nsd/nsd:id";
109 leaf instance-ref-count {
111 "Reference count for the number of NSRs refering this NSD.
112 Every NS record instantiated using this descriptor takes
113 a reference on the NSD and releases the reference when the
114 network service is terminated. This desciptor cannot be
115 deleted when this counter is non zero";
121 grouping rw-ns-instance-config {
124 "The configured cloud account which the NSR is instantiated within.
125 All VDU's, Virtual Links, and provider networks will be requested
126 using the cloud-account's associated CAL instance";
128 path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
134 "Openmano datacenter name to use when instantiating
135 the network service. This is only used when openmano
136 is selected as the cloud account. This should be superceded
137 by multiple cloud accounts when that becomes available.";
141 list vnf-cloud-account-map {
143 "Mapping VNF to Cloud Account where VNF will be instantiated";
145 key "member-vnf-index-ref";
146 leaf member-vnf-index-ref {
152 "The configured cloud account where VNF is instantiated within.
153 All VDU's, Virtual Links, and provider networks will be requested
154 using the cloud-account's associated CAL instance";
156 path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
162 "Openmano datacenter name to use when instantiating
163 the network service. This is only used when openmano
164 is selected as the cloud account. This should be superceded
165 by multiple cloud accounts when that becomes available.";
169 leaf config-agent-account {
171 "The configured config agent account to use for instantiating this VNF.
172 The configuration for this VNF will be driven using the specified config
175 path "/rw-config-agent:config-agent/rw-config-agent:account/rw-config-agent:name";
180 list vl-cloud-account-map {
182 "Mapping VL to Cloud Account where VL will be instantiated";
188 "A reference to a vld.
189 leafref path ../../nsd/vld/id";
193 leaf-list cloud-accounts {
195 "The configured list of cloud accounts where VL is instantiated.
196 All VDU's, Virtual Links, and provider networks will be requested
197 using the cloud-account's associated CAL instance";
199 path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
203 leaf-list om-datacenters {
205 "Openmano datacenter names to use when instantiating
206 the VLs. This is only used when openmano
207 is selected as the cloud account. This should be superceded
208 by multiple cloud accounts when that becomes available.";
215 augment /nsr:ns-instance-config/nsr:nsr {
216 uses rw-ns-instance-config;
219 augment /nsr:start-network-service/nsr:input{
220 uses rw-ns-instance-config;
223 augment /nsr:ns-instance-opdata/nsr:nsr {
224 uses manotypes:action-param;
225 uses manotypes:control-param;
229 "The SDN account associted with the cloud account using which an
230 NS was instantiated.";
232 path "/rw-sdn:sdn/rw-sdn:account/rw-sdn:name";
236 leaf config-status-details {
238 "The configuration status error details of the NS instance, in case of any errors";
242 container nfvi-metrics {
246 "Label to show in UI";
253 "The number of active VMs.";
259 "The number of inactive VMs.";
264 uses manotypes:nfvi-metrics;
267 container epa-param {
268 container ovs-acceleration {
271 "Label to show in UI for the param";
273 default "OVS ACCELERATION";
278 "Number of VMs with the EPA attribute";
284 "Unit label to show in the UI";
290 container ovs-offload {
293 "Label to show in UI for the param";
295 default "OVS OFFLOAD";
300 "Number of VMs with the EPA attribute";
306 "Unit label to show in the UI";
316 "Label to show in UI for the param";
323 "Number of VMs with the EPA attribute";
329 "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";
361 "Label to show in UI for the param";
368 "Number of VMs with the EPA attribute";
374 "Unit label to show in the UI";
381 uses operational-events;
384 augment /nsr:ns-instance-opdata {
388 augment /nsr:ns-instance-opdata/nsr:nsr/nsr:vlr {
389 leaf assigned-subnet {
390 description "Subnet added for the VL";
395 "The configured cloud account in which the VL is instantiated within.";
397 path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
402 "Openmano datacenter name to use when instantiating
403 the network service. This is only used when openmano
404 is selected as the cloud account. This should be superceded
405 by multiple cloud accounts when that becomes available.";
410 augment /nsr:ns-instance-opdata/nsr:nsr/nsr:constituent-vnfr-ref {
413 "The configured cloud account in which the VNF is instantiated within.
414 All VDU's, Virtual Links, and provider networks will be requested
415 using the cloud-account's associated CAL instance";
417 path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
422 "Openmano datacenter name to use when instantiating
423 the network service. This is only used when openmano
424 is selected as the cloud account. This should be superceded
425 by multiple cloud accounts when that becomes available.";
430 augment /nsr:ns-instance-config {
431 leaf nfvi-polling-period {
433 "Defines the period (secons) that the NFVI metrics are polled at";
439 notification nsm-notification {
440 description "Notification for NSM Events.
441 The timestamp of this event is automatically expressed
442 in human readble format - 1970-01-01T00:00:00Z";
445 description "Short name of the event";
450 description "The description of this event";
455 description "The detailed description of this event, in case of errors";