VNFRQTS - Changes to fix doc warnings
[vnfrqts/requirements.git] / docs / Chapter8.rst
1 .. This work is licensed under a Creative Commons Attribution 4.0 International License.
2 .. http://creativecommons.org/licenses/by/4.0
3 .. Copyright 2017 AT&T Intellectual Property.  All rights reserved.
4
5
6 Appendix
7 ========
8
9 Chef JSON Key Value Description
10 -------------------------------------
11
12 The following provides the key value pairs that must be contained in the
13 JSON file supporting Chef action.
14
15 Table A1. Chef JSON File key value description
16 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17
18 +----------------+--------------------------+---------+----------------------+
19 | **Field Name** | **Description**          | **Type**| **Comment**          |
20 +================+==========================+=========+======================+
21 | Environment    | A JSON dictionary        | Optional|Depends on VNF action.|
22 |                | representing a Chef      |         |                      |
23 |                | Environment object. If   |         |                      |
24 |                | the VNF action requires  |         |                      |
25 |                | loading or modifying Chef|         |                      |
26 |                | environment attributes   |         |                      |
27 |                | associated with the VNF, |         |                      |
28 |                | all the relevant         |         |                      |
29 |                | information must be      |         |                      |
30 |                | provided in this JSON    |         |                      |
31 |                | dictionary in a structure|         |                      |
32 |                | that conforms to a Chef  |         |                      |
33 |                | Environment Object.      |         |                      |
34 +----------------+--------------------------+---------+----------------------+
35 | Node           | A JSON dictionary        |Mandatory|                      |
36 |                | representing a Chef Node |         |                      |
37 |                | Object.                  |         |                      |
38 |                |                          |         |                      |
39 |                | The Node JSON dictionary |         |                      |
40 |                | must include the run list|         |                      |
41 |                | to be triggered for the  |         |                      |
42 |                | desired VNF action by the|         |                      |
43 |                | push job. It should also |         |                      |
44 |                | include any attributes   |         |                      |
45 |                | that need to be          |         |                      |
46 |                | configured on the Node   |         |                      |
47 |                | Object as part of the VNF|         |                      |
48 |                | action.                  |         |                      |
49 +----------------+--------------------------+---------+----------------------+
50 | NodeList       | Array of FQDNs that      |Mandatory|                      |
51 |                | correspond to the        |         |                      |
52 |                | endpoints (VMs) of a VNF |         |                      |
53 |                | registered with the Chef |         |                      |
54 |                | Server that need to      |         |                      |
55 |                | trigger a chef-client run|         |                      |
56 |                | as part of the desired   |         |                      |
57 |                | VNF action.              |         |                      |
58 +----------------+--------------------------+---------+----------------------+
59 | PushJobFlag    | This field indicates     |Mandatory| If set to “True”,    |
60 |                | whether the VNF action   |         | ONAP will request a  |
61 |                | requires a push Job. Push|         | push job. Ignored    |
62 |                | job object will be       |         | otherwise.           |
63 |                | created by ONAP if       |         |                      |
64 |                | required.                |         |                      |
65 +----------------+--------------------------+---------+----------------------+
66 | CallbackCapable| This field indicates if  | Optional| If Chef cookbook is  |
67 |                | the chef-client run      |         | callback capable, VNF|
68 |                | invoked by push job      |         | owner is required to |
69 |                | corresponding to the VNF |         | set it to “True”.    |
70 |                | action is capable of     |         | Ignored otherwise.   |
71 |                | posting results on a     |         |                      |
72 |                | callback URL.            |         |                      |
73 +----------------+--------------------------+---------+----------------------+
74 | GetOutputFlag  | Flag which indicates     |Mandatory| ONAP will retrieve   |
75 |                | whether ONAP should      |         | output from          |
76 |                | retrieve output generated|         | NodeObject attributes|
77 |                | in a chef-client run from|         | [‘PushJobOutput’] for|
78 |                | Node object attribute    |         | all nodes in NodeList|
79 |                | node[‘PushJobOutput’] for|         | if set to “True”.    |
80 |                | this VNF action (e.g., in|         | Ignored otherwise.   |
81 |                | Audit).                  |         |                      |
82 +----------------+--------------------------+---------+----------------------+
83
84 Chef Template example:
85
86 .. code-block:: chef
87
88  “Environment”:{
89       "name": "HAR",
90       "description": "VNF Chef environment for HAR",
91       "json\_class": "Chef::Environment",
92       "chef\_type": "environment",
93       "default\_attributes": { },
94       "override\_attributes": {
95             “Retry\_Time”:”50”,
96             “MemCache”: “1024”,
97             “Database\_IP”:”10.10.1.5”
98       },
99  }
100  }
101  “Node”: {
102       “name” : “signal.network.com “
103       "chef\_type": "node",
104       "json\_class": "Chef::Node",
105       "attributes": {
106             “IPAddress1”: “192.168.1.2”,
107             “IPAddress2”:”135.16.162.5”,
108             “MyRole”:”BE”
109       },
110       "override": {},
111       "default": {},
112       “normal”:{},
113       “automatic”:{},
114       “chef\_environment” : “\_default”
115       "run\_list": [ "configure\_signal" ]
116       },
117       “NodeList”:[“node1.vnf\_a.onap.com”, “node2.vnf\_a.onap.com”],
118       “PushJobFlag”: “True”
119       “CallbackCapable”:True
120       “GetOutputFlag” : “False”
121  }
122
123 The example JSON file provided by the VNF provider for each VNF action will be
124 turned into a template by ONAP, that can be updated with instance
125 specific values at run-time.
126
127 Some points worth noting regarding the JSON fields:
128
129 a. The JSON file must be created for each action for each VNF.
130
131 b. If a VNF action involves multiple endpoints (VMs) of a VNF, ONAP will
132    replicate the “Node” JSON dictionary in the template and post it to
133    each FQDN (i.e., endpoint) in the NodeList after setting the “name”
134    field in the Node object to be the respective FQDN [1]_. Hence, it
135    is required that all end points (VMs) of a VNF involved in a VNF
136    action support the same set of Node Object attributes.
137
138 The following table describes the JSON dictionary to post in Callback.
139
140 Table A2. JSON Dictionary to Post in Callback
141 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
142
143 +--------------+----------------------------+---------+-----------------------+
144 | **Key**      | **Description**            | **Type**| **Comment**           |
145 +==============+============================+=========+=======================+
146 | RequestId    | A unique string associated |Mandatory|                       |
147 |              | with the original request  |         |                       |
148 |              | by ONAP. This key-value    |         |                       |
149 |              | pair will be provided by   |         |                       |
150 |              | ONAP in the environment of |         |                       |
151 |              | the push job request and   |         |                       |
152 |              | must be returned as part of|         |                       |
153 |              | the POST message.          |         |                       |
154 +--------------+----------------------------+---------+-----------------------+
155 | StatusCode   | An integer that must be set|Mandatory|                       |
156 |              | to 200 if chef-client run  |         |                       |
157 |              | on the node finished       |         |                       |
158 |              | successfully 500 otherwise.|         |                       |
159 +--------------+----------------------------+---------+-----------------------+
160 | StatusMessage| A string which must be set |Mandatory|                       |
161 |              | to ‘SUCCESS’ if StatusCode |         |                       |
162 |              | was 200                    |         |                       |
163 |              |                            |         |                       |
164 |              | Appropriate error message  |         |                       |
165 |              | otherwise.                 |         |                       |
166 +--------------+----------------------------+---------+-----------------------+
167 | Name         | A string which corresponds |Mandatory|                       |
168 |              | to the name of the node    |         |                       |
169 |              | where push job is run. It  |         |                       |
170 |              | is required that the value |         |                       |
171 |              | be retrieved from the node |         |                       |
172 |              | object attributes (where it|         |                       |
173 |              | is always defined).        |         |                       |
174 +--------------+----------------------------+---------+-----------------------+
175 | PushJobOutput| Any output from the        |Optional | Depends on VNF action.|
176 |              | chef-client run that needs |         | If empty, it must not |
177 |              | to be returned to ONAP.    |         | be included.          |
178 +--------------+----------------------------+---------+-----------------------+
179
180 Ansible JSON Key Value Description
181 -------------------------------------------------------------
182
183 The following provides the key value pairs that must be contained in the
184 JSON file supporting Ansible action.
185
186 Table B1. Ansible JSON File key value description
187 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
188
189 +---------------+----------------------+---------+----------------------------+
190 | **Field Name**| **Description**      | **Type**| **Comment**                |
191 +===============+======================+=========+============================+
192 | PlaybookName  | VNF providor must    |Mandatory|Currently following         |
193 |               | list name of the     |         |Ansible standard            |
194 |               | playbook relative    |         |naming, where main          |
195 |               | path used to         |         |playbook is always          |
196 |               | execute the VNF      |         |named site.yml, and         |
197 |               | action.              |         |directory name where        |
198 |               |                      |         |this main playbook resides, |
199 |               |                      |         |is named after the          |
200 |               |                      |         |command/action playbook     |
201 |               |                      |         |performs, in lower case,    |
202 |               |                      |         |example, configure.         |
203 +---------------+----------------------+---------+----------------------------+
204 | Action        | Name of VNF action.  | Optional|                            |
205 +---------------+----------------------+---------+----------------------------+
206 | EnvParameters | A JSON dictionary    | Optional|Depends on the VNF action.  |
207 |               | which should list key|         |                            |
208 |               | value pairs to be    |         |Attribute names (variable   |
209 |               | passed to the Ansible|         |names) passed to Ansible    |
210 |               | playbook. These      |         |shall follow Ansible valid  |
211 |               | values would         |         |variable names: “Variable   |
212 |               | correspond to        |         |names should be letters,    |
213 |               | instance specific    |         |numbers, and underscores.   |
214 |               | parameters that a    |         |Variables should always     |
215 |               | playbook may need to |         |start with a letter.”       |
216 |               | execute an action.   |         |                            |
217 +---------------+----------------------+---------+----------------------------+
218 | NodeList      |Ansible inventory     | Optional|If not provided, pre-loaded |
219 |               |hosts file with       |         |(VNF) inventory hosts       |
220 |               |VNF groups and        |         |file must exist in the      |
221 |               |respective IP         |         |Ansible Server otherwise    |
222 |               |addresses or DNS      |         |request fails.              |
223 |               |supported FQDNs       |         |                            |
224 |               |that the playbook must|         |                            |
225 |               |be executed against.  |         |                            |
226 +---------------+----------------------+---------+----------------------------+
227 | FileParameters| A JSON dictionary    | Optional| Depends on the VNF action  |
228 |               | where keys are       |         | and playbook design.       |
229 |               | filenames and values |         |                            |
230 |               | are contents of      |         |                            |
231 |               | files. The Ansible   |         |                            |
232 |               | Server will utilize  |         |                            |
233 |               | this feature to      |         |                            |
234 |               | generate files with  |         |                            |
235 |               | keys as filenames and|         |                            |
236 |               | values as content.   |         |                            |
237 |               | This attribute can be|         |                            |
238 |               | used to generate     |         |                            |
239 |               | files that a playbook|         |                            |
240 |               | may require as part  |         |                            |
241 |               | of execution.        |         |                            |
242 +---------------+----------------------+---------+----------------------------+
243 | Timeout       | Time (in seconds)    | Optional|                            |
244 |               | that a playbook is   |         |                            |
245 |               | expected to take to  |         |                            |
246 |               | finish execution for |         |                            |
247 |               | the VNF. If playbook |         |                            |
248 |               | execution time       |         |                            |
249 |               | exceeds this value,  |         |                            |
250 |               | Ansible Server will  |         |                            |
251 |               | terminate the        |         |                            |
252 |               | playbook process.    |         |                            |
253 +---------------+----------------------+---------+----------------------------+
254
255 Ansible JSON file example:
256
257 {
258
259       “Action”:”Configure”,
260
261       "PlaybookName": "<VNFCode>/<Version>/ansible/configure/site.yml",
262
263       "NodeList": ["test1.vnf\_b.onap.com", “test2.vnf\_b.onap.com”],
264
265       "Timeout": 60,
266
267       "EnvParameters": {"Retry": 3, "Wait": 5, “ConfigFile”:”config.txt”},
268
269       “FileParameters”:{“config.txt”:”db\_ip=10.1.1.1, sip\_timer=10000”}
270
271 }
272
273 In the above example, the Ansible Server will:
274
275 a. Process the “FileParameters” dictionary and generate a file named
276    ‘config.txt’ with contents set to the value of the ‘config.txt’ key.
277
278 b. Execute the playbook named ‘<VNFCode>/<Version>/ansible/configure/site.yml’
279    on nodes with    FQDNs test1.vnf\_b.onap.com and test2.vnf\_b.onap.com
280    respectively while providing the following key value pairs to the playbook:
281    Retry=3, Wait=5, ConfigFile=config.txt
282
283
284 c. If execution time of the playbook exceeds 60 secs (across all hosts),
285    it will be terminated.
286
287 VNF License Information Guidelines
288 ------------------------------------------------------------
289
290 This Appendix describes the metadata to be supplied for VNF licenses.
291
292 1. General Information
293
294 Table C1 defines the required and optional fields for licenses.
295
296 Table C1. Required Fields for General Information
297 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
298
299 +---------------+-----------------------------------+--------------+----------+
300 | **Field Name**| **Description**                   | **Data Type**| **Type** |
301 +===============+===================================+==============+==========+
302 | VNF Provider  | The name of the VNF provider.     | String       | Mandatory|
303 | Name          |                                   |              |          |
304 +---------------+-----------------------------------+--------------+----------+
305 | VNF Provider  | The name of the product to which  | String       | Mandatory|
306 | Product       | this agreement applies.           |              |          |
307 |               |                                   |              |          |
308 |               | Note: a contract/agreement may    |              |          |
309 |               | apply to more than one VNF        |              |          |
310 |               | provider product. In that case,   |              |          |
311 |               | provide the metadata for each     |              |          |
312 |               | product separately.               |              |          |
313 +---------------+-----------------------------------+--------------+----------+
314 | VNF Provider  | A general description of VNF      | String       | Optional |
315 | Product       | provider software product.        |              |          |
316 | Description   |                                   |              |          |
317 +---------------+-----------------------------------+--------------+----------+
318 | Export Control| ECCNs are 5-character             | String       | Mandatory|
319 | Classification| alpha-numeric designations used on|              |          |
320 | Number (ECCN) | the Commerce Control List (CCL) to|              |          |
321 |               | identify dual-use items for export|              |          |
322 |               | control purposes. An ECCN         |              |          |
323 |               | categorizes items based on the    |              |          |
324 |               | nature of the product, i.e. type  |              |          |
325 |               | of commodity, software, or        |              |          |
326 |               | technology and its respective     |              |          |
327 |               | technical parameters.             |              |          |
328 +---------------+-----------------------------------+--------------+----------+
329 | Reporting     | A list of any reporting           | List of      | Optional |
330 | Requirements  | requirements on the usage of the  | strings      |          |
331 |               | software product.                 |              |          |
332 +---------------+-----------------------------------+--------------+----------+
333
334 1. Entitlements
335
336 Entitlements describe software license use rights. The use rights may be
337 quantified by various metrics: # users, # software instances, # units.
338 The use rights may be limited by various criteria: location (physical or
339 logical), type of customer, type of device, time, etc.
340
341 One or more entitlements can be defined; each one consists of the
342 following fields:
343
344 Table C2. Required Fields for Entitlements
345 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
346
347 +---------------+-----------------------------------+-------------+-----------+
348 | **Field Name**| **Description**                   |**Data Type**| **Type**  |
349 +===============+===================================+=============+===========+
350 | VNF Provider  | Identifier for the entitlement as | String      | Mandatory |
351 | Part Number / | described by the VNF provider in  |             |           |
352 | Manufacture   | their price list / catalog /      |             |           |
353 | Reference     | contract.                         |             |           |
354 | Number        |                                   |             |           |
355 +---------------+-----------------------------------+-------------+-----------+
356 | Description   | Verbiage that describes the       | String      | Optional  |
357 |               | entitlement                       |             |           |
358 +---------------+-----------------------------------+-------------+-----------+
359 | Entitlement   | Each entitlement defined must be  | String      | Mandatory |
360 | Identifier    | identified by a unique value (e.g.|             |           |
361 |               | numbered 1, 2, 3….)               |             |           |
362 +---------------+-----------------------------------+-------------+-----------+
363 | Minimum Order | The minimum number of entitlements| Number      | Mandatory |
364 | Requirement   | that need to be purchased.        |             |           |
365 |               | For example, the entitlements must|             |           |
366 |               | be purchased in a block of 100. If|             |           |
367 |               | no minimum is required, the value |             |           |
368 |               | will be zero.                     |             |           |
369 +---------------+-----------------------------------+-------------+-----------+
370 | Unique        | A list of any reporting           | List of     | Optional  |
371 | Reporting     | requirements on the usage of the  | Strings     |           |
372 | Requirements  | software product. (e.g.: quarterly|             |           |
373 |               | usage reports are required)       |             |           |
374 +---------------+-----------------------------------+-------------+-----------+
375 | License Type  | Type of license applicable to the | String      | Mandatory |
376 |               | software product. (e.g.:          |             |           |
377 |               | fixed-term, perpetual, trial,     |             |           |
378 |               | subscription.)                    |             |           |
379 +---------------+-----------------------------------+-------------+-----------+
380 | License       | Valid values:                     | String      |Conditional|
381 | Duration      |                                   |             |           |
382 |               | **year**, **quarter**, **month**, |             |           |
383 |               | **day**.                          |             |           |
384 |               |                                   |             |           |
385 |               | Not applicable when license type  |             |           |
386 |               | is Perpetual.                     |             |           |
387 +---------------+-----------------------------------+-------------+-----------+
388 | License       | Number of years, quarters, months,| Number      |Conditional|
389 | Duration      | or days for which the license is  |             |           |
390 | Quantification| valid.                            |             |           |
391 |               |                                   |             |           |
392 |               | Not applicable when license type  |             |           |
393 |               | is Perpetual.                     |             |           |
394 +---------------+-----------------------------------+-------------+-----------+
395 | Limits        | see section C.4 for possible      | List        | Optional  |
396 |               | values                            |             |           |
397 +---------------+-----------------------------------+-------------+-----------+
398
399 1. License Keys
400
401 This section defines information on any License Keys associated with the
402 Software Product. A license key is a data string (or a file) providing a
403 means to authorize the use of software. License key does not provide
404 entitlement information.
405
406 License Keys are not required. Optionally, one or more license keys can
407 be defined; each one consists of the following fields:
408
409 Table C3. Required Fields for License Keys
410 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
411
412 +---------------+-----------------------------------+--------------+----------+
413 | **Field Name**| **Description**                   | **Data Type**| **Type** |
414 +===============+===================================+==============+==========+
415 | Description   | Verbiage that describes the       | String       | Mandatory|
416 |               | license key                       |              |          |
417 +---------------+-----------------------------------+--------------+----------+
418 | License Key   | Each license key defined must be  | String       | Mandatory|
419 | Identifier    | identified by a unique value      |              |          |
420 |               | (e.g., numbered 1, 2, 3….)        |              |          |
421 +---------------+-----------------------------------+--------------+----------+
422 | Key Function  | Lifecycle stage (e.g.,            | String       | Optional |
423 |               | Instantiation or Activation) at   |              |          |
424 |               | which the license key is applied  |              |          |
425 |               | to the software.                  |              |          |
426 +---------------+-----------------------------------+--------------+----------+
427 | License Key   | Valid values:                     | String       | Mandatory|
428 | Type          |                                   |              |          |
429 |               | **Universal, Unique**             |              |          |
430 |               |                                   |              |          |
431 |               | **Universal** - a single license  |              |          |
432 |               | key value that may be used with   |              |          |
433 |               | any number of instances of the    |              |          |
434 |               | software.                         |              |          |
435 |               |                                   |              |          |
436 |               | **Unique**- a unique license key  |              |          |
437 |               | value is required for each        |              |          |
438 |               | instance of the software.         |              |          |
439 +---------------+-----------------------------------+--------------+----------+
440 | Limits        | see section C.4 for possible      | List         | Optional |
441 |               | values                            |              |          |
442 +---------------+-----------------------------------+--------------+----------+
443
444 1. Entitlement and License Key Limits
445
446 Limitations on the use of software entitlements and license keys may be
447 based on factors such as: features enabled in the product, the allowed
448 capacity of the product, number of installations, etc... The limits may
449 generally be categorized as:
450
451 -  where (location)
452
453 -  when (time)
454
455 -  how (usages)
456
457 -  who/what (entity)
458
459 -  amount (how much)
460
461 Multiple limits may be applicable for an entitlement or license key.
462 Each limit may further be described by limit behavior, duration,
463 quantification, aggregation, aggregation interval, start date, end date,
464 and threshold.
465
466 When the limit is associated with a quantity, the quantity is relative
467 to an instance of the entitlement or license key. For example:
468
469 -  Each entitlement grants the right to 50 concurrent users. If 10
470    entitlements are purchased, the total number of concurrent users
471    permitted would be 500. In this example, the limit category is
472    **amount**, the limit type is **users**, and the limit
473    **quantification** is **50.**
474
475    Each license key may be installed on 3 devices. If 5 license keys are
476    acquired, the total number of devices allowed would be 15. In this
477    example, the limit category is **usages**, the limit type is
478    **device**, and the limit **quantification** is **3.**
479
480 1. Location
481
482 Locations may be logical or physical location (e.g., site, country). For
483 example:
484
485 -  use is allowed in Canada
486
487 Table C4. Required Fields for Location
488 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
489
490 +------------------+--------------------------------+--------------+----------+
491 | **Field Name**   | **Description**                | **Data Type**| **Type** |
492 +==================+================================+==============+==========+
493 | Limit Identifier | Each limit defined for an      | String       | Mandatory|
494 |                  | entitlement or license key must|              |          |
495 |                  | be identified by a unique value|              |          |
496 |                  | (e.g., numbered 1,2,3…)        |              |          |
497 +------------------+--------------------------------+--------------+----------+
498 | Limit Description| Verbiage describing the limit. | String       | Mandatory|
499 +------------------+--------------------------------+--------------+----------+
500 | Limit Behavior   | Description of the actions     | String       | Mandatory|
501 |                  | taken when the limit boundaries|              |          |
502 |                  | are reached.                   |              |          |
503 +------------------+--------------------------------+--------------+----------+
504 | Limit Category   | Valid value: **location**      | String       | Mandatory|
505 +------------------+--------------------------------+--------------+----------+
506 | Limit Type       | Valid values: **city, county,  | String       | Mandatory|
507 |                  | state, country, region, MSA,   |              |          |
508 |                  | BTA, CLLI**                    |              |          |
509 +------------------+--------------------------------+--------------+----------+
510 | Limit List       | List of locations where the VNF| List of      | Mandatory|
511 |                  | provider Product can be used or| String       |          |
512 |                  | needs to be restricted from use|              |          |
513 +------------------+--------------------------------+--------------+----------+
514 | Limit Set Type   | Indicates if the list is an    | String       | Mandatory|
515 |                  | inclusion or exclusion.        |              |          |
516 |                  |                                |              |          |
517 |                  | Valid Values:                  |              |          |
518 |                  |                                |              |          |
519 |                  | **Allowed**                    |              |          |
520 |                  |                                |              |          |
521 |                  | **Not allowed**                |              |          |
522 +------------------+--------------------------------+--------------+----------+
523 | Limit            | The quantity (amount) the limit| Number       | Optional |
524 | Quantification   | expresses.                     |              |          |
525 +------------------+--------------------------------+--------------+----------+
526
527 1. Time
528
529 Limit on the length of time the software may be used. For example:
530
531 -  license key valid for 1 year from activation
532
533 -  entitlement valid from 15 May 2018 thru 30 June 2020
534
535 Table C5. Required Fields for Time
536 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
537
538 +------------------+-------------------------------+--------------+-----------+
539 | **Field Name**   | **Description**               | **Data Type**| **Type**  |
540 +==================+===============================+==============+===========+
541 | Limit Identifier | Each limit defined for an     | String       | Mandatory |
542 |                  | entitlement or license key    |              |           |
543 |                  | must be identified by a unique|              |           |
544 |                  | value (e.g., numbered)        |              |           |
545 +------------------+-------------------------------+--------------+-----------+
546 | Limit Description| Verbiage describing the limit.| String       | Mandatory |
547 +------------------+-------------------------------+--------------+-----------+
548 | Limit Behavior   | Description of the actions    | String       | Mandatory |
549 |                  | taken when the limit          |              |           |
550 |                  | boundaries are reached.       |              |           |
551 |                  |                               |              |           |
552 |                  | The limit behavior may also   |              |           |
553 |                  | describe when a time limit    |              |           |
554 |                  | takes effect. (e.g., key is   |              |           |
555 |                  | valid for 1 year from date of |              |           |
556 |                  | purchase).                    |              |           |
557 +------------------+-------------------------------+--------------+-----------+
558 | Limit Category   | Valid value: **time**         | String       | Mandatory |
559 +------------------+-------------------------------+--------------+-----------+
560 | Limit Type       | Valid values:                 | String       | Mandatory |
561 |                  | **duration, date**            |              |           |
562 +------------------+-------------------------------+--------------+-----------+
563 | Limit List       | List of times for which the   | List of      | Mandatory |
564 |                  | VNF Provider Product can be   | String       |           |
565 |                  | used or needs to be restricted|              |           |
566 |                  | from use                      |              |           |
567 +------------------+-------------------------------+--------------+-----------+
568 | Duration Units   | Required when limit type is   | String       |Conditional|
569 |                  | duration. Valid values:       |              |           |
570 |                  | **perpetual, year, quarter,   |              |           |
571 |                  | month, day, minute, second,   |              |           |
572 |                  | millisecond**                 |              |           |
573 +------------------+-------------------------------+--------------+-----------+
574 | Limit            | The quantity (amount) the     | Number       | Optional  |
575 | Quantification   | limit expresses.              |              |           |
576 +------------------+-------------------------------+--------------+-----------+
577 | Start Date       | Required when limit type is   | Date         | Optional  |
578 |                  | date.                         |              |           |
579 +------------------+-------------------------------+--------------+-----------+
580 | End Date         | May be used when limit type is| Date         | Optional  |
581 |                  | date.                         |              |           |
582 +------------------+-------------------------------+--------------+-----------+
583
584 1. Usage
585
586 Limits based on how the software is used. For example:
587
588 -  use is limited to a specific sub-set of the features/capabilities the
589    software supports
590
591 -  use is limited to a certain environment (e.g., test, development,
592    production…)
593
594 -  use is limited by processor (vm, cpu, core)
595
596 -  use is limited by software release
597
598 Table C6. Required Fields for Usage
599 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
600
601 +------------------+-------------------------------+---------------+----------+
602 | **Field Name**   | **Description**               | **Data Type** | **Type** |
603 +==================+===============================+===============+==========+
604 | Limit Identifier | Each limit defined for an     | String        | Mandatory|
605 |                  | entitlement or license key    |               |          |
606 |                  | must be identified by a unique|               |          |
607 |                  | value (e.g., numbered)        |               |          |
608 +------------------+-------------------------------+---------------+----------+
609 | Limit Description| Verbiage describing the limit.| String        | Mandatory|
610 +------------------+-------------------------------+---------------+----------+
611 | Limit Behavior   | Description of the actions    | String        | Mandatory|
612 |                  | taken when the limit          |               |          |
613 |                  | boundaries are reached.       |               |          |
614 +------------------+-------------------------------+---------------+----------+
615 | Limit Category   | Valid value: **usages**       | String        | Mandatory|
616 +------------------+-------------------------------+---------------+----------+
617 | Limit Type       | Valid values: **feature,      | String        | Mandatory|
618 |                  | environment, processor,       |               |          |
619 |                  | version**                     |               |          |
620 +------------------+-------------------------------+---------------+----------+
621 | Limit List       | List of usage limits (e.g.,   | List of String| Mandatory|
622 |                  | test, development, vm, core,  |               |          |
623 |                  | R1.2.1, R1.3.5…)              |               |          |
624 +------------------+-------------------------------+---------------+----------+
625 | Limit Set Type   | Indicates if the list is an   | String        | Mandatory|
626 |                  | inclusion or exclusion.       |               |          |
627 |                  |                               |               |          |
628 |                  | Valid Values:                 |               |          |
629 |                  |                               |               |          |
630 |                  | **Allowed**                   |               |          |
631 |                  |                               |               |          |
632 |                  | **Not allowed**               |               |          |
633 +------------------+-------------------------------+---------------+----------+
634 | Limit            | The quantity (amount) the     | Number        | Optional |
635 | Quantification   | limit expresses.              |               |          |
636 +------------------+-------------------------------+---------------+----------+
637
638 1. Entity
639
640 Limit on the entity (product line, organization, customer) allowed to
641 make use of the software. For example:
642
643 -  allowed to be used in support of wireless products
644
645 -  allowed to be used only for government entities
646
647 Table C7. Required Fields for Entity
648 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
649
650 +------------------+--------------------------------+--------------+----------+
651 | **Field Name**   | **Description**                |**Data Type** | **Type** |
652 +==================+================================+==============+==========+
653 | Limit Identifier | Each limit defined for an      | String       | Mandatory|
654 |                  | entitlement or license key must|              |          |
655 |                  | be identified by a unique value|              |          |
656 |                  | (e.g., numbered)               |              |          |
657 +------------------+--------------------------------+--------------+----------+
658 | Limit Description| Verbiage describing the limit. | String       | Mandatory|
659 +------------------+--------------------------------+--------------+----------+
660 | Limit Behavior   | Description of the actions     | String       | Mandatory|
661 |                  | taken when the limit boundaries|              |          |
662 |                  | are reached.                   |              |          |
663 +------------------+--------------------------------+--------------+----------+
664 | Limit Category   | Valid value: **entity**        | String       | Mandatory|
665 +------------------+--------------------------------+--------------+----------+
666 | Limit Type       | Valid values: **product line,  | String       | Mandatory|
667 |                  | organization, internal         |              |          |
668 |                  | customer, external customer**  |              |          |
669 +------------------+--------------------------------+--------------+----------+
670 | Limit List       | List of entities for which the |List of String| Mandatory|
671 |                  | VNF Provider Product can be    |              |          |
672 |                  | used or needs to be restricted |              |          |
673 |                  | from use                       |              |          |
674 +------------------+--------------------------------+--------------+----------+
675 | Limit Set Type   | Indicates if the list is an    | String       | Mandatory|
676 |                  | inclusion or exclusion.        |              |          |
677 |                  |                                |              |          |
678 |                  | Valid Values:                  |              |          |
679 |                  |                                |              |          |
680 |                  | **Allowed**                    |              |          |
681 |                  |                                |              |          |
682 |                  | **Not allowed**                |              |          |
683 +------------------+--------------------------------+--------------+----------+
684 | Limit            | The quantity (amount) the limit| Number       | Optional |
685 | Quantification   | expresses.                     |              |          |
686 +------------------+--------------------------------+--------------+----------+
687
688 1. Amount
689
690 These limits describe terms relative to utilization of the functions of
691 the software (for example, number of named users permitted, throughput,
692 or capacity). Limits of this type may also be relative to utilization of
693 other resources (for example, a limit for firewall software is not based
694 on use of the firewall software, but on the number of network
695 subscribers).
696
697 The metadata describing this type of limit includes the unit of measure
698 (e.g., # users, # sessions, # MB, # TB, etc.), the quantity of units,
699 any aggregation function (e.g., peak or average users), and aggregation
700 interval (day, month, quarter, year, etc.).
701
702 Table C8. Required Fields for Amount
703 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
704
705 +------------------+---------------------------------+-------------+----------+
706 | **Field Name**   | **Description**                 |**Data Type**| **Type** |
707 +==================+=================================+=============+==========+
708 | Limit Identifier | Each limit defined for an       | String      | Mandatory|
709 |                  | entitlement or license key must |             |          |
710 |                  | be identified by a unique value |             |          |
711 |                  | (e.g., numbered)                |             |          |
712 +------------------+---------------------------------+-------------+----------+
713 | Limit Description| Verbiage describing the limit.  | String      | Mandatory|
714 +------------------+---------------------------------+-------------+----------+
715 | Limit Behavior   | Description of the actions taken| String      | Mandatory|
716 |                  | when the limit boundaries are   |             |          |
717 |                  | reached.                        |             |          |
718 +------------------+---------------------------------+-------------+----------+
719 | Limit Category   | Valid value: **amount**         | String      | Mandatory|
720 +------------------+---------------------------------+-------------+----------+
721 | Limit Type       | Valid values: **trunk, user,    | String      | Mandatory|
722 |                  | subscriber, session, token,     |             |          |
723 |                  | transactions, seats, KB, MB, TB,|             |          |
724 |                  | GB**                            |             |          |
725 +------------------+---------------------------------+-------------+----------+
726 | Type of          | Is the limit relative to        | String      | Mandatory|
727 | Utilization      | utilization of the functions of |             |          |
728 |                  | the software or relative to     |             |          |
729 |                  | utilization of other resources? |             |          |
730 |                  |                                 |             |          |
731 |                  | Valid values:                   |             |          |
732 |                  |                                 |             |          |
733 |                  | -  **software functions**       |             |          |
734 |                  |                                 |             |          |
735 |                  | -  **other resources**          |             |          |
736 +------------------+---------------------------------+-------------+----------+
737 | Limit            | The quantity (amount) the limit | Number      | Optional |
738 | Quantification   | expresses.                      |             |          |
739 +------------------+---------------------------------+-------------+----------+
740 | Aggregation      | Valid values: **peak, average** | String      | Optional |
741 | Function         |                                 |             |          |
742 +------------------+---------------------------------+-------------+----------+
743 | Aggregation      | Time period over which the      | String      | Optional |
744 | Interval         | aggregation is done (e.g.,      |             |          |
745 |                  | average sessions per quarter).  |             |          |
746 |                  | Required when an Aggregation    |             |          |
747 |                  | Function is specified.          |             |          |
748 |                  |                                 |             |          |
749 |                  | Valid values: **day, month,     |             |          |
750 |                  | quarter, year, minute, second,  |             |          |
751 |                  | millisecond**                   |             |          |
752 +------------------+---------------------------------+-------------+----------+
753 | Aggregation      | Is the limit quantity applicable| String      | Optional |
754 | Scope            | to a single entitlement or      |             |          |
755 |                  | license key (each separately)?  |             |          |
756 |                  | Or may the limit quantity be    |             |          |
757 |                  | combined with others of the same|             |          |
758 |                  | type (resulting in limit amount |             |          |
759 |                  | that is the sum of all the      |             |          |
760 |                  | purchased entitlements or       |             |          |
761 |                  | license keys)?                  |             |          |
762 |                  |                                 |             |          |
763 |                  | Valid values:                   |             |          |
764 |                  |                                 |             |          |
765 |                  | -  **single**                   |             |          |
766 |                  |                                 |             |          |
767 |                  | -  **combined**                 |             |          |
768 +------------------+---------------------------------+-------------+----------+
769 | Type of User     | Describes the types of users of | String      | Optional |
770 |                  | the functionality offered by the|             |          |
771 |                  | software (e.g., authorized,     |             |          |
772 |                  | named). This field is included  |             |          |
773 |                  | when Limit Type is user.        |             |          |
774 +------------------+---------------------------------+-------------+----------+
775
776 TOSCA model
777 -----------------------------
778
779 Table D1. ONAP Resource DM TOSCA/YAML constructs
780 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
781
782 Standard TOSCA/YAML definitions agreed by VNF SDK Modeling team to be used by
783 VNF vendors to create a standard VNF descriptor.
784
785 All definitions are summarized in the table below based on the agreed ONAP
786 Resource DM TOSCA/YAML constructs for Beijing. Their syntax is specified in
787 ETSI GS NFV-SOL001 stable draft for VNF-D.
788
789 +------------+------------------------------+---------------------------------+
790 | Requirement| Resource IM Info Elements    | TOSCA Constructs as per SOL001  |
791 | Number     |                              |                                 |
792 +============+==============================+=================================+
793 | R-02454    | VNFD.vnfSoftwareVersion      | For VDU.Compute -               |
794 |            |                              | tosca.artifacts.nfv.SwImage     |
795 |            |                              |                                 |
796 |            | SwImageDesc.Version          | For Virtual Storage -           |
797 |            |                              | tosca.artifacts.Deployment.Image|
798 +------------+------------------------------+---------------------------------+
799 | R-03070    | vnfExtCpd's with virtual     | tosca.nodes.nfv.VnfExtCp with a |
800 |            | NetworkInterfaceRequirements | property tosca.datatypes.nfv.\  |
801 |            | (vNIC)                       | VirtualNetworkInterface\        |
802 |            |                              | Requirements                    |
803 +------------+------------------------------+---------------------------------+
804 | R-09467    | VDU.Compute descriptor       | tosca.nodes.nfv.Vdu.Compute     |
805 +------------+------------------------------+---------------------------------+
806 | R-16065    | VDU.Compute. Configurable    | tosca.datatypes.nfv.Vnfc        |
807 |            | Properties                   | ConfigurableProperties          |
808 +------------+------------------------------+---------------------------------+
809 | R-30654    | VNFD.lifeCycleManagement     | Interface construct tosca.\     |
810 |            | Script - IFA011 LifeCycle\   | interfaces.nfv.vnf.lifecycle.Nfv|
811 |            | ManagementScript             | with a list of standard LCM     |
812 |            |                              | operations                      |
813 +------------+------------------------------+---------------------------------+
814 | R-35851    | CPD: VduCp, VnfExtCp,        | tosca.nodes.nfv.VduCp, tosca.\  |
815 |            | VnfVirtualLinkDesc, QoS      | nodes.nfv.VnfVirtualLink,       |
816 |            | Monitoring info element  -   | tosca.nodes.nfv.VnfExtCp        |
817 |            | TBD                          |                                 |
818 +------------+------------------------------+---------------------------------+
819 | R-41215    | VNFD/VDU Profile and scaling | tosca.datatypes.nfv.VduProfile  |
820 |            | aspect                       | and tosca.datatypes.nfv.\       |
821 |            |                              | ScalingAspect                   |
822 +------------+------------------------------+---------------------------------+
823 | R-66070    |  VNFD meta data              | tosca.datatypes.nfv.            |
824 |            |                              | VnfInfoModifiableAttributes -   |
825 |            |                              | metadata?                       |
826 +------------+------------------------------+---------------------------------+
827 | R-96634    | VNFD.configurableProperties  | tosca.datatypes.nfv.Vnf\        |
828 |            | describing scaling           | ConfigurableProperties,         |
829 |            | characteristics.  VNFD.\     | tosca.datatypes.nfv.ScaleInfo   |
830 |            | autoscale defines the rules  |                                 |
831 |            | for scaling based on specific|                                 |
832 |            | VNF  indications             |                                 |
833 +------------+------------------------------+---------------------------------+
834 | ?          |  VDU Virtual Storage         | tosca.nodes.nfv.Vdu.\           |
835 |            |                              | VirtualStorage                  |
836 +------------+------------------------------+---------------------------------+
837 | R-01478    | Monitoring Info Element (TBD)| tosca.capabilities.nfv.Metric - |
838 |            | - SOL001 per VNF/VDU/VLink   | type for monitoring             |
839 | R-01556    | memory-consumption,          |                                 |
840 |            | CPU-utilization,             | monitoring_parameter  of above  |
841 |            | bandwidth-consumption, VNFC  | type per VNF/VDU/VLink          |
842 |            | downtime, etc.               |                                 |
843 +------------+------------------------------+---------------------------------+
844
845
846 Table D2. TOSCA CSAR structure
847 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
848
849 This section defines the requirements around the CSAR structure.
850
851 The table below describes the numbered requirements for CSAR structure as
852 agreed with SDC. The format of the CSAR is specified in SOL004.
853
854 +------------+-------------------------------------+--------------------------+
855 | Requirement| Description                         | CSAR artifact directory  |
856 | Number     |                                     |                          |
857 +============+=====================================+==========================+
858 | R-26881    | The VNF provider MUST provide the   | ROOT\\Artifacts\         |
859 |            | binaries and images needed to       | \\VNF_Image.bin          |
860 |            | instantiate the VNF (VNF and VNFC   |                          |
861 |            | images).                            |                          |
862 +------------+-------------------------------------+--------------------------+
863 | R-30654    | VNFD.lifeCycleManagementScript that | ROOT\\Artifacts\         |
864 |            | includes a list of events and       | \\Informational\         |
865 |            | corresponding management scripts    | \\Install.csh            |
866 |            | performed for the VNF - SOL001      |                          |
867 +------------+-------------------------------------+--------------------------+
868 | R-35851    | All VNF topology related definitions| ROOT\\Definitions\       |
869 |            | in yaml files VNFD/Main Service     | \\VNFC.yaml              |
870 |            | template at the ROOT                |                          |
871 |            |                                     | ROOT\                    |
872 |            |                                     | \\MainService\           |
873 |            |                                     | \\Template.yaml          |
874 +------------+-------------------------------------+--------------------------+
875 | R-40827    | CSAR License directory - SOL004     | ROOT\\Licenses\          |
876 |            |                                     | \\License_term.txt       |
877 +------------+-------------------------------------+--------------------------+
878 | R-77707    | CSAR Manifest file - SOL004         | ROOT\                    |
879 |            |                                     | \\MainServiceTemplate.mf |
880 +------------+-------------------------------------+--------------------------+
881
882
883 Requirement List
884 --------------------------------
885
886 **VNF Development Requirements**
887 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
888
889 VNF Design
890 ~~~~~~~~~~~~~
891
892 R-58421 The VNF **SHOULD** be decomposed into granular re-usable VNFCs.
893
894 R-82223 The VNF **MUST** be decomposed if the functions have
895 significantly different scaling characteristics (e.g., signaling
896 versus media functions, control versus data plane functions).
897
898 R-16496 The VNF **MUST** enable instantiating only the functionality that
899 is needed for the decomposed VNF (e.g., if transcoding is not needed it
900 should not be instantiated).
901
902 R-02360 The VNFC **MUST** be designed as a standalone, executable process.
903
904 R-34484 The VNF **SHOULD** create a single component VNF for VNFCs
905 that can be used by other VNFs.
906
907 R-23035 The VNF **MUST** be designed to scale horizontally (more
908 instances of a VNF or VNFC) and not vertically (moving the existing
909 instances to larger VMs or increasing the resources within a VM)
910 to achieve effective utilization of cloud resources.
911
912 R-30650 The VNF **MUST** utilize cloud provided infrastructure and
913 VNFs (e.g., virtualized Local Load Balancer) as part of the VNF so
914 that the cloud can manage and provide a consistent service resiliency
915 and methods across all VNF's.
916
917 R-12709 The VNFC **SHOULD** be independently deployed, configured,
918 upgraded, scaled, monitored, and administered by ONAP.
919
920 R-37692 The VNFC **MUST** provide API versioning to allow for
921 independent upgrades of VNFC.
922
923 R-86585 The VNFC **SHOULD** minimize the use of state within
924 a VNFC to facilitate the movement of traffic from one instance
925 to another.
926
927 R-65134 The VNF **SHOULD** maintain state in a geographically
928 redundant datastore that may, in fact, be its own VNFC.
929
930 R-75850 The VNF **SHOULD** decouple persistent data from the VNFC
931 and keep it in its own datastore that can be reached by all instances
932 of the VNFC requiring the data.
933
934 R-88199 The VNF **MUST** utilize a persistent datastore service that
935 can meet the data performance/latency requirements. (For example:
936 Datastore service could be a VNFC in VNF or a DBaaS in the Cloud
937 execution environment)
938
939 R-99656 The VNF **MUST** NOT terminate stable sessions if a VNFC
940 instance fails.
941
942 R-84473 The VNF **MUST** enable DPDK in the guest OS for VNF’s requiring
943 high packets/sec performance.  High packet throughput is defined as greater
944 than 500K packets/sec.
945
946 R-54430 The VNF **MUST** use the NCSP’s supported library and compute
947 flavor that supports DPDK to optimize network efficiency if using DPDK. [5]_
948
949 R-18864 The VNF **MUST** NOT use technologies that bypass virtualization
950 layers (such as SR-IOV) unless approved by the NCSP (e.g., if necessary
951 to meet functional or performance requirements).
952
953 R-64768 The VNF **MUST** limit the size of application data packets
954 to no larger than 9000 bytes for SDN network-based tunneling when
955 guest data packets are transported between tunnel endpoints that
956 support guest logical networks.
957
958 R-74481 The VNF **MUST** NOT require the use of a dynamic routing
959 protocol unless necessary to meet functional requirements.
960
961 VNF Resiliency
962 ~~~~~~~~~~~~~~~~~~~~~~~~~
963
964 R-52499 The VNF **MUST** meet their own resiliency goals and not rely
965 on the Network Cloud.
966
967 R-42207 The VNF **MUST** design resiliency into a VNF such that the
968 resiliency deployment model (e.g., active-active) can be chosen at
969 run-time.
970
971 R-03954 The VNF **MUST** survive any single points of failure within
972 the Network Cloud (e.g., virtual NIC, VM, disk failure).
973
974 R-89010 The VNF **MUST** survive any single points of software failure
975 internal to the VNF (e.g., in memory structures, JMS message queues).
976
977 R-67709 The VNF **MUST** be designed, built and packaged to enable
978 deployment across multiple fault zones (e.g., VNFCs deployed in
979 different servers, racks, OpenStack regions, geographies) so that
980 in the event of a planned/unplanned downtime of a fault zone, the
981 overall operation/throughput of the VNF is maintained.
982
983 R-35291 The VNF **MUST** support the ability to failover a VNFC
984 automatically to other geographically redundant sites if not
985 deployed active-active to increase the overall resiliency of the VNF.
986
987 R-36843 The VNF **MUST** support the ability of the VNFC to be deployable
988 in multi-zoned cloud sites to allow for site support in the event of cloud
989 zone failure or upgrades.
990
991 R-00098 The VNF **MUST NOT** impact the ability of the VNF to provide
992 service/function due to a single container restart.
993
994 R-79952 The VNF **SHOULD** support container snapshots if not for rebuild
995 and evacuate for rollback or back out mechanism.
996
997 R-92935 The VNF **SHOULD** minimize the propagation of state information
998 across multiple data centers to avoid cross data center traffic.
999
1000 R-26371 The VNF **MUST** detect communication failure for inter VNFC
1001 instance and intra/inter VNF and re-establish communication
1002 automatically to maintain the VNF without manual intervention to
1003 provide service continuity.
1004
1005 R-18725 The VNF **MUST** handle the restart of a single VNFC instance
1006 without requiring all VNFC instances to be restarted.
1007
1008 R-06668 The VNF **MUST** handle the start or restart of VNFC instances
1009 in any order with each VNFC instance establishing or re-establishing
1010 required connections or relationships with other VNFC instances and/or
1011 VNFs required to perform the VNF function/role without requiring VNFC
1012 instance(s) to be started/restarted in a particular order.
1013
1014 R-80070 The VNF **MUST** handle errors and exceptions so that they do
1015 not interrupt processing of incoming VNF requests to maintain service
1016 continuity (where the error is not directly impacting the software
1017 handling the incoming request).
1018
1019 R-32695 The VNF **MUST** provide the ability to modify the number of
1020 retries, the time between retries and the behavior/action taken after
1021 the retries have been exhausted for exception handling to allow the
1022 NCSP to control that behavior, where the interface and/or functional
1023 specification allows for altering behaviour.
1024
1025 R-48356 The VNF **MUST** fully exploit exception handling to the extent
1026 that resources (e.g., threads and memory) are released when no longer
1027 needed regardless of programming language.
1028
1029 R-67918 The VNF **MUST** handle replication race conditions both locally
1030 and geo-located in the event of a data base instance failure to maintain
1031 service continuity.
1032
1033 R-36792 The VNF **MUST** automatically retry/resubmit failed requests
1034 made by the software to its downstream system to increase the success rate.
1035
1036 R-70013 The VNF **MUST NOT** require any manual steps to get it ready for
1037 service after a container rebuild.
1038
1039 R-65515 The VNF **MUST** provide a mechanism and tool to start VNF
1040 containers (VMs) without impacting service or service quality assuming
1041 another VNF in same or other geographical location is processing service
1042 requests.
1043
1044 R-94978 The VNF **MUST** provide a mechanism and tool to perform a graceful
1045 shutdown of all the containers (VMs) in the VNF without impacting service
1046 or service quality assuming another VNF in same or other geographical
1047 location can take over traffic and process service requests.
1048
1049 R-22059 The VNF **MUST NOT** execute long running tasks (e.g., IO,
1050 database, network operations, service calls) in a critical section
1051 of code, so as to minimize blocking of other operations and increase
1052 concurrent throughput.
1053
1054 R-63473 The VNF **MUST** automatically advertise newly scaled
1055 components so there is no manual intervention required.
1056
1057 R-74712 The VNF **MUST** utilize FQDNs (and not IP address) for
1058 both Service Chaining and scaling.
1059
1060 R-41159 The VNF **MUST** deliver any and all functionality from any
1061 VNFC in the pool (where pooling is the most suitable solution). The
1062 VNFC pool member should be transparent to the client. Upstream and
1063 downstream clients should only recognize the function being performed,
1064 not the member performing it.
1065
1066 R-85959 The VNF **SHOULD** automatically enable/disable added/removed
1067 sub-components or component so there is no manual intervention required.
1068
1069 R-06885 The VNF **SHOULD** support the ability to scale down a VNFC pool
1070 without jeopardizing active sessions. Ideally, an active session should
1071 not be tied to any particular VNFC instance.
1072
1073 R-12538 The VNF **SHOULD** support load balancing and discovery
1074 mechanisms in resource pools containing VNFC instances.
1075
1076 R-98989 The VNF **SHOULD** utilize resource pooling (threads,
1077 connections, etc.) within the VNF application so that resources
1078 are not being created and destroyed resulting in resource management
1079 overhead.
1080
1081 R-55345 The VNF **SHOULD** use techniques such as “lazy loading” when
1082 initialization includes loading catalogues and/or lists which can grow
1083 over time, so that the VNF startup time does not grow at a rate
1084 proportional to that of the list.
1085
1086 R-35532 The VNF **SHOULD** release and clear all shared assets (memory,
1087 database operations, connections, locks, etc.) as soon as possible,
1088 especially before long running sync and asynchronous operations, so as
1089 to not prevent use of these assets by other entities.
1090
1091 R-77334 The VNF **MUST** allow configurations and configuration parameters
1092 to be managed under version control to ensure consistent configuration
1093 deployment, traceability and rollback.
1094
1095 R-99766 The VNF **MUST** allow configurations and configuration parameters
1096 to be managed under version control to ensure the ability to rollback to
1097 a known valid configuration.
1098
1099 R-73583 The VNF **MUST** allow changes of configuration parameters
1100 to be consumed by the VNF without requiring the VNF or its sub-components
1101 to be bounced so that the VNF availability is not effected.
1102
1103 R-21558 The VNF **SHOULD** use intelligent routing by having knowledge
1104 of multiple downstream/upstream endpoints that are exposed to it, to
1105 ensure there is no dependency on external services (such as load balancers)
1106 to switch to alternate endpoints.
1107
1108 R-08315 The VNF **SHOULD** use redundant connection pooling to connect
1109 to any backend data source that can be switched between pools in an
1110 automated/scripted fashion to ensure high availability of the connection
1111 to the data source.
1112
1113 R-27995 The VNF **SHOULD** include control loop mechanisms to notify
1114 the consumer of the VNF of their exceeding SLA thresholds so the consumer
1115 is able to control its load against the VNF.
1116
1117 R-73364 The VNF **MUST** support at least two major versions of the
1118 VNF software and/or sub-components to co-exist within production
1119 environments at any time so that upgrades can be applied across
1120 multiple systems in a staggered manner.
1121
1122 R-02454 The VNF **MUST** support the existence of multiple major/minor
1123 versions of the VNF software and/or sub-components and interfaces that
1124 support both forward and backward compatibility to be transparent to
1125 the Service Provider usage.
1126
1127 R-57855 The VNF **MUST** support hitless staggered/rolling deployments
1128 between its redundant instances to allow "soak-time/burn in/slow roll"
1129 which can enable the support of low traffic loads to validate the
1130 deployment prior to supporting full traffic loads.
1131
1132 R-64445 The VNF **MUST** support the ability of a requestor of the
1133 service to determine the version (and therefore capabilities) of the
1134 service so that Network Cloud Service Provider can understand the
1135 capabilities of the service.
1136
1137 R-56793 The VNF **MUST** test for adherence to the defined performance
1138 budgets at each layer, during each delivery cycle with delivered
1139 results, so that the performance budget is measured and the code
1140 is adjusted to meet performance budget.
1141
1142 R-77667 The VNF **MUST** test for adherence to the defined performance
1143 budget at each layer, during each delivery cycle so that the performance
1144 budget is measured and feedback is provided where the performance budget
1145 is not met.
1146
1147 R-49308 The VNF **SHOULD** test for adherence to the defined resiliency
1148 rating recommendation at each layer, during each delivery cycle with
1149 delivered results, so that the resiliency rating is measured and the
1150 code is adjusted to meet software resiliency requirements.
1151
1152 R-16039 The VNF **SHOULD** test for adherence to the defined
1153 resiliency rating recommendation at each layer, during each
1154 delivery cycle so that the resiliency rating is measured and
1155 feedback is provided where software resiliency requirements are
1156 not met.
1157
1158 R-34957 The VNF **MUST** provide a method of metrics gathering for each
1159 layer's performance to identify/document variances in the allocations so
1160 they can be addressed.
1161
1162 R-49224 The VNF **MUST** provide unique traceability of a transaction
1163 through its life cycle to ensure quick and efficient troubleshooting.
1164
1165 R-52870 The VNF **MUST** provide a method of metrics gathering
1166 and analysis to evaluate the resiliency of the software from both
1167 a granular as well as a holistic standpoint. This includes, but is
1168 not limited to thread utilization, errors, timeouts, and retries.
1169
1170 R-92571 The VNF **MUST** provide operational instrumentation such as
1171 logging, so as to facilitate quick resolution of issues with the VNF to
1172 provide service continuity.
1173
1174 R-48917 The VNF **MUST** monitor for and alert on (both sender and
1175 receiver) errant, running longer than expected and missing file transfers,
1176 so as to minimize the impact due to file transfer errors.
1177
1178 R-28168 The VNF **SHOULD** use an appropriately configured logging
1179 level that can be changed dynamically, so as to not cause performance
1180 degradation of the VNF due to excessive logging.
1181
1182 R-87352 The VNF **SHOULD** utilize Cloud health checks, when available
1183 from the Network Cloud, from inside the application through APIs to check
1184 the network connectivity, dropped packets rate, injection, and auto failover
1185 to alternate sites if needed.
1186
1187 R-16560 The VNF **SHOULD** conduct a resiliency impact assessment for all
1188 inter/intra-connectivity points in the VNF to provide an overall resiliency
1189 rating for the VNF to be incorporated into the software design and
1190 development of the VNF.
1191
1192 VNF Security
1193 ~~~~~~~~~~~~~~
1194
1195 R-23740 The VNF **MUST** accommodate the security principle of
1196 “least privilege” during development, implementation and operation.
1197 The importance of “least privilege” cannot be overstated and must be
1198 observed in all aspects of VNF development and not limited to security.
1199 This is applicable to all sections of this document.
1200
1201 R-61354 The VNF **MUST** implement access control list for OA&M
1202 services (e.g., restricting access to certain ports or applications).
1203
1204 R-85633 The VNF **MUST** implement Data Storage Encryption
1205 (database/disk encryption) for Sensitive Personal Information (SPI)
1206 and other subscriber identifiable data. Note: subscriber’s SPI/data
1207 must be encrypted at rest, and other subscriber identifiable data
1208 should be encrypted at rest. Other data protection requirements exist
1209 and should be well understood by the developer.
1210
1211 R-92207 The VNF **SHOULD** implement a mechanism for automated and
1212 frequent "system configuration (automated provisioning / closed loop)"
1213 auditing.
1214
1215 R-23882 The VNF **SHOULD** be scanned using both network scanning
1216 and application scanning security tools on all code, including underlying
1217 OS and related configuration. Scan reports shall be provided. Remediation
1218 roadmaps shall be made available for any findings.
1219
1220 R-46986 The VNF **SHOULD** have source code scanned using scanning
1221 tools (e.g., Fortify) and provide reports.
1222
1223 R-55830 The VNF **MUST** distribute all production code from NCSP
1224 internal sources only. No production code, libraries, OS images, etc.
1225 shall be distributed from publically accessible depots.
1226
1227 R-99771 The VNF **MUST** provide all code/configuration files in a
1228 "Locked down" or hardened state or with documented recommendations for
1229 such hardening. All unnecessary services will be disabled. VNF provider
1230 default credentials, community strings and other such artifacts will be
1231 removed or disclosed so that they can be modified or removed during
1232 provisioning.
1233
1234 R-19768 The VNF **SHOULD** support L3 VPNs that enable segregation of
1235 traffic by application (dropping packets not belonging to the VPN) (i.e.,
1236 AVPN, IPSec VPN for Internet routes).
1237
1238 R-33981 The VNF **SHOULD** interoperate with various access control
1239 mechanisms for the Network Cloud execution environment (e.g.,
1240 Hypervisors, containers).
1241
1242 R-40813 The VNF **SHOULD** support the use of virtual trusted platform
1243 module, hypervisor security testing and standards scanning tools.
1244
1245 R-56904 The VNF **MUST** interoperate with the ONAP (SDN) Controller so that
1246 it can dynamically modify the firewall rules, ACL rules, QoS rules, virtual
1247 routing and forwarding rules.
1248
1249 R-26586 The VNF **SHOULD** support the ability to work with aliases
1250 (e.g., gateways, proxies) to protect and encapsulate resources.
1251
1252 R-49956 The VNF **MUST** pass all access to applications (Bearer,
1253 signaling and OA&M) through various security tools and platforms from
1254 ACLs, stateful firewalls and application layer gateways depending on
1255 manner of deployment. The application is expected to function (and in
1256 some cases, interwork) with these security tools.
1257
1258 R-69649 The VNF **MUST** have all vulnerabilities patched as soon
1259 as possible. Patching shall be controlled via change control process
1260 with vulnerabilities disclosed along with mitigation recommendations.
1261
1262 R-78010 The VNF **MUST** use the NCSP’s IDAM API for Identification,
1263 authentication and access control of customer or VNF application users.
1264
1265 R-42681 The VNF **MUST** use the NCSP’s IDAM API or comply with
1266 the requirements if not using the NCSP’s IDAM API, for identification,
1267 authentication and access control of OA&M and other system level
1268 functions.
1269
1270 R-68589 The VNF **MUST**, if not using the NCSP’s IDAM API, support
1271 User-IDs and passwords to uniquely identify the user/application. VNF
1272 needs to have appropriate connectors to the Identity, Authentication
1273 and Authorization systems that enables access at OS, Database and
1274 Application levels as appropriate.
1275
1276 R-52085 The VNF **MUST**, if not using the NCSP’s IDAM API, provide
1277 the ability to support Multi-Factor Authentication (e.g., 1st factor =
1278 Software token on device (RSA SecureID); 2nd factor = User Name+Password,
1279 etc.) for the users.
1280
1281 R-98391 The VNF **MUST**, if not using the NCSP’s IDAM API, support
1282 Role-Based Access Control to permit/limit the user/application to
1283 performing specific activities.
1284
1285 R-63217 The VNF **MUST**, if not using the NCSP’s IDAM API, support
1286 logging via ONAP for a historical view of “who did what and when”.
1287
1288 R-62498 The VNF **MUST**, if not using the NCSP’s IDAM API, encrypt
1289 OA&M access (e.g., SSH, SFTP).
1290
1291 R-79107 The VNF **MUST**, if not using the NCSP’s IDAM API, enforce
1292 a configurable maximum number of Login attempts policy for the users.
1293 VNF provider must comply with "terminate idle sessions" policy.
1294 Interactive sessions must be terminated, or a secure, locking screensaver
1295 must be activated requiring authentication, after a configurable period
1296 of inactivity. The system-based inactivity timeout for the enterprise
1297 identity and access management system must also be configurable.
1298
1299 R-35144 The VNF **MUST**, if not using the NCSP’s IDAM API, comply
1300 with the NCSP’s credential management policy.
1301
1302 R-75041 The VNF **MUST**, if not using the NCSP’s IDAM API, expire
1303 passwords at regular configurable intervals.
1304
1305 R-46908 The VNF **MUST**, if not using the NCSP’s IDAM API, comply
1306 with "password complexity" policy. When passwords are used, they shall
1307 be complex and shall at least meet the following password construction
1308 requirements: (1) be a minimum configurable number of characters in
1309 length, (2) include 3 of the 4 following types of characters:
1310 upper-case alphabetic, lower-case alphabetic, numeric, and special,
1311 (3) not be the same as the UserID with which they are associated or
1312 other common strings as specified by the environment, (4) not contain
1313 repeating or sequential characters or numbers, (5) not to use special
1314 characters that may have command functions, and (6) new passwords must
1315 not contain sequences of three or more characters from the previous
1316 password.
1317
1318 R-39342 The VNF **MUST**, if not using the NCSP’s IDAM API, comply
1319 with "password changes (includes default passwords)" policy. Products
1320 will support password aging, syntax and other credential management
1321 practices on a configurable basis.
1322
1323 R-40521 The VNF **MUST**, if not using the NCSP’s IDAM API, support
1324 use of common third party authentication and authorization tools such
1325 as TACACS+, RADIUS.
1326
1327 R-41994 The VNF **MUST**, if not using the NCSP’s IDAM API, comply
1328 with "No Self-Signed Certificates" policy. Self-signed certificates
1329 must be used for encryption only, using specified and approved
1330 encryption protocols such as TLS 1.2 or higher or equivalent security
1331 protocols such as IPSec, AES.
1332
1333 R-23135 The VNF **MUST**, if not using the NCSP’s IDAM API,
1334 authenticate system to system communications where one system
1335 accesses the resources of another system, and must never conceal
1336 individual accountability.
1337
1338 R-95105 The VNF **MUST** host connectors for access to the application
1339 layer.
1340
1341 R-45496 The VNF **MUST** host connectors for access to the OS
1342 (Operating System) layer.
1343
1344 R-05470 The VNF **MUST** host connectors for access to the database layer.
1345
1346 R-99174 The VNF **MUST** comply with Individual Accountability
1347 (each person must be assigned a unique ID) when persons or non-person
1348 entities access VNFs.
1349
1350 R-42874 The VNF **MUST** comply with Least Privilege (no more
1351 privilege than required to perform job functions) when persons
1352 or non-person entities access VNFs.
1353
1354 R-71787 The VNF **MUST** comply with Segregation of Duties (access to a
1355 single layer and no developer may access production without special
1356 oversight) when persons or non-person entities access VNFs.
1357
1358 R-86261 The VNF **MUST NOT** allow VNF provider access to VNFs remotely.
1359
1360 R-49945 The VNF **MUST** authorize VNF provider access through a
1361 client application API by the client application owner and the resource
1362 owner of the VNF before provisioning authorization through Role Based
1363 Access Control (RBAC), Attribute Based Access Control (ABAC), or other
1364 policy based mechanism.
1365
1366 R-31751 The VNF **MUST** subject VNF provider access to privilege
1367 reconciliation tools to prevent access creep and ensure correct
1368 enforcement of access policies.
1369
1370 R-34552 The VNF **MUST** provide or support the Identity and Access
1371 Management (IDAM) based threat detection data for OWASP Top 10.
1372
1373 R-29301 The VNF **MUST** provide or support the Identity and Access
1374 Management (IDAM) based threat detection data for Password Attacks.
1375
1376 R-72243 The VNF **MUST** provide or support the Identity and Access
1377 Management (IDAM) based threat detection data for Phishing / SMishing.
1378
1379 R-58998 The VNF **MUST** provide or support the Identity and Access
1380 Management (IDAM) based threat detection data for Malware (Key Logger).
1381
1382 R-14025 The VNF **MUST** provide or support the Identity and Access
1383 Management (IDAM) based threat detection data for Session Hijacking.
1384
1385 R-31412 The VNF **MUST** provide or support the Identity and Access
1386 Management (IDAM) based threat detection data for XSS / CSRF.
1387
1388 R-51883 The VNF **MUST** provide or support the Identity and Access
1389 Management (IDAM) based threat detection data for Replay.
1390
1391 R-44032 The VNF **MUST** provide or support the Identity and Access
1392 Management (IDAM) based threat detection data for Man in the Middle (MITM).
1393
1394 R-58977 The VNF **MUST** provide or support the Identity and Access
1395 Management (IDAM) based threat detection data for Eavesdropping.
1396
1397 R-24825 The VNF **MUST** provide Context awareness data (device,
1398 location, time, etc.) and be able to integrate with threat detection system.
1399
1400 R-59391 The VNF provider **MUST**, where a VNF provider requires
1401 the assumption of permissions, such as root or administrator, first
1402 log in under their individual user login ID then switch to the other
1403 higher level account; or where the individual user login is infeasible,
1404 must login with an account with admin privileges in a way that
1405 uniquely identifies the individual performing the function.
1406
1407 R-85028 The VNF **MUST** authenticate system to system access and
1408 do not conceal a VNF provider user’s individual accountability for
1409 transactions.
1410
1411 R-80335 The VNF **MUST** make visible a Warning Notice: A formal
1412 statement of resource intent, i.e., a warning notice, upon initial
1413 access to a VNF provider user who accesses private internal networks
1414 or Company computer resources, e.g., upon initial logon to an internal
1415 web site, system or application which requires authentication.
1416
1417 R-73541 The VNF **MUST** use access controls for VNFs and their
1418 supporting computing systems at all times to restrict access to
1419 authorized personnel only, e.g., least privilege. These controls
1420 could include the use of system configuration or access control
1421 software.
1422
1423 R-64503 The VNF **MUST** provide minimum privileges for initial
1424 and default settings for new user accounts.
1425
1426 R-86835 The VNF **MUST** set the default settings for user access
1427 to sensitive commands and data to deny authorization.
1428
1429 R-77157 The VNF **MUST** conform to approved request, workflow
1430 authorization, and authorization provisioning requirements when
1431 creating privileged users.
1432
1433 R-81147 The VNF **MUST** have greater restrictions for access and
1434 execution, such as up to 3 factors of authentication and restricted
1435 authorization, for commands affecting network services, such as
1436 commands relating to VNFs.
1437
1438 R-49109 The VNF **MUST** encrypt TCP/IP--HTTPS (e.g., TLS v1.2)
1439 transmission of data on internal and external networks.
1440
1441 R-39562 The VNF **MUST** disable unnecessary or vulnerable cgi-bin programs.
1442
1443 R-15671 The VNF **MUST NOT** provide public or unrestricted access
1444 to any data without the permission of the data owner. All data
1445 classification and access controls must be followed.
1446
1447 R-89753 The VNF **MUST NOT** install or use systems, tools or
1448 utilities capable of capturing or logging data that was not created
1449 by them or sent specifically to them in production, without
1450 authorization of the VNF system owner.
1451
1452 R-19082 The VNF **MUST NOT** run security testing tools and
1453 programs, e.g., password cracker, port scanners, hacking tools
1454 in production, without authorization of the VNF system owner.
1455
1456 R-19790 The VNF **MUST NOT** include authentication credentials
1457 in security audit logs, even if encrypted.
1458
1459 R-85419 The VNF **SHOULD** use REST APIs exposed to Client
1460 Applications for the implementation of OAuth 2.0 Authorization
1461 Code Grant and Client Credentials Grant, as the standard interface
1462 for a VNF.
1463
1464 R-48080 The VNF **SHOULD** support SCEP (Simple Certificate
1465 Enrollment Protocol).
1466
1467 R-37608 The VNF **MUST** provide a mechanism to restrict access based
1468 on the attributes of the VNF and the attributes of the subject.
1469
1470 R-43884 The VNF **MUST** integrate with external authentication
1471 and authorization services (e.g., IDAM).
1472
1473 R-25878 The VNF **MUST** use certificates issued from publicly
1474 recognized Certificate Authorities (CA) for the authentication process
1475 where PKI-based authentication is used.
1476
1477 R-19804 The VNF **MUST** validate the CA signature on the certificate,
1478 ensure that the date is within the validity period of the certificate,
1479 check the Certificate Revocation List (CRL), and recognize the identity
1480 represented by the certificate where PKI-based authentication is used.
1481
1482 R-47204 The VNF **MUST** protect the confidentiality and integrity of
1483 data at rest and in transit from unauthorized access and modification.
1484
1485 R-33488 The VNF **MUST** protect against all denial of service
1486 attacks, both volumetric and non-volumetric, or integrate with external
1487 denial of service protection tools.
1488
1489 R-21652 The VNF **MUST** implement the following input validation
1490 control: Check the size (length) of all input. Do not permit an amount
1491 of input so great that it would cause the VNF to fail. Where the input
1492 may be a file, the VNF API must enforce a size limit.
1493
1494 R-54930 The VNF **MUST** implement the following input validation
1495 control: Do not permit input that contains content or characters
1496 inappropriate to the input expected by the design. Inappropriate input,
1497 such as SQL insertions, may cause the system to execute undesirable
1498 and unauthorized transactions against the database or allow other
1499 inappropriate access to the internal network.
1500
1501 R-21210 The VNF **MUST** implement the following input validation
1502 control: Validate that any input file has a correct and valid
1503 Multipurpose Internet Mail Extensions (MIME) type. Input files
1504 should be tested for spoofed MIME types.
1505
1506 R-23772 The VNF **MUST** validate input at all layers implementing VNF APIs.
1507
1508 R-87135 The VNF **MUST** comply with NIST standards and industry
1509 best practices for all implementations of cryptography.
1510
1511 R-02137 The VNF **MUST** implement all monitoring and logging as
1512 described in the Security Analytics section.
1513
1514 R-15659 The VNF **MUST** restrict changing the criticality level of
1515 a system security alarm to administrator(s).
1516
1517 R-19367 The VNF **MUST** monitor API invocation patterns to detect
1518 anomalous access patterns that may represent fraudulent access or
1519 other types of attacks, or integrate with tools that implement anomaly
1520 and abuse detection.
1521
1522 R-78066 The VNF **MUST** support requests for information from law
1523 enforcement and government agencies.
1524
1525 R-48470 The VNF **MUST** support Real-time detection and
1526 notification of security events.
1527
1528 R-22286 The VNF **MUST** support Integration functionality via
1529 API/Syslog/SNMP to other functional modules in the network (e.g.,
1530 PCRF, PCEF) that enable dynamic security control by blocking the
1531 malicious traffic or malicious end users.
1532
1533 R-32636 The VNF **MUST** support API-based monitoring to take care of
1534 the scenarios where the control interfaces are not exposed, or are
1535 optimized and proprietary in nature.
1536
1537 R-61648 The VNF **MUST** support event logging, formats, and delivery
1538 tools to provide the required degree of event data to ONAP.
1539
1540 R-22367 The VNF **MUST** support detection of malformed packets due to
1541 software misconfiguration or software vulnerability.
1542
1543 R-31961 The VNF **MUST** support integrated DPI/monitoring functionality
1544 as part of VNFs (e.g., PGW, MME).
1545
1546 R-20912 The VNF **MUST** support alternative monitoring capabilities
1547 when VNFs do not expose data or control traffic or use proprietary and
1548 optimized protocols for inter VNF communication.
1549
1550 R-73223 The VNF **MUST** support proactive monitoring to detect and
1551 report the attacks on resources so that the VNFs and associated VMs can
1552 be isolated, such as detection techniques for resource exhaustion, namely
1553 OS resource attacks, CPU attacks, consumption of kernel memory, local
1554 storage attacks.
1555
1556 R-58370 The VNF **MUST** coexist and operate normally with commercial
1557 anti-virus software which shall produce alarms every time when there is a
1558 security incident.
1559
1560 R-56920 The VNF **MUST** protect all security audit logs (including
1561 API, OS and application-generated logs), security audit software, data,
1562 and associated documentation from modification, or unauthorized viewing,
1563 by standard OS access control mechanisms, by sending to a remote system,
1564 or by encryption.
1565
1566 R-54520 The VNF **MUST** log successful and unsuccessful login attempts.
1567
1568 R-55478 The VNF **MUST** log logoffs.
1569
1570 R-08598 The VNF **MUST** log successful and unsuccessful changes to
1571 a privilege level.
1572
1573 R-13344 The VNF **MUST** log starting and stopping of security
1574 logging.
1575
1576 R-07617 The VNF **MUST** log creating, removing, or changing the
1577 inherent privilege level of users.
1578
1579 R-94525 The VNF **MUST** log connections to a network listener of the
1580 resource.
1581
1582 R-31614 The VNF **MUST** log the field “event type” in the security
1583 audit logs.
1584
1585 R-97445 The VNF **MUST** log the field “date/time” in the security
1586 audit logs.
1587
1588 R-25547 The VNF **MUST** log the field “protocol” in the security audit logs.
1589
1590 R-06413 The VNF **MUST** log the field “service or program used for
1591 access” in the security audit logs.
1592
1593 R-15325 The VNF **MUST** log the field “success/failure” in the
1594 security audit logs.
1595
1596 R-89474 The VNF **MUST** log the field “Login ID” in the security audit logs.
1597
1598 R-04982 The VNF **MUST NOT** include an authentication credential,
1599 e.g., password, in the security audit logs, even if encrypted.
1600
1601 R-63330 The VNF **MUST** detect when the security audit log storage
1602 medium is approaching capacity (configurable) and issue an alarm via
1603 SMS or equivalent as to allow time for proper actions to be taken to
1604 pre-empt loss of audit data.
1605
1606 R-41252 The VNF **MUST** support the capability of online storage of
1607 security audit logs.
1608
1609 R-41825 The VNF **MUST** activate security alarms automatically when
1610 the following event is detected: configurable number of consecutive
1611 unsuccessful login attempts
1612
1613 R-43332 The VNF **MUST** activate security alarms automatically when
1614 the following event is detected: successful modification of critical
1615 system or application files
1616
1617 R-74958 The VNF **MUST** activate security alarms automatically when
1618 the following event is detected: unsuccessful attempts to gain permissions
1619 or assume the identity of another user
1620
1621 R-15884 The VNF **MUST** include the field “date” in the Security alarms
1622 (where applicable and technically feasible).
1623
1624 R-23957 The VNF **MUST** include the field “time” in the Security alarms
1625 (where applicable and technically feasible).
1626
1627 R-71842 The VNF **MUST** include the field “service or program used for
1628 access” in the Security alarms (where applicable and technically feasible).
1629
1630 R-57617 The VNF **MUST** include the field “success/failure” in the
1631 Security alarms (where applicable and technically feasible).
1632
1633 R-99730 The VNF **MUST** include the field “Login ID” in the Security
1634 alarms (where applicable and technically feasible).
1635
1636 R-29705 The VNF **MUST** restrict changing the criticality level of a
1637 system security alarm to administrator(s).
1638
1639 R-13627 The VNF **MUST** monitor API invocation patterns to detect
1640 anomalous access patterns that may represent fraudulent access or other
1641 types of attacks, or integrate with tools that implement anomaly and
1642 abuse detection.
1643
1644 R-21819 The VNF **MUST** support requests for information from law
1645 enforcement and government agencies.
1646
1647 R-56786 The VNF **MUST** implement “Closed Loop” automatic implementation
1648 (without human intervention) for Known Threats with detection rate in low
1649 false positives.
1650
1651 R-25094 The VNF **MUST** perform data capture for security functions.
1652
1653 R-04492 The VNF **MUST** generate security audit logs that must be sent
1654 to Security Analytics Tools for analysis.
1655
1656 R-19219 The VNF **MUST** provide audit logs that include user ID, dates,
1657 times for log-on and log-off, and terminal location at minimum.
1658
1659 R-30932 The VNF **MUST** provide security audit logs including records
1660 of successful and rejected system access data and other resource access
1661 attempts.
1662
1663 R-54816 The VNF **MUST** support the storage of security audit logs
1664 for agreed period of time for forensic analysis.
1665
1666 R-57271 The VNF **MUST** provide the capability of generating security
1667 audit logs by interacting with the operating system (OS) as appropriate.
1668
1669 R-84160 The VNF **MUST** have security logging for VNFs and their
1670 OSs be active from initialization. Audit logging includes automatic
1671 routines to maintain activity records and cleanup programs to ensure
1672 the integrity of the audit/logging systems.
1673
1674 R-58964 The VNF **MUST** provide the capability to restrict read
1675 and write access to data.
1676
1677 R-99112 The VNF **MUST** provide the capability to restrict access
1678 to data to specific users.
1679
1680 R-83227 The VNF **MUST** Provide the capability to encrypt data in
1681 transit on a physical or virtual network.
1682
1683 R-32641 The VNF **MUST** provide the capability to encrypt data on
1684 non-volatile memory.
1685
1686 R-13151 The VNF **SHOULD** disable the paging of the data requiring
1687 encryption, if possible, where the encryption of non-transient data is
1688 required on a device for which the operating system performs paging to
1689 virtual memory. If not possible to disable the paging of the data
1690 requiring encryption, the virtual memory should be encrypted.
1691
1692 R-93860 The VNF **MUST** provide the capability to integrate with an
1693 external encryption service.
1694
1695 R-73067 The VNF **MUST** use industry standard cryptographic algorithms
1696 and standard modes of operations when implementing cryptography.
1697
1698 R-22645 The VNF **SHOULD** use commercial algorithms only when there
1699 are no applicable governmental standards for specific cryptographic
1700 functions, e.g., public key cryptography, message digests.
1701
1702 R-12467 The VNF **MUST NOT** use the SHA, DSS, MD5, SHA-1 and
1703 Skipjack algorithms or other compromised encryption.
1704
1705 R-02170 The VNF **MUST** use, whenever possible, standard implementations
1706 of security applications, protocols, and format, e.g., S/MIME, TLS, SSH,
1707 IPSec, X.509 digital certificates for cryptographic implementations.
1708 These implementations must be purchased from reputable vendors and must
1709 not be developed in-house.
1710
1711 R-70933 The VNF **MUST** provide the ability to migrate to newer
1712 versions of cryptographic algorithms and protocols with no impact.
1713
1714 R-44723 The VNF **MUST** use symmetric keys of at least 112 bits in length.
1715
1716 R-25401 The VNF **MUST** use asymmetric keys of at least 2048 bits in length.
1717
1718 R-95864 The VNF **MUST** use commercial tools that comply with X.509
1719 standards and produce x.509 compliant keys for public/private key generation.
1720
1721 R-12110 The VNF **MUST NOT** use keys generated or derived from
1722 predictable functions or values, e.g., values considered predictable
1723 include user identity information, time of day, stored/transmitted data.
1724
1725 R-52060 The VNF **MUST** provide the capability to configure encryption
1726 algorithms or devices so that they comply with the laws of the jurisdiction
1727 in which there are plans to use data encryption.
1728
1729 R-69610 The VNF **MUST** provide the capability of using certificates
1730 issued from a Certificate Authority not provided by the VNF provider.
1731
1732 R-83500 The VNF **MUST** provide the capability of allowing certificate
1733 renewal and revocation.
1734
1735 R-29977 The VNF **MUST** provide the capability of testing the validity
1736 of a digital certificate by validating the CA signature on the certificate.
1737
1738 R-24359 The VNF **MUST** provide the capability of testing the validity
1739 of a digital certificate by validating the date the certificate is being
1740 used is within the validity period for the certificate.
1741
1742 R-39604 The VNF **MUST** provide the capability of testing the
1743 validity of a digital certificate by checking the Certificate Revocation
1744 List (CRL) for the certificates of that type to ensure that the
1745 certificate has not been revoked.
1746
1747 R-75343 The VNF **MUST** provide the capability of testing the
1748 validity of a digital certificate by recognizing the identity represented
1749 by the certificate — the "distinguished name".
1750
1751 VNF Modularity
1752 ~~~~~~~~~~~~~~~~~~
1753
1754 R-37028 The VNF **MUST** be composed of one “base” module.
1755
1756 R-41215 The VNF **MAY** have zero to many “incremental” modules.
1757
1758 R-20974 The VNF **MUST** deploy the base module first, prior to
1759 the incremental modules.
1760
1761 R-11200 The VNF **MUST** keep the scope of a Cinder volume module,
1762 when it exists, to be 1:1 with the VNF Base Module or Incremental Module.
1763
1764 R-38474 The VNF **MUST** have a corresponding environment file for
1765 a Base Module.
1766
1767 R-81725 The VNF **MUST** have a corresponding environment file for
1768 an Incremental Module.
1769
1770 R-53433 The VNF **MUST** have a corresponding environment file for
1771 a Cinder Volume Module.
1772
1773 VNF Devops
1774 ~~~~~~~~~~~~~~
1775
1776 R-46960 NCSPs **MAY** operate a limited set of Guest OS and CPU
1777 architectures and families, virtual machines, etc.
1778
1779 R-23475 VNFCs **SHOULD** be agnostic to the details of the Network Cloud
1780 (such as hardware, host OS, Hypervisor or container technology) and must run
1781 on the Network Cloud with acknowledgement to the paradigm that the Network
1782 Cloud will continue to rapidly evolve and the underlying components of
1783 the platform will change regularly.
1784
1785 R-33846 The VNF **MUST** install the NCSP required software on Guest OS
1786 images when not using the NCSP provided Guest OS images. [5]_
1787
1788 R-09467 The VNF **MUST**  utilize only NCSP standard compute flavors. [5]_
1789
1790 R-02997 The VNF **MUST** preserve their persistent data. Running VMs
1791 will not be backed up in the Network Cloud infrastructure.
1792
1793 R-29760 The VNFC **MUST** be installed on non-root file systems,
1794 unless software is specifically included with the operating system
1795 distribution of the guest image.
1796
1797 R-20860 The VNF **MUST** be agnostic to the underlying infrastructure
1798 (such as hardware, host OS, Hypervisor), any requirements should be
1799 provided as specification to be fulfilled by any hardware.
1800
1801 R-89800 The VNF **MUST NOT** require Hypervisor-level customization
1802 from the cloud provider.
1803
1804 R-86758 The VNF **SHOULD** provide an automated test suite to validate
1805 every new version of the software on the target environment(s). The tests
1806 should be of sufficient granularity to independently test various
1807 representative VNF use cases throughout its lifecycle. Operations might
1808 choose to invoke these tests either on a scheduled basis or on demand to
1809 support various operations functions including test, turn-up and
1810 troubleshooting.
1811
1812 R-39650 The VNF **SHOULD** provide the ability to test incremental
1813 growth of the VNF.
1814
1815 R-14853 The VNF **MUST** respond to a "move traffic" [2]_ command
1816 against a specific VNFC, moving all existing session elsewhere with
1817 minimal disruption if a VNF provides a load balancing function across
1818 multiple instances of its VNFCs. Note: Individual VNF performance
1819 aspects (e.g., move duration or disruption scope) may require further
1820 constraints.
1821
1822 R-06327 The VNF **MUST** respond to a "drain VNFC" [2]_ command against
1823 a specific VNFC, preventing new session from reaching the targeted VNFC,
1824 with no disruption to active sessions on the impacted VNFC, if a VNF
1825 provides a load balancing function across multiple instances of its VNFCs.
1826 This is used to support scenarios such as proactive maintenance with no
1827 user impact.
1828
1829 R-64713 The VNF **SHOULD** support a software promotion methodology
1830 from dev/test -> pre-prod -> production in software, development &
1831 testing and operations.
1832
1833 **VNF Modeling Requirements**
1834 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1835
1836 Heat
1837 ~~~~
1838
1839 R-95303 A VNF's Heat Orchestration Template **MUST**
1840 be defined using valid YAML.
1841
1842 R-27078 A VNF's Heat Orchestration template **MUST** contain
1843 the section "heat_template_version:".
1844
1845 R-39402 A VNF's Heat Orchestration Template **MUST**
1846 contain the section "description:".
1847
1848 R-35414 A VNF Heat Orchestration's template **MUST**
1849 contain the section "parameters:".
1850
1851 R-90279 A VNF Heat Orchestration's template's parameter **MUST**
1852 be used in a resource with the exception of the parameters
1853 for the OS::Nova::Server resource property availability_zone.
1854
1855 R-91273 A VNF Heat Orchestration’s template’s parameter for
1856 the OS::Nova::Server resource property availability_zone
1857 **MAY NOT** be used in any OS::Nova::Resource.
1858
1859 R-25877 A VNF's Heat Orchestration Template's parameter
1860 name (i.e., <param name>) **MUST** contain only
1861 alphanumeric characters and underscores ('_').
1862
1863 R-36772 A VNF’s Heat Orchestration Template’s parameter
1864 **MUST** include the attribute “type:”.
1865
1866 R-11441 A VNF’s Heat Orchestration Template’s parameter
1867 type **MUST** be one of the following values: "string",
1868 "number", "json", "comma_delimited_list" or "boolean".
1869
1870 R-32094 A VNF's Heat Orchestration Template parameter
1871 declaration **MAY** contain the attribute "label:"
1872
1873 R-44001 A VNF's Heat Orchestration Template parameter
1874 declaration **MUST** contain the attribute "description".
1875
1876 R-90526 A VNF Heat Orchestration Template parameter
1877 declaration **MUST** not contain the default attribute.
1878
1879 R-26124 If a VNF Heat Orchestration Template parameter
1880 requires a default value, it **MUST** be enumerated in the environment file.
1881
1882 R-32557 A VNF's Heat Orchestration Template parameter
1883 declaration MAY contain the attribute "hidden:".
1884
1885 R-88863 A VNF's Heat Orchestration Template's parameter defined as
1886 type "number" **MUST** have a parameter constraint of "range" or
1887 "allowed_values" defined.
1888
1889 R-40518 A VNF's Heat Orchestration Template’s parameter defined as
1890 type "string" **MAY** have a parameter constraint defined.
1891
1892 R-96227 A VNF's Heat Orchestration Template’s parameter defined as
1893 type "json" **MAY** have a parameter constraint defined.
1894
1895 R-79817 A VNF's Heat Orchestration Template’s parameter defined as
1896 type "comma_delimited_list" **MAY** have a parameter constraint defined.
1897
1898 R-06613 A VNF's Heat Orchestration Template’s parameter defined as
1899 type "boolean" **MAY** have a parameter constraint defined.
1900
1901 R-00011 A VNF's Heat Orchestration Template's Nested YAML files
1902 parameter's **MUST NOT** have a parameter constraint defined.
1903
1904 R-22589 A VNF’s Heat Orchestration Template parameter declaration
1905 **MAY** contain the attribute "immutable:".
1906
1907 R-23664 A VNF's Heat Orchestration template **MUST** contain
1908 the section "resources:".
1909
1910 R-90152 A VNF's Heat Orchestration Template's "resources:"
1911 section **MUST** contain the declaration of at least one resource.
1912
1913 R-40551 A VNF's Heat Orchestration Template's Nested YAML files
1914 **MAY** contain the section "resources:".
1915
1916 R-75141 A VNF's Heat Orchestration Template's resource name
1917 (i.e., <resource ID>) **MUST** only contain alphanumeric
1918 characters and underscores ('_').
1919
1920 R-16447 A VNF's <resource ID> **MUST** be unique across all
1921 Heat Orchestration Templates and all HEAT Orchestration Template
1922 Nested YAML files that are used to create the VNF.
1923
1924 R-53952 A VNF’s Heat Orchestration Template’s Resource
1925 **MUST NOT** reference a HTTP-based resource definitions.
1926
1927 R-71699 A VNF’s Heat Orchestration Template’s Resource
1928 **MUST NOT** reference a HTTP-based Nested YAML file.
1929
1930 R-10834 If a VNF Heat Orchestration Template resource attribute
1931 "property:" uses a nested "get_param", one level of nesting is
1932 supported and the nested "get_param" **MUST** reference an index
1933
1934 R-97199 A VNF's Heat Orchestration Template's OS::Nova::Server
1935 resource **MUST** contain the attribute "metadata".
1936
1937 R-46968 VNF’s Heat Orchestration Template’s Resource **MAY**
1938 declare the attribute “depends_on:”.
1939
1940 R-63137 VNF’s Heat Orchestration Template’s Resource **MAY**
1941 declare the attribute “update_policy:”.
1942
1943 R-43740 A VNF’s Heat Orchestration Template’s Resource
1944 **MAY** declare the attribute “deletion_policy:”.
1945
1946 R-78569 A VNF’s Heat Orchestration Template’s Resouce **MAY**
1947 declare the attribute “external_id:”.
1948
1949 R-36982 A VNF’s Heat Orchestration template **MAY** contain the
1950 “outputs:” section.
1951
1952 R-86285 The VNF Heat Orchestration Template **MUST** have a corresponding
1953 environment file, even if no parameters are required to be enumerated.
1954
1955 R-86285 The VNF Heat Orchestration Template **MUST** have a
1956 corresponding environment file, even if no parameters are required to be
1957 enumerated.
1958
1959 R-03324 The VNF Heat Orchestration Template **MUST** contain the
1960 "parameters" section in the
1961 environment file
1962
1963 R-68198 A VNF’s Heat Orchestration template’s Environment File’s
1964 “parameters:” section **MAY** enumerate parameters.
1965
1966 R-59930 A VNF’s Heat Orchestration template’s Environment
1967 File’s **MAY** contain the “parameter_defaults:” section.
1968
1969 R-46096 A VNF’s Heat Orchestration template’s Environment File’s
1970 **MAY** contain the “encrypted_parameters:” section.
1971
1972 R-24893 A VNF’s Heat Orchestration template’s Environment File’s
1973 **MAY** contain the “event_sinks:” section.
1974
1975 R-42685 A VNF’s Heat Orchestration template’s Environment File’s
1976 **MAY** contain the “parameter_merge_strategies:” section.
1977
1978 R-67231 A VNF’s Heat Orchestration template’s Environment File’s **MUST NOT**
1979 contain the “resource_registry:” section.
1980
1981 R-69663 A VNF **MAY** be composed from one or more Heat Orchestration
1982 Templates, each of which represents a subset of the overall VNF.
1983
1984 R-33132 A VNF’s Heat Orchestration Template **MAY** be 1.) Base Module
1985 Heat Orchestration Template (also referred to as a Base Module), 2.)
1986 Incremental Module Heat Orchestration Template (referred to as an Incremental
1987 Module), or 3.) a Cinder Volume Module Heat Orchestration Template
1988 (referred to as Cinder Volume Module).
1989
1990 R-13196 A VNF **MAY** be composed of zero to many Incremental Modules
1991
1992 R-28980 A VNF’s incremental module **MAY** be used for initial VNF
1993 deployment only.
1994
1995 R-86926 A VNF’s incremental module **MAY** be used for scale out only.
1996
1997 R-91497 A VNF’s incremental module **MAY** be used for both deployment
1998 and scale out.
1999
2000 R-68122 A VNF’s incremental module **MAY** be deployed more than once,
2001 either during initial VNF deployment and/or scale out.
2002
2003 R-46119 A VNF’s Heat Orchestration Template’s Resource OS::Heat::CinderVolume
2004 **MAY** be defined in a Base Module.
2005
2006 R-90748 A VNF’s Heat Orchestration Template’s Resource OS::Cinder::Volume
2007 **MAY** be defined in an Incremental Module.
2008
2009 R-03251 A VNF’s Heat Orchestration Template’s Resource OS::Cinder::Volume
2010 **MAY** be defined in a Cinder Volume Module.
2011
2012 R-11200 The VNF **MUST** keep the scope of a Cinder volume module,
2013 when it exists, to be 1:1 with the VNF Base Module or Incremental Module.
2014
2015 R-11200 The VNF **MUST** keep the scope of a Cinder volume module, when it
2016 exists, to be 1:1 with the VNF Base Module or Incremental Module
2017
2018 R-36582 A VNF’s Base Module **MAY** utilize nested heat.
2019
2020 R-56721 A VNF’s Incremental Module **MAY** utilize nested heat.
2021
2022 R-30395 A VNF’s Cinder Volume Module **MAY** utilize nested heat.
2023
2024 R-87485 A VNF’s Heat Orchestration Template’s file extension **MUST**
2025 be in the lower case format ‘.yaml’ or ‘.yml’.
2026
2027 R-56438 A VNF’s Heat Orchestration Template’s Nested YAML file extension
2028 **MUST** be in the lower case format ‘.yaml’ or ‘.yml’.
2029
2030 R-74304 A VNF’s Heat Orchestration Template’s Environment file extension
2031 **MUST** be in the lower case format ‘.env’.
2032
2033 R-81339 A VNF Heat Orchestration Template’s Base Module file name **MUST**
2034 include ‘base’ in the filename and **MUST** match one of the following four
2035 formats: 1.) ‘base_<text>.y[a]ml’, 2.) ‘<text>_base.y[a]ml’, 3.)
2036 ‘base.y[a]ml’, or 4.) ‘<text>_base_<text>’.y[a]ml; where ‘base’ is case
2037 insensitive and where ‘<text>’ **MUST** contain only alphanumeric characters
2038 and underscores ‘_’ and **MUST NOT** contain the case insensitive word ‘base’.
2039
2040 R-91342  A VNF Heat Orchestration Template’s Base Module’s Environment File
2041 **MUST** be named identical to the VNF Heat Orchestration Template’s Base
2042 Module with ‘.y[a]ml’ replaced with ‘.env’.
2043
2044 R-87247 A VNF Heat Orchestration Template’s Incremental Module file name
2045 **MUST** contain only alphanumeric characters and underscores ‘_’ and
2046 **MUST NOT** contain the case insensitive word ‘base’.
2047
2048 R-94509 A VNF Heat Orchestration Template’s Incremental Module’s Environment
2049 File **MUST** be named identical to the VNF Heat Orchestration Template’s
2050 Incremental Module with ‘.y[a]ml’ replaced with ‘.env’.
2051
2052 R-82732 A VNF Heat Orchestration Template’s Cinder Volume Module **MUST** be
2053 named identical to the base or incremental module it is supporting with
2054 ‘_volume appended’
2055
2056 R-31141 A VNF Heat Orchestration Template’s Cinder Volume Module’s Environment
2057 File **MUST** be named identical to the VNF Heat Orchestration Template’s
2058 Cinder Volume Module with .y[a]ml replaced with ‘.env’.
2059
2060 R-76057 A VNF Heat Orchestration Template’s Nested YAML file name **MUST**
2061 contain only alphanumeric characters and underscores ‘_’ and **MUST NOT**
2062 contain the case insensitive word ‘base’.
2063
2064 R-18224 The VNF Heat Orchestration Template **MUST** pass in as properties
2065 all parameter values
2066 associated with the nested heat file in the resource definition defined
2067 in the parent heat template.
2068
2069 R-52753 VNF’s Heat Orchestration Template’s Base Module’s output parameter’s
2070 name and type **MUST** match the VNF’s Heat Orchestration Template’s
2071 incremental Module’s name and type unless the output parameter is of type
2072 ‘comma_delimited_list’, then the corresponding input parameter **MUST**
2073 be declared as type ‘json’.
2074
2075 R-22608 When a VNF’s Heat Orchestration Template’s Base Module’s output
2076 parameter is declared as an input parameter in an Incremental Module,
2077 the parameter attribute ‘constraints:’ **MUST NOT** be declared.
2078
2079 R-89913 A VNF’s Heat Orchestration Template’s Cinder Volume Module Output
2080 Parameter(s) **MUST** include the UUID(s) of the Cinder Volumes created in
2081 template, while other Output Parameters **MAY** be included.
2082
2083 R-07443 A VNF’s Heat Orchestration Templates’ Cinder Volume Module Output
2084 Parameter’s name and type **MUST** match the input parameter name and type
2085 in the corresponding Base Module or Incremental Module unless the Output
2086 Parameter is of the type ‘comma_delimited_list’, then the corresponding input
2087 parameter **MUST** be declared as type ‘json’.
2088
2089 R-20547 When an ONAP Volume Module Output Parameter is declared as an input
2090 parameter in a base or an incremental module Heat Orchestration Template,
2091 parameter constraints **MUST NOT** be declared.
2092
2093 R-39349 A VNF Heat Orchestration Template **MUST NOT** be designed to
2094 utilize the OpenStack ‘heat stack-update’ command for scaling
2095 (growth/de-growth).
2096
2097 R-43413 A VNF **MUST** utilize a modular Heat Orchestration Template
2098 design to support scaling (growth/de-growth).
2099
2100 R-59482 A VNF’s Heat Orchestration Template **MUST NOT** be VNF instance
2101 specific or Cloud site specific
2102
2103 R-56750 A VNF’s Heat Orchestration Template’s parameter values that are
2104 constant across all deployments **MUST** be declared in a Heat Orchestration
2105 Template Environment File.
2106
2107 R-01896 A VNF’s Heat Orchestration Template’s parameter values that are
2108 constant across all deployments **MUST** be declared in a Heat Orchestration
2109 Template Environment File.
2110
2111 R-16968 A VNF’s Heat Orchestration Templates **MUST NOT** include heat
2112 resources to create external networks.
2113
2114 R-00606 A VNF **MAY** be connected to zero, one or more than one external
2115 networks.
2116
2117 R-57424 A VNF’s port connected to an external network **MUST** connect the
2118 port to VMs in another VNF and/or an external gateway and/or external router.
2119
2120 R-29865 A VNF’s port connected to an external network **MUST NOT** connect
2121 the port to VMs in the same VNF.
2122
2123 R-69014 When a VNF connects to an external network, a network role, referred
2124 to as the ‘{network-role}’ **MUST** be assigned to the external network
2125 for use in the VNF’s Heat Orchestration Template.
2126
2127 R-05201 When a VNF connects to two or more external networks, each external
2128 network **MUST** be assigned a unique ‘{network-role}’ in the context of
2129 the VNF for use in the VNF’s Heat Orchestration Template.
2130
2131 R-83015 A VNF’s ‘{network-role}’ assigned to an external network **MUST**
2132 be different than the ‘{network-role}’ assigned to the VNF’s internal
2133 networks, if internal networks exist.
2134
2135 R-87096 A VNF **MAY** contain zero, one or more than one internal networks.
2136
2137 R-35666 If a VNF has an internal network, the VNF Heat Orchestration
2138 Template **MUST** include the heat resources to create the internal network.
2139
2140 R-86972 A VNF **SHOULD** create the internal network in the VNF’s Heat
2141 Orchestration Template Base Module.
2142
2143 R-52425 A VNF’s port connected to an internal network **MUST** connect
2144 the port to VMs in the same VNF.
2145
2146 R-46461 A VNF’s port connected to an internal network **MUST NOT** connect
2147 the port to VMs in another VNF and/or an external gateway and/or
2148 external router.
2149
2150 R-68936 When a VNF creates an internal network, a network role, referred to
2151 as the ‘{network-role}’ **MUST** be assigned to the internal network for
2152 use in the VNF’s Heat Orchestration Template.
2153
2154 R-32025 When a VNF creates two or more internal networks, each internal
2155 network **MUST** be assigned a unique ‘{network-role}’ in the context of
2156 the VNF for use in the VNF’s Heat Orchestration Template.
2157
2158 R-69874 A VNF’s ‘{network-role}’ assigned to an internal network **MUST**
2159 be different than the ‘{network-role}’ assigned to the VNF’s external
2160 networks.
2161
2162 R-34726 If a VNF’s port is connected to an internal network and the port
2163 is created in the same Heat Orchestration Template as the internal network,
2164 then the port resource **MUST** use a ‘get_resource’ to obtain
2165 the network UUID.
2166
2167 R-22688  If a VNF’s port is connected to an internal network and the
2168 port is created in an Incremental Module and the internal network is created
2169 in the Base Module then the UUID of the internal network **MUST** be exposed
2170 as a parameter in the ‘outputs:’ section of the Base Module and the port
2171 resource **MUST** use a ‘get_param’ to obtain the network UUID.
2172
2173 R-01455 When a VNF's Heat Orchestration Template creates a
2174 Virtual Machine  (i.e., 'OS::Nova::Server'),
2175 each 'class' of VMs **MUST** be assigned a VNF unique
2176 '{vm-type}'; where 'class' defines VMs that **MUST** have the following
2177 identical characteristics:
2178
2179 R-82481 A VNF's Heat Orchestration Template's Resource
2180 property parameter that is associated with a unique Virtual
2181 Machine type **MUST** include '{vm-type}'  as part of the
2182 parameter name with two exceptions:
2183
2184 R-66729 A VNF’s Heat Orchestration Template’s Resource that is
2185 associated with a unique Virtual Machine type **MUST** include
2186 ‘{vm-type}’ as part of the resource ID.
2187
2188 R-98407 A VNF's Heat Orchestration Template's '{vm-type}' **MUST** contain
2189 only alphanumeric characters and/or underscores '_' and
2190 **MUST NOT** contain any of the following strings: '_int' or 'int\_'
2191 or '\_int\_'.
2192
2193 R-48067 A VNF's Heat Orchestration Template's {vm-type} **MUST NOT** be a
2194 substring of {network-role}.
2195
2196 R-32394 A VNF’s Heat Orchestration Template’s use of ‘{vm-type}’
2197 in all Resource property parameter names **MUST** be the same case.
2198
2199 R-46839 A VNF’s Heat Orchestration Template’s use of
2200 ‘{vm-type}’ in all Resource IDs **MUST** be the same case.
2201
2202 R-36687 A VNF’s Heat Orchestration Template’s ‘{vm-type}’ case in
2203 Resource property parameter names **SHOULD** match the case of
2204 ‘{vm-type}’ in Resource IDs and vice versa.
2205
2206 R-21330 A VNF’s Heat Orchestration Template’s Resource property parameter
2207 that is associated with external network **MUST** include the
2208 ‘{network-role}’’ as part of the parameter name
2209
2210 R-11168 A VNF's Heat Orchestration Template's Resource ID that is
2211 associated with an external network **MUST** include the
2212 '{network-role}' as part of the resource ID.
2213
2214 R-84322 A VNF's Heat Orchestration Template's Resource property
2215 parameter that is associated with an internal network
2216 **MUST** include 'int\_{network-role}' as part of the parameter
2217 name, where 'int\_' is a hard coded string.
2218
2219 R-96983 A VNF's Heat Orchestration Template's Resource ID that is
2220 associated with an internal network **MUST** include
2221 'int\_{network-role}' as part of the Resource ID, where
2222 'int\_' is a hard coded string.
2223
2224 R-26506 A VNF's Heat Orchestration Template's '{network-role}'
2225 **MUST** contain only alphanumeric characters and/or
2226 underscores '_' and **MUST NOT** contain any of the following
2227 strings: '_int' or 'int\_' or '\_int\_'.
2228
2229 R-00977 A VNF’s Heat Orchestration Template’s ‘{network-role}’
2230 **MUST NOT** be a substring of ‘{vm-type}’.
2231
2232 R-58424 A VNF’s Heat Orchestration Template’s use of ‘{network-role}’
2233 in all Resource property parameter names **MUST** be the same case
2234
2235 R-21511 A VNF’s Heat Orchestration Template’s use of ‘{network-role}’
2236 in all Resource IDs **MUST** be the same case.
2237
2238 R-86588 A VNF’s Heat Orchestration Template’s ‘{network-role}’ case
2239 in Resource property parameter names **SHOULD** match the case
2240 of ‘{network-role}’ in Resource IDs and vice versa.
2241
2242 R-54517 When a VNF’s Heat Orchestration Template’s resource is associated
2243 with a single ‘{vm-type}’, the Resource ID **MUST** contain the ‘{vm-type}’.
2244
2245 R-96482 When a VNF’s Heat Orchestration Template’s resource is associated
2246 with a single external network, the Resource ID MUST contain the text
2247 ‘{network-role}’.
2248
2249 R-98138 When a VNF’s Heat Orchestration Template’s resource is associated
2250 with a single internal network, the Resource ID MUST contain the text
2251 ‘int\_{network-role}’.
2252
2253 R-82115 When a VNF's Heat Orchestration Template's resource is associated
2254 with a single '{vm-type}' and a single external network, the Resource
2255 ID text **MUST** contain both the '{vm-type}' and the '{network-role}'
2256
2257 - the '{vm-type}' **MUST** appear before the '{network-role}' and **MUST**
2258   be separated by an underscore '_'
2259
2260    - e.g., '{vm-type}_{network-role}', '{vm-type}_{index}_{network-role}'
2261
2262 - note that an '{index}' value **MAY** separate the '{vm-type}' and the
2263   '{network-role}' and when this occurs underscores **MUST** separate the
2264   three values.
2265
2266 R-82551 When a VNF's Heat Orchestration Template's resource is associated
2267 with a single '{vm-type}' and a single internal network, the Resource ID
2268 **MUST** contain both the '{vm-type}' and the 'int\_{network-role}' and
2269
2270 - the '{vm-type}' **MUST** appear before the 'int\_{network-role}' and
2271   **MUST** be separated by an underscore '_'
2272
2273    - (e.g., '{vm-type}\_int\_{network-role}',
2274      '{vm-type}_{index}\_int\_{network-role}')
2275
2276 - note that an '{index}' value **MAY** separate the '{vm-type}' and the
2277   'int\_{network-role}' and when this occurs underscores **MUST** separate
2278   the three values.
2279
2280 R-67793 When a VNF’s Heat Orchestration Template’s resource is associated
2281 with more than one ‘{vm-type}’ and/or more than one internal and/or
2282 external network, the Resource ID **MUST NOT** contain the ‘{vm-type}’
2283 and/or ‘{network-role}’/’int\_{network-role}’. It also should contain the
2284 term ‘shared’ and/or contain text that identifies the VNF
2285
2286 R-27970 When a VNF’s Heat Orchestration Template’s resource is associated
2287 with more than one ‘{vm-type}’ and/or more than one internal and/or
2288 external network, the Resource ID **MAY** contain the term ‘shared’
2289 and/or **MAY** contain text that identifies the VNF.
2290
2291 R-11690 When a VNF’s Heat Orchestration Template’s Resource ID contains
2292 an {index} value (e.g. multiple VMs of same {vm-type}), the ‘{index}’
2293 **MUST** start at zero and increment by one.
2294
2295 R-71152 The VNF’s Heat Orchestration Template’s Resource
2296 ‘OS::Nova::Server’ property ‘image’ parameter **MUST** be declared as
2297 type: ‘string’.
2298
2299 R-58670 The VNF’s Heat Orchestration Template’s Resource
2300 ‘OS::Nova::Server’ property ‘image’ parameter name **MUST** follow the
2301 naming convention ‘{vm-type}_image_name’.
2302
2303 R-91125 The VNF’s Heat Orchestration Template’s Resource
2304 ‘OS::Nova::Server’ property ‘image’ parameter **MUST** be enumerated in
2305 the Heat Orchestration Template’s Environment File and a value **MUST** be
2306 assigned.
2307
2308 R-57282 Each VNF’s Heat Orchestration Template’s ‘{vm-type}’
2309 **MUST** have a unique parameter name for the ‘OS::Nova::Server’
2310 property ‘image’ even if more than one {vm-type} shares the same image.
2311
2312 R-50436 The VNF’s Heat Orchestration Template’s Resource
2313 ‘OS::Nova::Server’ property ‘flavor’ parameter **MUST** be declared as
2314 type: ‘string’.
2315
2316 R-45188 The VNF’s Heat Orchestration Template’s Resource
2317 ‘OS::Nova::Server’ property ‘flavor’ parameter name **MUST** follow the
2318 naming convention ‘{vm-type}_flavor_name’.
2319
2320 R-69431 The VNF’s Heat Orchestration Template’s Resource
2321 ‘OS::Nova::Server’ property ‘flavor’ parameter **MUST** be enumerated in the
2322 Heat Orchestration Template’s Environment File and a value **MUST** be
2323 assigned.
2324
2325 R-40499 Each VNF’s Heat Orchestration Template’s ‘{vm-type}’ **MUST**
2326 have a unique parameter name for the ‘OS::Nova::Server’ property
2327 ‘flavor’ even if more than one {vm-type} shares the same flavor.
2328
2329 R-51430 The VNF’s Heat Orchestration Template’s Resource
2330 ‘OS::Nova::Server’ property ‘name’ parameter **MUST** be declared as
2331 either type ‘string’ or type ‘comma_delimited_list”.
2332
2333 R-54171 When the VNF’s Heat Orchestration Template’s Resource
2334 ‘OS::Nova::Server’ property ‘name’ parameter is defined as a ‘string’,
2335 the parameter name **MUST** follow the naming convention
2336 ‘{vm-type}\_name\_{index}’, where {index} is a numeric value that starts
2337 at zero and increments by one.
2338
2339 R-40899 When the VNF’s Heat Orchestration Template’s Resource
2340 ‘OS::Nova::Server’ property ‘name’ parameter is defined as a ‘string’,
2341 a parameter **MUST** be declared for each ‘OS::Nova::Server’ resource
2342 associated with the ‘{vm-type}’.
2343
2344 R-87817 When the VNF’s Heat Orchestration Template’s Resource
2345 ‘OS::Nova::Server’ property ‘name’ parameter is defined as a
2346 ‘comma_delimited_list’, the parameter name **MUST** follow the naming
2347 convention ‘{vm-type}_names’.
2348
2349 R-85800 When the VNF’s Heat Orchestration Template’s Resource
2350 ‘OS::Nova::Server’ property ‘name’ parameter is defined as a
2351 ‘comma_delimited_list’, a parameter **MUST** be delcared once for all
2352 ‘OS::Nova::Server’ resources associated with the ‘{vm-type}’.
2353
2354 R-22838 The VNF’s Heat Orchestration Template’s Resource
2355 ‘OS::Nova::Server’ property ‘name’ parameter **MUST NOT** be enumerated
2356 in the Heat Orchestration Template’s Environment File.
2357
2358 R-44271 The VNF's Heat Orchestration Template's Resource
2359 'OS::Nova::Server' property 'name' parameter value **SHOULD NOT**
2360 contain special characters since the Contrail GUI has a limitation
2361 displaying special characters.
2362
2363 R-98450 The VNF’s Heat Orchestration Template’s Resource
2364 ‘OS::Nova::Server’ property ‘availability_zone’ parameter name
2365 **MUST** follow the naming convention ‘availability\_zone\_{index}’
2366 where the ‘{index}’ **MUST** start at zero and increment by one.
2367
2368 R-23311 The VNF’s Heat Orchestration Template’s Resource
2369 ‘OS::Nova::Server’ property ‘availability_zone’ parameter **MUST**
2370 be declared as type: ‘string’.
2371
2372 R-59568  The VNF’s Heat Orchestration Template’s Resource
2373 ‘OS::Nova::Server’ property ‘availability_zone’ parameter **MUST NOT**
2374 be enumerated in the Heat Orchestration Template’s Environment File.
2375
2376 R-01359 A VNF’s Heat Orchstration Template that contains an
2377 ‘OS::Nova:Server’ Resource **MAY** define a parameter for the property
2378 ‘availability_zone’ that is not utilized in any ‘OS::Nova::Server’
2379 resources in the Heat Orchestration Template.
2380
2381 R-99798 A VNF’s Heat Orchestration Template’s Virtual Machine
2382 (i.e., OS::Nova::Server Resource) **MAY** boot from an image or **MAY**
2383 boot from a Cinder Volume.
2384
2385 R-83706 When a VNF’s Heat Orchestration Template’s Virtual Machine
2386 (i.e., ‘OS::Nova::Server’ Resource) boots from an image, the
2387 ‘OS::Nova::Server’ resource property ‘image’ **MUST** be used.
2388
2389 R-69588 When a VNF’s Heat Orchestration Template’s Virtual Machine
2390 (i.e., ‘OS::Nova::Server’ Resource) boots from Cinder Volume, the
2391 ‘OS::Nova::Server’ resource property ‘block_device_mapping’ or
2392 ‘block_device_mapping_v2’ **MUST** be used.
2393
2394 R-37437 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2395 Resource **MUST** contain the metadata map value parameter ‘vnf_id’.
2396
2397 R-07507 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2398 Resource metadata map value parameter ‘vnf_id’ **MUST** be declared
2399 as type: ‘string’.
2400
2401 R-55218 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2402 Resource metadata map value parameter ‘vnf_id’ **MUST NOT** have
2403 parameter contraints defined.
2404
2405 R-20856 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2406 Resource metadata map value parameter ‘vnf_id’ **MUST NOT** be
2407 enumerated in the Heat Orchestration Template’s environment file.
2408
2409 R-44491 If a VNF’s Heat Orchestration Template’s OS::Nova::Server
2410 Resource metadata map value parameter ‘vnf_id’ is passed into a
2411 Nested YAML file, the parameter name ‘vnf_id’ **MUST NOT** change.
2412
2413 R-71493 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2414 Resource **MUST** contain the metadata map value parameter
2415 ‘vf\_module\_id’.
2416
2417 R-82134 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2418 Resource metadata map value parameter ‘vf\_module\_id’ **MUST**
2419 be declared as type: ‘string’.
2420
2421 R-98374 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2422 Resource metadata map value parameter ‘vf\_module\_id’ **MUST NOT**
2423 have parameter contraints defined.
2424
2425 R-72871 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2426 Resource metadata map value parameter ‘vf\_module\_id’ **MUST NOT**
2427 be enumerated in the Heat Orchestration Template’s environment file.
2428
2429 R-86237 If a VNF’s Heat Orchestration Template’s OS::Nova::Server
2430 Resource metadata map value parameter ‘vf_module_id’ is passed
2431 into a Nested YAML file, the parameter name ‘vf\_module\_id’
2432 **MUST NOT** change.
2433
2434 R-72483 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2435 Resource **MUST** contain the metadata map value parameter
2436 ‘vnf_name’.
2437
2438 R-62428 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2439 Resource metadata map value parameter ‘vnf_name’ **MUST** be
2440 declared as type: ‘string’.
2441
2442 R-44318 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2443 Resource metadata map value parameter ‘vnf_name’ **MUST NOT** have
2444 parameter contraints defined.
2445
2446 R-36542 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2447 Resource metadata map value parameter ‘vnf_name’ **MUST NOT** be
2448 enumerated in the Heat Orchestration Template’s environment file.
2449
2450 R-16576 If a VNF’s Heat Orchestration Template’s OS::Nova::Server
2451 Resource metadata map value parameter ‘vnf_name’ is passed into a
2452 Nested YAML file, the parameter name ‘vnf_name’ **MUST NOT** change.
2453
2454 R-68023 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2455 Resource **SHOULD** contain the metadata map value parameter
2456 ‘vf\_module\_name’.
2457
2458 R-39067 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2459 Resource metadata map value parameter ‘vf\_module\_name’ **MUST**
2460 be declared as type: ‘string’.
2461
2462 R-15480 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2463 Resource metadata map value parameter ‘vf\_module\_name’
2464 **MUST NOT** have parameter contraints defined.
2465
2466 R-80374 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2467 Resource metadata map value parameter ‘vf\_module\_name’
2468 **MUST NOT** be enumerated in the Heat Orchestration Template’s
2469 environment file.
2470
2471 R-49177 If a VNF’s Heat Orchestration Template’s OS::Nova::Server
2472 Resource metadata map value parameter ‘vf\_module\_name’ is passed
2473 into a Nested YAML file, the parameter name ‘vf\_module\_name’
2474 **MUST NOT** change.
2475
2476 R-85328 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2477 Resource **MAY** contain the metadata map value parameter ‘vm_role’.
2478
2479 R-95430 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2480 Resource metadata map value parameter ‘vm_role’ **MUST** be
2481 declared as type: ‘string’.
2482
2483 R-67597 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2484 Resource metadata map value parameter ‘vm_role’ **MUST NOT** have
2485 parameter contraints defined.
2486
2487 R-46823 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2488 Resource metadata map value parameter ‘vnf_name’ **MUST** be
2489 either
2490
2491  - enumerated in the VNF’s Heat Orchestration
2492    Template’s environment file.
2493
2494  - hard coded in the VNF’s Heat Orchestration
2495    Template’s OS::Nova::Resource metadata property.
2496
2497 R-86476 If a VNF’s Heat Orchestration Template’s OS::Nova::Server
2498 Resource metadata map value parameter ‘vm_role’ value **MUST only**
2499 contain alphanumeric characters and underscores ‘_’.
2500
2501 R-70757 If a VNF’s Heat Orchestration Template’s OS::Nova::Server
2502 Resource metadata map value parameter ‘vm_role’ is passed into a
2503 Nested YAML file, the parameter name ‘vm_role’ **MUST NOT** change.
2504
2505 R-50816 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2506 Resource **MAY** contain the metadata map value parameter
2507 ‘vf\_module\_index’.
2508
2509 R-54340 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2510 Resource metadata map value parameter ‘vf\_module\_index’ **MUST** be
2511 declared as type: ‘number’.
2512
2513 R-09811 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2514 Resource metadata map value parameter ‘vf\_module\_index’ **MUST NOT**
2515 have parameter contraints defined.
2516
2517 R-37039 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2518 Resource metadata map value parameter ‘vf\_module\_index’ **MUST NOT**
2519 be enumerated in the Heat Orchestration Template’s environment file.
2520
2521 R-22441 If a VNF’s Heat Orchestration Template’s OS::Nova::Server
2522 Resource metadata map value parameter ‘vf\_module\_index’ is passed
2523 into a Nested YAML file, the parameter name ‘vf\_module\_index’
2524 **MUST NOT** change.
2525
2526 R-55306 If a VNF’s Heat Orchestration Template’s OS::Nova::Server
2527 Resource metadata map value parameter ‘vf\_module\_index’ **MUST NOT** be
2528 used in a VNF’s Volume Template; it is not supported.
2529
2530 R-47061 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2531 Resource **SHOULD** contain the metadata map value parameter
2532 ‘workload_context’.
2533
2534 R-74978 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2535 Resource metadata map value parameter ‘workload_context’ **MUST** be
2536 declared as type: ‘string’.
2537
2538 R-34055 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2539 Resource metadata map value parameter ‘workload_context’ **MUST NOT**
2540 have parameter contraints defined.
2541
2542 R-02691 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2543 Resource metadata map value parameter ‘workload_context’ **MUST NOT**
2544 be enumerated in the Heat Orchestration Template’s environment file.
2545
2546 R-75202 If a VNF’s Heat Orchestration Template’s OS::Nova::Server
2547 Resource metadata map value parameter ‘workload_context’ is passed
2548 into a Nested YAML file, the parameter name ‘workload_context’
2549 **MUST NOT** change.
2550
2551 R-88536 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2552 Resource **SHOULD** contain the metadata map value parameter
2553 ‘environment_context’.
2554
2555 R-20308 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2556 Resource metadata map value parameter ‘environment_context’ **MUST**
2557 be declared as type: ‘string’.
2558
2559 R-56183 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2560 Resource metadata map value parameter ‘environment_context’ **MUST NOT**
2561 have parameter contraints defined.
2562
2563 R-13194 A VNF’s Heat Orchestration Template’s OS::Nova::Server
2564 Resource metadata map value parameter ‘environment_context’ **MUST NOT**
2565 be enumerated in the Heat Orchestration Template’s environment file.
2566
2567 R-62954 If a VNF’s Heat Orchestration Template’s OS::Nova::Server
2568 Resource metadata map value parameter ‘environment_context’ is
2569 passed into a Nested YAML file, the parameter name
2570 ‘environment_context’ **MUST NOT** change.
2571
2572 R-18008 The VNF’s Heat Orchestration Template’s Resource ‘OS::Neutron::Port’
2573 property ‘network’ parameter **MUST** be declared as type: ‘string’.
2574
2575 R-62983 When the VNF’s Heat Orchestration Template’s
2576 Resource ‘OS::Neutron::Port’ is attaching to an external
2577 network, the ‘network’ parameter name **MUST**
2578
2579 - follow the naming convention ‘{network-role}_net_id’ if the Neutron
2580   network UUID value is used to reference the network
2581 - follow the naming convention ‘{network-role}_net_name’ if the OpenStack
2582   network name is used to reference the network.
2583
2584 where ‘{network-role}’ is the network-role of the external network and
2585 a ‘get_param’ **MUST** be used as the intrinsic function.
2586
2587 R-86182 When the VNF’s Heat Orchestration Template’s
2588 Resource ‘OS::Neutron::Port’ is attaching to an internal
2589 network, and the internal network is created in a different
2590 Heat Orchestration Template than the ‘OS::Neutron::Port’, the
2591 ‘network’ parameter name **MUST**
2592
2593 - follow the naming convention ‘int\_{network-role}_net_id’ if the Neutron
2594   network UUID value is used to reference the network
2595 - follow the naming convention ‘int\_{network-role}_net_name’ if the
2596   OpenStack network name in is used to reference the network.
2597
2598 where ‘{network-role}’ is the network-role of the internal network
2599 and a ‘get_param’ **MUST** be used as the intrinsic function.
2600
2601 R-93177 When the VNF’s Heat Orchestration Template’s Resource
2602 ‘OS::Neutron::Port’ is attaching to an internal network, and
2603 the internal network is created in the same Heat
2604 Orchestration Template than the ‘OS::Neutron::Port’, the ‘network’
2605 parameter name **MUST** obtain the UUID of the internal network by using
2606 the intrinsic function ‘get_resource’ or ‘get_attr’ and referencing the
2607 Resource ID of the internal network.
2608
2609 R-29872 The VNF’s Heat Orchestration Template’s Resource ‘OS::Nova::Server’
2610 property ‘network’ parameter **MUST NOT** be enumerated in the Heat
2611 Orchestration Template’s Environment File.
2612
2613 R-34037 The VNF’s Heat Orchestration Template’s resource ‘OS::Neutron::Port’
2614 property ‘fixed_ips’ map property ‘ip_address’ parameter **MUST** be
2615 declared as either type ‘string’ or type ‘comma_delimited_list’.
2616
2617 R-40971 When the VNF’s Heat Orchestration Template’s Resource
2618 ‘OS::Neutron::Port’ is attaching to an external network, and an
2619 IPv4 address is assigned using the property
2620 ‘fixed_ips’ map property ‘ip_address’ and the parameter type is defined
2621 as a string, the parameter name **MUST** follow the naming
2622 convention ‘{vm-type}_{network-role}\_ip\_{index}’, where
2623
2624 - ‘{vm-type}’ is the {vm-type} associated with the OS::Nova::Server
2625 - ‘{network-role}’ is the {network-role} of the external network
2626 - the value for {index} must start at zero (0) and increment by one
2627
2628 R-39841 The VNF’s Heat Orchestration Template’s Resource ‘OS::Neutron::Port’
2629 property ‘fixed_ips’ map property ‘ip_address’ parameter
2630 ‘{vm-type}_{network-role}\_ip\_{index}’ **MUST NOT** be enumerated in the
2631 VNF’s Heat Orchestration Template’s Environment File.
2632
2633 R-04697 When the VNF’s Heat Orchestration Template’s
2634 Resource ‘OS::Neutron::Port’ is attaching to an external
2635 network, and an IPv4 address is assigned using the property
2636 ‘fixed_ips’ map property ‘ip_address’ and the parameter type
2637 is defined as a comma_delimited_list, the parameter name **MUST**
2638 follow the naming convention ‘{vm-type}_{network-role}_ips’, where
2639
2640 - ‘{vm-type}’ is the {vm-type} associated with the OS::Nova::Server
2641 - ‘{network-role}’ is the {network-role} of the external network
2642
2643 R-98905 The VNF’s Heat Orchestration Template’s Resource ‘OS::Neutron::Port’
2644 property ‘fixed_ips’ map property ‘ip_address’ parameter
2645 ‘{vm-type}_{network-role}_ips’ **MUST NOT** be enumerated in the VNF’s
2646 Heat Orchestration Template’s Environment File.
2647
2648 R-71577 When the VNF’s Heat Orchestration Template’s Resource
2649 ‘OS::Neutron::Port’ is attaching to an external network, and an IPv6 address
2650 is assigned using the property ‘fixed_ips’ map property ‘ip_address’ and
2651 the parameter type is defined as a string, the parameter name **MUST** follow
2652 the naming convention ‘{vm-type}_{network-role}\_v6\_ip\_{index}’, where
2653
2654 - ‘{vm-type}’ is the {vm-type} associated with the OS::Nova::Server
2655 - ‘{network-role}’ is the {network-role} of the external network
2656 - the value for {index} must start at zero (0) and increment by one
2657
2658 R-87123 The VNF’s Heat Orchestration Template’s Resource
2659 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property ‘ip_address’
2660 parameter ‘{vm-type}_{network-role}\_v6\_ip\_{index}’
2661 **MUST NOT** be enumerated in the VNF’s Heat Orchestration
2662 Template’s Environment File.
2663
2664 R-23503 When the VNF’s Heat Orchestration Template’s Resource
2665 ‘OS::Neutron::Port’ is attaching to an external network, and an IPv6
2666 address is assigned using the property ‘fixed_ips’ map property ‘ip_address’
2667 and the parameter type is defined as a comma_delimited_list, the parameter
2668 name **MUST** follow the naming convention
2669 ‘{vm-type}_{network-role}_v6_ips’, where
2670
2671 - ‘{vm-type}’ is the {vm-type} associated with the OS::Nova::Server
2672 - ‘{network-role}’ is the {network-role} of the external network
2673
2674 R-93030 The VNF’s Heat Orchestration Template’s Resource
2675 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property ‘ip_address’
2676 parameter ‘{vm-type}_{network-role}_v6_ips’ **MUST NOT** be enumerated in the
2677 VNF’s Heat Orchestration Template’s Environment File.
2678
2679 R-78380 When the VNF’s Heat Orchestration Template’s Resource
2680 ‘OS::Neutron::Port’ is attaching to an internal network, and an IPv4 address
2681 is assigned using the property ‘fixed_ips’ map property ‘ip_address’ and
2682 the parameter type is defined as a string, the parameter name **MUST** follow
2683 the naming convention ‘{vm-type}\_int\_{network-role}\_ip\_{index}’, where
2684
2685 - ‘{vm-type}’ is the {vm-type} associated with the OS::Nova::Server
2686 - ‘{network-role}’ is the {network-role} of the internal network
2687 - the value for {index} must start at zero (0) and increment by one
2688
2689 R-28795 The VNF’s Heat Orchestration Template’s Resource
2690 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property ‘ip_address’
2691 parameter ‘{vm-type}\_int\_{network-role}\_ip\_{index}’ **MUST** be enumerated
2692 in the VNF’s Heat Orchestration Template’s Environment File.
2693
2694 R-85235 When the VNF’s Heat Orchestration Template’s Resource
2695 ‘OS::Neutron::Port’ is attaching to an internal network, and an IPv4
2696 address is assigned using the property ‘fixed_ips’ map property ‘ip_address’
2697 and the parameter type is defined as a comma_delimited_list, the parameter
2698 name **MUST** follow the naming convention
2699 ‘{vm-type}\_int\_{network-role}_ips’, where
2700
2701 - ‘{vm-type}’ is the {vm-type} associated with the OS::Nova::Server
2702 - ‘{network-role}’ is the {network-role} of the internal network
2703
2704 R-90206 The VNF’s Heat Orchestration Template’s Resource
2705 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property ‘ip_address’
2706 parameter ‘{vm-type}\_int\_{network-role}_int_ips’ **MUST** be enumerated in
2707 the VNF’s Heat Orchestration Template’s Environment File.
2708
2709 R-27818 When the VNF’s Heat Orchestration Template’s Resource
2710 ‘OS::Neutron::Port’ is attaching to an internal network, and an IPv6 address
2711 is assigned using the property ‘fixed_ips’ map property ‘ip_address’ and
2712 the parameter type is defined as a string, the parameter name **MUST** follow
2713 the naming convention ‘{vm-type}\_int\_{network-role}\_v6\_ip\_{index}’, where
2714
2715 - ‘{vm-type}’ is the {vm-type} associated with the OS::Nova::Server
2716 - ‘{network-role}’ is the {network-role} of the internal network
2717 - the value for {index} must start at zero (0) and increment by one
2718
2719 R-97201 The VNF’s Heat Orchestration Template’s Resource
2720 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property ‘ip_address’
2721 parameter ‘{vm-type}\_int\_{network-role}\_v6\_ip\_{index}’
2722 **MUST** be enumerated in the VNF’s Heat Orchestration Template’s
2723 Environment File.
2724
2725 R-29765 When the VNF’s Heat Orchestration Template’s Resource
2726 ‘OS::Neutron::Port’ is attaching to an internal network, and an IPv6
2727 address is assigned using the property ‘fixed_ips’ map property ‘ip_address’
2728 and the parameter type is defined as a comma_delimited_list, the parameter
2729 name **MUST** follow the naming convention
2730 ‘{vm-type}\_int\_{network-role}_v6_ips’, where
2731
2732 - ‘{vm-type}’ is the {vm-type} associated with the OS::Nova::Server
2733 - ‘{network-role}’ is the {network-role} of the internal network
2734
2735 R-98569 The VNF’s Heat Orchestration Template’s Resource
2736 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property ‘ip_address’
2737 parameter ‘{vm-type}\_int\_{network-role}_v6_ips’ **MUST** be enumerated in
2738 the VNF’s Heat Orchestration Template’s Environment File.
2739
2740 R-62590 The VNF’s Heat Orchestration Template’s Resource
2741 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property ‘ip_address’
2742 parameter associated with an external network, i.e.,
2743
2744 - {vm-type}_{network-role}\_ip\_{index}
2745 - {vm-type}_{network-role}\_ip\_v6\_{index}
2746 - {vm-type}_{network-role}_ips
2747 - {vm-type}_{network-role}_v6_ips
2748
2749 **MUST NOT** be enumerated in the Heat Orchestration Template’s
2750 Environment File. ONAP provides the IP address assignments at
2751 orchestration time.
2752
2753 R-93496 The VNF’s Heat Orchestration Template’s Resource
2754 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property ‘ip_address’
2755 parameter associated with an internal network, i.e.,
2756
2757 - {vm-type}\_int\_{network-role}\_ip\_{index}
2758 - {vm-type}\_int\_{network-role}\_ip\_v6\_{index}
2759 - {vm-type}\_int\_{network-role}_ips
2760 - {vm-type}\_int\_{network-role}_v6_ips
2761
2762 **MUST** be enumerated in the Heat Orchestration Template’s Environment
2763 File and IP addresses **MUST** be assigned.
2764
2765 R-38236 The VNF’s Heat Orchestration Template’s resource
2766 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property
2767 ‘subnet’/’subnet_id’ parameter **MUST** be declared type ‘string’.
2768
2769 R-62802 When the VNF’s Heat Orchestration Template’s resource
2770 ‘OS::Neutron::Port’ is attaching to an external network, and an IPv4
2771 address is being Cloud Assigned by OpenStack’s DHCP Service and the
2772 external network IPv4 subnet is to be specified using the property
2773 ‘fixed_ips’ map property ‘subnet’/’subnet_id’, the parameter **MUST**
2774 follow the naming convention ‘{network-role}_subnet_id’, where
2775 ‘{network-role}’ is the network role of the network.
2776
2777 R-83677 The VNF’s Heat Orchestration Template’s Resource
2778 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property
2779 subnet’/’subnet_id’ parameter ‘{network-role}_subnet_id’
2780 **MUST NOT** be enumerated in the VNF’s Heat Orchestration Template’s
2781 Environment File.
2782
2783 R-15287 When the VNF’s Heat Orchestration Template’s resource
2784 ‘OS::Neutron::Port’ is attaching to an external network, and an IPv6
2785 address is being Cloud Assigned by OpenStack’s DHCP Service and the
2786 external network IPv6 subnet is to be specified using the property
2787 ‘fixed_ips’ map property ‘subnet’/’subnet_id’, the parameter **MUST**
2788 follow the naming convention ‘{network-role}_subnet_v6_id’, where
2789 ‘{network-role}’ is the network role of the network.
2790
2791 R-80829 The VNF’s Heat Orchestration Template’s Resource
2792 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property
2793 subnet’/’subnet_id’ parameter ‘{network-role}_subnet_v6_id’
2794 **MUST NOT** be enumerated in the VNF’s Heat Orchestration Template’s
2795 Environment File.
2796
2797 R-84123 When
2798
2799 - the VNF’s Heat Orchestration Template’s resource ‘OS::Neutron::Port’
2800   in an Incremental Module is attaching to an internal network
2801   that is created in the Base Module, AND
2802 - an IPv4 address is being Cloud Assigned by OpenStack’s DHCP Service AND
2803 - the internal network IPv4 subnet is to be specified using the
2804   property ‘fixed_ips’ map property ‘subnet’/’subnet_id’,
2805
2806 the parameter **MUST** follow the naming convention
2807 ‘int\_{network-role}_subnet_id’, where ‘{network-role}’ is the
2808 network role of the internal network
2809
2810 - Note that the parameter **MUST** be defined as an ‘output’ parameter in
2811   the base module.
2812
2813 R-69634 The VNF’s Heat Orchestration Template’s Resource
2814 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property
2815 subnet’/’subnet_id’ parameter ‘int\_{network-role}_subnet_id’
2816 **MUST NOT** be enumerated in the VNF’s Heat Orchestration Template’s
2817 Environment File.
2818
2819 R-76160 When
2820
2821 - the VNF’s Heat Orchestration Template’s resource
2822   ‘OS::Neutron::Port’ in an Incremental Module is attaching to an
2823   internal network that is created in the Base Module, AND
2824 - an IPv6 address is being Cloud Assigned by OpenStack’s DHCP Service AND
2825 - the internal network IPv6 subnet is to be specified using the property
2826   ‘fixed_ips’ map property ‘subnet’/’subnet_id’,
2827
2828 the parameter **MUST** follow the naming convention
2829 ‘int\_{network-role}_v6_subnet_id’, where ‘{network-role}’
2830 is the network role of the internal network
2831
2832 - Note that the parameter **MUST** be defined as an ‘output’ parameter in
2833   the base module.
2834
2835 R-22288 The VNF’s Heat Orchestration Template’s Resource
2836 ‘OS::Neutron::Port’ property ‘fixed_ips’ map property
2837 ‘subnet’/’subnet_id’ parameter ‘int\_{network-role}_v6_subnet_id’
2838 **MUST NOT** be enumerated in the VNF’s Heat Orchestration Template’s
2839 Environment File.
2840
2841 R-61282 The VNF Heat Orchestration Template **MUST**
2842 adhere to the following naming convention for the property
2843 allowed\_address\_pairs and Map Property ip\_address parameter,
2844 when the parameter is referencing an “external” network:
2845
2846 -  {vm-type}\_{network-role}\_floating\_ip for an IPv4 address
2847
2848 -  {vm-type}\_{network-role}\_floating\_v6\_ip for an IPv6 address
2849
2850 R-16805 The VNF Heat Orchestration Template **MUST** adhere to the
2851 following naming convention for the property allowed\_address\_pairs
2852 and Map Property ip\_address parameter when the parameter is
2853 referencing an “internal” network.
2854
2855 R-85734 The VNF Heat Orchestration Template **MUST** use the
2856 intrinsic function str\_replace in conjunction with the ONAP
2857 supplied metadata parameter vnf\_name to generate a unique value,
2858 when the property name for a non OS::Nova::Server resources is defined
2859 in a Heat Orchestration Template.
2860
2861 R-47788 The VNF Heat Orchestration Template **MUST** have a 1:1
2862 scope of a cinder volume module, when it exists, with the Base
2863 Module or Incremental Module
2864
2865 R-86285 The VNF Heat Orchestration Template **MUST** have a corresponding
2866 environment file, even if no parameters are required to be enumerated.
2867
2868 R-86285 The VNF Heat Orchestration Template **MUST** have a
2869 corresponding environment file, even if no parameters are required to be
2870 enumerated.
2871
2872 R-67205 The VNF Heat Orchestration Template **MUST** have a corresponding
2873 environment file for a Base Module.
2874
2875 R-35727 The VNF Heat Orchestration Template **MUST** have a
2876 corresponding environment file for an Incremental module.
2877
2878 R-22656 The VNF Heat Orchestration Template **MUST** have a
2879 corresponding environment file for a Cinder Volume Module.
2880
2881 R-89868 The VNF Heat Orchestration Template **MUST** have unique
2882 file names within the scope of the VNF for a nested heat yaml file.
2883
2884 R-52530 The VNF Heat Orchestration Template **MUST NOT** use a
2885 directory hierarchy for nested templates. All templates must be
2886 in a single, flat directory (per VNF).
2887
2888 R-76718 The VNF Heat Orchestration Template **MUST** reference the
2889 get\_files targets in Heat templates by file name, and the corresponding
2890 files should be delivered to ONAP along with the Heat templates.
2891
2892 R-41888 The VNE Heat **MUST NOT** use URL-based file retrieval.
2893
2894 R-62177 The VNF Heat Orchestration Template **MUST** have unique
2895 file names for the included files within the scope of the VNF.
2896
2897 **ONAP Management Requirements**
2898 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2899
2900
2901 VNF On-boarding and package management
2902 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2903
2904
2905 R-77707 The xNF provider **MUST** include a Manifest File that
2906 contains a list of all the components in the xNF package.
2907
2908 R-66070 The xNF Package **MUST** include xNF Identification Data to
2909 uniquely identify the resource for a given xNF provider. The identification
2910 data must include: an identifier for the xNF, the name of the xNF as was
2911 given by the xNF provider, xNF description, xNF provider, and version.
2912
2913 R-69565 The xNF Package **MUST** include documentation describing xNF
2914 Management APIs, which must include information and tools for ONAP to
2915 deploy and configure (initially and ongoing) the xNF application(s)
2916 (e.g., NETCONF APIs) which includes a description of configurable
2917 parameters for the xNF and whether the parameters can be configured
2918 after xNF instantiation.
2919
2920 R-00156 The xNF Package **MUST** include documentation describing xNF
2921 Management APIs, which must include information and tools for ONAP
2922 to monitor the health of the xNF (conditions that require healing
2923 and/or scaling responses).
2924
2925 R-00068 The xNF Package **MUST** include documentation which includes
2926 a description of parameters that can be monitored for the xNF and
2927 event records (status, fault, flow, session, call, control plane,
2928 etc.) generated by the xNF after instantiation.
2929
2930 R-12678 The xNF Package **MUST** include documentation which includes a
2931 description of runtime lifecycle events and related actions (e.g.,
2932 control responses, tests) which can be performed for the xNF.
2933
2934 R-84366 The xNF Package **MUST** include documentation describing
2935 xNF Functional APIs that are utilized to build network and
2936 application services. This document describes the externally exposed
2937 functional inputs and outputs for the xNF, including interface
2938 format and protocols supported.
2939
2940 R-36280 The xNF provider **MUST** provide documentation describing
2941 xNF Functional Capabilities that are utilized to operationalize the
2942 xNF and compose complex services.
2943
2944 R-98617 The xNF provider **MUST** provide information regarding any
2945 dependency (e.g., affinity, anti-affinity) with other xNFs and resources.
2946
2947 R-89571 The xNF **MUST** support and provide artifacts for configuration
2948 management using at least one of the following technologies;
2949 a) Netconf/YANG, b) Chef, or c) Ansible.
2950
2951 R-30278 The xNF provider **MUST** provide a Resource/Device YANG model
2952 as a foundation for creating the YANG model for configuration. This will
2953 include xNF attributes/parameters and valid values/attributes configurable
2954 by policy.
2955
2956 R-13390 The xNF provider **MUST** provide cookbooks to be loaded
2957 on the appropriate Chef Server.
2958
2959 R-18525 The xNF provider **MUST** provide a JSON file for each
2960 supported action for the xNF.  The JSON file must contain key value
2961 pairs with all relevant values populated with sample data that illustrates
2962 its usage. The fields and their description are defined in Tables A1
2963 and A2 in the Appendix.
2964
2965 R-75608 The xNF provider **MUST** provide playbooks to be loaded
2966 on the appropriate Ansible Server.
2967
2968 R-16777 The xNF provider **MUST** provide a JSON file for each
2969 supported action for the xNF.  The JSON file must contain key value
2970 pairs with all relevant values populated with sample data that illustrates
2971 its usage. The fields and their description are defined in Table B1 in
2972 the Appendix.
2973
2974 R-46567 The xNF Package **MUST** include configuration scripts
2975 for boot sequence and configuration.
2976
2977 R-16065 The xNF provider **MUST** provide configurable parameters
2978 (if unable to conform to YANG model) including xNF attributes/parameters
2979 and valid values, dynamic attributes and cross parameter dependencies
2980 (e.g., customer provisioning data).
2981
2982 R-22888 The xNF provider **MUST** provide documentation for the xNF
2983 Policy Description to manage the xNF runtime lifecycle. The document
2984 must include a description of how the policies (conditions and actions)
2985 are implemented in the xNF.
2986
2987 R-01556 The xNF Package **MUST** include documentation describing the
2988 fault, performance, capacity events/alarms and other event records
2989 that are made available by the xNF.
2990
2991 R-16875 The xNF Package **MUST** include documentation which must include
2992 a unique identification string for the specific xNF, a description of
2993 the problem that caused the error, and steps or procedures to perform
2994 Root Cause Analysis and resolve the issue.
2995
2996 R-35960 The xNF Package **MUST** include documentation which must include
2997 all events, severity level (e.g., informational, warning, error) and
2998 descriptions including causes/fixes if applicable for the event.
2999
3000 R-42018 The xNF Package **MUST** include documentation which must include
3001 all events (fault, measurement for xNF Scaling, Syslogs, State Change
3002 and Mobile Flow), that need to be collected at each VM, VNFC (defined in `VNF Guidelines <http://onap.readthedocs.io/en/latest/submodules/vnfrqts/guidelines.git/docs/vnf_guidelines/vnf_guidelines.html#a-glossary>`__ ) and for the overall xNF.
3003
3004 R-27711 The xNF provider **MUST** provide an XML file that contains a
3005 list of xNF error codes, descriptions of the error, and possible
3006 causes/corrective action.
3007
3008 R-01478 The xNF Package **MUST** include documentation describing all
3009 parameters that are available to monitor the xNF after instantiation
3010 (includes all counters, OIDs, PM data, KPIs, etc.) that must be
3011 collected for reporting purposes.
3012
3013 R-73560 The xNF Package **MUST** include documentation about monitoring
3014 parameters/counters exposed for virtual resource management and xNF
3015 application management.
3016
3017 R-90632 The xNF Package **MUST** include documentation about KPIs and
3018 metrics that need to be collected at each VM for capacity planning
3019 and performance management purposes.
3020
3021 R-86235 The xNF Package **MUST** include documentation about the monitoring
3022 parameters that must include latencies, success rates, retry rates, load
3023 and quality (e.g., DPM) for the key transactions/functions supported by
3024 the xNF and those that must be exercised by the xNF in order to perform
3025 its function.
3026
3027 R-33904 The xNF Package **MUST** include documentation for each KPI, provide
3028 lower and upper limits.
3029
3030 R-53598 The xNF Package **MUST** include documentation to, when relevant,
3031 provide a threshold crossing alert point for each KPI and describe the
3032 significance of the threshold crossing.
3033
3034 R-69877 The xNF Package **MUST** include documentation for each KPI,
3035 identify the suggested actions that need to be performed when a
3036 threshold crossing alert event is recorded.
3037
3038 R-22680 The xNF Package **MUST** include documentation that describes
3039 any requirements for the monitoring component of tools for Network
3040 Cloud automation and management to provide these records to components
3041 of the xNF.
3042
3043 R-33694 The xNF Package **MUST** include documentation to when applicable,
3044 provide calculators needed to convert raw data into appropriate reporting
3045 artifacts.
3046
3047 R-56815 The xNF Package **MUST** include documentation describing
3048 supported xNF scaling capabilities and capacity limits (e.g., number
3049 of users, bandwidth, throughput, concurrent calls).
3050
3051 R-48596 The xNF Package **MUST** include documentation describing
3052 the characteristics for the xNF reliability and high availability.
3053
3054 R-74763 The xNF provider **MUST** provide an artifact per xNF that contains
3055 all of the xNF Event Records supported. The artifact should include reference
3056 to the specific release of the xNF Event Stream Common Event Data Model
3057 document it is based on. (e.g., `VES Event Listener <https://github.com/att/evel-test-collector/tree/master/docs/att_interface_definition>`__)
3058
3059 R-35851 The xNF Package **MUST** include xNF topology that describes
3060 basic network and application connectivity internal and external to the
3061 xNF including Link type, KPIs, Bandwidth, latency, jitter, QoS (if
3062 applicable) for each interface.
3063
3064 R-97102 The VNF Package **MUST** include VM requirements via a Heat
3065 template that provides the necessary data for VM specifications
3066 for all VNF components - for hypervisor, CPU, memory, storage.
3067
3068 R-20204 The VNF Package **MUST** include VM requirements via a Heat
3069 template that provides the necessary data for network connections,
3070 interface connections, internal and external to VNF.
3071
3072 R-44896 The VNF Package **MUST** include VM requirements via a Heat
3073 template that provides the necessary data for high availability
3074 redundancy model.
3075
3076 R-55802 The VNF Package **MUST** include VM requirements via a Heat
3077 template that provides the necessary data for scaling/growth VM
3078 specifications.
3079
3080 R-26881 The xNF provider **MUST** provide the binaries and images
3081 needed to instantiate the xNF (xNF and VNFC images).
3082
3083 R-96634 The xNF provider **MUST** describe scaling capabilities
3084 to manage scaling characteristics of the xNF.
3085
3086 R-43958 The xNF Package **MUST** include documentation describing
3087 the tests that were conducted by the xNF providor and the test results.
3088
3089 R-04298 The xNF provider **MUST** provide their testing scripts to
3090 support testing.
3091
3092 R-58775 The xNF provider **MUST** provide software components that
3093 can be packaged with/near the xNF, if needed, to simulate any functions
3094 or systems that connect to the xNF system under test. This component is
3095 necessary only if the existing testing environment does not have the
3096 necessary simulators.
3097
3098 R-85653 The xNF **MUST** provide metrics (e.g., number of sessions,
3099 number of subscribers, number of seats, etc.) to ONAP for tracking
3100 every license.
3101
3102 R-44125 The xNF provider **MUST** agree to the process that can
3103 be met by Service Provider reporting infrastructure. The Contract
3104 shall define the reporting process and the available reporting tools.
3105
3106 R-40827 The xNF provider **MUST** enumerate all of the open
3107 source licenses their xNF(s) incorporate.
3108
3109 R-97293 The xNF provider **MUST NOT** require audits of
3110 Service Provider’s business.
3111
3112 R-44569 The xNF provider **MUST NOT** require additional
3113 infrastructure such as a xNF provider license server for xNF provider
3114 functions and metrics.
3115
3116 R-13613 The VNF **MUST** provide clear measurements for licensing
3117 purposes to allow automated scale up/down by the management system.
3118
3119 R-27511 The VNF provider **MUST** provide the ability to scale
3120 up a VNF provider supplied product during growth and scale down a
3121 VNF provider supplied product during decline without “real-time”
3122 restrictions based upon VNF provider permissions.
3123
3124 R-85991 The xNF provider **MUST** provide a universal license key
3125 per xNF to be used as needed by services (i.e., not tied to a VM
3126 instance) as the recommended solution. The xNF provider may provide
3127 pools of Unique xNF License Keys, where there is a unique key for
3128 each xNF instance as an alternate solution. Licensing issues should
3129 be resolved without interrupting in-service xNFs.
3130
3131 R-47849 The xNF provider **MUST** support the metadata about
3132 licenses (and their applicable entitlements) as defined in this
3133 document for xNF software, and any license keys required to authorize
3134 use of the xNF software.  This metadata will be used to facilitate
3135 onboarding the xNF into the ONAP environment and automating processes
3136 for putting the licenses into use and managing the full lifecycle of
3137 the licenses. The details of this license model are described in
3138 Tables C1 to C8 in the Appendix. Note: License metadata support in
3139 ONAP is not currently available and planned for 1Q 2018.
3140
3141 Configuration Management
3142 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3143
3144 R-20741 The xNF **MUST** support ONAP Controller’s **Configure** command.
3145
3146 R-19366 The xNF **MUST** support ONAP Controller’s **ConfigModify** command.
3147
3148 R-32981 The xNF **MUST** support ONAP Controller’s **ConfigBackup** command.
3149
3150 R-48247 The xNF **MUST** support ONAP Controller’s **ConfigRestore** command.
3151
3152 R-94084 The xNF **MUST** support ONAP Controller’s **ConfigScaleOut**
3153 command.
3154
3155 R-56385 The xNF **MUST** support ONAP Controller’s **Audit** command.
3156
3157 R-12706 The xNF **MUST** support ONAP Controller’s **QuiesceTraffic**
3158 command.
3159
3160 R-07251 The xNF **MUST** support ONAP Controller’s **ResumeTraffic**
3161 command.
3162
3163 R-83146 The xNF **MUST** support ONAP Controller’s **StopApplication**
3164 command.
3165
3166 R-82811 The xNF **MUST** support ONAP Controller’s **StartApplication**
3167 command.
3168
3169 R-19922 The xNF **MUST** support ONAP Controller’s **UpgradePrecheck**
3170 command.
3171
3172 R-49466 The xNF **MUST** support ONAP Controller’s **UpgradeSoftware**
3173 command.
3174
3175 R-45856 The xNF **MUST** support ONAP Controller’s **UpgradePostCheck**
3176 command.
3177
3178 R-97343 The xNF **MUST** support ONAP Controller’s **UpgradeBackup**
3179 command.
3180
3181 R-65641 The xNF **MUST** support ONAP Controller’s **UpgradeBackOut**
3182 command.
3183
3184 R-11790 The VNF **MUST** support ONAP Controller’s
3185 **Restart (stop/start or reboot)** command.
3186
3187 R-56218 The VNF **MUST** support ONAP Controller’s Migrate command that
3188 moves container (VM) from a live Physical Server / Compute Node to
3189 another live Physical Server / Compute Node.
3190
3191 R-38001 The VNF MUST support ONAP Controller’s **Rebuild** command.
3192
3193 R-76901 VNF MUST support a container rebuild mechanism based on existing
3194 image (e.g. Glance image in Openstack environment) or a snapshot.
3195
3196 R-41430 The xNF **MUST** support ONAP Controller’s **HealthCheck**
3197 command.
3198
3199 R-88026 The xNF **MUST** include a NETCONF server enabling
3200 runtime configuration and lifecycle management capabilities.
3201
3202 R-95950 The xNF **MUST** provide a NETCONF interface fully defined
3203 by supplied YANG models for the embedded NETCONF server.
3204
3205 R-73468 The xNF **MUST** allow the NETCONF server connection
3206 parameters to be configurable during virtual machine instantiation
3207 through Heat templates where SSH keys, usernames, passwords, SSH
3208 service and SSH port numbers are Heat template parameters.
3209
3210 R-90007 The xNF **MUST** implement the protocol operation:
3211 **close-session()**- Gracefully close the current session.
3212
3213 R-70496 The xNF **MUST** implement the protocol operation:
3214 **commit(confirmed, confirm-timeout)** - Commit candidate
3215 configuration datastore to the running configuration.
3216
3217 R-18733 The xNF **MUST** implement the protocol operation:
3218 **discard-changes()** - Revert the candidate configuration
3219 datastore to the running configuration.
3220
3221 R-44281 The xNF **MUST** implement the protocol operation:
3222 **edit-config(target, default-operation, test-option, error-option,
3223 config)** - Edit the target configuration datastore by merging,
3224 replacing, creating, or deleting new config elements.
3225
3226 R-60106 The xNF **MUST** implement the protocol operation:
3227 **get(filter)** - Retrieve (a filtered subset of) the running
3228 configuration and device state information. This should include
3229 the list of xNF supported schemas.
3230
3231 R-29488 The xNF **MUST** implement the protocol operation:
3232 **get-config(source, filter)** - Retrieve a (filtered subset of
3233 a) configuration from the configuration datastore source.
3234
3235 R-11235 The xNF **MUST** implement the protocol operation:
3236 **kill-session(session)** - Force the termination of **session**.
3237
3238 R-02597 The xNF **MUST** implement the protocol operation:
3239 **lock(target)** - Lock the configuration datastore target.
3240
3241 R-96554 The xNF **MUST** implement the protocol operation:
3242 **unlock(target)** - Unlock the configuration datastore target.
3243
3244 R-29324 The xNF **SHOULD** implement the protocol operation:
3245 **copy-config(target, source) -** Copy the content of the
3246 configuration datastore source to the configuration datastore target.
3247
3248 R-88031 The xNF **SHOULD** implement the protocol operation:
3249 **delete-config(target) -** Delete the named configuration
3250 datastore target.
3251
3252 R-97529 The xNF **SHOULD** implement the protocol operation:
3253 **get-schema(identifier, version, format) -** Retrieve the YANG schema.
3254
3255 R-62468 The xNF **MUST** allow all configuration data to be
3256 edited through a NETCONF <edit-config> operation. Proprietary
3257 NETCONF RPCs that make configuration changes are not sufficient.
3258
3259 R-01382 The xNF **MUST** allow the entire configuration of the
3260 xNF to be retrieved via NETCONF's <get-config> and <edit-config>,
3261 independently of whether it was configured via NETCONF or other
3262 mechanisms.
3263
3264 R-28756 The xNF **MUST** support **:partial-lock** and
3265 **:partial-unlock** capabilities, defined in RFC 5717. This
3266 allows multiple independent clients to each write to a different
3267 part of the <running> configuration at the same time.
3268
3269 R-83873 The xNF **MUST** support **:rollback-on-error** value for
3270 the <error-option> parameter to the <edit-config> operation. If any
3271 error occurs during the requested edit operation, then the target
3272 database (usually the running configuration) will be left unaffected.
3273 This provides an 'all-or-nothing' edit mode for a single <edit-config>
3274 request.
3275
3276 R-68990 The xNF **MUST** support the **:startup** capability. It
3277 will allow the running configuration to be copied to this special
3278 database. It can also be locked and unlocked.
3279
3280 R-68200 The xNF **MUST** support the **:url** value to specify
3281 protocol operation source and target parameters. The capability URI
3282 for this feature will indicate which schemes (e.g., file, https, sftp)
3283 that the server supports within a particular URL value. The 'file'
3284 scheme allows for editable local configuration databases. The other
3285 schemes allow for remote storage of configuration databases.
3286
3287 R-20353 The xNF **MUST** implement both **:candidate** and
3288 **:writable-running** capabilities. When both **:candidate** and
3289 **:writable-running** are provided then two locks should be supported.
3290
3291 R-11499 The xNF **MUST** fully support the XPath 1.0 specification
3292 for filtered retrieval of configuration and other database contents.
3293 The 'type' attribute within the <filter> parameter for <get> and
3294 <get-config> operations may be set to 'xpath'. The 'select' attribute
3295 (which contains the XPath expression) will also be supported by the
3296 server. A server may support partial XPath retrieval filtering, but
3297 it cannot advertise the **:xpath** capability unless the entire XPath
3298 1.0 specification is supported.
3299
3300 R-83790 The xNF **MUST** implement the **:validate** capability
3301
3302 R-49145 The xNF **MUST** implement **:confirmed-commit** If
3303 **:candidate** is supported.
3304
3305 R-58358 The xNF **MUST** implement the **:with-defaults** capability
3306 [RFC6243].
3307
3308 R-59610 The xNF **MUST** implement the data model discovery and
3309 download as defined in [RFC6022].
3310
3311 R-93443 The xNF **MUST** define all data models in YANG [RFC6020],
3312 and the mapping to NETCONF shall follow the rules defined in this RFC.
3313
3314 R-26115 The xNF **MUST** follow the data model upgrade rules defined
3315 in [RFC6020] section 10. All deviations from section 10 rules shall
3316 be handled by a built-in automatic upgrade mechanism.
3317
3318 R-10716 The xNF **MUST** support parallel and simultaneous
3319 configuration of separate objects within itself.
3320
3321 R-29495 The xNF **MUST** support locking if a common object is
3322 being manipulated by two simultaneous NETCONF configuration operations
3323 on the same xNF within the context of the same writable running data
3324 store (e.g., if an interface parameter is being configured then it
3325 should be locked out for configuration by a simultaneous configuration
3326 operation on that same interface parameter).
3327
3328 R-53015 The xNF **MUST** apply locking based on the sequence of
3329 NETCONF operations, with the first configuration operation locking
3330 out all others until completed.
3331
3332 R-02616 The xNF **MUST** permit locking at the finest granularity
3333 if a xNF needs to lock an object for configuration to avoid blocking
3334 simultaneous configuration operations on unrelated objects (e.g., BGP
3335 configuration should not be locked out if an interface is being
3336 configured or entire Interface configuration should not be locked out
3337 if a non-overlapping parameter on the interface is being configured).
3338
3339 R-41829 The xNF **MUST** be able to specify the granularity of the
3340 lock via a restricted or full XPath expression.
3341
3342 R-66793 The xNF **MUST** guarantee the xNF configuration integrity
3343 for all simultaneous configuration operations (e.g., if a change is
3344 attempted to the BUM filter rate from multiple interfaces on the same
3345 EVC, then they need to be sequenced in the xNF without locking either
3346 configuration method out).
3347
3348 R-54190 The xNF **MUST** release locks to prevent permanent lock-outs
3349 when/if a session applying the lock is terminated (e.g., SSH session
3350 is terminated).
3351
3352 R-03465 The xNF **MUST** release locks to prevent permanent lock-outs
3353 when the corresponding <partial-unlock> operation succeeds.
3354
3355 R-63935 The xNF **MUST** release locks to prevent permanent lock-outs
3356 when a user configured timer has expired forcing the NETCONF SSH Session
3357 termination (i.e., product must expose a configuration knob for a user
3358 setting of a lock expiration timer)
3359
3360 R-10173 The xNF **MUST** allow another NETCONF session to be able to
3361 initiate the release of the lock by killing the session owning the lock,
3362 using the <kill-session> operation to guard against hung NETCONF sessions.
3363
3364 R-88899 The xNF **MUST** support simultaneous <commit> operations
3365 within the context of this locking requirements framework.
3366
3367 R-07545 The xNF **MUST** support all operations, administration and
3368 management (OAM) functions available from the supplier for xNFs using
3369 the supplied YANG code and associated NETCONF servers.
3370
3371 R-60656 The xNF **MUST** support sub tree filtering.
3372
3373 R-80898 The xNF **MUST** support heartbeat via a <get> with null filter.
3374
3375 R-25238 The xNF PACKAGE **MUST** validated YANG code using the open
3376 source pyang [3]_ program using the following commands:
3377
3378 R-63953 The xNF **MUST** have the echo command return a zero value
3379 otherwise the validation has failed
3380
3381 R-26508 The xNF **MUST** support a NETCONF server that can be mounted on
3382 OpenDaylight (client) and perform the operations of: modify, update,
3383 change, rollback configurations using each configuration data element,
3384 query each state (non-configuration) data element, execute each YANG
3385 RPC, and receive data through each notification statement.
3386
3387 R-28545 The xNF **MUST** conform its YANG model to RFC 6060,
3388 “YANG - A Data Modeling Language for the Network Configuration
3389 Protocol (NETCONF)”
3390
3391 R-22700 The xNF **MUST** conform its YANG model to RFC 6470,
3392 “NETCONF Base Notifications”.
3393
3394 R-10353 The xNF **MUST** conform its YANG model to RFC 6244,
3395 “An Architecture for Network Management Using NETCONF and YANG”.
3396
3397 R-53317 The xNF **MUST** conform its YANG model to RFC 6087,
3398 “Guidelines for Authors and Reviewers of YANG Data Model Documents”.
3399
3400 R-33955 The xNF **SHOULD** conform its YANG model to RFC 6991,
3401 “Common YANG Data Types”.
3402
3403 R-22946 The xNF **SHOULD** conform its YANG model to RFC 6536,
3404 “NETCONF Access Control Model”.
3405
3406 R-10129 The xNF **SHOULD** conform its YANG model to RFC 7223,
3407 “A YANG Data Model for Interface Management”.
3408
3409 R-12271 The xNF **SHOULD** conform its YANG model to RFC 7223,
3410 “IANA Interface Type YANG Module”.
3411
3412 R-49036 The xNF **SHOULD** conform its YANG model to RFC 7277,
3413 “A YANG Data Model for IP Management”.
3414
3415 R-87564 The xNF **SHOULD** conform its YANG model to RFC 7317,
3416 “A YANG Data Model for System Management”.
3417
3418 R-24269 The xNF **SHOULD** conform its YANG model to RFC 7407,
3419 “A YANG Data Model for SNMP Configuration”, if Netconf used to
3420 configure SNMP engine.
3421
3422 R-33946 The xNF **MUST** conform to the NETCONF RFC 4741,
3423 “NETCONF Configuration Protocol”.
3424
3425 R-04158 The xNF **MUST** conform to the NETCONF RFC 4742,
3426 “Using the NETCONF Configuration Protocol over Secure Shell (SSH)”.
3427
3428 R-13800 The xNF **MUST** conform to the NETCONF RFC 5277,
3429 “NETCONF Event Notification”.
3430
3431 R-01334 The xNF **MUST** conform to the NETCONF RFC 5717,
3432 “Partial Lock Remote Procedure Call”.
3433
3434 R-08134 The xNF **MUST** conform to the NETCONF RFC 6241,
3435 “NETCONF Configuration Protocol”.
3436
3437 R-78282 The xNF **MUST** conform to the NETCONF RFC 6242,
3438 “Using the Network Configuration Protocol over Secure Shell”.
3439
3440 R-31809 The xNF **MUST** support the HealthCheck RPC. The HealthCheck
3441 RPC executes a xNF Provider-defined xNF HealthCheck over the scope of
3442 the entire xNF (e.g., if there are multiple VNFCs, then run a health check,
3443 as appropriate, for all VNFCs). It returns a 200 OK if the test completes.
3444 A JSON object is returned indicating state (healthy, unhealthy), scope
3445 identifier, time-stamp and one or more blocks containing info and fault
3446 information. If the xNF is unable to run the HealthCheck, return a
3447 standard http error code and message.
3448
3449 R-79224 The xNF **MUST** have the chef-client be preloaded with
3450 validator keys and configuration to register with the designated
3451 Chef Server as part of the installation process.
3452
3453 R-72184 The xNF **MUST** have routable FQDNs for all the endpoints
3454 (VMs) of a xNF that contain chef-clients which are used to register
3455 with the Chef Server.  As part of invoking xNF actions, ONAP will
3456 trigger push jobs against FQDNs of endpoints for a xNF, if required.
3457
3458 R-47068 The xNF **MAY** expose a single endpoint that is
3459 responsible for all functionality.
3460
3461 R-67114 The xNF **MUST** be installed with Chef-Client >= 12.0 and
3462 Chef push jobs client >= 2.0.
3463
3464 R-27310 The xNF Package **MUST** include all relevant Chef artifacts
3465 (roles/cookbooks/recipes) required to execute xNF actions requested by
3466 ONAP for loading on appropriate Chef Server.
3467
3468 R-26567 The xNF Package **MUST** include a run list of
3469 roles/cookbooks/recipes, for each supported xNF action, that will
3470 perform the desired xNF action in its entirety as specified by ONAP
3471 (see Section 7.c, ONAP Controller APIs and Behavior, for list of xNF
3472 actions and requirements), when triggered by a chef-client run list
3473 in JSON file.
3474
3475 R-98911 The xNF **MUST NOT** use any instance specific parameters
3476 for the xNF in roles/cookbooks/recipes invoked for a xNF action.
3477
3478 R-37929 The xNF **MUST** accept all necessary instance specific
3479 data from the environment or node object attributes for the xNF
3480 in roles/cookbooks/recipes invoked for a xNF action.
3481
3482 R-62170 The xNF **MUST** over-ride any default values for
3483 configurable parameters that can be set by ONAP in the roles,
3484 cookbooks and recipes.
3485
3486 R-78116 The xNF **MUST** update status on the Chef Server
3487 appropriately (e.g., via a fail or raise an exception) if the
3488 chef-client run encounters any critical errors/failures when
3489 executing a xNF action.
3490
3491 R-44013 The xNF **MUST** populate an attribute, defined as node
3492 [‘PushJobOutput’] with the desired output on all nodes in the push job
3493 that execute chef-client run if the xNF action requires the output of a
3494 chef-client run be made available (e.g., get running configuration).
3495
3496 R-30654 The xNF Package **MUST** have appropriate cookbooks that are
3497 designed to automatically ‘rollback’ to the original state in case of
3498 any errors for actions that change state of the xNF (e.g., configure).
3499
3500 R-65755 The xNF **SHOULD** support callback URLs to return information
3501 to ONAP upon completion of the chef-client run for any chef-client run
3502 associated with a xNF action.
3503
3504 R-15885 The xNF **MUST** Upon completion of the chef-client run,
3505 POST back on the callback URL, a JSON object as described in Table
3506 A2 if the chef-client run list includes a cookbook/recipe that is
3507 callback capable. Failure to POST on the Callback Url should not be
3508 considered a critical error. That is, if the chef-client successfully
3509 completes the xNF action, it should reflect this status on the Chef
3510 Server regardless of whether the Callback succeeded or not.
3511
3512 R-32217 The xNF **MUST** have routable FQDNs that are reachable via
3513 the Ansible Server for the endpoints (VMs) of a xNF on which playbooks
3514 will be executed. ONAP will initiate requests to the Ansible Server
3515 for invocation of playbooks against these end points [4]_.
3516
3517 R-54373 The xNF **MUST** have Python >= 2.6 on the endpoint VM(s)
3518 of a xNF on which an Ansible playbook will be executed.
3519
3520 R-35401 The xNF **MUST** support SSH and allow SSH access by the
3521 Ansible server for the endpoint VM(s) and comply with the Network
3522 Cloud Service Provider guidelines for authentication and access.
3523
3524 R-82018 The xNF **MUST** load the Ansible Server SSH public key onto xNF
3525 VM(s) as part of instantiation. This will allow the Ansible Server
3526 to authenticate to perform post-instantiation configuration without
3527 manual intervention and without requiring specific xNF login IDs
3528 and passwords.
3529
3530 R-92866 The xNF **MUST** include as part of post-instantiation configuration
3531 done by Ansible Playbooks the removal/update of the SSH public key from
3532 /root/.ssh/authorized_keys, and  update of SSH keys loaded through
3533 instantiation to support Ansible. This may include download and install of
3534 new SSH keys and new mechanized IDs.
3535
3536 R-91745 The xNF **MUST** update the Ansible Server and other entities
3537 storing and using the SSH keys for authentication when the SSH keys used
3538 by Ansible are regenerated/updated.
3539
3540 R-40293 The xNF **MUST** make available playbooks that conform
3541 to the ONAP requirement.
3542
3543 R-49396 The xNF **MUST** support each ONAP (APPC) xNF action by invocation
3544 of **one** playbook [7]_. The playbook will be responsible
3545 for executing all necessary tasks (as well as calling other playbooks)
3546 to complete the request.
3547
3548 R-33280 The xNF **MUST NOT** use any instance specific parameters
3549 in a playbook.
3550
3551 R-48698 The xNF **MUST** utilize information from key value pairs
3552 that will be provided by the Ansible Server as "extra-vars" during
3553 invocation to execute the desired xNF action. If the playbook requires
3554 files, they must also be supplied using the methodology detailed in
3555 the Ansible Server API, unless they are bundled with playbooks, example,
3556 generic templates.
3557
3558 R-43253 The xNF **MUST** use playbooks designed to allow Ansible
3559 Server to infer failure or success based on the “PLAY_RECAP” capability.
3560 NOTE: There are cases where playbooks need to interpret results of a task
3561 and then determine success or failure and return result accordingly
3562 (failure for failed tasks).
3563
3564 R-50252 The xNF **MUST** write to a specific one text files that
3565 will be retrieved and made available by the Ansible Server if, as part
3566 of a xNF action (e.g., audit), a playbook is required to return any
3567 xNF information. The text files must be written in the same directory as
3568 the one from which the playbook is being executed. A text file must be
3569 created for the xNF playbook run targets/affects, with the name
3570 ‘<VNFname>_results.txt’ into which any desired output from each
3571 respective VM/xNF must be written.
3572
3573 R-51442 The xNF **SHOULD** use playbooks that are designed to
3574 automatically ‘rollback’ to the original state in case of any errors
3575 for actions that change state of the xNF (e.g., configure).
3576
3577 R-58301 The xNF **SHOULD NOT** use playbooks that make requests to
3578 Cloud resources e.g. Openstack (nova, neutron, glance, heat, etc.);
3579 therefore, there is no use for Cloud specific variables like Openstack
3580 UUIDs in Ansible Playbooks.
3581
3582 R-02651 The xNF **SHOULD** use the Ansible backup feature to save a
3583 copy of configuration files before implementing changes to support
3584 operations such as backing out of software upgrades, configuration
3585 changes or other work as this will help backing out of configuration
3586 changes when needed.
3587
3588 R-43353 The xNF **MUST** return control from Ansible Playbooks only
3589 after tasks are fully complete, signaling that the playbook completed
3590 all tasks. When starting services, return control only after all services
3591 are up. This is critical for workflows where the next steps are dependent
3592
3593 R-51910 The xNF **MUST** provide all telemetry (e.g., fault event
3594 records, syslog records, performance records etc.) to ONAP using the
3595 model, format and mechanisms described in this section.
3596
3597 R-19624 The xNF **MUST** encode and serialize content delivered to
3598 ONAP using JSON (RFC 7159) plain text format. High-volume data is to
3599 be encoded and serialized using `Avro <http://avro.apache.org/>`_,
3600 where the Avro [6]_ data format are described using JSON.
3601
3602 Note:
3603
3604 - JSON plain text format is preferred for moderate volume data sets
3605   (option 1), as JSON has the advantage of having well-understood simple
3606   processing and being human-readable without additional decoding. Examples
3607   of moderate volume data sets include the fault alarms and performance
3608   alerts, heartbeat messages, measurements used for xNF scaling and syslogs.
3609 - Binary format using Avro is preferred for high volume data sets
3610   (option 2) such as mobility flow measurements and other high-volume
3611   streaming events (such as mobility signaling events or SIP signaling)
3612   or bulk data, as this will significantly reduce the volume of data
3613   to be transmitted. As of the date of this document, all events are
3614   reported using plain text JSON and REST.
3615 - Avro content is self-documented, using a JSON schema. The JSON schema is
3616   delivered along with the data content
3617   (http://avro.apache.org/docs/current/ ). This means the presence and
3618   position of data fields can be recognized automatically, as well as the
3619   data format, definition and other attributes. Avro content can be
3620   serialized as JSON tagged text or as binary. In binary format, the
3621   JSON schema is included as a separate data block, so the content is
3622   not tagged, further compressing the volume. For streaming data, Avro
3623   will read the schema when the stream is established and apply the
3624   schema to the received content.
3625
3626 R-98191 The xNF **MUST** vary the frequency that asynchronous data is
3627 delivered based on the content and how data may be aggregated or grouped
3628 together.
3629
3630 Note:
3631
3632 - For example, alarms and alerts are expected to be delivered as soon
3633   as they appear. In contrast, other content, such as performance
3634   measurements, KPIs or reported network signaling may have various ways
3635   of packaging and delivering content. Some content should be streamed
3636   immediately; or content may be monitored over a time interval, then packaged
3637   as collection of records and delivered as block; or data may be collected
3638   until a package of a certain size has been collected; or content may be
3639   summarized statistically over a time interval, or computed as a KPI, with
3640   the summary or KPI being delivered.
3641 - We expect the reporting frequency to be configurable depending
3642   on the virtual network function’s needs for management. For example,
3643   Service Provider may choose to vary the frequency of collection between
3644   normal and trouble-shooting scenarios.
3645 - Decisions about the frequency of data reporting will affect the
3646   size of delivered data sets, recommended delivery method, and how the
3647   data will be interpreted by ONAP. These considerations should not
3648   affect deserialization and decoding of the data, which will be guided
3649   by the accompanying JSON schema or GPB definition files.
3650
3651 R-88482 The xNF **SHOULD** use REST using HTTPS delivery of plain
3652 text JSON for moderate sized asynchronous data sets, and for high
3653 volume data sets when feasible.
3654
3655 R-84879 The xNF **MUST** have the capability of maintaining a primary
3656 and backup DNS name (URL) for connecting to ONAP collectors, with the
3657 ability to switch between addresses based on conditions defined by policy
3658 such as time-outs, and buffering to store messages until they can be
3659 delivered. At its discretion, the service provider may choose to populate
3660 only one collector address for a xNF. In this case, the network will
3661 promptly resolve connectivity problems caused by a collector or network
3662 failure transparently to the xNF.
3663
3664 R-81777 The xNF **MUST** be configured with initial address(es) to use
3665 at deployment time. Subsequently, address(es) may be changed through
3666 ONAP-defined policies delivered from ONAP to the xNF using PUTs to a
3667 RESTful API, in the same manner that other controls over data reporting
3668 will be controlled by policy.
3669
3670 R-08312 The xNF **MAY** use another option which is expected to include REST
3671 delivery of binary encoded data sets.
3672
3673 R-79412 The xNF **MAY** use another option which is expected to include TCP
3674 for high volume streaming asynchronous data sets and for other high volume
3675 data sets. TCP delivery can be used for either JSON or binary encoded data
3676 sets.
3677
3678 R-01033 The xNF **MAY** use another option which is expected to include SFTP
3679 for asynchronous bulk files, such as bulk files that contain large volumes of
3680 data collected over a long time interval or data collected across many xNFs.
3681 (Preferred is to reorganize the data into more frequent or more focused data
3682 sets, and deliver these by REST or TCP as appropriate.)
3683
3684 R-63229 The xNF **MAY** use another option which is expected to include REST
3685 for synchronous data, using RESTCONF (e.g., for xNF state polling).
3686
3687 R-03070 The xNF **MUST**, by ONAP Policy, provide the ONAP addresses
3688 as data destinations for each xNF, and may be changed by Policy while
3689 the xNF is in operation. We expect the xNF to be capable of redirecting
3690 traffic to changed destinations with no loss of data, for example from
3691 one REST URL to another, or from one TCP host and port to another.
3692
3693 R-06924 The xNF **MUST** deliver asynchronous data as data becomes
3694 available, or according to the configured frequency.
3695
3696 R-73285 The xNF **MUST** must encode, address and deliver the data
3697 as described in the previous paragraphs.
3698
3699 R-42140 The xNF **MUST** respond to data requests from ONAP as soon
3700 as those requests are received, as a synchronous response.
3701
3702 R-34660 The xNF **MUST** use the RESTCONF/NETCONF framework used by
3703 the ONAP configuration subsystem for synchronous communication.
3704
3705 R-86586 The xNF **MUST** use the YANG configuration models and RESTCONF
3706 [RFC8040] (https://tools.ietf.org/html/rfc8040).
3707
3708 R-11240 The xNF **MUST** respond with content encoded in JSON, as
3709 described in the RESTCONF specification. This way the encoding of a
3710 synchronous communication will be consistent with Avro.
3711
3712 R-70266 The xNF **MUST** respond to an ONAP request to deliver the
3713 current data for any of the record types defined in
3714 Event Records - Data Structure Description by returning the requested
3715 record, populated with the current field values. (Currently the defined
3716 record types include fault fields, mobile flow fields, measurements for
3717 xNF scaling fields, and syslog fields. Other record types will be added
3718 in the future as they become standardized and are made available.)
3719
3720 R-46290 The xNF **MUST** respond to an ONAP request to deliver granular
3721 data on device or subsystem status or performance, referencing the YANG
3722 configuration model for the xNF by returning the requested data elements.
3723
3724 R-43327 The xNF **SHOULD** use `Modeling JSON text with YANG
3725 <https://tools.ietf.org/html/rfc7951>`_, If YANG models need to be
3726 translated to and from JSON[RFC7951]. YANG configuration and content can
3727 be represented via JSON, consistent with Avro, as described in “Encoding
3728 and Serialization” section.
3729
3730 R-42366 The xNF **MUST** support secure connections and transports such as
3731 Transport Layer Security (TLS) protocol
3732 [`RFC5246 <https://tools.ietf.org/html/rfc5246>`_] and should adhere to
3733 the best current practices outlined in
3734 `RFC7525 <https://tools.ietf.org/html/rfc7525>`_.
3735
3736 R-44290 The xNF **MUST** control access to ONAP and to xNFs, and creation
3737 of connections, through secure credentials, log-on and exchange mechanisms.
3738
3739 R-47597 The xNF **MUST** carry data in motion only over secure connections.
3740
3741 R-68165 The xNF **MUST** encrypt any content containing Sensitive Personal
3742 Information (SPI) or certain proprietary data, in addition to applying the
3743 regular procedures for securing access and delivery.
3744
3745
3746 Ansible Playbook Examples
3747 -----------------------------------------------
3748
3749 The following sections contain examples of Ansible playbooks
3750 which follow the guidelines.
3751
3752 Guidelines for Playbooks to properly integrate with APPC
3753 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3754
3755 NOTE: To support concurrent requests to multiple VNF instances of same
3756 or different type, VNF hosts and other files with VNF specific default
3757 values are kept or created in separate directories.
3758
3759 Example of an Ansible command (after pwd) to run playbook again
3760 vfdb9904v VNF instance:
3761
3762 .. code-block:: none
3763
3764  $ pwd
3765  /storage/vfdb/V16.1/ansible/configure
3766  $ ansible-playbook -i ../inventory/vfdb9904vhosts site.yml --extra-vars "vnf_instance=vfdb9904v"
3767
3768  NOTE: To preserve Ansible inventory/group_vars capability, that makes
3769  group_vars contents global variables available to all playbooks, when they
3770  reside in the inventory directory, guidelines are being updated to name the
3771  VNF inventory hosts file as (a flat file) <VNFName>hosts, stored in the
3772  inventory directory, not a subdirectory under inventory. In the above
3773  example: vfdb9904vhosts (removed / VNF name and hosts vfdb9904/vhosts)
3774
3775 Example of corresponding APPC API Call from ONAP – Ansible Server
3776 Specifications:
3777
3778 An example of a curl request simulating a Rest API POST requesting execution
3779 of configure Playbook (using playbook relative path):
3780
3781 .. code-block:: none
3782
3783  curl -u APIUser:APIPassword -H "Content-type:application/json" -X POST
3784  -d '{"Id": "8412", "PlaybookName": "vfdb/V5.x.x/ansible/configure/site.yml",
3785  "Timeout":"600", "EnvParameters": { "vnf_instance": "vfdb9904v" }}'
3786  http://ansible.server.com:5000/Dispatch
3787
3788 Rest API GET request to obtain response/results for prior request
3789 (same Id as POST request above):
3790
3791 .. code-block:: none
3792
3793  curl -u APIUser:APIPassword -H 'Content-type: application/json' -X GET
3794  'http://ansible.server.com:5000/Dispatch/?Id=8412&Type=GetResult'
3795
3796 Comments:
3797
3798 -  An ID number is assigned to each request. This ID number is used to
3799    track request down to completion and provide status to APPC when
3800    requested.
3801
3802 -  Playbook Name relative path provided in the request as PlaybookName
3803
3804 -  Ansible Server Rest API is aware of playbook’s root directory which may
3805    vary from instance to instance or Ansible Server cluster to cluster.
3806
3807 Ansible Playbooks will use the VNF instance name (passed using
3808 --extra-vars "vnf\_instance=vfdb9904v") to identify other default values
3809 to run the playbook(s) against the target VNF instance. Same example as
3810 above:
3811
3812 .. code-block:: none
3813
3814  $ ansible-playbook -i ../inventory/vfdb9904vhosts site.yml --extra-vars "vnf_instance=vfdb9904v"
3815
3816 Each Ansible Server or cluster is assigned its own identification to be used
3817 to authenticate to VNF VMs using Ansible Server or cluster specific set of
3818 SSH keys that may be rotated regularly. Here hosts file, no longer referencing
3819 file with SSH key credentials, to run ansible-playbook listed in this example
3820 above (IP addresses were scrubbed):
3821
3822 .. code-block:: none
3823
3824  $ more ../inventory/vfdb9904v/hosts
3825  [host]
3826  localhost ansible_connection=local
3827
3828  [oam]
3829  1xx.2yy.zzz.109
3830  1xx.2yy.zzz.110
3831
3832  [rdb]
3833  1xx.2yy.zzz.105
3834  1xx.2yy.zzz.106
3835
3836 NOTE: APPC requests to run Playbooks/Cookbooks are specific to a VNF,
3837 but could be more limited to one VM or one type of VM by the request
3838 parameters. Actions that may impact a site (LCP), a service, or an
3839 entire platform must be orchestrated by MSO in order to execute requests
3840 via APPC which then invoke VNF level playbooks. Playbooks that impact
3841 more than a single VNF are not the current focus of these guidelines.
3842
3843 Since last release of these guidelines, based on recent learnings,
3844 moving VNF Type global variables under inventory/group_vars files, this
3845 way variables and respective values are available to all playbooks without
3846 being explicitly referenced though an include statement. Also creating
3847 templates that are VNF Type specific, but moving away from static files
3848 that are VNF instance specific, working to obtain VNF instance specific
3849 from other sources, inventory database, etc.
3850
3851 And here the scrubbed default arguments for this VNF instance(originated
3852 from previously re-factored playbooks now being phased out):
3853
3854 .. code-block:: none
3855
3856  vnf_instance=vfdb9904v
3857
3858  $ more ../vars/vfdb9904v/default_args.yml
3859  vm_config_oam_vnfc_name: vfdb9904vm001oam001
3860  vm_config_oam_hostname: vfdb9904vm001
3861  vm_config_oam_provider_ip_address: 1xx.2yy.zzz.109
3862  …
3863
3864 IMPORTANT: The APPC and default file attribute name for
3865 vm\_config\_oam\_vnfc\_name, as an example, is derived from vm\_config
3866 array structure (list) in the CSAR package ENV file, with dots replaced
3867 by underscore:
3868
3869 .. code-block:: none
3870
3871  vm_config:
3872
3873  oam: {vnfc_name: {{ vm_config_oam_vnfc_name }}, hostname: {{
3874  vm_config_oam_hostname }}, provider_ip_address: {{
3875  vm_config_oam_provider_ip_address }
3876  },
3877  …
3878
3879 Parameters like VNF names, VNFC names, OA&M IP addresses, after
3880 February, 2018 ONAP release, will be extracted from A&AI by APPC and
3881 then passed down to Ansible Server, as part of APPC request through REST
3882 API. In the meantime, VNF instance specific required values, will
3883 be stored on VNF instance directory, default arguments file and will be
3884 used as defaults. For parameterized playbooks attribute-value pairs
3885 passed down by APPC to Ansible Server always take precedence over
3886 template or VNF instance specific defaults stored in defaults file(s).
3887
3888 .. code-block:: none
3889
3890  $ pwd
3891  /storage/vfdb/latest/ansible
3892  Again, originated from previously re-factored playbooks now being phased out:
3893
3894  $ more vars/vfdb9904v/default_args.yml
3895
3896  vm_config_oam1_vnfc_name: vfdb9904vm001oam001
3897  vm_config_oam1_hostname: vfdb9904vm001
3898  vm_config_oam1_provider_ip_address: 1xx.2yy.zzz.109
3899
3900  vm_config_oam2_vnfc_name: vfdb9904vm002oam001
3901  vm_config_oam2_hostname: vfdb9904vm002
3902  vm_config_oam2_provider_ip_address: 1xx.2yy.zzz.110
3903
3904  vm_config_rdb1_vnfc_name: vfdb9904vm003rdb001
3905  vm_config_rdb1_hostname: vfdb9904vm003
3906  vm_config_rdb1_provider_ip_address: 1xx.2yy.zzz.105
3907
3908  vm_config_rdb2_vnfc_name: vfdb9904vm004rdb001
3909  vm_config_rdb2_hostname: vfdb9904vm004
3910  vm_config_rdb2_provider_ip_address: 1xx.2yy.zzz.106
3911
3912  vm_config_rdb3_vnfc_name: vfdb9904vm005rdb001
3913  vm_config_rdb3_hostname: vfdb9904vm005
3914  vm_config_rdb3_provider_ip_address: 1xx.2yy.zzz.xxx
3915
3916  vm_config_rdb4_vnfc_name: vfdb9904vm006rdb001
3917  vm_config_rdb4_hostname: vfdb9904vm006
3918  vm_config_rdb4_provider_ip_address: 1xx.2yy.zzz.yyy
3919
3920 One of the first tasks on the Ansible Playbooks is to combine the VNF
3921 type generic template, derived from ENV files in CSAR or other files,
3922 with these default values stored on the Ansible Server, together with
3923 the overriding parameters passed down from APPC, to create the VNF
3924 instance specific set of attribute-value pairs to be used for the run, in
3925 INI format. Here is an excerpt from such a file that should look
3926 somewhat similar to ENV files:
3927
3928 .. code-block:: none
3929
3930  $ more tmp/vfdb9904v/all.yml
3931
3932  deployment_prefix: vfdb9904v
3933  …
3934  timezone: Etc/UTC
3935  …
3936  template_version: '2014-10-16'
3937  stack_name: vfdb9904v
3938  c3dbtype: OAM
3939  stackName: vfdb9904v
3940  juno_base: true
3941  …
3942
3943 # logins list contain 'login name', 'login group', 'login password'
3944
3945 .. code-block:: none
3946
3947  logins:
3948  - { name: 'm99999', group: 'm99999', password: 'abcdefgha' }
3949  - { name: 'gsuser', group: 'gsuser', password: ' abcdefgha' }
3950  - { name: 'peruser', group: 'peruser', password: ' abcdefgha' }
3951  - { name: 'dbuser', group: 'dbuser', password: ' abcdefgha' }
3952
3953 NOTE: Arguments passed by APPC to Ansible Server to run a playbook take
3954 precedence over any defaults stored in Ansible Server.
3955
3956 Ansible Playbooks – Notes On Artifacts Required to Run Playbooks
3957 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
3958
3959 Inventory hosts file: should be VNF instance specific.
3960
3961 Default variables: should be VNF instance specific.
3962
3963 NOTE: Some playbooks may rely on inventory directory contents to target
3964 the collection of VNFs in the Services Platform supported through
3965 Ansible.
3966
3967 Playbooks and paths to referenced files: Playbooks shall not use
3968 absolute paths in include or import entries (variables or playbooks) or
3969 other types of references.
3970
3971 For this to work properly, when running playbooks, the directory where
3972 the main playbook resides shall be the current directory.
3973
3974 Playbook imports, when used, shall use paths relative to the main
3975 playbook directory.
3976
3977 Root directory named ansible - Any files provided with playbooks,
3978 included, imported, or referenced by playbooks, shall reside under the ansible
3979 playbooks (root) directory, containing all playbook subdirectories, or
3980 below that ansible root directory, in other subdirectories to support
3981 on-boarding and portability of VNF collection of playbooks and related
3982 artifacts.
3983
3984 Designing for a shared environment, concurrently running playbooks,
3985 targeting multiple VNF instances – inventory hosts file:
3986
3987 To avoid inventory hosts file overwrites or collisions between multiple
3988 concurrently running VNF instance requests, chosen approach is for each
3989 VNF instance hosts file, to be stored under the Ansible Server Playbooks
3990 root directory, under the inventory subdirectory, and under a directory
3991 for each VNF instance, named after the VNF instance, as follows:
3992
3993 ansible/inventory/<VNF\_instance\_name>/hosts
3994
3995 Example of inventory hosts file path, relative to ansible playbooks root
3996 directory (playbooks\_dir): ansible/inventory/vnfx0001v/hosts
3997
3998 **Designing for a shared environment, concurrently running multiple playbooks,
3999 targeting multiple VNF instances – default argument variables for
4000 specific VNF instances:**
4001
4002 Files containing attribute name value pairs (variable name and default
4003 values), referenced/included by playbooks – Files containing VNF
4004 instance specific default values – in a later APPC release, some or all
4005 the default attribute value pairs contained in the defaults file, may be
4006 passed down by APPC, to the Ansible Server, overriding these defaults:
4007
4008 VNF instance specific files
4009 referenced/included by playbooks, containing default values, example,
4010 default\_args.yml, shall be stored under a directory with VNF instance
4011 name on the path.
4012
4013 Example:
4014
4015 ansible/vars/<VNF\_instance\_name>/default\_args.yml
4016
4017 Example of include statement:
4018
4019 - include_vars: ../vars/{{ vnf_instance }}/default_args.yml
4020
4021 Again, this was originated from previously re-factored playbooks, now being
4022 phased out, to move away from having to create VNF instance specific files
4023 with VNF instance default variables. Moving to extract these values from
4024 inventory databases and provide them to Ansible Server as part of the APPC
4025 request, but may be used in a transition from having everything stored in the
4026 Ansible Server to APPC extracting and providing VNF instance specific
4027 attribute-value pairs to the Ansible Server as part of the request.
4028
4029 Files containing attribute name value pairs (variable name and default
4030 values), referenced/included by playbooks – created dynamically by
4031 playbooks:
4032
4033 To avoid
4034 overwrites or collisions of multiple concurrently running VNF instance
4035 requests, files created dynamically by playbooks, based on VNF generic
4036 templates, combined with default values and arguments passed down by
4037 APPC (as part of the request), shall be stored under a directory with
4038 VNF instance name on the path.
4039
4040 Example:
4041
4042 tmp/<VNF\_instance\_name>/all.yml
4043
4044 Files containing site specific (Openstack location non-instance
4045 specific) attribute name value pairs, like NTP server and DNS server’s
4046 IP addresses and other parameters, referenced/included by playbooks, not
4047 VNF specific – Could/should be stored under inventory/group_vars directory,
4048 in a subdirectory named after the string used to identify the site (nyc1,
4049 lax2,…).
4050
4051 Examples:
4052
4053 ansible/inventory/group_vars/<Site>
4054
4055 ansible/inventory/group_vars/nyc1
4056
4057 ansible/inventory/group_vars/lax2
4058
4059
4060 \ **Ansible Server Design - Directory Structure**
4061
4062 To help understanding the contents of this section, here are few basic
4063 definitions:
4064
4065 **VNF type a.k.a VNF Function Code** - Based on current Services
4066 Platform naming convention, each Virtual Network Function is assigned a
4067 4 character string (example vfdb), these are 4 characters in
4068 the VNF instance name, followed by (4) numbers, ending in a "v", but the
4069 naming convention is evolving. VNF instance name in
4070 some cases corresponds to the stack name for the VNF when VNF instance
4071 is built based on a single module, single stack. Example of VNF instance
4072 name: vfdb9904v. All VNF performing this function, running the same
4073 software, coming from the same VNF provider will have the same 4
4074 characters in the VNF instance name, in this example, vfdb.
4075
4076 NOTE: New naming convention includes a prefix indicating geographical
4077 location where VNF is instantiated.
4078
4079 VNF type, determined through these 4 characters, is also known as VNF
4080 Function Code and is assigned by inventory team. All Services Platform
4081 VNF Function Codes can be found in inventory database and/or A&AI as
4082 well as Services Platform Network Design Documents.
4083
4084 Version – As in VNF software version is the release of the software
4085 running on the VNF for which the playbooks were developed. VNF
4086 configuration steps may change from release to release and this
4087 <Version> in the path will allow the Ansible Server to host playbooks
4088 associated with each software release. And run the playbooks that match
4089 the software release running on each VNF instance. APPC initially will
4090 not support playbook versioning only latest playbook is supported or a hard
4091 coded version that later should become a variable to allow multiple
4092 actively in use playbook versions according to VNF release.
4093
4094 Playbook Function - Is a name associated with a life cycle management
4095 task(s) performed by the playbook(s) stored in this directory. It should
4096 clearly identify the type of action(s) performed by the main playbook
4097 and possibly other playbooks stored in this same directory. Ideally,
4098 playbook function would match APPC corresponding command or function that
4099 is performed by the main playbook in this directory. Following Ansible naming
4100 standards main playbook is usually named site.yml. There can be other
4101 playbooks on the same directory that use a subset of the roles used by the
4102 main playbook site.yml. Examples of Playbook Function directory names:
4103
4104 -  configure – Contains post-instantiation (bulk) configuration
4105    playbooks, roles,…
4106
4107 -  healthcheck – Contains VNF health check playbook(s), roles,…
4108
4109 -  stop – Contains VNF application stop  (stopApplication) playbook(s),
4110    roles,…
4111
4112 -  start – Contains VNF application start (startApplication) playbook(s),
4113    roles,…
4114
4115 Directory structure to allow hosting multiple version sets of playbooks,
4116 for the same VNF type, to be hosted in the runtime environment on the
4117 Ansible Servers. Generic directory structure:
4118
4119 Ansible Playbooks – Function directory and main playbook:
4120
4121 .. code-block:: none
4122
4123  <VNF type>/<Version>/ansible/<Playbook Function>/site.yml
4124
4125 Example – Post-instantiation (bulk) configuration –APPC Function -
4126 Configure:
4127
4128 .. code-block:: none
4129
4130  <VNF type>/<Version>/ansible/configure/site.yml
4131
4132 Example – Post-instantiation (bulk) configuration –APPC Function
4133 – Configure – VNF software version 16.1:
4134
4135 .. code-block:: none
4136
4137  vfdb/V16.1/ansible/configure/site.yml
4138
4139 Example – Health-check –APPC Function - HealthCheck:
4140
4141 .. code-block:: none
4142
4143  <VNF type>/<Version>/ansible/healthcheck/site.yml
4144
4145 OR (Function directory name does not need to match APPC function name)
4146
4147 .. code-block:: none
4148
4149  <VNF type>/<Version>/ansible/check/site.yml
4150
4151 Ansible Directories for other artifacts – VNF inventory hosts file -
4152 Required:
4153
4154 .. code-block:: none
4155
4156  <VNF type>/<Version>/ansible/inventory/<VNF instance name>hosts
4157
4158 Ansible Directories for other artifacts – VNF instance specific default
4159 arguments – Optional:
4160
4161 .. code-block:: none
4162
4163  <VNF type>/<Version>/ansible/group_vars/<VNF instance name>
4164
4165 NOTE: This requirement is expected to be deprecated all or in part in the
4166 future, for automated actions, once APPC can pass down all VNF specific
4167 arguments for each action. Requirement remains while manual actions are
4168 to be supported. Other automated inventory management mechanisms may be
4169 considered in the future, Ansible supports many automated inventory
4170 management mechanisms/tools/solutions.
4171
4172 Ansible Directories for other artifacts – VNF (special) groups –
4173 Optional:
4174
4175 .. code-block:: none
4176
4177  <VNF type>/<Version>/ansible/inventory/group_vars/<VNF instance name>
4178
4179 NOTE: Default groups will be created based on VNFC type, 3 characters,
4180 on VNFC name. Example: “oam”, “rdb”, “dbs”, “man”, “iox”, “app”,…
4181
4182 Ansible Directories for other artifacts – VNF (special) other files –
4183 Optional – Example – License file:
4184
4185 .. code-block:: none
4186
4187  <VNF type>/<Version>/ansible/<Other directory(s)>
4188
4189 CAUTION: On referenced files used/required by playbooks.
4190
4191 -  To avoid missing files, during on-boarding or uploading of Ansible
4192    Playbooks and related artifacts, all permanent files (not generated
4193    by playbooks as part of execution), required to run any playbook,
4194    shall reside under the ansible root directory or below on other
4195    subdirectories.
4196
4197 -  Any references to files, on includes or other playbook entries, shall
4198    use relative paths.
4199
4200 -  This is the ansible (root) directory referenced on this
4201    note (Ansible Server mount point not included):
4202
4203 .. code-block:: none
4204
4205      <VNF type>/<Version>/ansible/
4206
4207 There will be a soft link to the latest set of Ansible Playbooks for
4208 each VNF type.
4209
4210 VNF type directories use A&AI inventory VNF function code. Ansible
4211 Playbooks will be stored on a Cinder Volume mounted on the Ansible
4212 Servers as /storage. Example:
4213
4214 /storage/vfdb/latest/ansible – This soft link point to the latest set of
4215 playbooks (or the only set)
4216
4217 /storage/vfdb/V16.1/ansible – Root directory for database VNF Ansible
4218 Playbooks for release 16.1
4219
4220 CAUTION: To support this directory structure as the repository to store
4221 Ansible Playbooks run by APPC, APPC API in the Ansible Server side needs
4222 to be configured to run playbooks from directory, not MySQL database.
4223
4224 Ansible Server HTTP will be configured to support APPC REST API requests
4225 to run playbooks as needed, against specific VNF instances, or specific
4226 VM(s) as specified in the request.
4227
4228 ONAP APPC REST API to Ansible Server is documented separately and can be
4229 found under ONAP (onap.org).
4230
4231 **Ansible Server – On-boarding Ansible Playbooks**
4232
4233 Once playbooks are developed following the guidelines listed in prior
4234 section(s), playbooks need to be on-boarded onto Ansible Server(s). In
4235 the future, they’ll be on-boarded and distributed through ONAP, at least
4236 that is the proposed plan, but for now they need to be uploaded
4237 manually. There is work in progress to use a Git as the playbook
4238 repository to store and track playbooks by version, version control.
4239
4240 These are the basic steps to on-board playbooks manually onto the
4241 Ansible Server.
4242
4243 1. Upload CSAR, zip, or tar file containing VNF playbooks and related
4244    artifacts.
4245
4246 2. Create full directory (using –p option below) to store Ansible
4247    Playbooks and other artifacts under /storage (or other configured)
4248    file system.
4249
4250    a. Includes VNF type using VNF function code 4 characters under
4251       /storage.
4252
4253    b. Includes VNF “Version” directory as part of the path to store
4254       playbooks for this VNF version.
4255
4256    c. Include generic ansible root directory. Creating full directory
4257       path as an example:
4258
4259 .. code-block:: none
4260
4261      $ mkdir –p /storage/vfdb/V16.1/ansible**/**
4262
4263 3. Make this directory (VNF ansible root directory) current directory
4264    for next few steps:
4265
4266 .. code-block:: none
4267
4268      cd /storage/vfdb/V16.1/ansible/
4269
4270 4. Extract Ansible Playbooks and other Ansible artifacts associated with
4271    the playbooks onto the ansible directory. Command depends on the type
4272    of file uploaded, examples would be:
4273
4274 .. code-block:: none
4275
4276      tar xvf ..
4277      unzip …
4278      bunzip ..
4279
4280 5. Create VNF inventory hosts file with all VMs and
4281    OA&M IP addresses for all VNF instances with known OA&M IP addresses
4282    for respective VMs, example:
4283
4284 .. code-block:: none
4285
4286     $ mkdir inventory
4287
4288     $ touch inventory/vfdb9904vhosts
4289
4290     $ cat inventory/vfdb9904vhosts
4291
4292     [host]
4293     localhost ansible\_connection=local
4294
4295     [oam]
4296     1xx.2yy.zzz.109
4297     1xx.2yy.zzz.110
4298
4299     [rdb]
4300     1xx.2yy.zzz.105
4301     1xx.2yy.zzz.106
4302
4303 6. (Optional, being deprecated) Create directory to hold default
4304 arguments for each VNF instance,
4305 example:
4306
4307 .. code-block:: none
4308
4309    $ mkdir –p vars/vfdb9904v
4310    $ touch vars/vfdb9904v/default\_args.yml
4311    $ cat vars/vfdb9904v/default\_args.yml
4312    vm\_config\_oam1\_vnfc\_name: vfdb9904vm001oam001
4313    vm\_config\_oam1\_hostname: vfdb9904vm001
4314    vm\_config\_oam1\_provider\_ip\_address: 1xx.2yy.zzz.109
4315
4316    vm\_config\_oam2\_vnfc\_name: vfdb9904vm002oam001
4317    vm\_config\_oam2\_hostname: vfdb9904vm002
4318    vm\_config\_oam2\_provider\_ip\_address: 1xx.2yy.zzz.110
4319
4320    vm\_config\_rdb1\_vnfc\_name: vfdb9904vm003rdb001
4321    vm\_config\_rdb1\_hostname: vfdb9904vm003
4322    vm\_config\_rdb1\_provider\_ip\_address: 1xx.2yy.zzz.105
4323
4324    vm\_config\_rdb2\_vnfc\_name: vfdb9904vm004rdb001
4325    vm\_config\_rdb2\_hostname: vfdb9904vm004
4326    vm\_config\_rdb2\_provider\_ip\_address: 1xx.2yy.zzz.106
4327
4328    vm\_config\_rdb3\_vnfc\_name: vfdb9904vm005rdb001
4329    vm\_config\_rdb3\_hostname: vfdb9904vm005
4330    vm\_config\_rdb3\_provider\_ip\_address: 1xx.2yy.zzz.xxx
4331
4332    vm\_config\_rdb4\_vnfc\_name: vfdb9904vm006rdb001
4333    vm\_config\_rdb4\_hostname: vfdb9904vm006
4334    vm\_config\_rdb4\_provider\_ip\_address: 1xx.2yy.zzz.yyy
4335
4336 NOTE: Please note names in this file shall use underscore “\_” not dots
4337 “.” or dashes “-“.
4338
4339 7. Perform some basic playbook validation running with “--check” option,
4340    running dummy playbooks or other.
4341
4342 NOTE: Each Ansible Server or cluster of Ansible Server will have its own
4343 credentials to authenticate to VNF VMs. Ansible Server SSH public key(s)
4344 have to be loaded onto VNF VMs during instantiation or other way before
4345 Ansible Server can access VNF VMs and run playbooks. HOT templates used
4346 by heat to instantiate VNFs to be configured by these Ansible Servers running
4347 playbooks shall include the same SSH public key and load them onto VNF VM(s)
4348 as part of instantiation.
4349
4350 Other non-vendor specific playbook tasks need to be incorporated in overall
4351 post-instantiation configuration playbook. Alternative is for company
4352 developed playbooks to be uploaded and executed, after VNF vendor provided
4353 playbooks are run.
4354
4355 **A couple of playbooks used for proof-of-concept testing as examples:**
4356
4357 UpgradePreCheck:
4358
4359 .. code-block:: none
4360
4361  $ pwd
4362  /storage/comx/V5.3.1.3/ansible/upgradeprecheck
4363
4364  $ more site.yml
4365  ---
4366
4367  - import_playbook: ../common/create_vars.yml
4368  - import_playbook: ../common/create_hosts.yml
4369
4370  - name: upgrade software pre check
4371    hosts: oam,dbs,cpm
4372    gather_facts: no
4373    become: true
4374    become_method: sudo
4375    become_user: root
4376    max_fail_percentage: 0
4377    any_errors_fatal: True
4378    roles:
4379      - precheck
4380    tags: precheck
4381
4382  $ more roles/precheck/tasks/main.yml
4383  ---
4384
4385  - include_vars: /tmp/{{ vnf_instance }}/all.yml
4386
4387  - name: get software version installed on vnf
4388    shell: grep "^SW_VERSION =" /vendor/software/config/param_common.cfg | grep -c "{{ existing_software_version }}"
4389    register: version_line
4390    ignore_errors: yes
4391
4392  - name: send msg when matches expected version
4393    debug:  msg="*** OK *** VNF software release matches (old) release to be upgraded."
4394     verbosity=1
4395    when: version_line.stdout.find('1') != -1
4396
4397  # send warning message and failure when release is not a match
4398  - fail:
4399      msg="*** WARNING *** VNF software release does not match expected (pre-upgrade) release."
4400    when: (version_line | failed) or version_line.stdout.find('1') == -1
4401
4402
4403 UpgradePostCheck:
4404
4405 .. code-block:: none
4406
4407  $ pwd
4408  /storage/comx/V5.3.1.3/ansible/upgradepostcheck
4409
4410  $ more site.yml
4411  ---
4412
4413  - import_playbook: ../common/create_vars.yml
4414  - import_playbook: ../common/create_hosts.yml
4415
4416  - name: upgrade software post check
4417    hosts: oam,dbs,cpm
4418    gather_facts: no
4419    become: true
4420    become_method: sudo
4421    become_user: root
4422    max_fail_percentage: 0
4423    any_errors_fatal: True
4424    roles:
4425      - postcheck
4426    tags: postcheck
4427
4428  $ more roles/postcheck/tasks/main.yml
4429  ---
4430
4431  - include_vars: /tmp/{{ vnf_instance }}/all.yml
4432
4433  - name: get post upgrade software version installed on vnf
4434    shell: grep "^SW_VERSION =" /vendor/software/config/param_common.cfg | grep -c "{{ new_software_version }}"
4435    register: version_line
4436    ignore_errors: yes
4437
4438  - name: send msg when matches expected version
4439    debug:  msg="*** OK *** VNF software release matches new release."
4440      verbosity=1
4441    when: version_line.stdout.find('1') != -1
4442
4443  # send warning message and failure when release is not a match
4444  - fail:
4445      msg="*** WARNING *** VNF software release does not match expected new (post-upgrade) release."
4446    when: (version_line | failed) or version_line.stdout.find('1') == -1
4447
4448
4449 .. [1]
4450    The “name” field is a mandatory field in a valid Chef Node Object
4451    JSON dictionary.
4452
4453 .. [2]
4454    Not currently supported in ONAP release 1
4455
4456 .. [3]
4457    https://github.com/mbj4668/pyang
4458
4459 .. [4]
4460    Upstream elements must provide the appropriate FQDN in the request to
4461    ONAP for the desired action.
4462
4463 .. [5]
4464    Refer to NCSP’s Network Cloud specification
4465
4466 .. [6]
4467    This option is not currently supported in ONAP and it is currently
4468    under consideration.
4469
4470 .. [7]
4471    Multiple ONAP actions may map to one playbook.
4472
4473