Newer
Older
submodule etsi-nfv-ns {
belongs-to etsi-nfv {
prefix nfv;
}
import etsi-nfv-common {
prefix common;
}
description
"Models for NS according to ETSI GS NFV-IFA 014.";
revision 2017-01-20 {
description
"Initial revision
Common data structure to support NSD according to:
ETSI GS NFV-IFA 011 Ed251v243";
reference
"ETSI GS NFV-IFA 011 Ed251v243";
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
}
grouping security-parameters {
container security {
leaf signature {
type string;
}
leaf algorithm {
type string;
}
leaf certificate {
type string;
}
}
}
grouping resource-handle {
leaf vim-id {
type string;
}
leaf resrouce-provider-id {
type string;
}
leaf resource-id {
type string;
}
}
grouping nsd {
list nsd {
key "id";
leaf id {
type string;
description
"Uniquely identifies an network service descriptor";
}
leaf designer {
type string;
description
"Identifies the designer of the network service descriptor";
}
leaf version {
type string;
description
"Identifies the version of the network service descriptor";
}
leaf name {
type string;
description
"Provides the human readable name of the network service. descriptor";
}
leaf invariant-id {
description
"Identifies an network service descriptor in a version
independent manner. This attribute is invariant across
versions of the network service descriptor.";
type string;
}
leaf-list nested-nsd {
type leafref {
}
list vnfd {
key "vnfd";
min-elements 1;
description
"This lists the VNFDs this network service
descriptor consists of.";
leaf vnfd {
type leafref {
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
}
}
}
leaf-list pnfd {
type string;
}
list service-access-point-descriptor {
key "id";
min-elements 1;
description
"A service access point serves as the network
service's external connection point";
leaf id {
type string;
}
leaf address-assignment {
description
"Specify whether the SAP address
assignment is under the responsibility of
management and orchestration functions
or not. If it is set to True, management and
orchestration functions are responsible for
assigning addresses to the access points
instantiated from this SAPD";
type empty;
}
leaf description {
type string;
}
leaf layer-protocol {
type identityref {
type identityref {
base common:cp-role;
}
}
leaf virtual-link-desc {
type leafref {
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
}
description
"Can optionally connect this service-access-point to an virtual-link. If not set,
it's assumed a VNFD's connection-points references this
service-access-point.";
}
/*
associatedCpdId:
Deliberatly not according to standard, see
vnf-profile -> sapd-connectivity
*/
}
list virtual-link-desc {
key "id";
description
"The virtual-link-desc information element provides general information
enabling the instantiation of virtual links.";
leaf id {
type string;
}
leaf provider {
description
"Defines the organization generating the VLD. ";
type string;
}
leaf version {
mandatory true;
type string;
}
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
list deployment-flavor {
key "id";
leaf id {
type string;
}
container qos {
leaf latency {
mandatory true;
description
"Specifies the maximum latency in ms.";
type uint32;
units "ms";
}
leaf packet-delay-variation {
mandatory true;
description
"Specifies the maximum jitter in ms.";
type uint32;
units "ms";
}
leaf packet-loss-ratio {
description
"Specifies the maximum packet loss ratio.";
type decimal64 {
fraction-digits "2";
range "0..1.00";
}
}
leaf priority {
description
"Specifies the priority level in case of
congestion on the underlying physical links.";
type uint32;
}
}
leaf service-availability-level {
reference "ETSI GS NFV-REL 001 [i.5]";
type enumeration {
enum "level-1";
enum "level-2";
enum "level-3";
}
}
}
leaf test-access {
type enumeration {
enum none;
enum passive-monitoring;
enum active;
}
}
leaf description {
type string;
}
uses security-parameters;
}
// vnffgd skipped since not fully specified by the spec
list monitored-info {
key "id";
leaf id {
type string;
}
choice source {
// We have no way of refererencing a VNF MP today
container ns-monitoring-parameter {
}
container vnf-indicator {
leaf vnfd {
type leafref {
}
}
leaf indicator {
type leafref {
path "deref(../vnfd)/../indicator/id";
}
}
}
}
}
leaf-list autoscale-rule {
type string;
}
list lifecycle-management-script {
key "event";
leaf event {
type string;
}
leaf script {
type string;
}
}
list deployment-flavor {
min-elements 1;
must "default-instantiation-level or count(instantiation-level) = 1";
key "id";
description
"The NsDf information element specifies the properties of a variant of an NS.";
leaf id {
type string;
}
leaf flavor-key {
type leafref {
must "min-number-of-instances<=max-number-of-instances";
must "count(../../vnfd[vnfd=current()/vnfd])=1" {
error-message "VNFDs in the profile has to be listed as a dependency of the network service descriptor.";
}
key "id";
leaf id {
type string;
}
leaf vnfd {
mandatory true;
type leafref {
}
}
leaf flavor {
mandatory true;
type leafref {
path "deref(../vnfd)/../deployment-flavor/id";
}
}
leaf instantiation-level {
mandatory true;
type leafref {
path "deref(../flavor)/../instantiation-level/id";
}
}
leaf min-number-of-instances {
type uint16;
mandatory true;
}
leaf max-number-of-instances {
type uint16;
mandatory true;
}
uses common:local-affinity-or-anti-affinity-rule;
list affinity-or-anti-affinity-group {
key "id";
leaf id {
type leafref {
path "../../../affinity-or-anti-affinity-group/id";
}
}
}
list virtual-link-connectivity {
key "virtual-link-profile cp";
leaf virtual-link-profile {
type leafref {
path "../../../virtual-link-profile/virtual-link-desc";
}
}
leaf cp {
type leafref {
path "deref(../../vnfd)/../ext-cpd/id";
}
}
}
// Not according to standard
list sapd-connectivity {
key "sapd cp";
leaf sapd {
type leafref {
path "../../../../service-access-point-descriptor/id";
}
}
leaf cp {
type leafref {
path "deref(../../vnfd)/../ext-cpd/id";
}
}
}
}
list pnf-profile {
key "pnfd";
leaf pnfd {
type leafref {
}
}
// no virtual-link-connectivity as we don't have PNFD modelled.
}
list virtual-link-profile {
key "virtual-link-desc";
leaf virtual-link-desc {
mandatory true;
type leafref {
path "../../../virtual-link-desc/id";
}
}
leaf flavor {
mandatory true;
type leafref {
path "deref(../virtual-link-desc)/../deployment-flavor/id";
uses common:local-affinity-or-anti-affinity-rule;
list affinity-or-anti-affinity-group {
key "id";
leaf id {
type leafref {
path "../../../affinity-or-anti-affinity-group/id";
}
}
}
container max-bitrate-requirements {
uses common:link-bitrate-requirements;
}
container min-bitrate-requirements {
uses common:link-bitrate-requirements;
}
}
list scaling-aspect {
key "aspect";
leaf aspect {
type string;
}
leaf name {
type string;
}
leaf description {
type string;
}
leaf scaling-level {
type leafref {
path "../../instantiation-level/id";
}
}
}
list affinity-or-anti-affinity-group {
key "id";
leaf id {
type string;
}
leaf affinity-type {
mandatory true;
}
leaf affinity-scope {
mandatory true;
}
}
list instantiation-level {
min-elements 1;
key "id";
leaf id {
type string;
}
leaf description {
mandatory true;
type string;
}
list vnf-to-level-mapping {
key "vnf-profile";
leaf vnf-profile {
type leafref {
}
}
leaf number-of-instances {
mandatory true;
type uint32;
}
}
list vl-to-level-mapping {
key "virtual-link-profile";
leaf virtual-link-profile {
type leafref {
path "../../../virtual-link-profile/" +
"virtual-link-desc";
uses common:link-bitrate-requirements;
must "(count(vnf-to-level-mapping) + " +
"count(vl-to-level-mapping)) > 0";
list ns-to-level-mapping {
key "ns-profile";
leaf ns-profile {
type leafref {
}
}
leaf number-of-instances {
mandatory true;
type uint32;
}
}
}
leaf default-instantiation-level {
type leafref {
must "min-number-of-instances<=max-number-of-instances";
key "nsd";
leaf nsd {
type leafref {
}
}
leaf deployment-flavor {
type leafref {
path "/nfv/nsd[id=current()/../nsd]/deployment-flavor/id";
}
}
leaf instantiation-level {
type leafref {
path "deref(../deployment-flavor)/../instantiation-level/id";
}
}
leaf min-number-of-instances {
type uint16;
mandatory true;
}
leaf max-number-of-instances {
type uint16;
mandatory true;
}
uses common:local-affinity-or-anti-affinity-rule;
list affinity-or-anti-affinity-group {
key "id";
leaf id {
type leafref {
path "../../../affinity-or-anti-affinity-group/id";
}
}
}
}
list dependency {
description
"NFV Management and Orchestration functions shall instantiate
VNFs from the VnfProfile and/or nested NSs from the NsProfile
referenced in the primary attribute before instantiating VNFs
from the VnfProfile and/or nested NSs from the NsProfile
referenced in the secondary attribute.";
key "id";
leaf id {
type string;
}
choice primary {
leaf primary-vnf-profile {
type leafref {
}
}
leaf primary-ns-profile {
type leafref {
}
}
}
choice secondary {
leaf secondary-vnf-profile {
type leafref {
}
}
leaf secondary-ns-profile {
type leafref {