complex-vnfd.xml 9.89 KB
Newer Older
1
<nfv xmlns="urn:etsi:nfv:yang:etsi-nfv-descriptors">
2
3
4
5
6
7
8
9
10
11
12
13
14
  <vnfd>
    <id>complex-vnf</id>
    <provider>My Company</provider>
    <product-name>complex-vnf</product-name>
    <software-version>1.0</software-version>
    <version>1.0</version>
    <vnfm-info>netconf</vnfm-info>
    <vdu>
      <id>control-plane-active</id>
      <name>control-plane-active</name>
      <int-cpd>
        <id>internal</id>
        <int-virtual-link-desc>internal-vl</int-virtual-link-desc>
15
        <layer-protocol>ipv4</layer-protocol>
16
17
      </int-cpd>
      <int-cpd>
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
18
        <id>mgmt</id>
19
        <int-virtual-link-desc>mgmt</int-virtual-link-desc>
20
        <layer-protocol>ipv4</layer-protocol>
21
22
23
24
25
26
27
28
29
30
31
      </int-cpd>
      <virtual-compute-desc>CP</virtual-compute-desc>
      <virtual-storage-desc>root</virtual-storage-desc>
      <sw-image-desc>CP</sw-image-desc>
    </vdu>
    <vdu>
      <id>control-plane-standby</id>
      <name>control-plane-standby</name>
      <int-cpd>
        <id>internal</id>
        <int-virtual-link-desc>internal-vl</int-virtual-link-desc>
32
        <layer-protocol>ipv4</layer-protocol>
33
34
      </int-cpd>
      <int-cpd>
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
35
36
        <id>mgmt</id>
        <int-virtual-link-desc>mgmt</int-virtual-link-desc>
37
        <layer-protocol>ipv4</layer-protocol>
38
39
40
41
42
43
44
45
46
47
      </int-cpd>
      <virtual-compute-desc>CP</virtual-compute-desc>
      <virtual-storage-desc>root</virtual-storage-desc>
      <sw-image-desc>CP</sw-image-desc>
    </vdu>
    <vdu>
      <id>data-plane</id>
      <name>data-plane</name>
      <int-cpd>
        <id>in</id>
48
        <layer-protocol>ipv4</layer-protocol>
49
50
51
52
      </int-cpd>
      <int-cpd>
        <id>internal</id>
        <int-virtual-link-desc>internal-vl</int-virtual-link-desc>
53
        <layer-protocol>ipv4</layer-protocol>
54
55
      </int-cpd>
      <int-cpd>
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
56
        <id>out</id>
57
        <layer-protocol>ipv4</layer-protocol>
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
      </int-cpd>
      <virtual-compute-desc>DP</virtual-compute-desc>
      <virtual-storage-desc>root</virtual-storage-desc>
      <sw-image-desc>DP</sw-image-desc>
    </vdu>
    <virtual-compute-desc>
      <id>CP</id>
      <virtual-memory>
        <size>16.0</size>
      </virtual-memory>
      <virtual-cpu>
        <num-virtual-cpu>8</num-virtual-cpu>
      </virtual-cpu>
    </virtual-compute-desc>
    <virtual-compute-desc>
      <id>DP</id>
      <virtual-memory>
        <size>32.0</size>
      </virtual-memory>
      <virtual-cpu>
        <num-virtual-cpu>16</num-virtual-cpu>
      </virtual-cpu>
    </virtual-compute-desc>
jethanandani's avatar
jethanandani committed
81
    <virtual-storage-desc>
82
      <id>root</id>
83
      <type-of-storage>root-storage</type-of-storage>
84
      <size-of-storage>10</size-of-storage>
jethanandani's avatar
jethanandani committed
85
    </virtual-storage-desc>
86
87
88
    <sw-image-desc>
      <id>CP</id>
      <name>CP</name>
89
90
91
92
93
      <version>1.1</version>
      <checksum>
	<algorithm>sha-224</algorithm>
	<hash>deadbeef</hash>
      </checksum>
94
95
      <container-format>bare</container-format>
      <disk-format>qcow2</disk-format>
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
96
      <min-disk>1</min-disk>
97
98
      <min-ram>2.0</min-ram>
      <size>1</size>
99
100
101
102
103
      <image>http://mycompany.images.com/control-plane.qcow2</image>
    </sw-image-desc>
    <sw-image-desc>
      <id>DP</id>
      <name>DP</name>
104
105
106
107
108
      <version>1.1</version>
      <checksum>
	<algorithm>sha-224</algorithm>
	<hash>deadbeef</hash>
      </checksum>
109
110
      <container-format>bare</container-format>
      <disk-format>qcow2</disk-format>
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
111
      <min-disk>1</min-disk>
112
113
      <min-ram>2.0</min-ram>
      <size>1</size>
114
115
116
117
118
      <image>http://mycompany.images.com/data-plane.qcow2</image>
    </sw-image-desc>
    <int-virtual-link-desc>
      <id>internal-vl</id>
      <connectivity-type>
jethanandani's avatar
jethanandani committed
119
        <layer-protocol>ipv4</layer-protocol>
120
121
122
123
124
      </connectivity-type>
    </int-virtual-link-desc>
    <int-virtual-link-desc>
      <id>mgmt</id>
      <connectivity-type>
jethanandani's avatar
jethanandani committed
125
        <layer-protocol>ipv4</layer-protocol>
126
127
128
129
130
131
132
133
      </connectivity-type>
    </int-virtual-link-desc>
    <ext-cpd>
      <id>in</id>
      <int-cpd>
        <vdu-id>data-plane</vdu-id>
        <cpd>in</cpd>
      </int-cpd>
134
      <layer-protocol>ipv4</layer-protocol>
135
136
137
138
    </ext-cpd>
    <ext-cpd>
      <id>mgmt</id>
      <int-virtual-link-desc>mgmt</int-virtual-link-desc>
139
      <layer-protocol>ipv4</layer-protocol>
140
141
142
143
144
145
146
    </ext-cpd>
    <ext-cpd>
      <id>out</id>
      <int-cpd>
        <vdu-id>data-plane</vdu-id>
        <cpd>out</cpd>
      </int-cpd>
147
      <layer-protocol>ipv4</layer-protocol>
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
    </ext-cpd>
    <df>
      <id>gold</id>
      <vdu-profile>
        <id>control-plane-active</id>
        <min-number-of-instances>1</min-number-of-instances>
        <max-number-of-instances>1</max-number-of-instances>
        <affinity-or-anti-affinity-group>
          <id>control-plane</id>
        </affinity-or-anti-affinity-group>
      </vdu-profile>
      <vdu-profile>
        <id>control-plane-standby</id>
        <min-number-of-instances>1</min-number-of-instances>
        <max-number-of-instances>1</max-number-of-instances>
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
163
164
165
        <affinity-or-anti-affinity-group>
          <id>control-plane</id>
        </affinity-or-anti-affinity-group>
166
167
168
169
170
171
172
173
174
      </vdu-profile>
      <vdu-profile>
        <id>data-plane</id>
        <min-number-of-instances>2</min-number-of-instances>
        <max-number-of-instances>8</max-number-of-instances>
      </vdu-profile>
      <instantiation-level>
        <id>il-1</id>
        <vdu-level>
175
          <vdu-id>control-plane-active</vdu-id>
176
177
178
          <number-of-instances>1</number-of-instances>
        </vdu-level>
        <vdu-level>
179
          <vdu-id>control-plane-standby</vdu-id>
180
181
182
          <number-of-instances>1</number-of-instances>
        </vdu-level>
        <vdu-level>
183
          <vdu-id>data-plane</vdu-id>
184
185
186
187
188
189
          <number-of-instances>2</number-of-instances>
        </vdu-level>
      </instantiation-level>
      <instantiation-level>
        <id>il-2</id>
        <vdu-level>
190
          <vdu-id>control-plane-active</vdu-id>
191
192
193
          <number-of-instances>1</number-of-instances>
        </vdu-level>
        <vdu-level>
194
          <vdu-id>control-plane-standby</vdu-id>
195
196
197
          <number-of-instances>1</number-of-instances>
        </vdu-level>
        <vdu-level>
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
198
          <vdu-id>data-plane</vdu-id>
199
200
201
202
          <number-of-instances>4</number-of-instances>
        </vdu-level>
      </instantiation-level>
      <default-instantiation-level>il-1</default-instantiation-level>
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
203
204
205
206
207
208
209
210
211
212
      <lcm-operations-configuration>
	<scale-vnf-to-level-op-config>
	  <arbitrary-target-levels-supported>true</arbitrary-target-levels-supported>
	</scale-vnf-to-level-op-config>
	<terminate-vnf-op-config>
	  <min-graceful-termination>1</min-graceful-termination>
	</terminate-vnf-op-config>
	<operate-vnf-op-config>
	  <min-graceful-stop-timeout>1</min-graceful-stop-timeout>
	</operate-vnf-op-config>
Mahesh Jethanandani's avatar
Issue#5  
Mahesh Jethanandani committed
213
214
215
216
217
218
219
220
221
222
223
224
	<create-snapshot-vnf-op-config>
	  <parameter>
	    <key>1</key>
	    <value>1</value>
	  </parameter>
	</create-snapshot-vnf-op-config>
	<revert-to-snapshot-vnf-op-config>
	  <parameter>
	    <key>1</key>
	    <value>1</value>
	  </parameter>
	</revert-to-snapshot-vnf-op-config>
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
225
      </lcm-operations-configuration>
226
227
228
229
230
231
232
233
234
235
236
237
      <affinity-or-anti-affinity-group>
        <id>control-plane</id>
        <type>anti-affinity</type>
        <scope>nfvi-node</scope>
      </affinity-or-anti-affinity-group>
    </df>
    <df>
      <id>silver</id>
      <vdu-profile>
        <id>control-plane-active</id>
        <min-number-of-instances>1</min-number-of-instances>
        <max-number-of-instances>1</max-number-of-instances>
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
238
239
240
        <affinity-or-anti-affinity-group>
          <id>control-plane</id>
        </affinity-or-anti-affinity-group>
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
      </vdu-profile>
      <vdu-profile>
        <id>control-plane-standby</id>
        <min-number-of-instances>1</min-number-of-instances>
        <max-number-of-instances>1</max-number-of-instances>
        <affinity-or-anti-affinity-group>
          <id>control-plane</id>
        </affinity-or-anti-affinity-group>
      </vdu-profile>
      <vdu-profile>
        <id>data-plane</id>
        <min-number-of-instances>1</min-number-of-instances>
        <max-number-of-instances>4</max-number-of-instances>
      </vdu-profile>
      <instantiation-level>
        <id>il-1</id>
        <vdu-level>
258
          <vdu-id>control-plane-active</vdu-id>
259
260
261
          <number-of-instances>1</number-of-instances>
        </vdu-level>
        <vdu-level>
262
          <vdu-id>control-plane-standby</vdu-id>
263
264
265
          <number-of-instances>1</number-of-instances>
        </vdu-level>
        <vdu-level>
266
          <vdu-id>data-plane</vdu-id>
267
268
269
270
271
272
          <number-of-instances>1</number-of-instances>
        </vdu-level>
      </instantiation-level>
      <instantiation-level>
        <id>il-2</id>
        <vdu-level>
273
          <vdu-id>control-plane-active</vdu-id>
274
275
276
          <number-of-instances>1</number-of-instances>
        </vdu-level>
        <vdu-level>
277
          <vdu-id>control-plane-standby</vdu-id>
278
279
280
          <number-of-instances>1</number-of-instances>
        </vdu-level>
        <vdu-level>
281
          <vdu-id>data-plane</vdu-id>
282
283
284
285
          <number-of-instances>2</number-of-instances>
        </vdu-level>
      </instantiation-level>
      <default-instantiation-level>il-1</default-instantiation-level>
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
286
287
288
289
290
291
292
293
294
295
      <lcm-operations-configuration>
	<scale-vnf-to-level-op-config>
	  <arbitrary-target-levels-supported>true</arbitrary-target-levels-supported>
	</scale-vnf-to-level-op-config>
	<terminate-vnf-op-config>
	  <min-graceful-termination>1</min-graceful-termination>
	</terminate-vnf-op-config>
	<operate-vnf-op-config>
	  <min-graceful-stop-timeout>1</min-graceful-stop-timeout>
	</operate-vnf-op-config>
Mahesh Jethanandani's avatar
Issue#5  
Mahesh Jethanandani committed
296
297
298
299
300
301
302
303
304
305
306
307
	<create-snapshot-vnf-op-config>
	  <parameter>
	    <key>1</key>
	    <value>1</value>
	  </parameter>
	</create-snapshot-vnf-op-config>
	<revert-to-snapshot-vnf-op-config>
	  <parameter>
	    <key>1</key>
	    <value>1</value>
	  </parameter>
	</revert-to-snapshot-vnf-op-config>
Mahesh Jethanandani's avatar
Mahesh Jethanandani committed
308
      </lcm-operations-configuration>
309
310
311
312
313
314
315
316
      <affinity-or-anti-affinity-group>
        <id>control-plane</id>
        <type>anti-affinity</type>
        <scope>nfvi-node</scope>
      </affinity-or-anti-affinity-group>
    </df>
  </vnfd>
</nfv>