VNFRQTS - Adding tables into appendix
[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 representing a Chef Environment object. If the VNF action requires loading or modifying Chef environment attributes associated with the VNF, all the relevant information must be provided in this JSON dictionary in a structure that conforms to a Chef Environment Object.   | Optional    | Depends on VNF action.                                                                                                                  |
22 +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------+
23 | Node              | A JSON dictionary representing a Chef Node Object.                                                                                                                                                                                                                                                | Mandatory   |                                                                                                                                         |
24 |                   |                                                                                                                                                                                                                                                                                                   |             |                                                                                                                                         |
25 |                   | The Node JSON dictionary must include the run list to be triggered for the desired VNF action by the push job. It should also include any attributes that need to be configured on the Node Object as part of the VNF action.                                                                     |             |                                                                                                                                         |
26 +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------+
27 | NodeList          | Array of FQDNs that correspond to the endpoints (VMs) of a VNF registered with the Chef Server that need to trigger a chef-client run as part of the desired VNF action.                                                                                                                          | Mandatory   |                                                                                                                                         |
28 +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------+
29 | PushJobFlag       | This field indicates whether the VNF action requires a push Job. Push job object will be created by ONAP if required.                                                                                                                                                                             | Mandatory   | If set to “True”, ONAP will request a push job. Ignored otherwise.                                                                      |
30 +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------+
31 | CallbackCapable   | This field indicates if the chef-client run invoked by push job corresponding to the VNF action is capable of posting results on a callback URL.                                                                                                                                                  | Optional    | If Chef cookbook is callback capable, VNF owner is required to set it to “True”. Ignored otherwise.                                     |
32 +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------+
33 | GetOutputFlag     | Flag which indicates whether ONAP should retrieve output generated in a chef-client run from Node object attribute node[‘PushJobOutput’] for this VNF action (e.g., in Audit).                                                                                                                    | Mandatory   | ONAP will retrieve output from NodeObject attributes [‘PushJobOutput’] for all nodes in NodeList if set to “True”. Ignored otherwise.   |
34 +-------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-----------------------------------------------------------------------------------------------------------------------------------------+
35
36 Chef Template example:
37
38 .. code-block:: chef
39
40  “Environment”:{
41       "name": "HAR",
42       "description": "VNF Chef environment for HAR",
43       "json\_class": "Chef::Environment",
44       "chef\_type": "environment",
45       "default\_attributes": { },
46       "override\_attributes": {
47             “Retry\_Time”:”50”,
48             “MemCache”: “1024”,
49             “Database\_IP”:”10.10.1.5”
50       },
51  }
52  }
53  “Node”: {
54       “name” : “signal.network.com “
55       "chef\_type": "node",
56       "json\_class": "Chef::Node",
57       "attributes": {
58             “IPAddress1”: “192.168.1.2”,
59             “IPAddress2”:”135.16.162.5”,
60             “MyRole”:”BE”
61       },
62       "override": {},
63       "default": {},
64       “normal”:{},
65       “automatic”:{},
66       “chef\_environment” : “\_default”
67       "run\_list": [ "configure\_signal" ]
68       },
69       “NodeList”:[“node1.vnf\_a.onap.com”, “node2.vnf\_a.onap.com”],
70       “PushJobFlag”: “True”
71       “CallbackCapable”:True
72       “GetOutputFlag” : “False”
73  }
74
75 The example JSON file provided by the VNF provider for each VNF action will be
76 turned into a template by ONAP, that can be updated with instance
77 specific values at run-time.
78
79 Some points worth noting regarding the JSON fields:
80
81 a. The JSON file must be created for each action for each VNF.
82
83 b. If a VNF action involves multiple endpoints (VMs) of a VNF, ONAP will
84    replicate the “Node” JSON dictionary in the template and post it to
85    each FQDN (i.e., endpoint) in the NodeList after setting the “name”
86    field in the Node object to be the respective FQDN [1]_. Hence, it
87    is required that all end points (VMs) of a VNF involved in a VNF
88    action support the same set of Node Object attributes.
89
90 The following table describes the JSON dictionary to post in Callback.
91
92 Table A2. JSON Dictionary to Post in Callback
93 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
94
95 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------------------------------------------+
96 | **Key**         | **Description**                                                                                                                                                                                           | **Type**    | **Comment**                                                 |
97 +=================+===========================================================================================================================================================================================================+=============+=============================================================+
98 | RequestId       | A unique string associated with the original request by ONAP. This key-value pair will be provided by ONAP in the environment of the push job request and must be returned as part of the POST message.   | Mandatory   |                                                             |
99 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------------------------------------------+
100 | StatusCode      | An integer that must be set to                                                                                                                                                                            | Mandatory   |                                                             |
101 |                 |                                                                                                                                                                                                           |             |                                                             |
102 |                 | 200 if chef-client run on the node finished successfully                                                                                                                                                  |             |                                                             |
103 |                 |                                                                                                                                                                                                           |             |                                                             |
104 |                 | 500 otherwise.                                                                                                                                                                                            |             |                                                             |
105 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------------------------------------------+
106 | StatusMessage   | A string which must be set to                                                                                                                                                                             | Mandatory   |                                                             |
107 |                 |                                                                                                                                                                                                           |             |                                                             |
108 |                 | ‘SUCCESS’ if StatusCode was 200                                                                                                                                                                           |             |                                                             |
109 |                 |                                                                                                                                                                                                           |             |                                                             |
110 |                 | Appropriate error message otherwise.                                                                                                                                                                      |             |                                                             |
111 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------------------------------------------+
112 | Name            | A string which corresponds to the name of the node where push job is run. It is required that the value be retrieved from the node object attributes (where it is always defined).                        | Mandatory   |                                                             |
113 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------------------------------------------+
114 | PushJobOutput   | Any output from the chef-client run that needs to be returned to ONAP.                                                                                                                                    | Optional    | Depends on VNF action. If empty, it must not be included.   |
115 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+-------------------------------------------------------------+
116
117 Ansible JSON Key Value Description
118 -------------------------------------------------------------
119
120 The following provides the key value pairs that must be contained in the
121 JSON file supporting Ansible action.
122
123 Table B1. Ansible JSON File key value description
124 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
125
126 +------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------+
127 | **Field Name**   | **Description**                                                                                                                                                                                                                                                                            | **Type**    | **Comment**                                                         |
128 +==================+============================================================================================================================================================================================================================================================================================+=============+=====================================================================+
129 | PlaybookName     | VNF providor must list name of the playbook used to execute the VNF action.                                                                                                                                                                                                                | Mandatory   |                                                                     |
130 +------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------+
131 | Action           | Name of VNF action.                                                                                                                                                                                                                                                                        | Optional    |                                                                     |
132 +------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------+
133 | EnvParameters    | A JSON dictionary which should list key value pairs to be passed to the Ansible playbook. These values would correspond to instance specific parameters that a playbook may need to execute an action.                                                                                     | Optional    | Depends on the VNF action.                                          |
134 +------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------+
135 | NodeList         | A JSON array of FQDNs that the playbook must be executed on.                                                                                                                                                                                                                               | Optional    | If not provided, playbook will be executed on the Ansible Server.   |
136 +------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------+
137 | FileParameters   | A JSON dictionary where keys are filenames and values are contents of files. The Ansible Server will utilize this feature to generate files with keys as filenames and values as content. This attribute can be used to generate files that a playbook may require as part of execution.   | Optional    | Depends on the VNF action and playbook design.                      |
138 +------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------+
139 | Timeout          | Time (in seconds) that a playbook is expected to take to finish execution for the VNF. If playbook execution time exceeds this value, Ansible Server will terminate the playbook process.                                                                                                  | Optional    |                                                                     |
140 +------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------+---------------------------------------------------------------------+
141
142 Ansible JSON file example:
143
144 {
145
146       “Action”:”Configure”,
147
148       "PlaybookName": "Ansible\_configure.yml",
149
150       "NodeList": ["test1.vnf\_b.onap.com", “test2.vnf\_b.onap.com”],
151
152       "Timeout": 60,
153
154       "EnvParameters": {"Retry": 3, "Wait": 5, “ConfigFile”:”config.txt”},
155
156       “FileParameters”:{“config.txt”:”db\_ip=10.1.1.1, sip\_timer=10000”}
157
158 }
159
160 In the above example, the Ansible Server will:
161
162 a. Process the “FileParameters” dictionary and generate a file named
163    ‘config.txt’ with contents set to the value of the ‘config.txt’ key.
164
165 b. Execute the playbook named ‘Ansible\_configure.yml’ on nodes with
166    FQDNs test1.vnf\_b.onap.com and test2.vnf\_b.onap.com respectively
167    while providing the following key value pairs to the playbook:
168    Retry=3, Wait=5, ConfigFile=config.txt
169
170 c. If execution time of the playbook exceeds 60 secs (across all hosts),
171    it will be terminated.
172
173 VNF License Information Guidelines
174 ------------------------------------------------------------
175
176 This Appendix describes the metadata to be supplied for VNF licenses.
177
178 1. General Information
179
180 Table C1 defines the required and optional fields for licenses.
181
182 Table C1. Required Fields for General Information
183 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
184
185 +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+-------------+
186 | **Field Name**                              | **Description**                                                                                                                                                                                                                                                                                           | **Data Type**     | **Type**    |
187 +=============================================+===========================================================================================================================================================================================================================================================================================================+===================+=============+
188 | VNF Provider Name                           | The name of the VNF provider.                                                                                                                                                                                                                                                                             | String            | Mandatory   |
189 +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+-------------+
190 | VNF Provider Product                        | The name of the product to which this agreement applies.                                                                                                                                                                                                                                                  | String            | Mandatory   |
191 |                                             |                                                                                                                                                                                                                                                                                                           |                   |             |
192 |                                             | Note: a contract/agreement may apply to more than one VNF provider product. In that case, provide the metadata for each product separately.                                                                                                                                                               |                   |             |
193 +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+-------------+
194 | VNF Provider Product Description            | A general description of VNF provider software product.                                                                                                                                                                                                                                                   | String            | Optional    |
195 +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+-------------+
196 | Export Control Classification Number (ECCN) | ECCNs are 5-character alpha-numeric designations used on the Commerce Control List (CCL) to identify dual-use items for export control purposes. An ECCN categorizes items based on the nature of the product, i.e. type of commodity, software, or technology and its respective technical parameters.   | String            | Mandatory   |
197 +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+-------------+
198 | Reporting Requirements                      | A list of any reporting requirements on the usage of the software product.                                                                                                                                                                                                                                | List of strings   | Optional    |
199 +---------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+-------------+
200
201 1. Entitlements
202
203 Entitlements describe software license use rights. The use rights may be
204 quantified by various metrics: # users, # software instances, # units.
205 The use rights may be limited by various criteria: location (physical or
206 logical), type of customer, type of device, time, etc.
207
208 One or more entitlements can be defined; each one consists of the
209 following fields:
210
211 Table C2. Required Fields for Entitlements
212 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
213
214 +---------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+---------------+
215 | **Field Name**                                          | **Description**                                                                                                                                                                       | **Data Type**     | **Type**      |
216 +=========================================================+=======================================================================================================================================================================================+===================+===============+
217 | VNF Provider Part Number / Manufacture Reference Number | Identifier for the entitlement as described by the VNF provider in their price list / catalog / contract.                                                                             | String            | Mandatory     |
218 +---------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+---------------+
219 | Description                                             | Verbiage that describes the entitlement.                                                                                                                                              | String            | Optional      |
220 +---------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+---------------+
221 | Entitlement Identifier                                  | Each entitlement defined must be identified by a unique value (e.g., numbered 1, 2, 3….)                                                                                              | String            | Mandatory     |
222 +---------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+---------------+
223 | Minimum Order Requirement                               | The minimum number of entitlements that need to be purchased. For example, the entitlements must be purchased in a block of 100. If no minimum is required, the value will be zero.   | Number            | Mandatory     |
224 +---------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+---------------+
225 | Unique Reporting Requirements                           | A list of any reporting requirements on the usage of the software product. (e.g.: quarterly usage reports are required)                                                               | List of Strings   | Optional      |
226 +---------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+---------------+
227 | License Type                                            | Type of license applicable to the software product. (e.g.: fixed-term, perpetual, trial, subscription.)                                                                               | String            | Mandatory     |
228 +---------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+---------------+
229 | License Duration                                        | Valid values:                                                                                                                                                                         | String            | Conditional   |
230 |                                                         |                                                                                                                                                                                       |                   |               |
231 |                                                         | **year**, **quarter**, **month**, **day**.                                                                                                                                            |                   |               |
232 |                                                         |                                                                                                                                                                                       |                   |               |
233 |                                                         | Not applicable when license type is Perpetual.                                                                                                                                        |                   |               |
234 +---------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+---------------+
235 | License Duration Quantification                         | Number of years, quarters, months, or days for which the license is valid.                                                                                                            | Number            | Conditional   |
236 |                                                         |                                                                                                                                                                                       |                   |               |
237 |                                                         | Not applicable when license type is Perpetual.                                                                                                                                        |                   |               |
238 +---------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+---------------+
239 | Limits                                                  | see section C.4 for possible values                                                                                                                                                   | List              | Optional      |
240 +---------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------+---------------+
241
242 1. License Keys
243
244 This section defines information on any License Keys associated with the
245 Software Product. A license key is a data string (or a file) providing a
246 means to authorize the use of software. License key does not provide
247 entitlement information.
248
249 License Keys are not required. Optionally, one or more license keys can
250 be defined; each one consists of the following fields:
251
252 Table C3. Required Fields for License Keys
253 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
254
255 +--------------------------+---------------------------------------------------------------------------------------------------------------+-----------------+-------------+
256 | **Field Name**           | **Description**                                                                                               | **Data Type**   | **Type**    |
257 +==========================+===============================================================================================================+=================+=============+
258 | Description              | Verbiage that describes the license key                                                                       | String          | Mandatory   |
259 +--------------------------+---------------------------------------------------------------------------------------------------------------+-----------------+-------------+
260 | License Key Identifier   | Each license key defined must be identified by a unique value (e.g., numbered 1, 2, 3….)                      | String          | Mandatory   |
261 +--------------------------+---------------------------------------------------------------------------------------------------------------+-----------------+-------------+
262 | Key Function             | Lifecycle stage (e.g., Instantiation or Activation) at which the license key is applied to the software.      | String          | Optional    |
263 +--------------------------+---------------------------------------------------------------------------------------------------------------+-----------------+-------------+
264 | License Key Type         | Valid values:                                                                                                 | String          | Mandatory   |
265 |                          |                                                                                                               |                 |             |
266 |                          | **Universal, Unique**                                                                                         |                 |             |
267 |                          |                                                                                                               |                 |             |
268 |                          | **Universal** - a single license key value that may be used with any number of instances of the software.     |                 |             |
269 |                          |                                                                                                               |                 |             |
270 |                          | **Unique**- a unique license key value is required for each instance of the software.                         |                 |             |
271 +--------------------------+---------------------------------------------------------------------------------------------------------------+-----------------+-------------+
272 | Limits                   | see section C.4 for possible values                                                                           | List            | Optional    |
273 +--------------------------+---------------------------------------------------------------------------------------------------------------+-----------------+-------------+
274
275 1. Entitlement and License Key Limits
276
277 Limitations on the use of software entitlements and license keys may be
278 based on factors such as: features enabled in the product, the allowed
279 capacity of the product, number of installations, etc... The limits may
280 generally be categorized as:
281
282 -  where (location)
283
284 -  when (time)
285
286 -  how (usages)
287
288 -  who/what (entity)
289
290 -  amount (how much)
291
292 Multiple limits may be applicable for an entitlement or license key.
293 Each limit may further be described by limit behavior, duration,
294 quantification, aggregation, aggregation interval, start date, end date,
295 and threshold.
296
297 When the limit is associated with a quantity, the quantity is relative
298 to an instance of the entitlement or license key. For example:
299
300 -  Each entitlement grants the right to 50 concurrent users. If 10
301    entitlements are purchased, the total number of concurrent users
302    permitted would be 500. In this example, the limit category is
303    **amount**, the limit type is **users**, and the limit
304    **quantification** is **50.**
305
306    Each license key may be installed on 3 devices. If 5 license keys are
307    acquired, the total number of devices allowed would be 15. In this
308    example, the limit category is **usages**, the limit type is
309    **device**, and the limit **quantification** is **3.**
310
311 1. Location
312
313 Locations may be logical or physical location (e.g., site, country). For
314 example:
315
316 -  use is allowed in Canada
317
318 Table C4. Required Fields for Location
319 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
320
321 +------------------------+---------------------------------------------------------------------------------------------------------------------+------------------+-------------+
322 | **Field Name**         | **Description**                                                                                                     | **Data Type**    | **Type**    |
323 +========================+=====================================================================================================================+==================+=============+
324 | Limit Identifier       | Each limit defined for an entitlement or license key must be identified by a unique value (e.g., numbered 1,2,3…)   | String           | Mandatory   |
325 +------------------------+---------------------------------------------------------------------------------------------------------------------+------------------+-------------+
326 | Limit Description      | Verbiage describing the limit.                                                                                      | String           | Mandatory   |
327 +------------------------+---------------------------------------------------------------------------------------------------------------------+------------------+-------------+
328 | Limit Behavior         | Description of the actions taken when the limit boundaries are reached.                                             | String           | Mandatory   |
329 +------------------------+---------------------------------------------------------------------------------------------------------------------+------------------+-------------+
330 | Limit Category         | Valid value: **location**                                                                                           | String           | Mandatory   |
331 +------------------------+---------------------------------------------------------------------------------------------------------------------+------------------+-------------+
332 | Limit Type             | Valid values: **city, county, state, country, region, MSA, BTA, CLLI**                                              | String           | Mandatory   |
333 +------------------------+---------------------------------------------------------------------------------------------------------------------+------------------+-------------+
334 | Limit List             | List of locations where the VNF provider Product can be used or needs to be restricted from use                     | List of String   | Mandatory   |
335 +------------------------+---------------------------------------------------------------------------------------------------------------------+------------------+-------------+
336 | Limit Set Type         | Indicates if the list is an inclusion or exclusion.                                                                 | String           | Mandatory   |
337 |                        |                                                                                                                     |                  |             |
338 |                        | Valid Values:                                                                                                       |                  |             |
339 |                        |                                                                                                                     |                  |             |
340 |                        | **Allowed**                                                                                                         |                  |             |
341 |                        |                                                                                                                     |                  |             |
342 |                        | **Not allowed**                                                                                                     |                  |             |
343 +------------------------+---------------------------------------------------------------------------------------------------------------------+------------------+-------------+
344 | Limit Quantification   | The quantity (amount) the limit expresses.                                                                          | Number           | Optional    |
345 +------------------------+---------------------------------------------------------------------------------------------------------------------+------------------+-------------+
346
347 1. Time
348
349 Limit on the length of time the software may be used. For example:
350
351 -  license key valid for 1 year from activation
352
353 -  entitlement valid from 15 May 2018 thru 30 June 2020
354
355 Table C5. Required Fields for Time
356 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
357
358 +------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------+---------------+
359 | **Field Name**         | **Description**                                                                                                               | **Data Type**    | **Type**      |
360 +========================+===============================================================================================================================+==================+===============+
361 | Limit Identifier       | Each limit defined for an entitlement or license key must be identified by a unique value (e.g., numbered)                    | String           | Mandatory     |
362 +------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------+---------------+
363 | Limit Description      | Verbiage describing the limit.                                                                                                | String           | Mandatory     |
364 +------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------+---------------+
365 | Limit Behavior         | Description of the actions taken when the limit boundaries are reached.                                                       | String           | Mandatory     |
366 |                        |                                                                                                                               |                  |               |
367 |                        | The limit behavior may also describe when a time limit takes effect. (e.g., key is valid for 1 year from date of purchase).   |                  |               |
368 +------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------+---------------+
369 | Limit Category         | Valid value: **time**                                                                                                         | String           | Mandatory     |
370 +------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------+---------------+
371 | Limit Type             | Valid values: **duration, date**                                                                                              | String           | Mandatory     |
372 +------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------+---------------+
373 | Limit List             | List of times for which the VNF Provider Product can be used or needs to be restricted from use                               | List of String   | Mandatory     |
374 +------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------+---------------+
375 | Duration Units         | Required when limit type is duration. Valid values: **perpetual, year, quarter, month, day, minute, second, millisecond**     | String           | Conditional   |
376 +------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------+---------------+
377 | Limit Quantification   | The quantity (amount) the limit expresses.                                                                                    | Number           | Optional      |
378 +------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------+---------------+
379 | Start Date             | Required when limit type is date.                                                                                             | Date             | Optional      |
380 +------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------+---------------+
381 | End Date               | May be used when limit type is date.                                                                                          | Date             | Optional      |
382 +------------------------+-------------------------------------------------------------------------------------------------------------------------------+------------------+---------------+
383
384 1. Usage
385
386 Limits based on how the software is used. For example:
387
388 -  use is limited to a specific sub-set of the features/capabilities the
389    software supports
390
391 -  use is limited to a certain environment (e.g., test, development,
392    production…)
393
394 -  use is limited by processor (vm, cpu, core)
395
396 -  use is limited by software release
397
398 Table C6. Required Fields for Usage
399 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
400
401 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
402 | **Field Name**         | **Description**                                                                                              | **Data Type**    | **Type**    |
403 +========================+==============================================================================================================+==================+=============+
404 | Limit Identifier       | Each limit defined for an entitlement or license key must be identified by a unique value (e.g., numbered)   | String           | Mandatory   |
405 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
406 | Limit Description      | Verbiage describing the limit.                                                                               | String           | Mandatory   |
407 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
408 | Limit Behavior         | Description of the actions taken when the limit boundaries are reached.                                      | String           | Mandatory   |
409 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
410 | Limit Category         | Valid value: **usages**                                                                                      | String           | Mandatory   |
411 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
412 | Limit Type             | Valid values: **feature, environment, processor, version**                                                   | String           | Mandatory   |
413 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
414 | Limit List             | List of usage limits (e.g., test, development, vm, core, R1.2.1, R1.3.5…)                                    | List of String   | Mandatory   |
415 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
416 | Limit Set Type         | Indicates if the list is an inclusion or exclusion.                                                          | String           | Mandatory   |
417 |                        |                                                                                                              |                  |             |
418 |                        | Valid Values:                                                                                                |                  |             |
419 |                        |                                                                                                              |                  |             |
420 |                        | **Allowed**                                                                                                  |                  |             |
421 |                        |                                                                                                              |                  |             |
422 |                        | **Not allowed**                                                                                              |                  |             |
423 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
424 | Limit Quantification   | The quantity (amount) the limit expresses.                                                                   | Number           | Optional    |
425 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
426
427 1. Entity
428
429 Limit on the entity (product line, organization, customer) allowed to
430 make use of the software. For example:
431
432 -  allowed to be used in support of wireless products
433
434 -  allowed to be used only for government entities
435
436 Table C7. Required Fields for Entity
437 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
438
439 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
440 | **Field Name**         | **Description**                                                                                              | **Data Type**    | **Type**    |
441 +========================+==============================================================================================================+==================+=============+
442 | Limit Identifier       | Each limit defined for an entitlement or license key must be identified by a unique value (e.g., numbered)   | String           | Mandatory   |
443 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
444 | Limit Description      | Verbiage describing the limit.                                                                               | String           | Mandatory   |
445 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
446 | Limit Behavior         | Description of the actions taken when the limit boundaries are reached.                                      | String           | Mandatory   |
447 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
448 | Limit Category         | Valid value: **entity**                                                                                      | String           | Mandatory   |
449 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
450 | Limit Type             | Valid values: **product line, organization, internal customer, external customer**                           | String           | Mandatory   |
451 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
452 | Limit List             | List of entities for which the VNF Provider Product can be used or needs to be restricted from use           | List of String   | Mandatory   |
453 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
454 | Limit Set Type         | Indicates if the list is an inclusion or exclusion.                                                          | String           | Mandatory   |
455 |                        |                                                                                                              |                  |             |
456 |                        | Valid Values:                                                                                                |                  |             |
457 |                        |                                                                                                              |                  |             |
458 |                        | **Allowed**                                                                                                  |                  |             |
459 |                        |                                                                                                              |                  |             |
460 |                        | **Not allowed**                                                                                              |                  |             |
461 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
462 | Limit Quantification   | The quantity (amount) the limit expresses.                                                                   | Number           | Optional    |
463 +------------------------+--------------------------------------------------------------------------------------------------------------+------------------+-------------+
464
465 1. Amount
466
467 These limits describe terms relative to utilization of the functions of
468 the software (for example, number of named users permitted, throughput,
469 or capacity). Limits of this type may also be relative to utilization of
470 other resources (for example, a limit for firewall software is not based
471 on use of the firewall software, but on the number of network
472 subscribers).
473
474 The metadata describing this type of limit includes the unit of measure
475 (e.g., # users, # sessions, # MB, # TB, etc.), the quantity of units,
476 any aggregation function (e.g., peak or average users), and aggregation
477 interval (day, month, quarter, year, etc.).
478
479 Table C8. Required Fields for Amount
480 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
481
482 +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-------------+
483 | **Field Name**         | **Description**                                                                                                                                                                                                                                                | **Data Type**   | **Type**    |
484 +========================+================================================================================================================================================================================================================================================================+=================+=============+
485 | Limit Identifier       | Each limit defined for an entitlement or license key must be identified by a unique value (e.g., numbered)                                                                                                                                                     | String          | Mandatory   |
486 +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-------------+
487 | Limit Description      | Verbiage describing the limit.                                                                                                                                                                                                                                 | String          | Mandatory   |
488 +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-------------+
489 | Limit Behavior         | Description of the actions taken when the limit boundaries are reached.                                                                                                                                                                                        | String          | Mandatory   |
490 +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-------------+
491 | Limit Category         | Valid value: **amount**                                                                                                                                                                                                                                        | String          | Mandatory   |
492 +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-------------+
493 | Limit Type             | Valid values: **trunk, user, subscriber, session, token, transactions, seats, KB, MB, TB, GB**                                                                                                                                                                 | String          | Mandatory   |
494 +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-------------+
495 | Type of Utilization    | Is the limit relative to utilization of the functions of the software or relative to utilization of other resources?                                                                                                                                           | String          | Mandatory   |
496 |                        |                                                                                                                                                                                                                                                                |                 |             |
497 |                        | Valid values:                                                                                                                                                                                                                                                  |                 |             |
498 |                        |                                                                                                                                                                                                                                                                |                 |             |
499 |                        | -  **software functions**                                                                                                                                                                                                                                      |                 |             |
500 |                        |                                                                                                                                                                                                                                                                |                 |             |
501 |                        | -  **other resources**                                                                                                                                                                                                                                         |                 |             |
502 +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-------------+
503 | Limit Quantification   | The quantity (amount) the limit expresses.                                                                                                                                                                                                                     | Number          | Optional    |
504 +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-------------+
505 | Aggregation Function   | Valid values: **peak, average**                                                                                                                                                                                                                                | String          | Optional    |
506 +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-------------+
507 | Aggregation Interval   | Time period over which the aggregation is done (e.g., average sessions per quarter). Required when an Aggregation Function is specified.                                                                                                                       | String          | Optional    |
508 |                        |                                                                                                                                                                                                                                                                |                 |             |
509 |                        | Valid values: **day, month, quarter, year, minute, second, millisecond**                                                                                                                                                                                       |                 |             |
510 +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-------------+
511 | Aggregation Scope      | Is the limit quantity applicable to a single entitlement or license key (each separately)? Or may the limit quantity be combined with others of the same type (resulting in limit amount that is the sum of all the purchased entitlements or license keys)?   | String          | Optional    |
512 |                        |                                                                                                                                                                                                                                                                |                 |             |
513 |                        | Valid values:                                                                                                                                                                                                                                                  |                 |             |
514 |                        |                                                                                                                                                                                                                                                                |                 |             |
515 |                        | -  **single**                                                                                                                                                                                                                                                  |                 |             |
516 |                        |                                                                                                                                                                                                                                                                |                 |             |
517 |                        | -  **combined**                                                                                                                                                                                                                                                |                 |             |
518 +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-------------+
519 | Type of User           | Describes the types of users of the functionality offered by the software (e.g., authorized, named). This field is included when Limit Type is user.                                                                                                           | String          | Optional    |
520 +------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-----------------+-------------+
521
522 TOSCA model
523 -----------------------------
524
525 Table D1. ONAP Resource DM TOSCA/YAML constructs
526 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
527
528 +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
529 | Requirement Number | Resource IM Info Elements                                                                                                                        | TISCA Constructs as per SOL001                                                                                |
530 +====================+==================================================================================================================================================+===============================================================================================================+
531 |   R-02454          | VNFD.vnfSoftwareVersion
532   SwImageDesc.Version                                                                                                    | For VDU.Compute - tosca.artifacts.nfv.SwImage
533   For Virtual Storage - tosca.artifacts.Deployment.Image        |
534 +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
535 | R-03070            | vnfExtCpd's with virtualNetworkInterfaceRequirements (vNIC)                                                                                      | tosca.nodes.nfv.VnfExtCp with a property
536   tosca.datatypes.nfv.VirtualNetworkInterfaceRequirements            |
537 +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
538 | R-09467            |  VDU.Compute descriptor                                                                                                                          |  tosca.nodes.nfv.Vdu.Compute                                                                                  |
539 +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
540 | R-16065            |  VDU.Compute. Configurable Properties                                                                                                            |  tosca.datatypes.nfv.VnfcConfigurableProperties                                                               |
541 +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
542 | R-30654            | VNFD.lifeCycleManagementScript - IFA011 LifeCycleManagementScript                                                                                | Interface construct tosca.interfaces.nfv.vnf.lifecycle.Nfv with a list of standard LCM operations             |
543 +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
544 | R-35851            | CPD: VduCp, VnfExtCp, VnfVirtualLinkDesc, QoS Monitoring info element  - TBD                                                                     | tosca.nodes.nfv.VduCp, tosca.nodes.nfv.VnfVirtualLink, tosca.nodes.nfv.VnfExtCp                               |
545 +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
546 | R-41215            |  VNFD/VDU Profile and scaling aspect                                                                                                             | tosca.datatypes.nfv.VduProfile and tosca.datatypes.nfv.ScalingAspect                                          |
547 +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
548 | R-66070            |  VNFD meta data                                                                                                                                  | tosca.datatypes.nfv.VnfInfoModifiableAttributes - metadata?                                                   |
549 +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
550 | R-96634            | VNFD.configurableProperties describing scaling characteristics.  VNFD.autoscale defines the rules for scaling based on specific VNF  indications | tosca.datatypes.nfv.VnfConfigurableProperties, tosca.datatypes.nfv.ScaleInfo                                  |
551 +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
552 | ?                  |  VDU Virtual Storage                                                                                                                             |  tosca.nodes.nfv.Vdu.VirtualStorage                                                                           |
553 +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
554 | R-01478
555 R-01556    | Monitoring Info Element (TBD) - SOL001 per VNF/VDU/VLink
556    memory-consumption, CPU-utilization, bandwidth-consumption, VNFC downtime, etc.      | tosca.capabilities.nfv.Metric - type for monitoring
557   monitoring_parameter  of above type per VNF/VDU/VLink   |
558 +--------------------+--------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------+
559
560 Standard TOSCA/YAML definitions agreed by VNF SDK Modeling team to be used by VNF vendors to create a standard VNF descriptor.
561
562 All definitions are summarized in the table below based on the agreed ONAP Resource DM TOSCA/YAML constructs for Beijing. Their syntax is specified in ETSI GS NFV-SOL001 stable draft for VNF-D.
563
564 Table D2. TOSCA CSAR structure
565 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
566
567 +--------------------+------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
568 | Requirement Number | Description                                                                                                                        | CSAR artifact directory                                                                  |
569 +====================+====================================================================================================================================+==========================================================================================+
570 | R-26881            | The VNF provider MUST provide the binaries and images needed to instantiate the VNF (VNF and VNFC images).                         | ROOT\Artifacts\ VNF_Image.bin                                                            |
571 +--------------------+------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
572 | R-30654            | VNFD.lifeCycleManagementScript that includes a list of events and  corresponding management scripts performed for the VNF - SOL001 | ROOT\Artifacts\Informational\ Install.csh                                                |
573 +--------------------+------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
574 | R-35851            | All VNF topology related definitions in yaml files
575   VNFD/Main Service template at the ROOT                                        | ROOT\Definitions\ VNFC.yaml
576   ROOT\ MainServiceTemplate.yaml                             |
577 +--------------------+------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
578 | R-40827            | CSAR License directory - SOL004                                                                                                    | ROOT\Licenses\ License_term.txt                                                          |
579 +--------------------+------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
580 | R-77707            | CSAR Manifest file - SOL004                                                                                                        | ROOT\ MainServiceTemplate.mf                                                             |
581 +--------------------+------------------------------------------------------------------------------------------------------------------------------------+------------------------------------------------------------------------------------------+
582
583 Define the CSAR structure, options and security features to be part of ONAP Release 2.
584
585 The below table describes the numbered requirements for CSAR structure as agreed with SDC team. The format of the CSAR is specified in SOL004.
586
587 Requirement List
588 --------------------------------
589
590 R-11200: The VNF **MUST** keep the scope of a Cinder volume module, when it exists, to be 1:1 with the VNF Base Module or Incremental Module.
591
592 R-01334: The VNF **MUST** conform to the NETCONF RFC 5717, “Partial Lock Remote Procedure Call”.
593
594 R-51910: The VNF **MUST** provide all telemetry (e.g., fault event records, syslog records, performance records etc.) to ONAP using the model, format and mechanisms described in this section.
595
596 R-29324: The VNF **SHOULD** implement the protocol operation: **copy-config(target, source) -** Copy the content of the configuration datastore source to the configuration datastore target.
597
598 R-72184: The VNF **MUST** have routable FQDNs for all the endpoints (VMs) of a VNF that contain chef-clients which are used to register with the Chef Server.  As part of invoking VNF actions, ONAP will trigger push jobs against FQDNs of endpoints for a VNF, if required.
599
600 R-23740: The VNF **MUST** accommodate the security principle of “least privilege” during development, implementation and operation. The importance of “least privilege” cannot be overstated and must be observed in all aspects of VNF development and not limited to security. This is applicable to all sections of this document.
601
602 R-12709: The VNFC **SHOULD** be independently deployed, configured, upgraded, scaled, monitored, and administered by ONAP.
603
604 R-88031: The VNF **SHOULD** implement the protocol operation: **delete-config(target) -** Delete the named configuration datastore target.
605
606 R-42207: The VNF **MUST** design resiliency into a VNF such that the resiliency deployment model (e.g., active-active) can be chosen at run-time.
607
608 R-98617: The VNF provider **MUST** provide information regarding any dependency (e.g., affinity, anti-affinity) with other VNFs and resources.
609
610 R-62498: The VNF **MUST**, if not using the NCSP’s IDAM API, encrypt OA&M access (e.g., SSH, SFTP).
611
612 R-42366: The VNF **MUST** support secure connections and transports.
613
614 R-33955: The VNF **SHOULD** conform its YANG model to RFC 6991, “Common YANG Data Types”.
615
616 R-33488: The VNF **MUST** protect against all denial of service attacks, both volumetric and non-volumetric, or integrate with external denial of service protection tools.
617
618 R-57617: The VNF **MUST** include the field “success/failure” in the Security alarms (where applicable and technically feasible).
619
620 R-57271: The VNF **MUST** provide the capability of generating security audit logs by interacting with the operating system (OS) as appropriate.
621
622 R-44569: The VNF provider **MUST NOT** require additional infrastructure such as a VNF provider license server for VNF providor functions and metrics..
623
624 R-67918: The VNF **MUST** handle replication race conditions both locally and geo-located in the event of a data base instance failure to maintain service continuity.
625
626 R-35532: The VNF **SHOULD** release and clear all shared assets (memory, database operations, connections, locks, etc.) as soon as possible, especially before long running sync and asynchronous operations, so as to not prevent use of these assets by other entities.
627
628 R-37692: The VNFC **MUST** provide API versioning to allow for independent upgrades of VNFC.
629
630 R-50252: The VNF **MUST** write to a specific set of text files that will be retrieved and made available by the Ansible Server If, as part of a VNF action (e.g., audit), a playbook is required to return any VNF information.
631
632 R-58977: The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Eavesdropping.
633
634 R-59391: The VNF provider **MUST**, where a VNF provider requires the assumption of permissions, such as root or administrator, first log in under their individual user login ID then switch to the other higher level account; or where the individual user login is infeasible, must login with an account with admin privileges in a way that uniquely identifies the individual performing the function.
635
636 R-93443: The VNF **MUST** define all data models in YANG [RFC6020], and the mapping to NETCONF shall follow the rules defined in this RFC.
637
638 R-72243: The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Phishing / SMishing.
639
640 R-33280: The VNF **MUST NOT** use any instance specific parameters in a playbook.
641
642 R-73468: The VNF **MUST** allow the NETCONF server connection parameters to be configurable during virtual machine instantiation through Heat templates where SSH keys, usernames, passwords, SSH service and SSH port numbers are Heat template parameters.
643
644 R-46908: The VNF **MUST**, if not using the NCSP’s IDAM API, comply with "password complexity" policy. When passwords are used, they shall be complex and shall at least meet the following password construction requirements: (1) be a minimum configurable number of characters in length, (2) include 3 of the 4 following types of characters: upper-case alphabetic, lower-case alphabetic, numeric, and special, (3) not be the same as the UserID with which they are associated or other common strings as specified by the environment, (4) not contain repeating or sequential characters or numbers, (5) not to use special characters that may have command functions, and (6) new passwords must not contain sequences of three or more characters from the previous password.
645
646 R-86261: The VNF **MUST NOT** allow VNF provider access to VNFs remotely.
647
648 R-75343: The VNF **MUST** provide the capability of testing the validity of a digital certificate by recognizing the identity represented by the certificate — the "distinguished name".
649
650 R-40813: The VNF **SHOULD** support the use of virtual trusted platform module, hypervisor security testing and standards scanning tools.
651
652 R-02454: The VNF **MUST** support the existence of multiple major/minor versions of the VNF software and/or sub-components and interfaces that support both forward and backward compatibility to be transparent to the Service Provider usage.
653
654 R-20353: The VNF **MUST** implement at least one of the capabilities **:candidate** or **:writable-running**. If both **:candidate** and **:writable-running** are provided then two locks should be supported.
655
656 R-01556: The VNF Package **MUST** include documentation describing the fault, performance, capacity events/alarms and other event records that are made available by the VNF. The document must include:
657
658 R-56815: The VNF Package **MUST** include documentation describing supported VNF scaling capabilities and capacity limits (e.g., number of users, bandwidth, throughput, concurrent calls).
659
660 R-56793: The VNF **MUST** test for adherence to the defined performance budgets at each layer, during each delivery cycle with delivered results, so that the performance budget is measured and the code is adjusted to meet performance budget.
661
662 R-54520: The VNF **MUST** log successful and unsuccessful login attempts.
663
664 R-10173: The VNF **MUST** allow another NETCONF session to be able to initiate the release of the lock by killing the session owning the lock, using the <kill-session> operation to guard against hung NETCONF sessions.
665
666 R-36280: The VNF provider **MUST** provide documentation describing VNF Functional Capabilities that are utilized to operationalize the VNF and compose complex services.
667
668 R-15671: The VNF **MUST NOT** provide public or unrestricted access to any data without the permission of the data owner. All data classification and access controls must be followed.
669
670 R-39342: The VNF **MUST**, if not using the NCSP’s IDAM API, comply with "password changes (includes default passwords)" policy. Products will support password aging, syntax and other credential management practices on a configurable basis.
671
672 R-21558: The VNF **SHOULD** use intelligent routing by having knowledge of multiple downstream/upstream endpoints that are exposed to it, to ensure there is no dependency on external services (such as load balancers) to switch to alternate endpoints.
673
674 R-07545: The VNF **MUST** support all operations, administration and management (OAM) functions available from the supplier for VNFs using the supplied YANG code and associated NETCONF servers.
675
676 R-73541: The VNF **MUST** use access controls for VNFs and their supporting computing systems at all times to restrict access to authorized personnel only, e.g., least privilege. These controls could include the use of system configuration or access control software.
677
678 R-97102: The VNF Package **MUST** include VM requirements via a Heat template that provides the necessary data for:
679
680 R-44013: The VNF **MUST** populate an attribute, defined as node[‘PushJobOutput’] with the desired output on all nodes in the push job that execute chef-client run if the VNF action requires the output of a chef-client run be made available (e.g., get running configuration).
681
682 R-40521: The VNF **MUST**, if not using the NCSP’s IDAM API, support use of common third party authentication and authorization tools such as TACACS+, RADIUS.
683
684 R-41829: The VNF **MUST** be able to specify the granularity of the lock via a restricted or full XPath expression.
685
686 R-19768: The VNF **SHOULD** support L3 VPNs that enable segregation of traffic by application (dropping packets not belonging to the VPN) (i.e., AVPN, IPSec VPN for Internet routes).
687
688 R-55478: The VNF **MUST** log logoffs.
689
690 R-14853: The VNF **MUST** respond to a "move traffic" [2]_ command against a specific VNFC, moving all existing session elsewhere with minimal disruption if a VNF provides a load balancing function across multiple instances of its VNFCs. Note: Individual VNF performance aspects (e.g., move duration or disruption scope) may require further constraints.
691
692 R-68165: The VNF **MUST** encrypt any content containing Sensitive Personal Information (SPI) or certain proprietary data, in addition to applying the regular procedures for securing access and delivery.
693
694 R-31614: The VNF **MUST** log the field “event type” in the security audit logs.
695
696 R-87662: The VNF **SHOULD** implement the NETCONF Event Notifications [RFC5277].
697
698 R-26508: The VNF **MUST** support NETCONF server that can be mounted on OpenDaylight (client) and perform the following operations:
699
700 R-26567: The VNF Package **MUST** include a run list of roles/cookbooks/recipes, for each supported VNF action, that will perform the desired VNF action in its entirety as specified by ONAP (see Section 8.c, ONAP Controller APIs and Behavior, for list of VNF actions and requirements), when triggered by a chef-client run list in JSON file.
701
702 R-04158: The VNF **MUST** conform to the NETCONF RFC 4742, “Using the NETCONF Configuration Protocol over Secure Shell (SSH)”.
703
704 R-49109: The VNF **MUST** encrypt TCP/IP--HTTPS (e.g., TLS v1.2) transmission of data on internal and external networks.
705
706 R-15884: The VNF **MUST** include the field “date” in the Security alarms (where applicable and technically feasible).
707
708 R-15885: The VNF **MUST** Upon completion of the chef-client run, POST back on the callback URL, a JSON object as described in Table A2 if the chef-client run list includes a cookbook/recipe that is callback capable. Failure to POST on the Callback Url should not be considered a critical error. That is, if the chef-client successfully completes the VNF action, it should reflect this status on the Chef Server regardless of whether the Callback succeeded or not.
709
710 R-82223: The VNF **MUST** be decomposed if the functions have significantly different scaling characteristics (e.g., signaling versus media functions, control versus data plane functions).
711
712 R-37608: The VNF **MUST** provide a mechanism to restrict access based on the attributes of the VNF and the attributes of the subject.
713
714 R-02170: The VNF **MUST** use, whenever possible, standard implementations of security applications, protocols, and format, e.g., S/MIME, TLS, SSH, IPSec, X.509 digital certificates for cryptographic implementations. These implementations must be purchased from reputable vendors and must not be developed in-house.
715
716 R-11235: The VNF **MUST** implement the protocol operation: **kill-session(session)** - Force the termination of **session**.
717
718 R-87564: The VNF **SHOULD** conform its YANG model to RFC 7317, “A YANG Data Model for System Management”.
719
720 R-69649: The VNF **MUST** have all vulnerabilities patched as soon as possible. Patching shall be controlled via change control process with vulnerabilities disclosed along with mitigation recommendations.
721
722 R-75041: The VNF **MUST**, if not using the NCSP’s IDAM API, expire passwords at regular configurable intervals.
723
724 R-23035: The VNF **MUST** be designed to scale horizontally (more instances of a VNF or VNFC) and not vertically (moving the existing instances to larger VMs or increasing the resources within a VM) to achieve effective utilization of cloud resources.
725
726 R-97445: The VNF **MUST** log the field “date/time” in the security audit logs.
727
728 R-16777: The VNF provider **MUST** provide a JSON file for each supported action for the VNF.  The JSON file must contain key value pairs with all relevant values populated with sample data that illustrates its usage. The fields and their description are defined in Appendix B.
729
730 R-08134: The VNF **MUST** conform to the NETCONF RFC 6241, “NETCONF Configuration Protocol”.
731
732 R-01382: The VNF **MUST** allow the entire configuration of the VNF to be retrieved via NETCONF's <get-config> and <edit-config>, independently of whether it was configured via NETCONF or other mechanisms.
733
734 R-98929: The VNF **MAY** have a single endpoint.
735
736 R-48356: The VNF **MUST** fully exploit exception handling to the extent that resources (e.g., threads and memory) are released when no longer needed regardless of programming language.
737
738 R-90007: The VNF **MUST** implement the protocol operation: **close-session()**- Gracefully close the current session.
739
740 R-42140: The VNF **MUST** respond to data requests from ONAP as soon as those requests are received, as a synchronous response.
741
742 R-27511: The VNF provider **MUST** provide the ability to scale up a VNF provider supplied product during growth and scale down a VNF provider supplied product during decline without “real-time” restrictions based upon VNF provider permissions.
743
744 R-05470: The VNF **MUST** host connectors for access to the database layer.
745
746 R-85633: The VNF **MUST** implement Data Storage Encryption (database/disk encryption) for Sensitive Personal Information (SPI) and other subscriber identifiable data. Note: subscriber’s SPI/data must be encrypted at rest, and other subscriber identifiable data should be encrypted at rest. Other data protection requirements exist and should be well understood by the developer.
747
748 R-36792: The VNF **MUST** automatically retry/resubmit failed requests made by the software to its downstream system to increase the success rate.
749
750 R-49036: The VNF **SHOULD** conform its YANG model to RFC 7277, “A YANG Data Model for IP Management”.
751
752 R-63217: The VNF **MUST**, if not using the NCSP’s IDAM API, support logging via ONAP for a historical view of “who did what and when”.
753
754 R-44125: The VNF provider **MUST** agree to the process that can be met by Service Provider reporting infrastructure. The Contract shall define the reporting process and the available reporting tools.
755
756 R-22700: The VNF **MUST** conform its YANG model to RFC 6470, “NETCONF Base Notifications”.
757
758 R-74958: The VNF **MUST** activate security alarms automatically when the following event is detected: unsuccessful attempts to gain permissions or assume the identity of another user
759
760 R-44281: The VNF **MUST** implement the protocol operation: **edit-config(target, default-operation, test-option, error-option, config)** - Edit the target configuration datastore by merging, replacing, creating, or deleting new config elements.
761
762 R-81777: The VNF **MUST** be configured with initial address(es) to use at deployment time. After that the address(es) may be changed through ONAP-defined policies delivered from ONAP to the VNF using PUTs to a RESTful API, in the same way that other controls over data reporting will be controlled by policy.
763
764 R-07879: The VNF Package **MUST** include all relevant playbooks to ONAP to be loaded on the Ansible Server.
765
766 R-57855: The VNF **MUST** support hitless staggered/rolling deployments between its redundant instances to allow "soak-time/burn in/slow roll" which can enable the support of low traffic loads to validate the deployment prior to supporting full traffic loads.
767
768 R-73285: The VNF **MUST** must encode the delivered data using JSON or Avro, addressed and delivered as described in the previous paragraphs.
769
770 R-85028: The VNF **MUST** authenticate system to system access and do not conceal a VNF provider user’s individual accountability for transactions.
771
772 R-28545: The VNF **MUST** conform its YANG model to RFC 6060, “YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)”
773
774 R-74712: The VNF **MUST** utilize FQDNs (and not IP address) for both Service Chaining and scaling.
775
776 R-29760: The VNFC **MUST** be installed on non-root file systems, unless software is specifically included with the operating system distribution of the guest image.
777
778 R-08315: The VNF **SHOULD** use redundant connection pooling to connect to any backend data source that can be switched between pools in an automated/scripted fashion to ensure high availability of the connection to the data source.
779
780 R-42874: The VNF **MUST** comply with Least Privilege (no more privilege than required to perform job functions) when persons or non-person entities access VNFs.
781
782 R-08312: The VNF **MAY** use other options which are expected to include
783
784 R-19082: The VNF **MUST NOT** run security testing tools and programs, e.g., password cracker, port scanners, hacking tools in production, without authorization of the VNF system owner.
785
786 R-39650: The VNF **SHOULD** provide the ability to test incremental growth of the VNF.
787
788 R-15325: The VNF **MUST** log the field “success/failure” in the security audit logs.
789
790 R-07617: The VNF **MUST** log creating, removing, or changing the inherent privilege level of users.
791
792 R-53015: The VNF **MUST** apply locking based on the sequence of NETCONF operations, with the first configuration operation locking out all others until completed.
793
794 R-83500: The VNF **MUST** provide the capability of allowing certificate renewal and revocation.
795
796 R-23772: The VNF **MUST** validate input at all layers implementing VNF APIs.
797
798 R-83227: The VNF **MUST** Provide the capability to encrypt data in transit on a physical or virtual network.
799
800 R-36843: The VNF **MUST** support the ability of the VNFC to be deployable in multi-zoned cloud sites to allow for site support in the event of cloud zone failure or upgrades.
801
802 R-10129: The VNF **SHOULD** conform its YANG model to RFC 7223, “A YANG Data Model for Interface Management”.
803
804 R-18733: The VNF **MUST** implement the protocol operation: **discard-changes()** - Revert the candidate configuration datastore to the running configuration.
805
806 R-21819: The VNF **MUST** support requests for information from law enforcement and government agencies.
807
808 R-92207: The VNF **SHOULD** implement a mechanism for automated and frequent "system configuration (automated provisioning / closed loop)" auditing.
809
810 R-63935: The VNF **MUST** release locks to prevent permanent lock-outs when a user configured timer has expired forcing the NETCONF SSH Session termination (i.e., product must expose a configuration knob for a user setting of a lock expiration timer)
811
812 R-79224: The VNF **MUST** have the chef-client be preloaded with validator keys and configuration to register with the designated Chef Server as part of the installation process.
813
814 R-12467: The VNF **MUST NOT** use the SHA, DSS, MD5, SHA-1 and Skipjack algorithms or other compromised encryption.
815
816 R-68589: The VNF **MUST**, if not using the NCSP’s IDAM API, support User-IDs and passwords to uniquely identify the user/application. VNF needs to have appropriate connectors to the Identity, Authentication and Authorization systems that enables access at OS, Database and Application levels as appropriate.
817
818 R-26115: The VNF **MUST** follow the data model upgrade rules defined in [RFC6020] section 10. All deviations from section 10 rules shall be handled by a built-in automatic upgrade mechanism.
819
820 R-49145: The VNF **MUST** implement **:confirmed-commit** If **:candidate** is supported.
821
822 R-04298: The VNF provider **MUST** provide their testing scripts to support testing.
823
824 R-92935: The VNF **SHOULD** minimize the propagation of state information across multiple data centers to avoid cross data center traffic.
825
826 R-47204: The VNF **MUST** protect the confidentiality and integrity of data at rest and in transit from unauthorized access and modification.
827
828 R-32695: The VNF **MUST** provide the ability to modify the number of retries, the time between retries and the behavior/action taken after the retries have been exhausted for exception handling to allow the NCSP to control that behavior.
829
830 R-58964: The VNF **MUST** provide the capability to restrict read and write access to data.
831
832 R-73364: The VNF **MUST** support at least two major versions of the VNF software and/or sub-components to co-exist within production environments at any time so that upgrades can be applied across multiple systems in a staggered manner.
833
834 R-33946: The VNF **MUST** conform to the NETCONF RFC 4741, “NETCONF Configuration Protocol”.
835
836 R-24269: The VNF **SHOULD** conform its YANG model to RFC 7407, “A YANG Data Model for SNMP Configuration”.
837
838 R-16039: The VNF **SHOULD** test for adherence to the defined resiliency rating recommendation at each layer, during each delivery cycle so that the resiliency rating is measured and feedback is provided where software resiliency requirements are not met.
839
840 R-46290: The VNF **MUST** respond to an ONAP request to deliver granular data on device or subsystem status or performance, referencing the YANG configuration model for the VNF by returning the requested data elements.
841
842 R-11240: The VNF **MUST** respond with content encoded in JSON, as described in the RESTCONF specification. This way the encoding of a synchronous communication will be consistent with Avro.
843
844 R-83790: The VNF **MUST** implement the **:validate** capability
845
846 R-83873: The VNF **MUST** support **:rollback-on-error** value for the <error-option> parameter to the <edit-config> operation. If any error occurs during the requested edit operation, then the target database (usually the running configuration) will be left affected. This provides an 'all-or-nothing' edit mode for a single <edit-config> request.
847
848 R-25238: The VNF PACKAGE **MUST** validated YANG code using the open source pyang [3]_ program using the following commands:
849
850 R-58370: The VNF **MUST** coexist and operate normally with commercial anti-virus software which shall produce alarms every time when there is a security incident.
851
852 R-39604: The VNF **MUST** provide the capability of testing the validity of a digital certificate by checking the Certificate Revocation List (CRL) for the certificates of that type to ensure that the certificate has not been revoked.
853
854 R-06617: The VNF **MUST** support get-schema (ietf-netconf-monitoring) to pull YANG model over session.
855
856 R-13344: The VNF **MUST** log starting and stopping of security logging
857
858 R-02360: The VNFC **MUST** be designed as a standalone, executable process.
859
860 R-80070: The VNF **MUST** handle errors and exceptions so that they do not interrupt processing of incoming VNF requests to maintain service continuity.
861
862 R-02137: The VNF **MUST** implement all monitoring and logging as described in the Security Analytics section.
863
864 R-16496: The VNF **MUST** enable instantiating only the functionality that is needed for the decomposed VNF (e.g., if transcoding is not needed it should not be instantiated).
865
866 R-32217: The VNF **MUST** have routable FQDNs that are reachable via the Ansible Server for the endpoints (VMs) of a VNF on which playbooks will be executed. ONAP will initiate requests to the Ansible Server for invocation of playbooks against these end points [4]_.
867
868 R-47849: The VNF provider **MUST** support the metadata about licenses (and their applicable entitlements) as defined in this document for VNF software, and any license keys required to authorize use of the VNF software.  This metadata will be used to facilitate onboarding the VNF into the ONAP environment and automating processes for putting the licenses into use and managing the full lifecycle of the licenses. The details of this license model are described in Appendix C. Note: License metadata support in ONAP is not currently available and planned for 1Q 2018.
869
870 R-85419: The VNF **SHOULD** use REST APIs exposed to Client Applications for the implementation of OAuth 2.0 Authorization Code Grant and Client Credentials Grant, as the standard interface for a VNF.
871
872 R-34660: The VNF **MUST** use the RESTCONF/NETCONF framework used by the ONAP configuration subsystem for synchronous communication.
873
874 R-88026: The VNF **MUST** include a NETCONF server enabling runtime configuration and lifecycle management capabilities.
875
876 R-48080: The VNF **SHOULD** support SCEP (Simple Certificate Enrollment Protocol).
877
878 R-43884: The VNF **MUST** integrate with external authentication and authorization services (e.g., IDAM).
879
880 R-70933: The VNF **MUST** provide the ability to migrate to newer versions of cryptographic algorithms and protocols with no impact.
881
882 R-48917: The VNF **MUST** monitor for and alert on (both sender and receiver) errant, running longer than expected and missing file transfers, so as to minimize the impact due to file transfer errors.
883
884 R-79107: The VNF **MUST**, if not using the NCSP’s IDAM API, enforce a configurable maximum number of Login attempts policy for the users. VNF provider must comply with "terminate idle sessions" policy. Interactive sessions must be terminated, or a secure, locking screensaver must be activated requiring authentication, after a configurable period of inactivity. The system-based inactivity timeout for the enterprise identity and access management system must also be configurable.
885
886 R-75850: The VNF **SHOULD** decouple persistent data from the VNFC and keep it in its own datastore that can be reached by all instances of the VNFC requiring the data.
887
888 R-46960: The VNF **MUST** utilize only the Guest OS versions that are supported by the NCSP’s Network Cloud. [5]_
889
890 R-21210: The VNF **MUST** implement the following input validation control: Validate that any input file has a correct and valid Multipurpose Internet Mail Extensions (MIME) type. Input files should be tested for spoofed MIME types.
891
892 R-23823: The VNF Package **MUST** include appropriate credentials so that ONAP can interact with the Chef Server.
893
894 R-24359: The VNF **MUST** provide the capability of testing the validity of a digital certificate by validating the date the certificate is being used is within the validity period for the certificate.
895
896 R-49224: The VNF **MUST** provide unique traceability of a transaction through its life cycle to ensure quick and efficient troubleshooting.
897
898 R-04982: The VNF **MUST NOT** include an authentication credential, e.g., password, in the security audit logs, even if encrypted.
899
900 R-74481: The VNF **MUST** NOT require the use of a dynamic routing protocol unless necessary to meet functional requirements.
901
902 R-98911: The VNF **MUST NOT** use any instance specific parameters for the VNF in roles/cookbooks/recipes invoked for a VNF action.
903
904 R-89571: The VNF **MUST** support and provide artifacts for configuration management using at least one of the following technologies:
905
906 R-87135: The VNF **MUST** comply with NIST standards and industry best practices for all implementations of cryptography.
907
908 R-04492: The VNF **MUST** generate security audit logs that must be sent to Security Analytics Tools for analysis.
909
910 R-02597: The VNF **MUST** implement the protocol operation: **lock(target)** - Lock the configuration datastore target.
911
912 R-13800: The VNF **MUST** conform to the NETCONF RFC 5277, “NETCONF Event Notification”.
913
914 R-64445: The VNF **MUST** support the ability of a requestor of the service to determine the version (and therefore capabilities) of the service so that Network Cloud Service Provider can understand the capabilities of the service.
915
916 R-64768: The VNF **MUST** limit the size of application data packets to no larger than 9000 bytes for SDN network-based tunneling when guest data packets are transported between tunnel endpoints that support guest logical networks.
917
918 R-75608: The VNF provider **MUST** provide playbooks to be loaded on the appropriate Ansible Server.
919
920 R-61354: The VNF **MUST** implement access control list for OA&M services (e.g., restricting access to certain ports or applications).
921
922 R-62468: The VNF **MUST** allow all configuration data to be edited through a NETCONF <edit-config> operation. Proprietary NETCONF RPCs that make configuration changes are not sufficient.
923
924 R-34552: The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for OWASP Top 10.
925
926 R-29977: The VNF **MUST** provide the capability of testing the validity of a digital certificate by validating the CA signature on the certificate.
927
928 R-67709: The VNF **MUST** be designed, built and packaged to enable deployment across multiple fault zones (e.g., VNFCs deployed in different servers, racks, OpenStack regions, geographies) so that in the event of a planned/unplanned downtime of a fault zone, the overall operation/throughput of the VNF is maintained.
929
930 R-46567: The VNF Package **MUST** include configuration scripts for boot sequence and configuration.
931
932 R-55345: The VNF **SHOULD** use techniques such as “lazy loading” when initialization includes loading catalogues and/or lists which can grow over time, so that the VNF startup time does not grow at a rate proportional to that of the list.
933
934 R-88482: The VNF **SHOULD** use REST using HTTPS delivery of plain text JSON for moderate sized asynchronous data sets, and for high volume data sets when feasible.
935
936 R-56786: The VNF **MUST** implement “Closed Loop” automatic implementation (without human intervention) for Known Threats with detection rate in low false positives.
937
938 R-94525: The VNF **MUST** log connections to a network listener of the resource.
939
940 R-85428: The VNF **MUST** meet the same guidelines as Chef Server hosted by ONAP.
941
942 R-26371: The VNF **MUST** detect connectivity failure for inter VNFC instance and intra/inter VNF and re-establish connectivity automatically to maintain the VNF without manual intervention to provide service continuity.
943
944 R-35851: The VNF Package **MUST** include VNF topology that describes basic network and application connectivity internal and external to the VNF including Link type, KPIs, Bandwidth, latency, jitter, QoS (if applicable) for each interface.
945
946 R-29301: The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Password Attacks.
947
948 R-23957: The VNF **MUST** include the field “time” in the Security alarms (where applicable and technically feasible).
949
950 R-32636: The VNF **MUST** support API-based monitoring to take care of the scenarios where the control interfaces are not exposed, or are optimized and proprietary in nature.
951
952 R-39562: The VNF **MUST** disable unnecessary or vulnerable cgi-bin programs.
953
954 R-77334: The VNF **MUST** allow configurations and configuration parameters to be managed under version control to ensure consistent configuration deployment, traceability and rollback.
955
956 R-44723: The VNF **MUST** use symmetric keys of at least 112 bits in length.
957
958 R-86585: The VNFC **SHOULD** minimize the use of state within a VNFC to facilitate the movement of traffic from one instance to another.
959
960 R-18725: The VNF **MUST** handle the restart of a single VNFC instance without requiring all VNFC instances to be restarted.
961
962 R-53317: The VNF **MUST** conform its YANG model to RFC 6087, “Guidelines for Authors and Reviewers of YANG Data Model Documents”.
963
964 R-67114: The VNF **MUST** be installed with:
965
966 R-28168: The VNF **SHOULD** use an appropriately configured logging level that can be changed dynamically, so as to not cause performance degradation of the VNF due to excessive logging.
967
968 R-54930: The VNF **MUST** implement the following input validation control: Do not permit input that contains content or characters inappropriate to the input expected by the design. Inappropriate input, such as SQL insertions, may cause the system to execute undesirable and unauthorized transactions against the database or allow other inappropriate access to the internal network.
969
970 R-55830: The VNF **MUST** distribute all production code from NCSP internal sources only. No production code, libraries, OS images, etc. shall be distributed from publically accessible depots.
971
972 R-22367: The VNF **MUST** support detection of malformed packets due to software misconfiguration or software vulnerability.
973
974 R-93860: The VNF **MUST** provide the capability to integrate with an external encryption service.
975
976 R-09467: The VNF **MUST**  utilize only NCSP standard compute flavors. [5]_
977
978 R-62170: The VNF **MUST** over-ride any default values for configurable parameters that can be set by ONAP in the roles, cookbooks and recipes.
979
980 R-41994: The VNF **MUST**, if not using the NCSP’s IDAM API, comply with "No Self-Signed Certificates" policy. Self-signed certificates must be used for encryption only, using specified and approved encryption protocols such as TLS 1.2 or higher or equivalent security protocols such as IPSec, AES.
981
982 R-38474: The VNF **MUST** have a corresponding environment file for a Base Module.
983
984 R-81725: The VNF **MUST** have a corresponding environment file for an Incremental Module.
985
986 R-53433: The VNF **MUST** have a corresponding environment file for a Cinder Volume Module.
987
988 R-84160: The VNF **MUST** have security logging for VNFs and their OSs be active from initialization. Audit logging includes automatic routines to maintain activity records and cleanup programs to ensure the integrity of the audit/logging systems.
989
990 R-99656: The VNF **MUST** NOT terminate stable sessions if a VNFC instance fails.
991
992 R-80898: The VNF **MUST** support heartbeat via a <get> with null filter.
993
994 R-20974: The VNF **MUST** deploy the base module first, prior to the incremental modules.
995
996 R-69610: The VNF **MUST** provide the capability of using certificates issued from a Certificate Authority not provided by the VNF provider.
997
998 R-27310: The VNF Package **MUST** include all relevant Chef artifacts (roles/cookbooks/recipes) required to execute VNF actions requested by ONAP for loading on appropriate Chef Server.
999
1000 R-98191: The VNF **MUST** vary the frequency that asynchronous data is delivered based on the content and how data may be aggregated or grouped together. For example, alarms and alerts are expected to be delivered as soon as they appear. In contrast, other content, such as performance measurements, KPIs or reported network signaling may have various ways of packaging and delivering content. Some content should be streamed immediately; or content may be monitored over a time interval, then packaged as collection of records and delivered as block; or data may be collected until a package of a certain size has been collected; or content may be summarized statistically over a time interval, or computed as a KPI, with the summary or KPI being delivered.
1001
1002 R-31412: The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for XSS / CSRF.
1003
1004 R-58775: The VNF provider **MUST** provide software components that can be packaged with/near the VNF, if needed, to simulate any functions or systems that connect to the VNF system under test. This component is necessary only if the existing testing environment does not have the necessary simulators.
1005
1006 R-45496: The VNF **MUST** host connectors for access to the OS (Operating System) layer.
1007
1008 R-13151: The VNF **SHOULD** disable the paging of the data requiring encryption, if possible, where the encryption of non-transient data is required on a device for which the operating system performs paging to virtual memory. If not possible to disable the paging of the data requiring encryption, the virtual memory should be encrypted.
1009
1010 R-49308: The VNF **SHOULD** test for adherence to the defined resiliency rating recommendation at each layer, during each delivery cycle with delivered results, so that the resiliency rating is measured and the code is adjusted to meet software resiliency requirements.
1011
1012 R-74763: The VNF provider **MUST** provide an artifact per VNF that contains all of the VNF Event Records supported. The artifact should include reference to the specific release of the VNF Event Stream Common Event Data Model document it is based on. (e.g., `VES Event Listener <https://github.com/att/evel-test-collector/tree/master/docs/att_interface_definition>`__)
1013
1014 R-77786: The VNF Package **MUST** include all relevant cookbooks to be loaded on the ONAP Chef Server.
1015
1016 R-54373: The VNF **MUST** have Python >= 2.7 on the endpoint VM(s) of a VNF on which an Ansible playbook will be executed.
1017
1018 R-60106: The VNF **MUST** implement the protocol operation: **get(filter)** - Retrieve (a filtered subset of) the running configuration and device state information. This should include the list of VNF supported schemas.
1019
1020 R-35305: The VNF **MUST** meet the same guidelines as the Ansible Server hosted by ONAP.
1021
1022 R-95864: The VNF **MUST** use commercial tools that comply with X.509 standards and produce x.509 compliant keys for public/private key generation.
1023
1024 R-23475: The VNF **SHOULD** utilize only NCSP provided Guest OS images. [5]_
1025
1026 R-64503: The VNF **MUST** provide minimum privileges for initial and default settings for new user accounts.
1027
1028 R-42681: The VNF **MUST** use the NCSP’s IDAM API or comply with the requirements if not using the NCSP’s IDAM API, for identification, authentication and access control of OA&M and other system level functions.
1029
1030 R-19219: The VNF **MUST** provide audit logs that include user ID, dates, times for log-on and log-off, and terminal location at minimum.
1031
1032 R-73067: The VNF **MUST** use industry standard cryptographic algorithms and standard modes of operations when implementing cryptography.
1033
1034 R-25878: The VNF **MUST** use certificates issued from publicly recognized Certificate Authorities (CA) for the authentication process where PKI-based authentication is used.
1035
1036 R-70266: The VNF **MUST** respond to an ONAP request to deliver the current data for any of the record types defined in Section 8.d “Data Model for Event Records” by returning the requested record, populated with the current field values. (Currently the defined record types include the common header record, technology independent records such as Fault, Heartbeat, State Change, Syslog, and technology specific records such as Mobile Flow, Signaling and Voice Quality records.  Additional record types will be added in the future as they are standardized and become available.)
1037
1038 R-70496: The VNF **MUST** implement the protocol operation: **commit(confirmed, confirm-timeout)** - Commit candidate configuration datastore to the running configuration.
1039
1040 R-19624: The VNF **MUST** encode and serialize content delivered to ONAP using JSON (option 1). High-volume data is to be encoded and serialized using Avro, where Avro data format are described using JSON (option 2) [6]_.
1041
1042 R-25094: The VNF **MUST** perform data capture for security functions.
1043
1044 R-44032: The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Man in the Middle (MITM).
1045
1046 R-47068: The VNF **MAY** expose a single endpoint that is responsible for all functionality.
1047
1048 R-49396: The VNF **MUST** support each VNF action by invocation of **one** playbook [7]_. The playbook will be responsible for executing all necessary tasks (as well as calling other playbooks) to complete the request.
1049
1050 R-63953: The VNF **MUST** have the echo command return a zero value otherwise the validation has failed
1051
1052 R-56904: The VNF **MUST** interoperate with the ONAP (SDN) Controller so that it can dynamically modify the firewall rules, ACL rules, QoS rules, virtual routing and forwarding rules.
1053
1054 R-37929: The VNF **MUST** accept all necessary instance specific data from the environment or node object attributes for the VNF in roles/cookbooks/recipes invoked for a VNF action.
1055
1056 R-84366: The VNF Package **MUST** include documentation describing VNF Functional APIs that are utilized to build network and application services. This document describes the externally exposed functional inputs and outputs for the VNF, including interface format and protocols supported.
1057
1058 R-58421: The VNF **SHOULD** be decomposed into granular re-usable VNFCs.
1059
1060 R-27711: The VNF provider **MUST** provide an XML file that contains a list of VNF error codes, descriptions of the error, and possible causes/corrective action.
1061
1062 R-78282: The VNF **MUST** conform to the NETCONF RFC 6242, “Using the Network Configuration Protocol over Secure Shell”.
1063
1064 R-99766: The VNF **MUST** allow configurations and configuration parameters to be managed under version control to ensure the ability to rollback to a known valid configuration.
1065
1066 R-89010: The VNF **MUST** survive any single points of software failure internal to the VNF (e.g., in memory structures, JMS message queues).
1067
1068 R-77667: The VNF **MUST** test for adherence to the defined performance budget at each layer, during each delivery cycle so that the performance budget is measured and feedback is provided where the performance budget is not met.
1069
1070 R-21652: The VNF **MUST** implement the following input validation control: Check the size (length) of all input. Do not permit an amount of input so great that it would cause the VNF to fail. Where the input may be a file, the VNF API must enforce a size limit.
1071
1072 R-54190: The VNF **MUST** release locks to prevent permanent lock-outs when/if a session applying the lock is terminated (e.g., SSH session is terminated).
1073
1074 R-12271: The VNF **SHOULD** conform its YANG model to RFC 7223, “IANA Interface Type YANG Module”.
1075
1076 R-25547: The VNF **MUST** log the field “protocol” in the security audit logs.
1077
1078 R-22286: The VNF **MUST** support Integration functionality via API/Syslog/SNMP to other functional modules in the network (e.g., PCRF, PCEF) that enable dynamic security control by blocking the malicious traffic or malicious end users
1079
1080 R-16560: The VNF **MUST** conduct a resiliency impact assessment for all inter/intra-connectivity points in the VNF to provide an overall resiliency rating for the VNF to be incorporated into the software design and development of the VNF.
1081
1082 R-99112: The VNF **MUST** provide the capability to restrict access to data to specific users.
1083
1084 R-02997: The VNF **MUST** preserve their persistent data. Running VMs will not be backed up in the Network Cloud infrastructure.
1085
1086 R-19367: The VNF **MUST** monitor API invocation patterns to detect anomalous access patterns that may represent fraudulent access or other types of attacks, or integrate with tools that implement anomaly and abuse detection.
1087
1088 R-33981: The VNF **SHOULD** interoperate with various access control mechanisms for the Network Cloud execution environment (e.g., Hypervisors, containers).
1089
1090 R-26881: The VNF provider **MUST** provide the binaries and images needed to instantiate the VNF (VNF and VNFC images).
1091
1092 R-69565: The VNF Package **MUST** include documentation describing VNF Management APIs. The document must include information and tools for:
1093
1094 R-92571: The VNF **MUST** provide operational instrumentation such as logging, so as to facilitate quick resolution of issues with the VNF to provide service continuity.
1095
1096 R-29488: The VNF **MUST** implement the protocol operation: **get-config(source, filter)** - Retrieve a (filtered subset of a) configuration from the configuration datastore source.
1097
1098 R-03070: The VNF **MUST**, by ONAP Policy, provide the ONAP addresses as data destinations for each VNF, and may be changed by Policy while the VNF is in operation. We expect the VNF to be capable of redirecting traffic to changed destinations with no loss of data, for example from one REST URL to another, or from one TCP host and port to another.
1099
1100 R-89800: The VNF **MUST NOT** require Hypervisor-level customization from the cloud provider.
1101
1102 R-12110: The VNF **MUST NOT** use keys generated or derived from predictable functions or values, e.g., values considered predictable include user identity information, time of day, stored/transmitted data.
1103
1104 R-03954: The VNF **MUST** survive any single points of failure within the Network Cloud (e.g., virtual NIC, VM, disk failure).
1105
1106 R-98391: The VNF **MUST**, if not using the NCSP’s IDAM API, support Role-Based Access Control to permit/limit the user/application to performing specific activities.
1107
1108 R-29967: The VNF **MUST** conform its YANG model to RFC 6022, “YANG module for NETCONF monitoring”.
1109
1110 R-80335: The VNF **MUST** make visible a Warning Notice: A formal statement of resource intent, i.e., a warning notice, upon initial access to a VNF provider user who accesses private internal networks or Company computer resources, e.g., upon initial logon to an internal web site, system or application which requires authentication.
1111
1112 R-48596: The VNF Package **MUST** include documentation describing the characteristics for the VNF reliability and high availability.
1113
1114 R-49956: The VNF **MUST** pass all access to applications (Bearer, signaling and OA&M) through various security tools and platforms from ACLs, stateful firewalls and application layer gateways depending on manner of deployment. The application is expected to function (and in some cases, interwork) with these security tools.
1115
1116 R-02616: The VNF **MUST** permit locking at the finest granularity if a VNF needs to lock an object for configuration to avoid blocking simultaneous configuration operations on unrelated objects (e.g., BGP configuration should not be locked out if an interface is being configured or entire Interface configuration should not be locked out if a non-overlapping parameter on the interface is being configured).
1117
1118 R-15659: The VNF **MUST** restrict changing the criticality level of a system security alarm to administrator(s).
1119
1120 R-96634: The VNF provider **MUST** describe scaling capabilities to manage scaling characteristics of the VNF.
1121
1122 R-32641: The VNF **MUST** provide the capability to encrypt data on non-volatile memory.
1123
1124 R-48470: The VNF **MUST** support Real-time detection and notification of security events.
1125
1126 R-91681: The VNF **MUST** meet the ONAP Ansible Server API Interface requirements.
1127
1128 R-41825: The VNF **MUST** activate security alarms automatically when the following event is detected: configurable number of consecutive unsuccessful login attempts
1129
1130 R-52870: The VNF **MUST** provide a method of metrics gathering and analysis to evaluate the resiliency of the software from both a granular as well as a holistic standpoint. This includes, but is not limited to thread utilization, errors, timeouts, and retries.
1131
1132 R-89474: The VNF **MUST** log the field “Login ID” in the security audit logs.
1133
1134 R-13390: The VNF provider **MUST** provide cookbooks to be loaded on the appropriate Chef Server.
1135
1136 R-24825: The VNF **MUST** provide Context awareness data (device, location, time, etc.) and be able to integrate with threat detection system.
1137
1138 R-23882: The VNF **SHOULD** be scanned using both network scanning and application scanning security tools on all code, including underlying OS and related configuration. Scan reports shall be provided. Remediation roadmaps shall be made available for any findings.
1139
1140 R-22946: The VNF **SHOULD** conform its YANG model to RFC 6536, “NETCONF Access Control Model”.
1141
1142 R-89753: The VNF **MUST NOT** install or use systems, tools or utilities capable of capturing or logging data that was not created by them or sent specifically to them in production, without authorization of the VNF system owner.
1143
1144 R-88899: The VNF **MUST** support simultaneous <commit> operations within the context of this locking requirements framework.
1145
1146 R-96554: The VNF **MUST** implement the protocol operation: **unlock(target)** - Unlock the configuration datastore target.
1147
1148 R-27995: The VNF **SHOULD** include control loop mechanisms to notify the consumer of the VNF of their exceeding SLA thresholds so the consumer is able to control its load against the VNF.
1149
1150 R-31809: The VNF **MUST** support the HealthCheck RPC. The HealthCheck RPC, executes a VNF providor-defined VNF Healthcheck over the scope of the entire VNF (e.g., if there are multiple VNFCs, then run a health check, as appropriate, for all VNFCs). It returns a 200 OK if the test completes. A JSON object is returned indicating state (healthy, unhealthy), scope identifier, time-stamp and one or more blocks containing info and fault information. If the VNF is unable to run the HealthCheck, return a standard http error code and message.
1151
1152 R-25401: The VNF **MUST** use asymmetric keys of at least 2048 bits in length.
1153
1154 R-31961: The VNF **MUST** support integrated DPI/monitoring functionality as part of VNFs (e.g., PGW, MME).
1155
1156 R-47597: The VNF **MUST** carry data in motion only over secure connections.
1157
1158 R-43253: The VNF **MUST** use playbooks designed to allow Ansible Server to infer failure or success based on the “PLAY_RECAP” capability.
1159
1160 R-23135: The VNF **MUST**, if not using the NCSP’s IDAM API, authenticate system to system communications where one system accesses the resources of another system, and must never conceal individual accountability.
1161
1162 R-99730: The VNF **MUST** include the field “Login ID” in the Security alarms (where applicable and technically feasible).
1163
1164 R-88199: The VNF **MUST** utilize virtualized, scalable open source database software that can meet the performance/latency requirements of the service for all datastores.
1165
1166 R-08598: The VNF **MUST** log successful and unsuccessful changes to a privilege level.
1167
1168 R-87352: The VNF **SHOULD** utilize Cloud health checks, when available from the Network Cloud, from inside the application through APIs to check the network connectivity, dropped packets rate, injection, and auto failover to alternate sites if needed.
1169
1170 R-56920: The VNF **MUST** protect all security audit logs (including API, OS and application-generated logs), security audit software, data, and associated documentation from modification, or unauthorized viewing, by standard OS access control mechanisms, by sending to a remote system, or by encryption.
1171
1172 R-35291: The VNF **MUST** support the ability to failover a VNFC automatically to other geographically redundant sites if not deployed active-active to increase the overall resiliency of the VNF.
1173
1174 R-43332: The VNF **MUST** activate security alarms automatically when the following event is detected: successful modification of critical system or application files
1175
1176 R-81147: The VNF **MUST** have greater restrictions for access and execution, such as up to 3 factors of authentication and restricted authorization, for commands affecting network services, such as commands relating to VNFs.
1177
1178 R-60656: The VNF **MUST** support sub tree filtering.
1179
1180 R-51883: The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Replay.
1181
1182 R-66070: The VNF Package **MUST** include VNF Identification Data to uniquely identify the resource for a given VNF provider. The identification data must include: an identifier for the VNF, the name of the VNF as was given by the VNF provider, VNF description, VNF provider, and version.
1183
1184 R-19804: The VNF **MUST** validate the CA signature on the certificate, ensure that the date is within the validity period of the certificate, check the Certificate Revocation List (CRL), and recognize the identity represented by the certificate where PKI-based authentication is used.
1185
1186 R-06327: The VNF **MUST** respond to a "drain VNFC" [2]_ command against a specific VNFC, preventing new session from reaching the targeted VNFC, with no disruption to active sessions on the impacted VNFC, if a VNF provides a load balancing function across multiple instances of its VNFCs. This is used to support scenarios such as proactive maintenance with no user impact,
1187
1188 R-43125 The VNF Heat **MUST** indent properties and lists with 1 or more spaces.
1189
1190 R-67888 The VNF Heat **MUST** contain the following
1191
1192 R-39402 The VNF Heat **MUST** contain the description section.
1193
1194 R-35414 The VNF Heat **MUST** contain the parameter section.
1195
1196 R-90279 The VNF Heat **MUST** use in a resource all parameters declared in a template except for the parameters for the OS::Nova::Server property availability\_zone. See `Property: availability\_zone`_. for more details on availability\_zone.
1197
1198 R-28657 The VNF Heat **MUST** provide the attribute 'type' on parameters per the OpenStack Heat Orchestration Template standard.
1199
1200 R-44001 The VNF Heat **MUST** provide the attribute 'description' on parameters. (Note that this attribute is OpenStack optional.)
1201
1202 R-90526 The VNF Heat **MUST NOT** use the attribute 'default'. If a parameter has a default value, it must be provided in the environment file. (Note that this attribute is OpenStack optional.)
1203
1204 R-88863 The VNF Heat **MUST** have a constraint of range or allowed\_values for a parameter type 'number'.
1205
1206 R-23664 The VNF Heat **MUST** have a resources: section with the declaration of at least one resource.
1207
1208 R-16447 The VNF Heat **MUST** have unique resource IDs across all Heat Orchestration Templates that compose the VNF. This requirement also applies when a VNF is composed of more than one Heat Orchestration Template (see ONAP VNF Modularity Overview).
1209
1210 R-97199 The VNF Heat **MUST** use the metadata property for OS::Nova::Server resource type.
1211
1212 R-03324 The VNF Heat **MUST** contain the following sections in the environment file:
1213
1214 R-19473 The VNF Heat **MUST** include "base" in the filename for the base module
1215
1216 R-81339 The VNF Heat **MUST** match one of the following options for the base module file name:
1217
1218 R-91342 The VNF Heat **MUST** name the base module's corresponding environment file to be identical to the base module with ".y[a]ml" replaced with ".env".
1219
1220 R-87247 The VNF Heat **MUST NOT** use any special characters or the word "base" in the name of the incremental module.
1221
1222 R-94509 The VNF Heat **MUST** name the incremental module's corresponding environment file to be identical to the incremental module with ".y[a]ml" replaced with ".env".
1223
1224 R-82732 The VNF Heat **MUST** name the Cinder volume module file name to be the same as the corresponding module it is supporting (base module or incremental module) with "\_volume" appended.
1225
1226 R-31141 The VNF Heat **MUST** name the volume module's corresponding environment file to be identical to the volume module with ".y[a]ml" replaced with ".env".
1227
1228 R-76057 The VNF Heat **MUST NOT** use special characters or the word "base" in the file name for the nested template.
1229
1230 R-18224 The VNF Heat **MUST** pass in as properties all parameter values associated with the nested heat file in the resource definition defined in the parent heat template.
1231
1232 R-07443 The VNF Heat **MUST** match the Output parameter name and type with the input parameter name and type unless the Output parameter is of the type comma\_delimited\_list.
1233
1234 R-23983 The VNF **MUST** pass the external networks into the VNF Heat Orchestration Templates as parameters.
1235
1236 R-63345 The VNF Heat **MUST** pass the appropriate external network IDs into nested VM templates when nested Heat is used.
1237
1238 R-35666 The VNF Heat **MUST** include the resource(s) to create the internal network. The internal network must be either a Neutron Network or a Contrail Network.
1239
1240 R-86972 The VNF Heat **MUST** create internal networks in the Base Module, in the modular approach, with their resource IDs exposed as outputs (i.e., ONAP Base Module Output Parameters) for use by all incremental modules. If the Network resource ID is required in the base template, then a get\_resource must be used.
1241
1242 R-68936 The VNF Heat **SHOULD** assign a unique {network-role} in the context of the VNF, when the internal network is created. `ONAP Resource ID and Parameter Naming Convention`_ provides additional details.
1243
1244 R-01455 The VNF Heat **MUST** assign a VNF unique {vm-type} for each Virtual Machine type (i.e., OS::Nova::Server) instantiated in the VNF. While the {vm-type} must be unique to the VNF, it does not have to be globally unique across all VNFs that ONAP supports.
1245
1246 R-82481 The VNF Heat **MUST** include {vm-type} as part of the parameter name for any parameter that is associated with a unique Virtual Machine type.
1247
1248 R-66729 The VNF Heat **MUST** include {vm-type} as part of the resource ID for any resource ID that is associated with a unique Virtual Machine type in the VNF.
1249
1250 R-32394 The VNF Heat **MUST** use the same case for {vm-type} for all parameter names in the VNF.
1251
1252 R-46839 The VNF Heat **MUST** use the same case for {vm-type} for all Resource IDs in the VNF.
1253
1254 R-05008 The VNF Heat **MUST NOT** be prefixed with a common {vm-type} identifier for the six ONAP Metadata parameters. They are *vnf\_name*, *vnf\_id*, *vf\_module\_id*, *vf\_module\_name, vm\_role*. The ONAP Metadata parameters are described in `Resource:  OS::Nova::Server - Metadata Parameters`_.
1255
1256 R-15422 The VNF Heat **MUST NOT** be prefixed with a common {vm-type} identifier the parameter referring to the OS::Nova::Server property availability\_zone . availability\_zone is described in `Property: availability_zone`_.
1257
1258 R-21330 The VNF Heat **MUST** include the {network-role} as part of the parameter name for any parameter that is associated with an external network.
1259
1260 R-11168 The VNF Heat **MUST** include the {network-role} as part of the resource ID for any resource ID that is associated with an external network must.
1261
1262 R-84322 The VNF Heat **MUST** include int\_{network-role} as part of the parameter name for any parameter that is associated with an internal network.
1263
1264 R-96983 The VNF Heat **MUST** include int\_{network-role} as part of the resource ID for any resource ID that is associated with an internal network.
1265
1266 R-58424 The VNF Heat **MUST** use the same case for {network-role} for all parameter names in the VNF.
1267
1268 R-21511 The VNF Heat **MUST** use the same case for {network-role} for all Resource IDs in the VNF.
1269
1270 R-59629 The VNF Heat **MUST** have unique resource IDs within the resources section of a Heat Orchestration Template. This is an OpenStack Requirement.
1271
1272 R-43319 The VNF Heat **MUST** have unique resource IDs across all modules that compose the VNF, when a VNF is composed of more than one Heat Orchestration Template (i.e., modules).
1273
1274 R-54517 The VNF Heat **MUST** include {vm-type} in the resource ID when a resource is associated with a single {vm-type}.
1275
1276 R-96482 The VNF Heat **MUST** include {network-role} in the resource ID when a resource is associated with a single external network.
1277
1278 R-98138 The VNF Heat **MUST** include int\_{network-role} in the resource ID when a resource is associated with a single internal network.
1279
1280 R-82115 The VNF Heat **MUST** include both the {vm-type} and {network-role} in the resource ID, when a resource is associated with a single {vm-type} and a single external network.
1281
1282 R-82551 The VNF Heat **MUST** include both the {vm-type} and int\_{network-role} in the resource ID, when a resource is associated with a single {vm-type} and a single internal network.
1283
1284 R-69287 The VNF Heat **MUST** use only alphanumeric characters and "\_" underscores in the resource ID. Special characters must not be used.
1285
1286 R-71152 The VNF Heat **MUST** declare as type: string the parameter for property image.
1287
1288 R-91125 The VNF Heat **MUST** enumerate the parameter for property image in the Heat Orchestration Template environment file.
1289
1290 R-57282 The VNF Heat **MUST** have a separate parameter for image for Each VM type (i.e., {vm-type}) even if more than one {vm-type} shares the same image. This provides maximum clarity and flexibility.
1291
1292 R-50436 The VNF Heat **MUST** declare the parameter property for flavor as type: string.
1293
1294 R-69431 The VNF Heat **MUST** enumerate the parameter for property flavor in the Heat Orchestration Template environment file.
1295
1296 R-40499 The VNF Heat **MUST** have a separate parameter for flavor for each VM type (i.e., {vm-type}) even if more than one {vm-type} shares the same flavor. This provides maximum clarity and flexibility.
1297
1298 R-22838 The VNF Heat **MUST NOT** enumerate the parameter for property name in the environment file.
1299
1300 R-51430 The VNF Heat **MUST** declare the parameter for property name as type: string or type: comma\_delimited\_list
1301
1302 R-98450 The VNF Heat **MUST** name the parameter availability\_zone\_{index} in the Heat Orchestration Template.
1303
1304 R-13561 The VNF Heat **MUST** start the {index} at zero.
1305
1306 R-60204 The VNF Heat **MUST** increment the {index} by one.
1307
1308 R-36887 The VNF Heat **MUST NOT** include the {vm-type} in the parameter name.
1309
1310 R-17020 The VNF Heat **MUST** include the following three mandatory metadata parameters for an OS::Nova::Server resource:
1311
1312 R-55218 The VNF Heat **MUST NOT** have parameter constraints defined for the OS::Nova::Server metadata parameter vnf\_id.
1313
1314 R-20856 The VNF Heat **MUST NOT** enumerate the OS::Nova::Server metadata parameter vnf\_id in environment file.
1315
1316 R-98374 The VNF Heat **MUST NOT** have parameter constraints defined for the OS::Nova::Server metadata parameter vf\_module\_id.
1317
1318 R-72871 The VNF Heat **MUST NOT** enumerate the OS::Nova::Server metadata parameter vf\_module\_id in environment file.
1319
1320 R-44318 The VNF Heat **MUST NOT** have parameter constraints defined for the OS::Nova::Server metadata parameter vnf\_name.
1321
1322 R-36542 The VNF Heat **MUST NOT** enumerate the OS::Nova::Server metadata parameter vnf\_name in the environment file.
1323
1324 R-72050 The VNF Heat **MUST** contain {network-role} in the parameter name
1325
1326 R-57576 The VNF Heat **MUST** contain int\_{network-role} in the parameter name.
1327
1328 R-93272 The VNF Heat **MUST** adhere to the following parameter naming convention in the Heat Orchestration Template, when the parameter associated with the property network is referencing an "external" network:
1329
1330 R-65373 The VNF Heat **MUST**  adhere to the following parameter naming convention, when the parameter associated with the property network is referencing an "internal" network:
1331
1332 R-47716 The VNF Heat **MUST** adhere to the following parameter naming convention for the property fixed\_ips and Map Property subnet\_id parameter, when the parameter is referencing a subnet of an "external" network.
1333
1334 R-20106 The VNF Heat **MUST** adhere to the following naming convention for the property fixed\_ips and Map Property subnet\_id parameter, when the parameter is referencing the subnet of an "internal" network:
1335
1336 R-41177 The VNF Heat **MUST** include {vm-type} and {network-role} in the parameter name, when a SDN-C IP assignment is made to a port connected to an external network.
1337
1338 R-84898 The VNF Heat **MUST** adhere to the following naming convention, when the parameter for property fixed\_ips and Map Property ip\_address is declared type: comma\_delimited\_list:
1339
1340 R-34960 The VNF Heat **MUST** adhere to the following naming convention, when the parameter for property fixed\_ips and Map Property ip\_address is declared type: string:
1341
1342 R-62584 The VNF Heat **MUST** adhere to the following naming convention, when the parameter for property fixed\_ips and Map Property ip\_address is declared type: comma\_delimited\_list:
1343
1344 R-29256 The VNF Heat **MUST** must adhere to the following naming convention, when the parameter for property fixed\_ips and Map Property ip\_address is declared type: string:
1345
1346 R-61282 The VNF Heat **MUST** adhere to the following naming convention for the property allowed\_address\_pairs and Map Property ip\_address parameter, when the parameter is referencing an "external" network:
1347
1348 R-16805 The VNF Heat **MUST** adhere to the following naming convention for the property allowed\_address\_pairs and Map Property ip\_address parameter when the parameter is referencing an "internal" network.
1349
1350 R-85734 The VNF Heat **MUST** use the intrinsic function str\_replace in conjunction with the ONAP supplied metadata parameter vnf\_name to generate a unique value, when the property name for a non OS::Nova::Server resources is defined in a Heat Orchestration Template.
1351
1352 R-47788 The VNF Heat **MUST** have a 1:1 scope of a cinder volume module, when it exists, with the Base Module or Incremental Module.
1353
1354 R-79531 The VNF Heat **MUST** define "outputs" in the volume template for each Cinder volume resource universally unique identifier (UUID) (i.e. ONAP Volume Template Output Parameters).
1355
1356 R-86285 The VNF Heat **MUST** have a corresponding environment file, even if no parameters are required to be enumerated.
1357
1358 R-67205 The VNF Heat **MUST** have a corresponding environment file for a Base Module.
1359
1360 R-35727 The VNF Heat **MUST** have a corresponding environment file for an Incremental module.
1361
1362 R-22656 The VNF Heat **MUST** have a corresponding environment file for a Cinder Volume Module.
1363
1364 R-89868 The VNF Heat **MUST** have unique file names within the scope of the VNF for a nested heat yaml file.
1365
1366 R-52530 The VNF Heat **MUST NOT** use a directory hierarchy for nested templates. All templates must be in a single, flat directory (per VNF).
1367
1368 R-11041 The VNF Heat **MUST** have the resource calling the nested yaml file pass in as properties all parameters defined in nested yaml file. 
1369   
1370 R-61183 The VNF Heat **MUST NOT** change the parameter names, when OS::Nova::Server metadata parameters are past into a nested heat template.
1371
1372 R-76718 The VNF Heat **MUST** reference the get\_files targets in Heat templates by file name, and the corresponding files should be delivered to ONAP along with the Heat templates.
1373
1374 R-41888 The VNE Heat **MUST NOT** use URL-based file retrieval.
1375
1376 R-62177 The VNF Heat **MUST** have unique file names for the included files within the scope of the VNF.
1377
1378 R-87848 The VNF Heat **MUST** have all included files in a single, flat directory per VNF. ONAP does not support a directory hierarchy.
1379
1380 R-85653: The VNF **MUST** provide metrics (e.g., number of sessions, number of subscribers, number of seats, etc.) to ONAP for tracking every license.
1381
1382 R-63330: The VNF **MUST** detect when the security audit log storage medium is approaching capacity (configurable) and issue an alarm via SMS or equivalent as to allow time for proper actions to be taken to pre-empt loss of audit data.
1383
1384 R-22645: The VNF **SHOULD** use commercial algorithms only when there are no applicable governmental standards for specific cryptographic functions, e.g., public key cryptography, message digests.
1385
1386 R-22888: The VNF provider **MUST** provide documentation for the VNF Policy Description to manage the VNF runtime lifecycle. The document must include a description of how the policies (conditions and actions) are implemented in the VNF.
1387
1388 R-78066: The VNF **MUST** support requests for information from law enforcement and government agencies.
1389
1390 R-35144: The VNF **MUST**, if not using the NCSP’s IDAM API, comply with the NCSP’s credential management policy.
1391
1392 R-85959: The VNF **SHOULD** automatically enable/disable added/removed sub-components or component so there is no manual intervention required.
1393
1394 R-28756: The VNF **MUST** support **:partial-lock** and **:partial-unlock** capabilities, defined in RFC 5717. This allows multiple independent clients to each write to a different part of the <running> configuration at the same time.
1395
1396 R-41252: The VNF **MUST** support the capability of online storage of security audit logs.
1397
1398 R-77707: The VNF provider **MUST** include a Manifest File that contains a list of all the components in the VNF package.
1399
1400 R-20860: The VNF **MUST** be agnostic to the underlying infrastructure (such as hardware, host OS, Hypervisor), any requirements should be provided as specification to be fulfilled by any hardware.
1401
1402 R-01478: The VNF Package **MUST** include documentation describing all parameters that are available to monitor the VNF after instantiation (includes all counters, OIDs, PM data, KPIs, etc.) that must be collected for reporting purposes. The documentation must include a list of:
1403
1404 R-22059: The VNF **MUST NOT** execute long running tasks (e.g., IO, database, network operations, service calls) in a critical section of code, so as to minimize blocking of other operations and increase concurrent throughput.
1405
1406 R-30650: The VNF **MUST** utilize cloud provided infrastructure and VNFs (e.g., virtualized Local Load Balancer) as part of the VNF so that the cloud can manage and provide a consistent service resiliency and methods across all VNF's.
1407
1408 R-30654: The VNF Package **MUST** have appropriate cookbooks that are designed to automatically ‘rollback’ to the original state in case of any errors for actions that change state of the VNF (e.g., configure).
1409
1410 R-29705: The VNF **MUST** restrict changing the criticality level of a system security alarm to administrator(s).
1411
1412 R-71787: The VNF **MUST** comply with Segregation of Duties (access to a single layer and no developer may access production without special oversight) when persons or non-person entities access VNFs.
1413
1414 R-86758: The VNF **SHOULD** provide an automated test suite to validate every new version of the software on the target environment(s). The tests should be of sufficient granularity to independently test various representative VNF use cases throughout its lifecycle. Operations might choose to invoke these tests either on a scheduled basis or on demand to support various operations functions including test, turn-up and troubleshooting.
1415
1416 R-06885: The VNF **SHOULD** support the ability to scale down a VNFC pool without jeopardizing active sessions. Ideally, an active session should not be tied to any particular VNFC instance.
1417
1418 R-06924: The VNF **MUST** deliver asynchronous data as data becomes available, or according to the configured frequency.
1419
1420 R-65134: The VNF **SHOULD** maintain state in a geographically redundant datastore that may, in fact, be its own VNFC.
1421
1422 R-13627: The VNF **MUST** monitor API invocation patterns to detect anomalous access patterns that may represent fraudulent access or other types of attacks, or integrate with tools that implement anomaly and abuse detection.
1423
1424 R-86455: The VNF **SHOULD** support hosting connectors for OS Level and Application Access.
1425
1426 R-68990: The VNF **MUST** support the **:startup** capability. It will allow the running configuration to be copied to this special database. It can also be locked and unlocked.
1427
1428 R-78010: The VNF **MUST** use the NCSP’s IDAM API for Identification, authentication and access control of customer or VNF application users.
1429
1430 R-46986: The VNF **SHOULD** have source code scanned using scanning tools (e.g., Fortify) and provide reports.
1431
1432 R-97293: The VNF provider **MUST NOT** require audits of Service Provider’s business.
1433
1434 R-16065: The VNF provider **MUST** provide configurable parameters (if unable to conform to YANG model) including VNF attributes/parameters and valid values, dynamic attributes and cross parameter dependencies (e.g., customer provisioning data).
1435
1436 R-34484: The VNF **SHOULD** create a single component VNF for VNFCs that can be used by other VNFs.
1437
1438 R-30278: The VNF provider **MUST** provide a Resource/Device YANG model as a foundation for creating the YANG model for configuration. This will include VNF attributes/parameters and valid values/attributes configurable by policy.
1439
1440 R-35401: The VNF **MUST** must support SSH and allow SSH access to the Ansible server for the endpoint VM(s) and comply with the  Network Cloud Service Provider guidelines for authentication and access.
1441
1442 R-68200: The VNF **MUST** support the **:url** value to specify protocol operation source and target parameters. The capability URI for this feature will indicate which schemes (e.g., file, https, sftp) that the server supports within a particular URL value. The 'file' scheme allows for editable local configuration databases. The other schemes allow for remote storage of configuration databases.
1443
1444 R-41159: The VNF **MUST** deliver any and all functionality from any VNFC in the pool. The VNFC pool member should be transparent to the client. Upstream and downstream clients should only recognize the function being performed, not the member performing it.
1445
1446 R-18864: The VNF **MUST** NOT use technologies that bypass virtualization layers (such as SR-IOV) unless approved by the NCSP (e.g., if necessary to meet functional or performance requirements).
1447
1448 R-37028: The VNF **MUST** be composed of one “base” module.
1449
1450 R-40827: The VNF provider **MUST** enumerate all of the open source licenses their VNF(s) incorporate.
1451
1452 R-95950: The VNF **MUST** provide a NETCONF interface fully defined by supplied YANG models for the embedded NETCONF server.
1453
1454 R-10716: The VNF **MUST** support parallel and simultaneous configuration of separate objects within itself.
1455
1456 R-71842: The VNF **MUST** include the field “service or program used for access” in the Security alarms (where applicable and technically feasible).
1457
1458 R-54430: The VNF **MUST** use the NCSP’s supported library and compute flavor that supports DPDK to optimize network efficiency if using DPDK. [5]_
1459
1460 R-03465: The VNF **MUST** release locks to prevent permanent lock-outs when the corresponding <partial-unlock> operation succeeds.
1461
1462 R-65755: The VNF **SHOULD** support callback URLs to return information to ONAP upon completion of the chef-client run for any chef-client run associated with a VNF action.
1463
1464 R-11499: The VNF **MUST** fully support the XPath 1.0 specification for filtered retrieval of configuration and other database contents. The 'type' attribute within the <filter> parameter for <get> and <get-config> operations may be set to 'xpath'. The 'select' attribute (which contains the XPath expression) will also be supported by the server. A server may support partial XPath retrieval filtering, but it cannot advertise the **:xpath** capability unless the entire XPath 1.0 specification is supported.
1465
1466 R-95105: The VNF **MUST** host connectors for access to the application layer.
1467
1468 R-77157: The VNF **MUST** conform to approved request, workflow authorization, and authorization provisioning requirements when creating privileged users.
1469
1470 R-63473: The VNF **MUST** automatically advertise newly scaled components so there is no manual intervention required.
1471
1472 R-13613: The VNF **MUST** provide clear measurements for licensing purposes to allow automated scale up/down by the management system.
1473
1474 R-66793: The VNF **MUST** guarantee the VNF configuration integrity for all simultaneous configuration operations (e.g., if a change is attempted to the BUM filter rate from multiple interfaces on the same EVC, then they need to be sequenced in the VNF without locking either configuration method out).
1475
1476 R-19790: The VNF **MUST NOT** include authentication credentials in security audit logs, even if encrypted.
1477
1478 R-97529: The VNF **SHOULD** implement the protocol operation: **get-schema(identifier, version, format) -** Retrieve the YANG schema.
1479
1480 R-84473: The VNF **MUST** enable DPDK in the guest OS for VNF’s requiring high packets/sec performance.  High packet throughput is defined as greater than 500K packets/sec.
1481
1482 R-54816: The VNF **MUST** support the storage of security audit logs for agreed period of time for forensic analysis.
1483
1484 R-34957: The VNF **MUST** provide a method of metrics gathering for each layer's performance to identify/document variances in the allocations so they can be addressed.
1485
1486 R-43958: The VNF Package **MUST** include documentation describing the tests that were conducted by the VNF provider and the test results.
1487
1488 R-61648: The VNF **MUST** support event logging, formats, and delivery tools to provide the required degree of event data to ONAP
1489
1490 R-18525: The VNF provider **MUST** provide a JSON file for each supported action for the VNF.  The JSON file must contain key value pairs with all relevant values populated with sample data that illustrates its usage. The fields and their description are defined in Appendix A.
1491
1492 R-99174: The VNF **MUST** comply with Individual Accountability (each person must be assigned a unique ID) when persons or non-person entities access VNFs.
1493
1494 R-99771: The VNF **MUST** provide all code/configuration files in a “Locked down” or hardened state or with documented recommendations for such hardening. All unnecessary services will be disabled. VNF provider default credentials, community strings and other such artifacts will be removed or disclosed so that they can be modified or removed during provisioning.
1495
1496 R-58358: The VNF **MUST** implement the **:with-defaults** capability [RFC6243].
1497
1498 R-78116: The VNF **MUST** update status on the Chef Server appropriately (e.g., via a fail or raise an exception) if the chef-client run encounters any critical errors/failures when executing a VNF action.
1499
1500 R-84879: The VNF **MUST** have the capability of maintaining a primary and backup DNS name (URL) for connecting to ONAP collectors, with the ability to switch between addresses based on conditions defined by policy such as time-outs, and buffering to store messages until they can be delivered. At its discretion, the service provider may choose to populate only one collector address for a VNF. In this case, the network will promptly resolve connectivity problems caused by a collector or network failure transparently to the VNF.
1501
1502 R-06413: The VNF **MUST** log the field “service or program used for access” in the security audit logs.
1503
1504 R-51442: The VNF **SHOULD** use playbooks that are designed to automatically ‘rollback’ to the original state in case of any errors for actions that change state of the VNF (e.g., configure).
1505
1506 R-98989: The VNF **SHOULD** utilize resource pooling (threads, connections, etc.) within the VNF application so that resources are not being created and destroyed resulting in resource management overhead.
1507
1508 R-58998: The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Malware (Key Logger).
1509
1510 R-52499: The VNF **MUST** meet their own resiliency goals and not rely on the Network Cloud.
1511
1512 R-43327: The VNF **SHOULD** use “Modeling JSON text with YANG”, https://trac.tools.ietf.org/id/draft-lhotka-netmod-yang-json-00.html, If YANG models need to be translated to and from JSON. YANG configuration and content can be represented via JSON, consistent with Avro, as described in “Encoding and Serialization” section.
1513
1514 R-52060: The VNF **MUST** provide the capability to configure encryption algorithms or devices so that they comply with the laws of the jurisdiction in which there are plans to use data encryption.
1515
1516 R-10353: The VNF **MUST** conform its YANG model to RFC 6244, “An Architecture for Network Management Using NETCONF and YANG”.
1517
1518 R-26586: The VNF **SHOULD** support the ability to work with aliases (e.g., gateways, proxies) to protect and encapsulate resources.
1519
1520 R-14025: The VNF **MUST** provide or support the Identity and Access Management (IDAM) based threat detection data for Session Hijacking.
1521
1522 R-86835: The VNF **MUST** set the default settings for user access to sensitive commands and data to deny authorization.
1523
1524 R-73583: The VNF **MUST** allow changes of configuration parameters to be consumed by the VNF without requiring the VNF or its sub-components to be bounced so that the VNF availability is not effected.
1525
1526 R-73223: The VNF **MUST** support proactive monitoring to detect and report the attacks on resources so that the VNFs and associated VMs can be isolated, such as detection techniques for resource exhaustion, namely OS resource attacks, CPU attacks, consumption of kernel memory, local storage attacks.
1527
1528 R-06668: The VNF **MUST** handle the start or restart of VNFC instances in any order with each VNFC instance establishing or re-establishing required connections or relationships with other VNFC instances and/or VNFs required to perform the VNF function/role without requiring VNFC instance(s) to be started/restarted in a particular order.
1529
1530 R-41215: The VNF **MAY** have zero to many “incremental” modules.
1531
1532 R-85991: The VNF provider **MUST** provide a universal license key per VNF to be used as needed by services (i.e., not tied to a VM instance) as the recommended solution. The VNF provider may provide pools of Unique VNF License Keys, where there is a unique key for each VNF instance as an alternate solution. Licensing issues should be resolved without interrupting in-service VNFs.
1533
1534 R-52085: The VNF **MUST**, if not using the NCSP’s IDAM API, provide the ability to support Multi-Factor Authentication (e.g., 1st factor = Software token on device (RSA SecureID); 2nd factor = User Name+Password, etc.) for the users.
1535
1536 R-29495: The VNF **MUST** support locking if a common object is being manipulated by two simultaneous NETCONF configuration operations on the same VNF within the context of the same writable running data store (e.g., if an interface parameter is being configured then it should be locked out for configuration by a simultaneous configuration operation on that same interface parameter).
1537
1538 R-31751: The VNF **MUST** subject VNF provider VNF access to privilege reconciliation tools to prevent access creep and ensure correct enforcement of access policies.
1539
1540 R-48698: The VNF **MUST** utilize   information from key value pairs that will be provided by the Ansible Server as extra-vars during invocation to execute the desired VNF action. If the playbook requires files, they must also be supplied using the methodology detailed in the Ansible Server API.
1541
1542 R-44290: The VNF **MUST** control access to ONAP and to VNFs, and creation of connections, through secure credentials, log-on and exchange mechanisms.
1543
1544 R-40293: The VNF **MUST** make available (or load on VNF Ansible Server) playbooks that conform to the ONAP requirement.
1545
1546 R-30932: The VNF **MUST** provide security audit logs including records of successful and rejected system access data and other resource access attempts.
1547
1548 R-12538: The VNF **SHOULD** support load balancing and discovery mechanisms in resource pools containing VNFC instances.
1549
1550 R-59610: The VNF **MUST** implement the data model discovery and download as defined in [RFC6022].
1551
1552 R-49945: The VNF **MUST** authorize VNF provider access through a client application API by the client application owner and the resource owner of the VNF before provisioning authorization through Role Based Access Control (RBAC), Attribute Based Access Control (ABAC), or other policy based mechanism.
1553
1554 R-20912: The VNF **MUST** support alternative monitoring capabilities when VNFs do not expose data or control traffic or use proprietary and optimized protocols for inter VNF communication.
1555
1556
1557 Ansible Playbook Examples
1558 -----------------------------------------------
1559
1560 The following sections contain examples of Ansible playbook contents
1561 which follow the guidelines.
1562
1563 Guidelines for Playbooks to properly integrate with APPC
1564 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1565
1566 NOTE: To support concurrent requests to multiple VNF instances of same
1567 or different type, VNF hosts and other files with VNF specific default
1568 values are kept or created in separate directories.
1569
1570 Example of an Ansible command (after pwd) to run playbook again
1571 vfdb9904v VNF instance:
1572
1573 .. code-block:: none
1574
1575  $ pwd
1576  /storage/vfdb/V16.1/ansible/configure
1577  $ ansible-playbook -i ../inventory/vfdb9904v/hosts site.yml --extra-vars "vnf_instance=vfdb9904v"
1578
1579 Example of corresponding APPC API Call from ONAP – Ansible Server
1580 Specifications:
1581
1582 An example POST for requesting execution of configure Playbook:
1583
1584 .. code-block:: none
1585
1586  {"Id": "10", "PlaybookName":
1587  "/storage/vfdb/latest/ansible/configure/site.yml", "NodeList":
1588  ["vfdb9904v"], "Timeout": 60, "EnvParameters": {"Retry": 3, "Wait": 5},
1589  "LocalParameters": {"vfdb9904v": {"T_true": 10, "T_false": 5,
1590  "T_nfo": 5}}}
1591
1592 Comments:
1593
1594 -  An ID number is assigned to each request. This ID number is used to
1595    track request down to completion and provide status to APPC when
1596    requested.
1597
1598 -  Playbook Name provided in the request (full path in this case)
1599
1600 -  Playbook path (in this example provided as part of playbook name as
1601    full path) or, later in a separate variable, playbook root directory
1602    needs to be part of APPC template.
1603
1604 Ansible Playbooks will use the VNF instance name (passed using
1605 --extra-vars "vnf\_instance=vfdb9904v") to identify other default values
1606 to run the playbook(s) against the target VNF instance. Same example as
1607 above:
1608
1609 .. code-block:: none
1610
1611  $ ansible-playbook -i ../inventory/vfdb9904v/hosts site.yml --extra-vars "vnf_instance=vfdb9904v"
1612
1613 SSH key info (name/path), used to authenticate with the VNF VMs, is one
1614 of the attributes stored in the Ansible Server inventory hosts file for
1615 the VNF instance and later will be passed down by APPC, in the inventory
1616 hosts file, to the Ansible Server as part of the request. Here hosts
1617 file to run ansible-playbook listed in this example above (IP addresses
1618 were scrubbed):
1619
1620 .. code-block:: none
1621
1622  $ more ../inventory/vfdb9904v/hosts
1623  [host]
1624  localhost ansible_connection=local
1625
1626  [oam]
1627  1xx.2yy.zzz.109 ansible_ssh_private_key_file=/storage/.ssh/Kilo-SSH-Key.pem
1628  1xx.2yy.zzz.110 ansible_ssh_private_key_file=/storage/.ssh/Kilo-SSH-Key.pem
1629
1630  [rdb]
1631  1xx.2yy.zzz.105 ansible_ssh_private_key_file=/storage/.ssh/Kilo-SSH-Key.pem
1632  1xx.2yy.zzz.106 ansible_ssh_private_key_file=/storage/.ssh/Kilo-SSH-Key.pem
1633
1634 NOTE: APPC requests to run Playbooks/Cookbooks are specific to a VNF,
1635 but could be more limited to one VM or one type of VM by the request
1636 parameters. Actions that may impact a site (LCP), a service, or an
1637 entire platform must be orchestrated by MSO in order to execute requests
1638 via APPC which then invoke VNF level playbooks. Playbooks that impact
1639 more than a single VNF are not the current focus of these guidelines.
1640
1641 And here the scrubbed default arguments for this VNF instance:
1642
1643 .. code-block:: none
1644
1645  vnf_instance=vfdb9904v
1646
1647  $ more ../vars/vfdb9904v/default_args.yml
1648  vnf_provider_network_network: d69fea03-xxx-yyy-zzz-nnnnnnnnnnnn
1649  vnf_provider_network_subnet: a07f6a3d-xxxx-yyy-zzz-ssssssssssss
1650  vm_config_oam_vnfc_name: vfdb9904vm001oam001
1651  vm_config_oam_hostname: vfdb9904vm001
1652  vm_config_oam_provider_ip_address: 1xx.2yy.zzz.109
1653  …
1654
1655 IMPORTANT: The APPC and default file attribute name for
1656 vm\_config\_oam\_vnfc\_name, as an example, is derived from vm\_config
1657 array structure (list) in the CSAR package ENV file, with dots replaced
1658 by underscore:
1659
1660 .. code-block:: none
1661
1662  vm_config:
1663
1664  oam: {vnfc_name: {{ vm_config_oam_vnfc_name }}, hostname: {{
1665  vm_config_oam_hostname }}, provider_ip_address: {{
1666  vm_config_oam_provider_ip_address }
1667  },
1668  …
1669
1670 Parameters like VNF names, VNFC names, OA&M IP addresses, after
1671 February, 2018 ONAP release, will be extracted from A&AI by APPC and
1672 then passed down to Ansible Server, as part of APPC request through REST
1673 API. In the meantime, these VNF instance specific required values, will
1674 be stored on VNF instance directory, default arguments file and will be
1675 used as defaults. For parameterized playbooks attribute-value pairs
1676 passed down by APPC to Ansible Server always take precedence over
1677 template or VNF instance specific defaults stored in defaults file(s).
1678
1679 .. code-block:: none
1680
1681  $ pwd
1682  /storage/vfdb/latest/ansible
1683
1684  $ more vars/vfdb9904v/default_args.yml
1685
1686  vm_config_oam1_vnfc_name: vfdb9904vm001oam001
1687  vm_config_oam1_hostname: vfdb9904vm001
1688  vm_config_oam1_provider_ip_address: 1xx.2yy.zzz.109
1689
1690  vm_config_oam2_vnfc_name: vfdb9904vm002oam001
1691  vm_config_oam2_hostname: vfdb9904vm002
1692  vm_config_oam2_provider_ip_address: 1xx.2yy.zzz.110
1693
1694  vm_config_rdb1_vnfc_name: vfdb9904vm003rdb001
1695  vm_config_rdb1_hostname: vfdb9904vm003
1696  vm_config_rdb1_provider_ip_address: 1xx.2yy.zzz.105
1697
1698  vm_config_rdb2_vnfc_name: vfdb9904vm004rdb001
1699  vm_config_rdb2_hostname: vfdb9904vm004
1700  vm_config_rdb2_provider_ip_address: 1xx.2yy.zzz.106
1701
1702  vm_config_rdb3_vnfc_name: vfdb9904vm005rdb001
1703  vm_config_rdb3_hostname: vfdb9904vm005
1704  vm_config_rdb3_provider_ip_address: 1xx.2yy.zzz.xxx
1705
1706  vm_config_rdb4_vnfc_name: vfdb9904vm006rdb001
1707  vm_config_rdb4_hostname: vfdb9904vm006
1708  vm_config_rdb4_provider_ip_address: 1xx.2yy.zzz.yyy
1709
1710 One of the first tasks on the Ansible Playbooks is to combine the VNF
1711 type generic template, derived from ENV files in CSAR or other files,
1712 with these default values stored on the Ansible Server, together with
1713 the overriding parameters passed down from APPC, to create the VNF
1714 instance specific set of attribute-value pairs to be used for the run in
1715 YAML format. Here is an excerpt from such a file that should look
1716 somewhat similar to ENV files:
1717
1718 .. code-block:: none
1719
1720  $ more tmp/vfdb9904v/all.yml
1721
1722  deployment_prefix: vfdb9904v
1723  vm_config:
1724  oam1: { vnfc_name: vfdb9904vm001oam001, hostname: vfdb9904vm001, provider_ip_address: 1xx.2yy.zzz.109, private_ip_address: 192.168.10.107 }
1725  oam2: { vnfc_name: vfdb9904vm002oam001, hostname: vfdb9904vm002, provider_ip_address: 1xx.2yy.zzz.110, private_ip_address: 192.168.10.108 }
1726  rdb1: { vnfc_name: vfdb9904vm003rdb001, hostname: vfdb9904vm003, provider_ip_address: 1xx.2yy.zzz.105, private_ip_address: 192.168.10.109 }
1727  rdb2: { vnfc_name: vfdb9904vm004rdb001, hostname: vfdb9904vm004, provider_ip_address: 1xx.2yy.zzz.106, private_ip_address: 192.168.10.110 }
1728  rdb3: { vnfc_name: vfdb9904vm005rdb001, hostname: vfdb9904vm005, provider_ip_address: 1xx.2yy.zzz.xxx, private_ip_address: 192.168.10.111 }
1729  rdb4: { vnfc_name: vfdb9904vm006rdb001, hostname: vfdb9904vm006, provider_ip_address: 1xx.2yy.zzz.yyy, private_ip_address: 192.168.10.112 }
1730  …
1731  timezone: Etc/UTC
1732  …
1733  template_version: '2014-10-16'
1734  stack_name: vfdb9904v
1735  key_name: ONAPkilo-keypair
1736  c3dbtype: OAM
1737  stackName: vfdb9904v
1738  juno_base: true
1739  …
1740
1741 # logins list contain 'login name', 'login group', 'login password'
1742
1743 .. code-block:: none
1744
1745  logins:
1746  - { name: 'm99999', group: 'm99999', password: 'abcdefgha' }
1747  - { name: 'gsuser', group: 'gsuser', password: ' abcdefgha' }
1748  - { name: 'peruser', group: 'peruser', password: ' abcdefgha' }
1749  - { name: 'dbuser', group: 'dbuser', password: ' abcdefgha' }
1750
1751 NOTE: Arguments passed by APPC to Ansible Server to run a playbook take
1752 precedence over any defaults stored in Ansible Server.
1753
1754 Ansible Playbooks – Notes On Artifacts Required to Run Playbooks
1755 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1756
1757 Inventory hosts file: should be VNF instance specific.
1758
1759 Default variables: should be VNF instance specific/
1760
1761 NOTE: Some playbooks may rely on inventory directory contents to target
1762 the collection of VNFs in the Services Platform supported through
1763 Ansible.
1764
1765 Playbooks and paths to referenced files: Playbooks shall not use
1766 absolute paths for file include entries (variables or playbooks) or
1767 other types of references.
1768
1769 For this to work properly when running playbooks, the directory where
1770 the playbook resides shall be the current directory.
1771
1772 Playbook includes use paths relative to the main playbook directory when
1773 necessary.
1774
1775 Root directory named ansible - Any files provided with playbooks,
1776 included or referenced by playbooks, shall reside under the ansible
1777 playbooks (root) directory, containing all playbook subdirectories, or
1778 below that ansible root directory, in other subdirectories to support
1779 on-boarding and portability of VNF collection of playbooks and related
1780 artifacts.
1781
1782 Designing for a shared environment, concurrently running playbooks,
1783 targeting multiple VNF instances – inventory hosts file:
1784
1785 To avoid inventory hosts file overwrites or collisions between multiple
1786 concurrently running VNF instance requests, chosen approach is for each
1787 VNF instance hosts file, to be stored under the Ansible Server Playbooks
1788 root directory, under the inventory subdirectory, and under a directory
1789 for each VNF instance, named after the VNF instance, as follows:
1790
1791 ansible/inventory/<VNF\_instance\_name>/hosts
1792
1793 Example of inventory hosts file path, relative to ansible playbooks root
1794 directory (playbooks\_dir): ansible/inventory/vnfx0001v/hosts
1795
1796 Designing for a shared environment, concurrently running playbooks,
1797 targeting multiple VNF instances – default argument variables for
1798 specific VNF instances:
1799
1800 Files containing attribute name value pairs (variable name and default
1801 values), referenced/included by playbooks – Files containing VNF
1802 instance specific default values – in a later APPC release, some or all
1803 the default attribute value pairs contained in the defaults file, may be
1804 passed down by APPC, to the Ansible Server, overriding these defaults:
1805
1806 Following the same approach for inventory hosts files, files
1807 referenced/included by playbooks containing default values,
1808 default\_args.yml, shall be stored under a directory with VNF instance
1809 name on the path.
1810
1811 Example:
1812
1813 ansible/vars/<VNF\_instance\_name>/default\_args.yml
1814
1815 Files containing attribute name value pairs (variable name and default
1816 values), referenced/included by playbooks – created dynamically by
1817 playbooks:
1818
1819 Following the same approach for inventory hosts files, to avoid
1820 overwrites or collisions of multiple concurrently running VNF instance
1821 requests, files created dynamically by playbooks, based on VNF generic
1822 templates, combined with default values and arguments passed down by
1823 APPC (as part of the request), shall be stored under a directory with
1824 VNF instance name on the path.
1825
1826 Example:
1827
1828 tmp/<VNF\_instance\_name>/all.yml
1829
1830 Files containing site specific (Openstack location non-instance
1831 specific) attribute name value pairs, like NTP server and DNS server’s
1832 IP addresses and other parameters, referenced/included by playbooks, not
1833 VNF specific – Could/should be stored under vars directory, in a
1834 subdirectory named after the string used to identify the site (nyc1,
1835 lax2,…).
1836
1837 Examples:
1838
1839 ansible/vars/<Site>/default\_args.yml
1840
1841 ansible/vars/nyc1/default\_args.yml
1842
1843 ansible/vars/lax2/default\_args.yml
1844
1845 \ **Ansible Server Design - Directory Structure**
1846
1847 To help understanding the contents of this section, here are few basic
1848 definitions:
1849
1850 **VNF type a.k.a VNF Function Code** - Based on current Services
1851 Platform naming convention, each Virtual Network Function is assigned a
1852 4 character string (example vfdb), they are the first 4 characters on
1853 the VNF instance name, which is 9 characters long. VNF instance name in
1854 some cases corresponds to the stack name for the VNF when VNF instance
1855 is built based on a single module, single stack. Example of VNF instance
1856 name: vfdb9904v. All VNF performing this function, running the same
1857 software, coming from the same VNF provider will start with the same 4
1858 characters, in this example, vfdb.
1859
1860 VNF type, determined through these 4 characters, is also known as VNF
1861 Function Code and is assigned by inventory team. All Services Platform
1862 VNF Function Codes can be found in inventory database and/or A&AI as
1863 well as Services Platform Network Design Documents.
1864
1865 NOTE: Current Services Platform naming convention is undergoing changes
1866 to include geographical location to the VNF names.
1867
1868 Version – As in VNF software version is the release of the software
1869 running on the VNF for which the playbooks were developed. VNF
1870 configuration steps may change from release to release and this
1871 <Version> in the path will allow the Ansible Server to host playbooks
1872 associated with each software release. And run the playbooks that match
1873 the software release running on each VNF instance. APPC initially will
1874 not support playbook versioning only latest playbook is supported.
1875
1876 Playbook Function - Is a name associated with a life cycle management
1877 task(s) performed by the playbook(s) stored in this directory. It should
1878 clearly identify the type of action(s) performed by the main playbook
1879 and possibly other playbooks stored in this same directory. Ideally,
1880 playbook function would match APPC corresponding function that executes
1881 the main playbook in this directory. Following Ansible Naming standards
1882 main playbook is usually named site.yml. There can be other playbooks on
1883 the same directory that use a subset of the roles used by the main
1884 playbook site.yml. Examples of Playbook Function directory names:
1885
1886 -  configure – Contains post-instantiation (bulk) configuration
1887    playbooks, roles,…
1888
1889 -  healthcheck – Contains VNF health check playbook(s), roles,…
1890
1891 -  stop – Contains VNF application stop playbook(s), roles,…
1892
1893 -  start – Contains VNF application start playbook(s), roles,…
1894
1895 Directory structure to allow hosting multiple version sets of playbooks,
1896 for the same VNF type, to be hosted in the runtime environment on the
1897 Ansible Servers. Generic directory structure:
1898
1899 Ansible Playbooks – Function directory and main playbook:
1900
1901 .. code-block:: none
1902
1903  /storage/<VNF type>/<Version>/ansible/<Playbook Function>/site.yml
1904
1905 Example – Post-instantiation (bulk) configuration –APPC Function -
1906 Configure:
1907
1908 .. code-block:: none
1909
1910  /storage/<VNF type>/<Version>/ansible/configure/site.yml
1911
1912 Example – Health-check –APPC Function - HealthCheck:
1913
1914 .. code-block:: none
1915
1916  /storage/<VNF type>/<Version>/ansible/healthcheck/site.yml
1917
1918 OR (Function directory name does not need to match APPC function name)
1919
1920 .. code-block:: none
1921
1922  /storage/<VNF type>/<Version>/ansible/check/site.yml
1923
1924 Ansible Directories for other artifacts – VNF inventory hosts file -
1925 Required:
1926
1927 .. code-block:: none
1928
1929  /storage/<VNF type>/<Version>/ansible/inventory/<VNF instance name>/hosts
1930
1931 Ansible Directories for other artifacts – VNF inventory hosts file –
1932 Required:
1933
1934 .. code-block:: none
1935
1936  /storage/<VNF type>/<Version>/ansible/vars/<VNF instance name>/default\_args.yml
1937
1938 NOTE: This requirement is expected to be deprecated in part in the
1939 future, for automated actions, once APPC can pass down all VNF specific
1940 arguments for each action. Requirement remains while manual actions are
1941 to be supported. Other automated inventory management mechanisms may be
1942 considered in the future, Ansible supports many automated inventory
1943 management mechanisms/tools/solutions.
1944
1945 Ansible Directories for other artifacts – VNF (special) groups –
1946 Optional:
1947
1948 .. code-block:: none
1949
1950  /storage/<VNF type>/<Version>/ansible/groups/<VNF instance name>/common\_groups.yml
1951
1952 NOTE: Default groups will be created based on VNFC type, 3 characters,
1953 on VNFC name. Example: “oam”, “rdb”, “dbs”, “man”, “iox”, “app”,…
1954
1955 Ansible Directories for other artifacts – VNF (special) other files –
1956 Optional – Example – License file:
1957
1958 .. code-block:: none
1959
1960  /storage/<VNF type>/<Version>/ansible/<Other directory(s)>
1961
1962 CAUTION: On referenced files used/required by playbooks.
1963
1964 -  To avoid missing files, during on-boarding or uploading of Ansible
1965    Playbooks and related artifacts, all permanent files (not generated
1966    by playbooks as part of execution), required to run any playbook,
1967    shall reside under the ansible root directory or below on other
1968    subdirectories.
1969
1970 -  Any references to files, on includes or other playbook entries, shall
1971    use relative paths.
1972
1973 -  This is the ansible (root directory) directory referenced on this
1974    note:
1975
1976 .. code-block:: none
1977
1978      /storage/<VNF type>/<Version>/ansible/
1979
1980 There will be a soft link to the latest set of Ansible Playbooks for
1981 each VNF type and this is the default set of playbooks that are executed
1982 unless a different release is specified in APPC request.
1983
1984 VNF type directories use A&AI inventory VNF function code. Ansible
1985 Playbooks will be stored on a Cinder Volume mounted on the Ansible
1986 Servers as /storage. Example:
1987
1988 /storage/vfdb/latest/ansible – This soft link point to the latest set of
1989 playbooks (or the only set)
1990
1991 /storage/vfdb/V16.1/ansible – Root directory for database VNF Ansible
1992 Playbooks for release 16.1
1993
1994 CAUTION: To support this directory structure as the repository to store
1995 Ansible Playbooks run by APPC, APPC API in the Ansible Server side needs
1996 to be configured to run playbooks from directory, not MySQL database.
1997
1998 Ansible Server HTTP will be configured to support APPC REST API requests
1999 to run playbooks as needed, against specific VNF instances, or specific
2000 VM(s) as specified in the request.
2001
2002 ONAP APPC REST API to Ansible Server is documented separately and can be
2003 found under ONAP (onap.org).
2004
2005 \ **Ansible Server – On-boarding Ansible Playbooks **
2006
2007 Once playbooks are developed following the guidelines listed in prior
2008 section(s), playbooks need to be on-boarded onto Ansible Server(s). In
2009 the future, they’ll be on-boarded and distributed through ONAP, at least
2010 that is the proposed plan, but for now they need to be uploaded
2011 manually.
2012
2013 These are the basic steps to on-board playbooks manually onto the
2014 Ansible Server.
2015
2016 1. Upload CSAR, zip, or tar file containing VNF playbooks and related
2017    artifacts.
2018
2019 2. Create full directory (using –p option below) to store Ansible
2020    Playbooks and other artifacts under /storage file system.
2021
2022    a. Includes VNF type using VNF function code 4 characters under
2023       /storage.
2024
2025    b. Includes VNF “Version” directory as part of the path to store
2026       playbooks for this VNF version.
2027
2028    c. Include generic ansible root directory. Creating full directory
2029       path as an example:
2030
2031 .. code-block:: none
2032
2033      $ mkdir –p /storage/vfdb/V16.1/ansible**/**
2034
2035 3. Make this directory (VNF ansible root directory) current directory
2036    for next few steps:
2037
2038 .. code-block:: none
2039
2040      cd /storage/vfdb/V16.1/ansible/
2041
2042 4. Extract Ansible Playbooks and other Ansible artifacts associated with
2043    the playbooks onto the ansible directory. Command depends on the type
2044    of file uploaded, examples would be:
2045
2046 .. code-block:: none
2047
2048      tar xvf ..
2049      unzip …
2050      bunzip ..
2051
2052 5. Create directory for VNF (VMs) inventory hosts file with all VMs and
2053    OA&M IP addresses for all VNF instances with known OA&M IP addresses
2054    for respective VMs, example:
2055
2056 .. code-block:: none
2057
2058     $ mkdir –p inventory/vfdb9904v
2059
2060     $ touch inventory/vfdb9904v/hosts
2061
2062     $ cat inventory/vfdb9904v/hosts
2063
2064     [host]
2065     localhost ansible\_connection=local
2066
2067     [oam]
2068     1xx.2yy.zzz.109 ansible\_ssh\_private\_key\_file=/storage/.ssh/Kilo-SSH-Key.pem
2069     1xx.2yy.zzz.110 ansible\_ssh\_private\_key\_file=/storage/.ssh/Kilo-SSH-Key.pem
2070
2071     [rdb]
2072     1xx.2yy.zzz.105 ansible\_ssh\_private\_key\_file=/storage/.ssh/Kilo-SSH-Key.pem
2073     1xx.2yy.zzz.106 ansible\_ssh\_private\_key\_file=/storage/.ssh/Kilo-SSH-Key.pem
2074
2075 6. Create directory to hold default arguments for each VNF instance,
2076    example:
2077
2078 .. code-block:: none
2079
2080    $ mkdir –p vars/vfdb9904v
2081    $ touch vars/vfdb9904v/default\_args.yml
2082    $ cat vars/vfdb9904v/default\_args.yml
2083    vm\_config\_oam1\_vnfc\_name: vfdb9904vm001oam001
2084    vm\_config\_oam1\_hostname: vfdb9904vm001
2085    vm\_config\_oam1\_provider\_ip\_address: 1xx.2yy.zzz.109
2086
2087    vm\_config\_oam2\_vnfc\_name: vfdb9904vm002oam001
2088    vm\_config\_oam2\_hostname: vfdb9904vm002
2089    vm\_config\_oam2\_provider\_ip\_address: 1xx.2yy.zzz.110
2090
2091    vm\_config\_rdb1\_vnfc\_name: vfdb9904vm003rdb001
2092    vm\_config\_rdb1\_hostname: vfdb9904vm003
2093    vm\_config\_rdb1\_provider\_ip\_address: 1xx.2yy.zzz.105
2094
2095    vm\_config\_rdb2\_vnfc\_name: vfdb9904vm004rdb001
2096    vm\_config\_rdb2\_hostname: vfdb9904vm004
2097    vm\_config\_rdb2\_provider\_ip\_address: 1xx.2yy.zzz.106
2098
2099    vm\_config\_rdb3\_vnfc\_name: vfdb9904vm005rdb001
2100    vm\_config\_rdb3\_hostname: vfdb9904vm005
2101    vm\_config\_rdb3\_provider\_ip\_address: 1xx.2yy.zzz.xxx
2102
2103    vm\_config\_rdb4\_vnfc\_name: vfdb9904vm006rdb001
2104    vm\_config\_rdb4\_hostname: vfdb9904vm006
2105    vm\_config\_rdb4\_provider\_ip\_address: 1xx.2yy.zzz.yyy
2106
2107 NOTE: Please note names in this file shall use underscore “\_” not dots
2108 “.” or dashes “-“.
2109
2110 7. Perform some basic playbook validation running with “--check” option,
2111    running dummy playbooks or other.
2112
2113 8. Upload any SSH keys referenced on hosts file to appropriate
2114    directory.
2115
2116 NOTE: HOT templates used by Heat to instantiate VNF configured by these
2117 playbooks shall include the same SSH key to be installed as part of
2118 instantiation.
2119
2120 Other non-VNF provider specific playbook tasks need to be incorporated on
2121 overall post-instantiation configuration playbooks or company Playbooks
2122 need to be uploaded and executed after VNF provided or internally
2123 developed playbooks for the VNF.
2124
2125
2126 .. [1]
2127    The “name” field is a mandatory field in a valid Chef Node Object
2128    JSON dictionary.
2129
2130 .. [2]
2131    Not currently supported in ONAP release 1
2132
2133 .. [3]
2134    https://github.com/mbj4668/pyang
2135
2136 .. [4]
2137    Upstream elements must provide the appropriate FQDN in the request to
2138    ONAP for the desired action.
2139
2140 .. [5]
2141    Refer to NCSP’s Network Cloud specification
2142
2143 .. [6]
2144    This option is not currently supported in ONAP and it is currently
2145    under consideration.
2146
2147 .. [7]
2148    Multiple ONAP actions may map to one playbook.