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 ietf-yang-types {
48 "Initial revision. This YANG file augments
51 "Derived from earlier versions of base YANG files";
54 grouping operational-events {
55 list operational-events {
58 "Recent operational events for this network service.
59 Though the model does not impose any restrictions on the numbe of events,
60 the max operational events will be limited to the most recent 10";
63 description "The id of the instance";
69 "The timestamp of this event expressed as seconds since
70 unix epoch - 1970-01-01T00:00:00Z";
74 description "Short description of the event";
79 "The description of this event";
85 grouping nsd-ref-count {
88 description "This table maintains the number of NSRs used by each NSD";
91 description "Reference to NSD";
93 path "/nsd:nsd-catalog/nsd:nsd/nsd:id";
96 leaf instance-ref-count {
98 "Reference count for the number of NSRs refering this NSD.
99 Every NS record instantiated using this descriptor takes
100 a reference on the NSD and releases the reference when the
101 network service is terminated. This desciptor cannot be
102 deleted when this counter is non zero";
108 augment /nsr:ns-instance-config/nsr:nsr {
111 "The configured cloud account which the NSR is instantiated within.
112 All VDU's, Virtual Links, and provider networks will be requested
113 using the cloud-account's associated CAL instance";
115 path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
121 "Openmano datacenter name to use when instantiating
122 the network service. This is only used when openmano
123 is selected as the cloud account. This should be superceded
124 by multiple cloud accounts when that becomes available.";
129 augment /nsr:ns-instance-opdata/nsr:nsr {
130 uses manotypes:action-param;
131 uses manotypes:control-param;
135 "The configured cloud account which the NSR is instantiated within.
136 All VDU's, Virtual Links, and provider networks will be requested
137 using the cloud-account's associated CAL instance";
139 path "/rw-cloud:cloud/rw-cloud:account/rw-cloud:name";
143 container nfvi-metrics {
147 "Label to show in UI";
154 "The number of active VMs.";
160 "The number of inactive VMs.";
165 uses manotypes:nfvi-metrics;
168 container epa-param {
169 container ovs-acceleration {
172 "Label to show in UI for the param";
174 default "OVS ACCELERATION";
179 "Number of VMs with the EPA attribute";
185 "Unit label to show in the UI";
191 container ovs-offload {
194 "Label to show in UI for the param";
196 default "OVS OFFLOAD";
201 "Number of VMs with the EPA attribute";
207 "Unit label to show in the UI";
217 "Label to show in UI for the param";
224 "Number of VMs with the EPA attribute";
230 "Unit label to show in the UI";
240 "Label to show in UI for the param";
247 "Number of VMs with the EPA attribute";
253 "Unit label to show in the UI";
262 "Label to show in UI for the param";
269 "Number of VMs with the EPA attribute";
275 "Unit label to show in the UI";
282 uses operational-events;
285 augment /nsr:ns-instance-opdata {
289 augment /nsr:ns-instance-opdata/nsr:nsr/nsr:vlr {
290 leaf assigned-subnet {
291 description "Subnet added for the VL";
296 augment /nsr:ns-instance-config {
297 leaf nfvi-polling-period {
299 "Defines the period (secons) that the NFVI metrics are polled at";