Merge 7.a Service Design to Chapter7.rst
[vnfrqts/requirements.git] / docs / Chapter7.rst
1 **7. ONAP Management Requirements**
2 =====================================
3
4 a. Service Design
5 ==================
6
7 The ONAP Design Time Framework provides the ability to design NFV
8 resources including VNFs, services, and products. The vendor must
9 provide VNF packages that include a rich set of recipes, management and
10 functional interfaces, policies, configuration parameters, and
11 infrastructure requirements that can be utilized by the ONAP Design
12 module to onboard and catalog these resources. Initially this
13 information may be provided in documents, but in the near future a
14 method will be developed to automate as much of the transfer of data as
15 possible to satisfy its long term requirements.
16
17 The current VNF Package Requirement is based on a subset of the
18 Requirements contained in the ETSI Document: ETSI GS NFV-MAN 001 v1.1.1
19 and GS NFV IFA011 V0.3.0 (2015-10) - Network Functions Virtualization
20 (NFV), Management and Orchestration, VNF Packaging Specification.
21
22 Table 1. VNF Package
23
24 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
25 | **Principle**          | **Description**                                                                                                                                                                                                                                                                                                                                                   | **Type**   | **ID #**   |
26 +========================+===================================================================================================================================================================================================================================================================================================================================================================+============+============+
27 | 2.0.1                  | The VNF Vendor must provide a Manifest File that contains a list of all the components in the VNF package.                                                                                                                                                                                                                                                        | Must       | 10010      |
28 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
29 | Resource               |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
30 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
31 | Description            |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
32 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
33 |                        | The package must include VNF Identification Data to uniquely identify the resource for a given Vendor. The identification data must include: an identifier for the VNF, the name of the VNF as was given by the VNF Vendor, VNF description, VNF Vendor, and version.                                                                                             | Must       | 10020      |
34 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
35 |                        | The VNF Vendor must provide documentation describing VNF Management APIs. The document must include information and tools for:                                                                                                                                                                                                                                    | Optional   | 10030      |
36 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
37 |                        | -  ONAP to deploy and configure (initially and ongoing) the VNF application(s) (e.g., NETCONF APIs). Includes description of configurable parameters for the VNF and whether the parameters can be configured after VNF instantiation.                                                                                                                            |            |            |
38 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
39 |                        | -  ONAP to monitor the health of the VNF (conditions that require healing and/or scaling responses). Includes a description of:                                                                                                                                                                                                                                   |            |            |
40 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
41 |                        |    -  Parameters that can be monitored for the VNF and event records (status, fault, flow, session, call, control plane, etc.) generated by the VNF after instantiation.                                                                                                                                                                                          |            |            |
42 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
43 |                        |    -  Runtime lifecycle events and related actions (e.g., control responses, tests) which can be performed for the VNF.                                                                                                                                                                                                                                           |            |            |
44 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
45 |                        | The VNF package must include documentation describing VNF Functional APIs that are utilized to build network and application services. Provides the externally exposed functional inputs and outputs for the VNF, including interface format and protocols supported.                                                                                             | Must       | 10040      |
46 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
47 |                        | The VNF Vendor must provide documentation describing VNF Functional Capabilities that are utilized to operationalize the VNF and compose complex services.                                                                                                                                                                                                        | Must       | 10050      |
48 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
49 |                        | The VNF Vendor must provide information regarding any dependency with other VNFs and resources.                                                                                                                                                                                                                                                                   | Must       | 10060      |
50 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
51 | 2.0.2                  | The VNF Vendor 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.                                                                                                                                           | Optional   | 10070      |
52 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
53 | Resource               |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
54 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
55 | Configuration          |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
56 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
57 |                        | The VNF Package must include configuration scripts for boot sequence and configuration.                                                                                                                                                                                                                                                                           | Must       | 10080      |
58 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
59 |                        | The VNF Vendor 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).                                                                                                                            | Optional   | 10090      |
60 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
61 | 2.0.3                  | The VNF Vendor 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.                                                                                                                                    | Must       | 10100      |
62 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
63 | Resource               |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
64 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
65 | Control Loop           |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
66 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
67 |                        | 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:                                                                                                                                                                       | Must       | 10110      |
68 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
69 |                        | -  A unique identification string for the specific VNF, a description of the problem that caused the error, and steps or procedures to perform Root Cause Analysis and resolve the issue.                                                                                                                                                                         |            |            |
70 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
71 |                        | -  All events, severity level (e.g., informational, warning, error) and descriptions including causes/fixes if applicable for the event.                                                                                                                                                                                                                          |            |            |
72 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
73 |                        | -  All events (fault, measurement for VNF Scaling, Syslogs, State Change and Mobile Flow), that need to be collected at each VM, VNFC (defined in *VNF Guidelines for Network Cloud and ONAP*) and for the overall VNF.                                                                                                                                           |            |            |
74 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
75 |                        | The VNF Vendor must provide documentationthat contains a list of VNF error codes, descriptions of the error, and possible causes/corrective action.                                                                                                                                                                                                               | Optional   | 10120      |
76 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
77 |                        | Provide 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:                                                                                                             | Optional   | 10130      |
78 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
79 |                        | -  Monitoring parameters/counters exposed for virtual resource management and VNF application management.                                                                                                                                                                                                                                                         |            |            |
80 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
81 |                        | -  KPIs and metrics that need to be collected at each VM for capacity planning purposes.                                                                                                                                                                                                                                                                          |            |            |
82 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
83 |                        | -  For each KPI, provide lower and upper limits.                                                                                                                                                                                                                                                                                                                  |            |            |
84 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
85 |                        | -  When relevant, provide a threshold crossing alert point for each KPI at which time scaling rules will apply.                                                                                                                                                                                                                                                   |            |            |
86 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
87 |                        | -  For each KPI, identify the suggested actions that need to be performed when a threshold crossing alert event is recorded.                                                                                                                                                                                                                                      |            |            |
88 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
89 |                        | -  Describe any requirements for the monitoring component of tools for Network Cloud automation and management to provide these records to components of the VNF.                                                                                                                                                                                                 |            |            |
90 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
91 |                        | -  When applicable, provide calculators needed to convert raw data into appropriate reporting artifacts.                                                                                                                                                                                                                                                          |            |            |
92 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
93 |                        | The VNF Package must include documentation describing supported VNF scaling capabilities and capacity limits (e.g., number of users, bandwidth, throughput, concurrent calls).                                                                                                                                                                                    | Optional   | 10140      |
94 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
95 |                        | The VNF Package must include documentation describing the characteristics for the VNF reliability and high availability.                                                                                                                                                                                                                                          | Must       | 10150      |
96 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
97 | 2.0.4                  | 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, QoS (if applicable) for each interface.                                                                                                                                                | Must       | 10160      |
98 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
99 | Compute,               |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
100 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
101 | Network,               |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
102 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
103 | Storage                |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
104 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
105 | Requirements           |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
106 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
107 |                        | The VNF Package must include VM requirements via a Heat template that provides the necessary data for:                                                                                                                                                                                                                                                            | Optional   | 10170      |
108 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
109 |                        | -  VM specifications for all VNF components - for hypervisor, CPU, memory, storage.                                                                                                                                                                                                                                                                               |            |            |
110 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
111 |                        | -  Network connections, interface connections, internal and external to VNF.                                                                                                                                                                                                                                                                                      |            |            |
112 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
113 |                        | -  High availability redundancy model.                                                                                                                                                                                                                                                                                                                            |            |            |
114 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
115 |                        | -  Static scaling/growth VM specifications.                                                                                                                                                                                                                                                                                                                       |            |            |
116 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
117 |                        | Note1: Must comply with the *Heat Template Requirements for Virtual Network Functions*.                                                                                                                                                                                                                                                                           |            |            |
118 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
119 |                        | Note2: Must comply with the Network Cloud Specifications defined in *Example Implementation of Network Cloud.*                                                                                                                                                                                                                                                    |            |            |
120 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
121 |                        | The VNF Vendor must provide the binaries and images needed to instantiate the VNF (VNF and VNFC images).                                                                                                                                                                                                                                                          | Must       | 10180      |
122 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
123 |                        | The VNF Vendor must describe scaling capabilities to manage scaling characteristics of the VNF.                                                                                                                                                                                                                                                                   | Must       | 10190      |
124 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
125 | 2.0.5                  | The VNF Package must include documentation describing the tests that were conducted by the Vendor and the test results.                                                                                                                                                                                                                                           | Must       | 10200      |
126 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
127 | Testing                |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
128 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
129 |                        | The VNF Vendor must provide their testing scripts to support testing.                                                                                                                                                                                                                                                                                             | Must       | 10210      |
130 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
131 |                        | The VNF Vendor 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.                                                                   | Must       | 10220      |
132 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
133 | 2.0.6                  | VNFs must provide metrics (e.g., number of sessions, number of subscribers, number of seats, etc.) to ONAP for tracking every license.                                                                                                                                                                                                                            | Must       | 10230      |
134 |                        |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
135 | Licensing Guidelines   |                                                                                                                                                                                                                                                                                                                                                                   |            |            |
136 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
137 |                        | Contract shall define the reporting process and the available reporting tools. The vendor will have to agree to the process that can be met by Service Provider reporting infrastructure.                                                                                                                                                                         | Must       | 10240      |
138 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
139 |                        | VNF vendors shall enumerate all of the open source licenses their VNF(s) incorporate.                                                                                                                                                                                                                                                                             | Must       | 10250      |
140 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
141 |                        | Audits of Service Provider’s business must not be required.                                                                                                                                                                                                                                                                                                       | Must       | 10260      |
142 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
143 |                        | Vendor functions and metrics that require additional infrastructure such as a vendor license server for deployment shall not be supported.                                                                                                                                                                                                                        | Must       | 10270      |
144 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
145 |                        | Provide clear measurements for licensing purposes to allow automated scale up/down by the management system.                                                                                                                                                                                                                                                      | Must       | 10280      |
146 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
147 |                        | The vendor must provide the ability to scale up a vendor supplied product during growth and scale down a vendor supplied product during decline without “real-time” restrictions based upon vendor permissions.                                                                                                                                                   | Must       | 10290      |
148 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
149 |                        | A universal license key must be provided per VNF to be used as needed by services (i.e., not tied to a VM instance) as the recommended solution. The vendor 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.   | Must       | 10300      |
150 +------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
151
152 b. VNF On-boarding and package management
153 ==========================================
154
155 Design Definition
156 =================
157
158 The ONAP Design Time Framework provides the ability to design NFV
159 resources including VNFs, Services, and products. The vendor must
160 provide VNF packages that include a rich set of recipes, management and
161 functional interfaces, policies, configuration parameters, and
162 infrastructure requirements that can be utilized by the ONAP Design
163 module to onboard and catalog these resources. Initially this
164 information may be provided in documents, but in the near future a
165 method will be developed to automate as much of the transfer of data as
166 possible to satisfy its long term requirements.
167
168 The current VNF Package Requirement is based on a subset of the
169 Requirements contained in the ETSI Document: ETSI GS NFV-MAN 001 v1.1.1
170 and GS NFV IFA011 V0.3.0 (2015-10) - Network Functions Virtualization
171 (NFV), Management and Orchestration, VNF Packaging Specification.
172
173 Table 1. VNF Package
174
175 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
176 | **Principle**            | **Description**                                                                                                                                                                                                                                                                                                                                                                                                   | **Type**   | **ID#**    |
177 +==========================+===================================================================================================================================================================================================================================================================================================================================================================================================================+============+============+
178 | Resource                 | The VNF Vendor must provide a Manifest File that contains a list of all the components in the VNF package.                                                                                                                                                                                                                                                                                                        | Must       | 10010      |
179 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
180 | Description              |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
181 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
182 |                          | The package must include VNF Identification Data to uniquely identify the resource for a given Vendor. The identification data must include: an identifier for the VNF, the name of the VNF as was given by the VNF Vendor, VNF description, VNF Vendor, and version.                                                                                                                                             | Must       | 10020      |
183 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
184 |                          | The VNF Vendor must provide documentation describing VNF Management APIs. The document must include information and tools for:                                                                                                                                                                                                                                                                                    | Must       | 10030      |
185 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
186 |                          | -  ONAP to deploy and configure (initially and ongoing) the VNF application(s) (e.g., NETCONF APIs). Includes description of configurable parameters for the VNF and whether the parameters can be configured after VNF instantiation.                                                                                                                                                                            |            |            |
187 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
188 |                          | -  ONAP to monitor the health of the VNF (conditions that require healing and/or scaling responses). Includes a description of:                                                                                                                                                                                                                                                                                   |            |            |
189 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
190 |                          |    -  Parameters that can be monitored for the VNF and event records (status, fault, flow, session, call, control plane, etc.) generated by the VNF after instantiation.                                                                                                                                                                                                                                          |            |            |
191 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
192 |                          |    -  Runtime lifecycle events and related actions (e.g., control responses, tests) which can be performed for the VNF.                                                                                                                                                                                                                                                                                           |            |            |
193 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
194 |                          | 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.                                                                                                                              | Must       | 10040      |
195 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
196 |                          | The VNF Vendor must provide documentation describing VNF Functional Capabilities that are utilized to operationalize the VNF and compose complex services.                                                                                                                                                                                                                                                        | Must       | 10050      |
197 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
198 |                          | The VNF Vendor must provide information regarding any dependency (e.g., affinity, anti-affinity) with other VNFs and resources.                                                                                                                                                                                                                                                                                   | Must       | 10060      |
199 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
200 | Resource                 | The VNF Vendor must support and provide artifacts for configuration management using at least one of the following technologies:                                                                                                                                                                                                                                                                                  | Must       | 10070      |
201 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
202 | Configuration            | -  Netconf/YANG                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
203 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
204 |                          | -  Chef                                                                                                                                                                                                                                                                                                                                                                                                           |            |            |
205 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
206 |                          | -  Ansible                                                                                                                                                                                                                                                                                                                                                                                                        |            |            |
207 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
208 |                          | Note: The requirements for Netconf/YANG, Chef, and Ansible protocols are provided separately and must be supported only if the corresponding protocol option is provided by the vendor.                                                                                                                                                                                                                           |            |            |
209 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
210 |                          | **Configuration Management via Netconf/YANG**                                                                                                                                                                                                                                                                                                                                                                     | Must       | 10071      |
211 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
212 |                          | The VNF Vendor 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.                                                                                                                                                                                           |            |            |
213 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
214 |                          | **Configuration Management via Chef**                                                                                                                                                                                                                                                                                                                                                                             | Must       | 10072      |
215 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
216 |                          | -  VNF Vendor must provide cookbooks to be loaded on the appropriate Chef Server.                                                                                                                                                                                                                                                                                                                                 |            |            |
217 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
218 |                          | -  The VNF Vendor is required to 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.                                                                                                                                |            |            |
219 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
220 |                          | Note: Chef support in ONAP is not currently available and planned for 4Q 2017.                                                                                                                                                                                                                                                                                                                                    |            |            |
221 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
222 |                          | **Configuration Management via Ansible**                                                                                                                                                                                                                                                                                                                                                                          | Must       | 10073      |
223 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
224 |                          | -  VNF Vendor must provide playbooks to be loaded on the appropriate Ansible Server.                                                                                                                                                                                                                                                                                                                              |            |            |
225 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
226 |                          | -  The VNF Vendor is required to 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.                                                                                                                                |            |            |
227 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
228 |                          | Note: Ansible support in ONAP is not currently available and planned for 4Q 2017.                                                                                                                                                                                                                                                                                                                                 |            |            |
229 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
230 |                          | The VNF Package must include configuration scripts for boot sequence and configuration.                                                                                                                                                                                                                                                                                                                           | Must       | 10080      |
231 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
232 |                          | The VNF Vendor 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).                                                                                                                                                                            | Must       | 10090      |
233 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
234 | Resource                 | The VNF Vendor 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.                                                                                                                                                                                    | Must       | 10100      |
235 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
236 | Control Loop             |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
237 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
238 |                          | 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:                                                                                                                                                                                                                       | Must       | 10110      |
239 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
240 |                          | -  A unique identification string for the specific VNF, a description of the problem that caused the error, and steps or procedures to perform Root Cause Analysis and resolve the issue.                                                                                                                                                                                                                         |            |            |
241 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
242 |                          | -  All events, severity level (e.g., informational, warning, error) and descriptions including causes/fixes if applicable for the event.                                                                                                                                                                                                                                                                          |            |            |
243 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
244 |                          | -  All events (fault, measurement for VNF Scaling, Syslogs, State Change and Mobile Flow), that need to be collected at each VM, VNFC (defined in *VNF Guidelines for Network Cloud and ONAP*) and for the overall VNF.                                                                                                                                                                                           |            |            |
245 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
246 |                          | The VNF Vendor must provide an XML file that contains a list of VNF error codes, descriptions of the error, and possible causes/corrective action.                                                                                                                                                                                                                                                                | Must       | 10120      |
247 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
248 |                          | Provide 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:                                                                                                                                                             | Must       | 10130      |
249 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
250 |                          | -  Monitoring parameters/counters exposed for virtual resource management and VNF application management.                                                                                                                                                                                                                                                                                                         |            |            |
251 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
252 |                          | -  KPIs and metrics that need to be collected at each VM for capacity planning and performance management purposes.                                                                                                                                                                                                                                                                                               |            |            |
253 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
254 |                          | -  The monitoring parameters must include latencies, success rates, retry rates, load and quality (e.g., DPM) for the key transactions/functions supported by the VNF and those that must be exercised by the VNF in order to perform its function.                                                                                                                                                               |            |            |
255 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
256 |                          | -  For each KPI, provide lower and upper limits.                                                                                                                                                                                                                                                                                                                                                                  |            |            |
257 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
258 |                          | -  When relevant, provide a threshold crossing alert point for each KPI and describe the significance of the threshold crossing.                                                                                                                                                                                                                                                                                  |            |            |
259 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
260 |                          | -  For each KPI, identify the suggested actions that need to be performed when a threshold crossing alert event is recorded.                                                                                                                                                                                                                                                                                      |            |            |
261 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
262 |                          | -  Describe any requirements for the monitoring component of tools for Network Cloud automation and management to provide these records to components of the VNF.                                                                                                                                                                                                                                                 |            |            |
263 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
264 |                          | -  When applicable, provide calculators needed to convert raw data into appropriate reporting artifacts.                                                                                                                                                                                                                                                                                                          |            |            |
265 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
266 |                          | The VNF Package must include documentation describing supported VNF scaling capabilities and capacity limits (e.g., number of users, bandwidth, throughput, concurrent calls).                                                                                                                                                                                                                                    | Must       | 10140      |
267 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
268 |                          | The VNF Package must include documentation describing the characteristics for the VNF reliability and high availability.                                                                                                                                                                                                                                                                                          | Must       | 10150      |
269 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
270 |                          | The VNF vendor 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. ( `AT&T Service Specification; Service: VES Event Listener <https://github.com/att/evel-test-collector/tree/master/docs/att_interface_definition>`__)                | Must       | 10151      |
271 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
272 | Compute,                 | 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.                                                                                                                                                                               | Must       | 10160      |
273 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
274 | Network,                 |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
275 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
276 | Storage                  |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
277 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
278 | Requirements             |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
279 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
280 |                          | The VNF Package must include VM requirements via a Heat template that provides the necessary data for:                                                                                                                                                                                                                                                                                                            | Must       | 10170      |
281 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
282 |                          | -  VM specifications for all VNF components - for hypervisor, CPU, memory, storage.                                                                                                                                                                                                                                                                                                                               |            |            |
283 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
284 |                          | -  Network connections, interface connections, internal and external to VNF.                                                                                                                                                                                                                                                                                                                                      |            |            |
285 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
286 |                          | -  High availability redundancy model.                                                                                                                                                                                                                                                                                                                                                                            |            |            |
287 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
288 |                          | -  Scaling/growth VM specifications.                                                                                                                                                                                                                                                                                                                                                                              |            |            |
289 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
290 |                          | Note: Must comply with the *VNF Heat Template Requirements for ONAP*.                                                                                                                                                                                                                                                                                                                                             |            |            |
291 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
292 |                          | The VNF Vendor must provide the binaries and images needed to instantiate the VNF (VNF and VNFC images).                                                                                                                                                                                                                                                                                                          | Must       | 10180      |
293 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
294 |                          | The VNF Vendor must describe scaling capabilities to manage scaling characteristics of the VNF.                                                                                                                                                                                                                                                                                                                   | Must       | 10190      |
295 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
296 | Testing                  | The VNF Package must include documentation describing the tests that were conducted by the Vendor and the test results.                                                                                                                                                                                                                                                                                           | Must       | 10200      |
297 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
298 |                          | The VNF Vendor must provide their testing scripts to support testing.                                                                                                                                                                                                                                                                                                                                             | Must       | 10210      |
299 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
300 |                          | The VNF Vendor 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.                                                                                                                   | Must       | 10220      |
301 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
302 | Licensing Requirements   | VNFs must provide metrics (e.g., number of sessions, number of subscribers, number of seats, etc.) to ONAP for tracking every license.                                                                                                                                                                                                                                                                            | Must       | 10230      |
303 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
304 |                          | Contract shall define the reporting process and the available reporting tools. The vendor will have to agree to the process that can be met by Service Provider reporting infrastructure.                                                                                                                                                                                                                         | Must       | 10240      |
305 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
306 |                          | VNF vendors shall enumerate all of the open source licenses their VNF(s) incorporate.                                                                                                                                                                                                                                                                                                                             | Must       | 10250      |
307 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
308 |                          | Audits of Service Provider’s business must not be required.                                                                                                                                                                                                                                                                                                                                                       | Must       | 10260      |
309 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
310 |                          | Vendor functions and metrics that require additional infrastructure such as a vendor license server for deployment shall not be supported.                                                                                                                                                                                                                                                                        | Must       | 10270      |
311 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
312 |                          | Provide clear measurements for licensing purposes to allow automated scale up/down by the management system.                                                                                                                                                                                                                                                                                                      | Must       | 10280      |
313 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
314 |                          | The vendor must provide the ability to scale up a vendor supplied product during growth and scale down a vendor supplied product during decline without “real-time” restrictions based upon vendor permissions.                                                                                                                                                                                                   | Must       | 10290      |
315 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
316 |                          | A universal license key must be provided per VNF to be used as needed by services (i.e., not tied to a VM instance) as the recommended solution. The vendor 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.                                                   | Must       | 10300      |
317 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
318 |                          | The VNF Vendor 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.   | Must       | 10310      |
319 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
320 |                          | The details of this license model are described in Appendix C.                                                                                                                                                                                                                                                                                                                                                    |            |            |
321 |                          |                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
322 |                          | Note: License metadata support in ONAP is not currently available and planned for 1Q 2018.                                                                                                                                                                                                                                                                                                                        |            |            |
323 +--------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
324
325
326 c. Configuration Management
327 ===========================
328
329 ONAP interacts directly with VNFs through its Network and Application
330 Adapters to perform configuration activities within NFV environment.
331 These activities include service and resource
332 configuration/reconfiguration, automated scaling of resources, service
333 and resource removal to support runtime lifecycle management of VNFs and
334 services. The Adapters employ a model driven approach along with
335 standardized APIs provided by the VNF developers to configure resources
336 and manage their runtime lifecycle.
337
338 NETCONF Standards and Capabilities
339 ----------------------------------
340
341 ONAP Controllers and their Adapters utilize device YANG model and
342 NETCONF APIs to make the required changes in the VNF state and
343 configuration. The VNF providers must provide the Device YANG model and
344 NETCONF server supporting NETCONF APIs to comply with target ONAP and
345 industry standards.
346
347 **Table 2. VNF Configuration via NETCONF**
348
349 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
350 | **Principle**   | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | **Type**   | **ID #**   |
351 +=================+=======================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+============+============+
352 | Configuration   | Virtual Network functions (VNFs) must include a NETCONF server enabling runtime configuration and lifecycle management capabilities. The NETCONF server embedded in VNFs shall provide a NETCONF interface fully defined by supplied YANG models.                                                                                                                                                                                                                                                                     | Must       | 11010      |
353 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
354 | Management      |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
355 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
356 | NETCONF         | NETCONF server connection parameters shall be configurable during virtual machine instantiation through Heat templates where SSH keys, usernames, passwords, SSH service and SSH port numbers are Heat template parameters.                                                                                                                                                                                                                                                                                           | Must       | 11020      |
357 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
358 | Server          |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
359 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
360 | Requirements    |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
361 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
362 |                 | Following protocol operations must be implemented:                                                                                                                                                                                                                                                                                                                                                                                                                                                                    | Must       | 11030      |
363 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
364 |                 | **close-session()**- Gracefully close the current session.                                                                                                                                                                                                                                                                                                                                                                                                                                                            |            |            |
365 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
366 |                 |     **commit(confirmed, confirm-timeout)** - Commit candidate configuration datastore to the running configuration.                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
367 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
368 |                 |     **discard-changes()** - Revert the candidate configuration datastore to the running configuration                                                                                                                                                                                                                                                                                                                                                                                                                 |            |            |
369 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
370 |                 |     **edit-config(target, default-operation, test-option, error-option, config)** - Edit the target configuration datastore by merging, replacing, creating, or deleting new config elements.                                                                                                                                                                                                                                                                                                                         |            |            |
371 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
372 |                 |     **get(filter)** - Retrieve (a filtered subset of) the running configuration and device state information. This should include the list of VNF supported schemas.                                                                                                                                                                                                                                                                                                                                                  |            |            |
373 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
374 |                 |     **get-config(source, filter)** - Retrieve a (filtered subset of a) configuration from the configuration datastore source.                                                                                                                                                                                                                                                                                                                                                                                         |            |            |
375 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
376 |                 |     **kill-session(session)** - Force the termination of **session**.                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |            |
377 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
378 |                 | **lock(target)** - Lock the configuration datastore target.                                                                                                                                                                                                                                                                                                                                                                                                                                                           |            |            |
379 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
380 |                 |     **unlock(target)** - Unlock the configuration datastore target.                                                                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
381 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
382 |                 | Following protocol operations should be implemented:                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Should     | 11040      |
383 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
384 |                 |     **copy-config(target, source) -** Copy the content of the configuration datastore source to the configuration datastore target.                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
385 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
386 |                 |     **delete-config(target) -** Delete the named configuration datastore target.                                                                                                                                                                                                                                                                                                                                                                                                                                      |            |            |
387 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
388 |                 |     **get-schema(identifier, version, format) -** Retrieve the YANG schema.                                                                                                                                                                                                                                                                                                                                                                                                                                           |            |            |
389 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
390 |                 | All configuration data shall be editable through a NETCONF <*edit-config*> operation. Proprietary NETCONF RPCs that make configuration changes are not sufficient.                                                                                                                                                                                                                                                                                                                                                    | Must       | 11050      |
391 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
392 |                 | By default, the entire configuration of the VNF must be retrievable via NETCONF's <get-config> and <edit-config>, independently of whether it was configured via NETCONF or other mechanisms.                                                                                                                                                                                                                                                                                                                         | Must       | 11060      |
393 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
394 |                 | The **:partial-lock** and **:partial-unlock** capabilities, defined in RFC 5717 must be supported. This allows multiple independent clients to each write to a different part of the <running> configuration at the same time.                                                                                                                                                                                                                                                                                        | Must       | 11070      |
395 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
396 |                 | The **:rollback-on-error** value for the <error-option> parameter to the <edit-config> operation must be supported. 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.                                                                                                                                                                      | Must       | 11080      |
397 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
398 |                 | The server 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.                                                                                                                                                                                                                                                                                                                                               | Must       | 11090      |
399 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
400 |                 | The **:url** value must be supported 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.                                                                                                                        | Must       | 11100      |
401 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
402 |                 | At least one of the capabilities **:candidate** or **:writable-running** must be implemented. If both **:candidate** and **:writable-running** are provided then two locks should be supported.                                                                                                                                                                                                                                                                                                                       | Must       | 11110      |
403 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
404 |                 | The server 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.   | Must       | 11120      |
405 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
406 |                 | The **:validate** capability must be implemented.                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Must       | 11130      |
407 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
408 |                 | If **:candidate** is supported, **:confirmed-commit** must be implemented.                                                                                                                                                                                                                                                                                                                                                                                                                                            | Must       | 11140      |
409 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
410 |                 | The **:with-defaults** capability [RFC6243] shall be implemented.                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Must       | 11150      |
411 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
412 |                 | Data model discovery and download as defined in [RFC6022] shall be implemented.                                                                                                                                                                                                                                                                                                                                                                                                                                       | Must       | 11160      |
413 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
414 |                 | NETCONF Event Notifications [RFC5277] should be implemented.                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Should     | 11170      |
415 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
416 |                 | All data models shall be defined in YANG [RFC6020], and the mapping to NETCONF shall follow the rules defined in this RFC.                                                                                                                                                                                                                                                                                                                                                                                            | Must       | 11180      |
417 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
418 |                 | The data model upgrade rules defined in [RFC6020] section 10 should be followed. All deviations from section 10 rules shall be handled by a built-in automatic upgrade mechanism.                                                                                                                                                                                                                                                                                                                                     | Must       | 11190      |
419 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
420 |                 | The VNF must support parallel and simultaneous configuration of separate objects within itself.                                                                                                                                                                                                                                                                                                                                                                                                                       | Must       | 11200      |
421 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
422 |                 | Locking is required 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).                                                                                                                                          | Must       | 11210      |
423 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
424 |                 | Locking must be applied based on the sequence of NETCONF operations, with the first configuration operation locking out all others until completed.                                                                                                                                                                                                                                                                                                                                                                   | Must       | 11220      |
425 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
426 |                 | If a VNF needs to lock an object for configuration, the lock must be permitted at the finest granularity to avoid blocking simultaneous configuration operations on unrelated objects (e.g., BGP configuration should not be locked out if an interface is being configured, Entire Interface configuration should not be locked out if a non-overlapping parameter on the interface is being configured). The granularity of the lock must be able to be specified via a restricted or full XPath expression.        | Must       | 11230      |
427 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
428 |                 | All simultaneous configuration operations should guarantee the VNF configuration integrity (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).                                                                                                                                                                                                                               | Must       | 11240      |
429 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
430 |                 | To prevent permanent lock-outs, locks must be released:                                                                                                                                                                                                                                                                                                                                                                                                                                                               | Must       | 11250      |
431 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
432 |                 | a. when/if a session applying the lock is terminated (e.g., SSH session is terminated)                                                                                                                                                                                                                                                                                                                                                                                                                                |            |            |
433 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
434 |                 | b. when the corresponding <partial-unlock> operation succeeds                                                                                                                                                                                                                                                                                                                                                                                                                                                         |            |            |
435 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
436 |                 | c. 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)                                                                                                                                                                                                                                                                                                                                |            |            |
437 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
438 |                 | Additionally, to guard against hung NETCONF sessions, another NETCONF session should be able to initiate the release of the lock by killing the session owning the lock, using the <kill-session> operation.                                                                                                                                                                                                                                                                                                          |            |            |
439 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
440 |                 | The VNF should support simultaneous <commit> operations within the context of this locking requirements framework.                                                                                                                                                                                                                                                                                                                                                                                                    | Must       | 11260      |
441 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
442 |                 | The supplied YANG code and associated NETCONF servers shall support all operations, administration and management (OAM) functions available from the supplier for VNFs.                                                                                                                                                                                                                                                                                                                                               | Must       | 11270      |
443 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
444 |                 | Sub tree filtering must be supported.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Must       | 11280      |
445 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
446 |                 | Heartbeat via a <get> with null filter shall be supported.                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Must       | 11290      |
447 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
448 |                 | Get-schema (ietf-netconf-monitoring) must be supported to pull YANG model over session.                                                                                                                                                                                                                                                                                                                                                                                                                               | Must       | 11300      |
449 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
450 |                 | The supplied YANG code shall be validated using the open source pyang [2]_ program using the following commands:                                                                                                                                                                                                                                                                                                                                                                                                      | Must       | 11310      |
451 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
452 |                 | $ pyang --verbose --strict <YANG-file-name(s)>                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |            |            |
453 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
454 |                 | $ echo $!                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |            |            |
455 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
456 |                 | The echo command must return a zero value otherwise the validation has failed.                                                                                                                                                                                                                                                                                                                                                                                                                                        | Must       | 11320      |
457 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
458 |                 | The supplier shall demonstrate mounting the NETCONF server on OpenDaylight (client) and:                                                                                                                                                                                                                                                                                                                                                                                                                              | Must       | 11330      |
459 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
460 |                 | -  Modify, update, change, rollback configurations using each configuration data element.                                                                                                                                                                                                                                                                                                                                                                                                                             |            |            |
461 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
462 |                 | -  Query each state (non-configuration) data element.                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |            |            |
463 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
464 |                 | -  Execute each YANG RPC.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |            |            |
465 |                 |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
466 |                 | -  Receive data through each notification statement.                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |            |            |
467 +-----------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
468
469 The following table provides the Yang models that suppliers must
470 conform, and those where applicable, that suppliers need to use.
471
472 Table 3. YANG Models
473
474 +----------------+------------------------------------------------------------------------------------+------------+------------+
475 | **RFC**        | **Description**                                                                    | **Type**   | **ID #**   |
476 +================+====================================================================================+============+============+
477 | RFC 6020       | YANG - A Data Modeling Language for the Network Configuration Protocol (NETCONF)   | Must       | 12010      |
478 +----------------+------------------------------------------------------------------------------------+------------+------------+
479 | RFC 6022       | YANG module for NETCONF monitoring                                                 | Must       | 12020      |
480 +----------------+------------------------------------------------------------------------------------+------------+------------+
481 | RFC 6470       | NETCONF Base Notifications                                                         | Must       | 12030      |
482 +----------------+------------------------------------------------------------------------------------+------------+------------+
483 | RFC 6244       | An Architecture for Network Management Using NETCONF and YANG                      | Must       | 12040      |
484 +----------------+------------------------------------------------------------------------------------+------------+------------+
485 | RFC 6087       | Guidelines for Authors and Reviewers of YANG Data Model Documents                  | Must       | 12050      |
486 +----------------+------------------------------------------------------------------------------------+------------+------------+
487 | \*\*RFC 6991   | Common YANG Data Types                                                             | Should     | 12060      |
488 +----------------+------------------------------------------------------------------------------------+------------+------------+
489 | RFC 6536       | NETCONF Access Control Model                                                       | Should     | 12070      |
490 +----------------+------------------------------------------------------------------------------------+------------+------------+
491 | RFC 7223       | A YANG Data Model for Interface Management                                         | Should     | 12080      |
492 +----------------+------------------------------------------------------------------------------------+------------+------------+
493 | RFC 7224       | IANA Interface Type YANG Module                                                    | Should     | 12090      |
494 +----------------+------------------------------------------------------------------------------------+------------+------------+
495 | RFC 7277       | A YANG Data Model for IP Management                                                | Should     | 12100      |
496 +----------------+------------------------------------------------------------------------------------+------------+------------+
497 | RFC 7317       | A YANG Data Model for System Management                                            | Should     | 12110      |
498 +----------------+------------------------------------------------------------------------------------+------------+------------+
499 | RFC 7407       | A YANG Data Model for SNMP Configuration                                           | Should     | 12120      |
500 +----------------+------------------------------------------------------------------------------------+------------+------------+
501
502 The NETCONF server interface shall fully conform to the following
503 NETCONF RFCs.
504
505 Table 4. NETCONF RFCs
506
507 +------------+--------------------------------------------------------------------+------------+------------+
508 | **RFC**    | **Description**                                                    | **Type**   | **ID #**   |
509 +============+====================================================================+============+============+
510 | RFC 4741   | NETCONF Configuration Protocol                                     | Must       | 12130      |
511 +------------+--------------------------------------------------------------------+------------+------------+
512 | RFC 4742   | Using the NETCONF Configuration Protocol over Secure Shell (SSH)   | Must       | 12140      |
513 +------------+--------------------------------------------------------------------+------------+------------+
514 | RFC 5277   | NETCONF Event Notification                                         | Must       | 12150      |
515 +------------+--------------------------------------------------------------------+------------+------------+
516 | RFC 5717   | Partial Lock Remote Procedure Call                                 | Must       | 12160      |
517 +------------+--------------------------------------------------------------------+------------+------------+
518 | RFC 6241   | NETCONF Configuration Protocol                                     | Must       | 12170      |
519 +------------+--------------------------------------------------------------------+------------+------------+
520 | RFC 6242   | Using the Network Configuration Protocol over Secure Shell         | Must       | 12180      |
521 +------------+--------------------------------------------------------------------+------------+------------+
522
523 VNF REST APIs 
524 --------------
525
526 Healthcheck is a command for which no NETCONF support exists. Therefore,
527 this must be supported using a RESTful interface which we have defined.
528
529 The VNF must provide a REST formatted GET RPCs to support Healthcheck
530 queries via the GET method over HTTP(s).
531
532 The port number, url, and other authentication information is provided
533 by the VNF vendor.
534
535 **Table 5. VNF REST APIs**
536
537 +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
538 | **Principal**   | **Description**                                                                                                                                                                                                                                                                                                                                                                                       | **Type**   | **ID #**   |
539 +=================+=======================================================================================================================================================================================================================================================================================================================================================================================================+============+============+
540 | REST APIs       | The HealthCheck RPC, executes a vendor-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.   | Must       | 12190      |
541 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
542 |                 | If the VNF is unable to run the HealthCheck, return a standard http error code and message.                                                                                                                                                                                                                                                                                                           |            |            |
543 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
544 |                 | Examples:                                                                                                                                                                                                                                                                                                                                                                                             |            |            |
545 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
546 |                 | 200                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
547 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
548 |                 | {                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
549 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
550 |                 |     "identifier": "scope represented",                                                                                                                                                                                                                                                                                                                                                                |            |            |
551 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
552 |                 |     "state": "healthy",                                                                                                                                                                                                                                                                                                                                                                               |            |            |
553 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
554 |                 |     "time": "01-01-1000:0000"                                                                                                                                                                                                                                                                                                                                                                         |            |            |
555 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
556 |                 | }                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
557 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
558 |                 | 200                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
559 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
560 |                 | {                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
561 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
562 |                 |     "identifier": "scope represented",                                                                                                                                                                                                                                                                                                                                                                |            |            |
563 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
564 |                 |     "state": "unhealthy",                                                                                                                                                                                                                                                                                                                                                                             |            |            |
565 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
566 |                 | {[                                                                                                                                                                                                                                                                                                                                                                                                    |            |            |
567 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
568 |                 |     "info": "System threshold exceeded details",                                                                                                                                                                                                                                                                                                                                                      |            |            |
569 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
570 |                 |     "fault":                                                                                                                                                                                                                                                                                                                                                                                          |            |            |
571 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
572 |                 | {                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
573 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
574 |                 |     "cpuOverall": 0.80,                                                                                                                                                                                                                                                                                                                                                                               |            |            |
575 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
576 |                 |     "cpuThreshold": 0.45                                                                                                                                                                                                                                                                                                                                                                              |            |            |
577 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
578 |                 | }                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
579 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
580 |                 | ]},                                                                                                                                                                                                                                                                                                                                                                                                   |            |            |
581 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
582 |                 |     "time": "01-01-1000:0000"                                                                                                                                                                                                                                                                                                                                                                         |            |            |
583 |                 |                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
584 |                 | }                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
585 +-----------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
586
587 Chef Standards and Capabilities
588 -------------------------------
589
590 ONAP will support configuration of VNFs via Chef subject to the
591 requirements and guidelines defined in this section.
592
593 The Chef configuration management mechanism follows a client-server
594 model. It requires the presence of a Chef-Client on the VNF that will be
595 directly managed by a Chef Server. The Chef-client will register with
596 the appropriate Chef Server and are managed via ‘cookbooks’ and
597 configuration attributes loaded on the Chef Server which contain all
598 necessary information to execute the appropriate actions on the VNF via
599 the Chef-client.
600
601 ONAP will utilize the open source Chef Server, invoke the documented
602 Chef REST APIs to manage the VNF and requires the use of open source
603 Chef-Client and Push Jobs Client on the VNF
604 (https://downloads.chef.io/).
605
606 **Table 6. VNF Configuration via Chef**
607
608 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
609 | **Principle**              | **Description**                                                                                                                                                                                                                                                                                               | **Type**   | **ID #**   |
610 +============================+===============================================================================================================================================================================================================================================================================================================+============+============+
611 | Chef Server Requirements   | ONAP will interact with the Chef Server designated to manage a target VNF. ONAP design allows for the VNF to register with the following types of Chef Server  [3]_:                                                                                                                                          | Must       | 12310      |
612 |                            |                                                                                                                                                                                                                                                                                                               |            |            |
613 |                            | -  **Chef Server hosted by ONAP**: ONAP will provide a Chef Server to manage a VNF. If this choice is used then it is required that the VNF Vendor provide all relevant cookbooks to ONAP to be loaded on the Chef Server.                                                                                    |            |            |
614 |                            |                                                                                                                                                                                                                                                                                                               |            |            |
615 |                            | -  **Chef Server hosted in Tenant Space**: The Chef Server may also be hosted external to ONAP in tenant space. Same guidelines as ONAP Chef Server apply. In addition, the owner is required to provide appropriate credentials to ONAP in order to interact with the Chef Server.                           |            |            |
616 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
617 | Chef Client                | It is required that as part of the installation process, the chef-client on the VNF be preloaded with validator keys and configuration to register with the designated Chef Server.                                                                                                                           | Must       | 12320      |
618 |                            |                                                                                                                                                                                                                                                                                                               |            |            |
619 | Requirements               |                                                                                                                                                                                                                                                                                                               |            |            |
620 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
621 |                            | All the endpoints (VMs) of a VNF that contain chef-clients are required to have routable FQDNs 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.                                               | Must       | 12330      |
622 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
623 |                            | It is recommended that each VNF expose a single endpoint that is responsible for all functionality.                                                                                                                                                                                                           | May        | 12331      |
624 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
625 |                            | It is required that the VNF be installed with                                                                                                                                                                                                                                                                 | Must       | 12340      |
626 |                            |                                                                                                                                                                                                                                                                                                               |            |            |
627 |                            | -  Chef-Client >= 12.0                                                                                                                                                                                                                                                                                        |            |            |
628 |                            |                                                                                                                                                                                                                                                                                                               |            |            |
629 |                            | -  Chef push jobs client >= 2.0                                                                                                                                                                                                                                                                               |            |            |
630 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
631 | Chef Roles/                | Each VNF Vendor is required to make available for loading on appropriate Chef Server, all relevant Chef artifacts (roles/cookbooks/recipes) required to execute VNF actions requested by ONAP.                                                                                                                | Must       | 12350      |
632 |                            |                                                                                                                                                                                                                                                                                                               |            |            |
633 | Requirements               |                                                                                                                                                                                                                                                                                                               |            |            |
634 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
635 |                            | For each supported VNF action, the VNF Vendor is required to provide a run list of roles/cookbooks/recipes that will perform the desired VNF action in its entirety as specified by ONAP (see Section 3.5 for list of VNF actions and requirements), when triggered by a chef-client run list in JSON file.   | Must       | 12360      |
636 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
637 |                            | Roles/cookbooks/recipes invoked for a VNF action must not contain any instance specific parameters for the VNF. Instead they must accept all necessary instance specific data from the environment or node object attributes.                                                                                 | Must       | 12370      |
638 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
639 |                            | It is required that all configurable parameters in the roles, cookbooks and recipes that can be set by ONAP, over-ride any default values.                                                                                                                                                                    | Must       | 12380      |
640 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
641 |                            | It is required that when executing a VNF action, if the chef-client run encounters any critical errors/failures, it update status on the Chef Server appropriately (e.g., via a fail or raise an exception).                                                                                                  | Must       | 12390      |
642 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
643 |                            | If the VNF action requires the output of a chef-client run be made available (e.g., get running configuration), an attribute, defined as node[‘PushJobOutput’] must be populated with the desired output on all nodes in the push job that execute chef-client run.                                           | Must       | 12400      |
644 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
645 |                            | It is recommended that, for actions that change state of the VNF (e.g., configure), the Vendor design appropriate cookbooks that can automatically ‘rollback’ to the original state in case of any errors.                                                                                                    | Must       | 12410      |
646 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
647 |                            | It is recommended that any chef-client run associated with a VNF action support callback URLs to return information to ONAP upon completion of the chef-client run.                                                                                                                                           | Should     | 12420      |
648 |                            |                                                                                                                                                                                                                                                                                                               |            |            |
649 |                            | -  As part of the push job, ONAP will provide two parameters in the environment of the push job JSON object:                                                                                                                                                                                                  |            |            |
650 |                            |                                                                                                                                                                                                                                                                                                               |            |            |
651 |                            |    -  ‘RequestId’ a unique Id to be used to identify the request,                                                                                                                                                                                                                                             |            |            |
652 |                            |                                                                                                                                                                                                                                                                                                               |            |            |
653 |                            |    -  ‘CallbackUrl’, the URL to post response back.                                                                                                                                                                                                                                                           |            |            |
654 |                            |                                                                                                                                                                                                                                                                                                               |            |            |
655 |                            | -  If the CallbackUrl field is empty or missing in the push job, then the chef-client run need not post the results back via callback.                                                                                                                                                                        |            |            |
656 |                            |                                                                                                                                                                                                                                                                                                               |            |            |
657 |                            | -  If the chef-client run list includes a cookbook/recipe that is callback capable, it is required to, upon completion of the chef-client run, POST back on the callback URL, a JSON object as described in Table A2.                                                                                         |            |            |
658 |                            |                                                                                                                                                                                                                                                                                                               |            |            |
659 |                            | -  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.                                                    |            |            |
660 +----------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
661
662 ONAP Chef API Usage
663 ~~~~~~~~~~~~~~~~~~~
664
665 This section outlines the workflow that ONAP invokes when it receives an
666 action request against a Chef managed VNF.
667
668 1. When ONAP receives a request for an action for a Chef Managed VNF, it
669    retrieves the corresponding template (based on **action** and
670    **VNF)** from its database and sets necessary values in the
671    “Environment”, “Node” and “NodeList” keys (if present) from either
672    the payload of the received action or internal data.
673
674 2. If “Environment” key is present in the updated template, it posts the
675    corresponding JSON dictionary to the appropriate Environment object
676    REST endpoint on the Chef Server thus updating the Environment
677    attributes on the Chef Server.
678
679 3. Next, it creates a Node Object from the “Node” JSON dictionary for
680    all elements listed in the NodeList (using the FQDN to construct the
681    endpoint) by replicating it  [4]_. As part of this process, it will
682    set the name field in each Node Object to the corresponding FQDN.
683    These node objects are then posted on the Chef Server to
684    corresponding Node Object REST endpoints to update the corresponding
685    node attributes.
686
687 4. If PushJobFlag is set to “True” in the template, ONAP requests a push
688    job against all the nodes in the NodeList to trigger
689    chef-client\ **.** It will not invoke any other command via the push
690    job. ONAP will include a callback URL in the push job request and a
691    unique Request Id. An example push job posted by ONAP is listed
692    below:
693
694    {
695
696    "command": "chef-client",
697
698    "run\_timeout": 300,
699
700    "nodes”: [“node1.vnf\_a.onap.com”, “node2.vnf\_a.onap.com”],
701
702    "env": {
703
704    “RequestId”:”8279-abcd-aksdj-19231”,
705
706    “CallbackUrl”:”https://callback.onap:9333”
707
708    },
709
710    }
711
712 5. If CallbackCapable field in the template is not present or set to
713    “False” ONAP will poll the Chef Server to check completion status of
714    the push job.
715
716 6. If “GetOutputFlag” is set to “True” in the template and
717    CallbackCapable is not set to “True”, ONAP will retrieve any output
718    from each node where the push job has finished by accessing the Node
719    Object attribute node[‘PushJobOutput’].
720
721 Ansible Standards and Capabilities
722 ----------------------------------
723
724 ONAP will support configuration of VNFs via Ansible subject to the
725 requirements and guidelines defined in this section.
726
727 Ansible allows agentless management of VMs via execution of ‘playbooks’
728 over ssh. The ‘playbooks’ are a structured set of tasks which contain
729 all the necessary data and execution capabilities to take the necessary
730 action on one or more target VMs of the VNF. ONAP will utilize the
731 framework of an Ansible Server that will host and invoke playbooks to
732 manage VNFs that support Ansible.
733
734 **Table 7. VNF Configuration via Ansible**
735
736 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
737 | **Principle**                 | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | **Type**   | **ID #**   |
738 +===============================+========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+============+============+
739 | Ansible Server Requirements   | ONAP will utilize an Ansible server in order to manage VNFs that support Ansible playbooks. We note that Ansible in general does not require the use of a server. However, this framework has been adopted to align with ONAP architecture, ease of management and scalability.                                                                                                                                                                                                                                                        | Must       | 12510      |
740 |                               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |            |            |
741 |                               | All playbooks for the VNF will be hosted on a designated Ansible Server that meets ONAP Ansible API requirements. ONAP design allows for VNFs to be managed by an Ansible Server in any of the two following forms [5]_:                                                                                                                                                                                                                                                                                                               |            |            |
742 |                               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |            |            |
743 |                               | -  **Ansible Server hosted by ONAP**: ONAP will provide an Ansible Server to manage a VNF. If this choice is used then it is required that the VNF Vendor provide all relevant playbooks to ONAP to be loaded on the Ansible Server.                                                                                                                                                                                                                                                                                                   |            |            |
744 |                               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |            |            |
745 |                               | -  **Ansible Server hosted in Tenant Space**: Same guidelines as the ONAP Ansible Server. The Ansible Server must meet the ONAP Ansible Server API Interface requirements.                                                                                                                                                                                                                                                                                                                                                             |            |            |
746 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
747 | Ansible Client                | The endpoints (VMs) of a VNF on which playbooks will be executed must have routable FQDNs that are reachable via the Ansible Server. ONAP will initiate requests to the Ansible Server for invocation of playbooks against these end points [6]_.                                                                                                                                                                                                                                                                                      | Must       | 12520      |
748 |                               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |            |            |
749 | Requirements                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |            |            |
750 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
751 |                               | It is recommended that a VNF typically have a single endpoint.                                                                                                                                                                                                                                                                                                                                                                                                                                                                         | May        | 12521      |
752 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
753 |                               | The endpoint VM(s) of a VNF on which an Ansible playbook will be executed is required to have Python >= 2.7.                                                                                                                                                                                                                                                                                                                                                                                                                           | Must       | 12530      |
754 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
755 |                               | The endpoint VM(s) must support SSH and allow SSH access to the Ansible server in line with Network Cloud Service Provider guidelines for authentication and access.                                                                                                                                                                                                                                                                                                                                                                   | Must       | 12540      |
756 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
757 | Ansible Playbook              | An Ansible playbook is a collection of tasks that is executed on the Ansible server (local host) and/or the target VM (s) in order to complete the desired action. Each VNF Vendor is required to make available (or load on VNF Ansible Server) playbooks that conform to the ONAP requirements.                                                                                                                                                                                                                                      | Must       | 12550      |
758 |                               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |            |            |
759 | Requirements                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |            |            |
760 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
761 |                               | It is required that each VNF action be supported 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.                                                                                                                                                                                                                                                                                                              | Must       | 12560      |
762 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
763 |                               | A playbook must not contain any instance specific parameters. It 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.                                                                                                                                                                                     | Must       | 12570      |
764 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
765 |                               | The Ansible Server will determine if a playbook invoked to execute a VNF action finished successfully or not using the “PLAY\_RECAP” summary in Ansible log. The playbook will be considered to successfully finish only if the “PLAY RECAP” section at the end of playbook execution output has no unreachable hosts and no failed tasks. Otherwise, the playbook will be considered to have failed.                                                                                                                                  | Must       | 12580      |
766 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
767 |                               | VNF vendor must design playbooks to allow Ansible Server to infer failure or success based on the “PLAY\_RECAP” capability.                                                                                                                                                                                                                                                                                                                                                                                                            | Must       | 12590      |
768 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
769 |                               | If, as part of a VNF action (e.g., audit), a playbook is required to return any VNF information, it must be written to a specific set of text files that will be retrieved and made available by the Ansible Server. The text files must be written in the same directory as the one from which the playbook is being executed. A text file must be created for each host the playbook is run on, with the name ‘<playbook name> <hostname>\_results.txt’ into which any desired output from each respective VM/VNF must be written.   | Must       | 12600      |
770 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
771 |                               | It is recommended that, for actions that change state of the VNF (e.g., configure), the VNF Vendor design appropriate playbooks that can automatically ‘rollback’ to the original state in case of any errors.                                                                                                                                                                                                                                                                                                                         | Should     | 12610      |
772 |                               |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |            |            |
773 |                               | NOTE: In case rollback at the playbook level is not supported or possible, vendor shall provide alternative locking mechanism (e.g., for a small VNF the rollback mechanism may rely on workflow to terminate and re-instantiate VNF VMs and then re-run playbook(s)).                                                                                                                                                                                                                                                                 |            |            |
774 +-------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
775
776 ONAP Controller APIs and Behavior
777 ---------------------------------
778
779 ONAP Controllers support the following operations which act directly
780 upon the VNF. Most of these utilize the NETCONF interface. There are
781 additional commands in use but these either act internally on Controller
782 itself or depend upon network cloud components for implementation. Those
783 actions do not put any special requirement on the VNF provider.
784
785 The following table summarizes how the VNF must act in response to
786 commands from ONAP.
787
788 Table 8. ONAP Controller APIs and NETCONF Commands
789
790 +---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
791 | **Action**          | **Description**                                                                                                                                                                                                                                                                  | **NETCONF Commands**                                                                                                                                                                                                          |
792 +=====================+==================================================================================================================================================================================================================================================================================+===============================================================================================================================================================================================================================+
793 | Action              | Queries ONAP Controller for the current state of a previously submitted runtime LCM (Lifecycle Management) action.                                                                                                                                                               | There is currently no way to check the request status in NETCONF so action status is managed internally by the ONAP controller.                                                                                               |
794 |                     |                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                               |
795 | Status              |                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                               |
796 +---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
797 | Audit, Sync         | Compare active (uploaded) configuration against the current configuration in the ONAP controller. Audit returns failure if different. Sync considers the active (uploaded) configuration as the current configuration.                                                           | The <get-config> operation is used to retrieve the running configuration from the VNF.                                                                                                                                        |
798 +---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
799 | Lock,               | Returns true when the given VNF has been locked.                                                                                                                                                                                                                                 | There is currently no way to query lock state in NETCONF so VNF locking and unlocking is managed internally by the ONAP controller.                                                                                           |
800 |                     |                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                               |
801 | Unlock,             |                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                               |
802 |                     |                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                               |
803 | CheckLock           |                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                               |
804 +---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
805 | Configure,          | Configure applies a post-instantiation configuration the target VNF or VNFC. ConfigModify updates only a subset of the total configuration parameters of a VNF.                                                                                                                  | The <edit-config> operation loads all or part of a specified configuration data set to the specified target database. If there is no <candidate/> database, then the target is the <running/> database. A <commit> follows.   |
806 |                     |                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                               |
807 | ConfigModify        |                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                               |
808 +---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
809 | Health              | Executes a VNF health check and returns the result. A health check is VNF-specific.                                                                                                                                                                                              | The ONAP health check interface is defined over REST and requires the target VNF to expose a standardized HTTP(S) interface for that purpose. See Section 3.2.                                                                |
810 |                     |                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                               |
811 | Check               |                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                               |
812 +---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
813 | StartApplication,   | ONAP requests application to be started or stopped on the VNF or VNFC. These actions do not need to be supported if (1) the application starts automatically after Configure or if the VM’s are started and (2) the application gracefully shuts down if the VM’s are stopped.   | These commands have no specific NETCONF RPC action.                                                                                                                                                                           |
814 |                     |                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                               |
815 | StopApplication     |                                                                                                                                                                                                                                                                                  | They can be supported using Ansible or Chef (see Table 9 below).                                                                                                                                                              |
816 +---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
817 | SoftwareUpload,     | Upgrades the target VNF to a new version without interrupting VNF operation.                                                                                                                                                                                                     | These commands have no specific NETCONF RPC action.                                                                                                                                                                           |
818 |                     |                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                               |
819 | LiveUpgrade         |                                                                                                                                                                                                                                                                                  | They can be supported using Ansible or Chef (see Table 9 below).                                                                                                                                                              |
820 +---------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
821
822 Table 9 lists the required Chef and Ansible support for commands from
823 ONAP.
824
825 Table 9. ONAP Controller APIs and Chef/Ansible Support
826
827 +---------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
828 | **Action**          | **Chef**                                                                                                                                                                                                                                                                                         | **Ansible**                                                                                                                                                                                                                                             |
829 +=====================+==================================================================================================================================================================================================================================================================================================+=========================================================================================================================================================================================================================================================+
830 | Action              | Not needed. ActionStatus is managed internally by the ONAP controller.                                                                                                                                                                                                                           | Not needed. ActionStatus is managed internally by the ONAP controller.                                                                                                                                                                                  |
831 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
832 | Status              |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
833 +---------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
834 | Audit, Sync         | VNF Vendor must provide any necessary roles, cookbooks, recipes to retrieve the running configuration from a VNF and place it in the respective Node Objects ‘PushJobOutput’ attribute of all nodes in NodeList when triggered by a chef-client run.                                             | VNF Vendor must provide an Ansible playbook to retrieve the running configuration from a VNF and place the output on the Ansible server in a manner aligned with playbook requirements listed in this document.                                         |
835 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
836 |                     | The JSON file for this VNF action is required to set “PushJobFlag” to “True” and “GetOutputFlag” to “True”. The “Node” JSON dictionary must have the run list populated with the necessary sequence of roles, cookbooks, recipes.                                                                | The PlaybookName must be provided in the JSON file.                                                                                                                                                                                                     |
837 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
838 |                     | The Environment and Node values should contain all appropriate configuration attributes.                                                                                                                                                                                                         | NodeList must list FQDNs of an example VNF on which to execute playbook.                                                                                                                                                                                |
839 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
840 |                     | NodeList must list sample FQDNs that are required to conduct a chef-client run for this VNF Action.                                                                                                                                                                                              |                                                                                                                                                                                                                                                         |
841 +---------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
842 | Lock,               | Not needed. VNF locking and unlocking is managed internally by the ONAP controller.                                                                                                                                                                                                              | Not needed. VNF locking and unlocking is managed internally by the ONAP controller.                                                                                                                                                                     |
843 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
844 | Unlock,             |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
845 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
846 | CheckLock           |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
847 +---------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
848 | Configure,          | VNF Vendor must provide any necessary roles, cookbooks, recipes to apply configuration attributes to the VNF when triggered by a chef-client run. All configurable attributes must be obtained from the Environment and Node objects on the Chef Server.                                         | VNF Vendor must provide an Ansible playbook that can configure the VNF with parameters supplied by the Ansible Server.                                                                                                                                  |
849 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
850 | ConfigModify        | The JSON file for this VNF action should include all configurable attributes in the Environment and/or Node JSON dictionary.                                                                                                                                                                     | The PlaybookName must be provided in the JSON file.                                                                                                                                                                                                     |
851 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
852 |                     | The “PushJobFlag” must be set to “True”.                                                                                                                                                                                                                                                         | The “EnvParameters” and/or “FileParameters” field values should be provided and contain all configurable parameters for the VNF.                                                                                                                        |
853 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
854 |                     | The “Node” JSON dictionary must have the run list populated with necessary sequence of roles, cookbooks, recipes. This action is not expected to return an output.                                                                                                                               | NodeList must list FQDNs of an example VNF on which to execute playbook.                                                                                                                                                                                |
855 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
856 |                     | “GetOutputFlag” must be set to “False”.                                                                                                                                                                                                                                                          |                                                                                                                                                                                                                                                         |
857 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
858 |                     | NodeList must list sample FQDNs that are required to conduct a chef-client run for this VNF Action.                                                                                                                                                                                              |                                                                                                                                                                                                                                                         |
859 +---------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
860 | Health              | The ONAP health check interface is defined over REST and requires the target VNF to expose a standardized HTTP(S) interface for that purpose. See Section 3.2.                                                                                                                                   | The ONAP health check interface is defined over REST and requires the target VNF to expose a standardized HTTP(S) interface for that purpose. See Section 3.2.                                                                                          |
861 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
862 | Check               |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
863 +---------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
864 | StartApplication,   | VNF Vendor must provide roles, cookbooks, recipes to start an application on the VNF when triggered by a chef-client run. If application does not start, the run must fail or raise an exception. If application is already started, or starts successfully, the run must finish successfully.   | VNF Vendor must provide an Ansible playbook to start the application on the VNF. If application does not start, the playbook must indicate failure. If application is already started, or starts successfully, the playbook must finish successfully.   |
865 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
866 | StopApplication     | For StopApplication, the application must be stopped gracefully (no loss of traffic).                                                                                                                                                                                                            | For StopApplication, the application must be stopped gracefully (no loss of traffic).                                                                                                                                                                   |
867 +---------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
868 | SoftwareUpload,     | VNF Vendor must provide any necessary roles, cookbooks, recipes to apply a software upgrade to the VNF when triggered by a chef-client run.                                                                                                                                                      | VNF Vendor must provide an Ansible playbook that can apply a software upgrade to the VNF when triggered by the Ansible server                                                                                                                           |
869 |                     |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
870 | LiveUpgrade         |                                                                                                                                                                                                                                                                                                  |                                                                                                                                                                                                                                                         |
871 +---------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
872
873 For information purposes, the following ONAP controller functions are
874 planned in the future:
875
876 Table 10. Planned ONAP Controller Functions
877
878 +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
879 | ConfigSave,      | ConfigSave stores the VNF running configuration to a url or file using a specified name. ConfigRestore replaces the VNF running configuration with the configuration previously stored with a url or file with the specified name.                                                                               |
880 |                  |                                                                                                                                                                                                                                                                                                                  |
881 | ConfigRestore    |                                                                                                                                                                                                                                                                                                                  |
882 +==================+==================================================================================================================================================================================================================================================================================================================+
883 | Reconfigure      | If the audit fails, Reconfigure may be used to be replace the VNF running configuration using a previously uploaded configuration in the ONAP controller.                                                                                                                                                        |
884 +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
885 | ConfigStartup    | ConfigStartup is used to store a running configuration to be used when a VNF is rebooted.                                                                                                                                                                                                                        |
886 +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
887 | ConfigRecovery   | ConfigRecovery is used to replace the running configuration with a recovery configuration. This recovery configuration is stored in the ONAP Controller and is the configuration uploaded after instantiation. It will only be used if there is no other option to restore the VNF to a working configuration.   |
888 +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
889 | StatusQuery      | Executes a VNF status query and returns the result. A status query is VNF-specific.                                                                                                                                                                                                                              |
890 +------------------+------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
891
892
893 d. Monitoring & Management
894 ===========================
895 Monitoring & Management
896 =======================
897
898 This section addresses data collection and event processing
899 functionality that is directly dependent on the interfaces provided by
900 the VNFs’ APIs. These can be in the form of asynchronous interfaces for
901 event, fault notifications, and autonomous data streams. They can also
902 be synchronous interfaces for on-demand requests to retrieve various
903 performance, usage, and other event information.
904
905 The target direction for VNF interfaces is to employ APIs that are
906 implemented utilizing standardized messaging and modeling protocols over
907 standardized transports. Migrating to a virtualized environment presents
908 a tremendous opportunity to eliminate the need for proprietary
909 interfaces for vendor equipment while removing the traditional
910 boundaries between Network Management Systems and Element Management
911 Systems. Additionally, VNFs provide the ability to instrument the
912 networking applications by creating event records to test and monitor
913 end-to-end data flow through the network, similar to what physical or
914 virtual probes provide without the need to insert probes at various
915 points in the network. The VNF vendors must be able to provide the
916 aforementioned set of required data directly to the ONAP collection
917 layer using standardized interfaces.
918
919 Transports and Protocols Supporting Resource Interfaces
920 -------------------------------------------------------
921
922 Delivery of data from VNFs to ONAP must use the same common transport
923 mechanisms and protocols for all VNFs. Transport mechanisms and
924 protocols have been selected to enable both high volume and moderate
925 volume datasets, as well as asynchronous and synchronous communications
926 over secure connections. The specified encoding provides
927 self-documenting content, so data fields can be changed as needs evolve,
928 while minimizing changes to data delivery.
929
930 The term ‘Event Record’ is used throughout this document to represent
931 various forms instrumentation/telemetry made available by the VNF
932 including, faults, status events and various other types of VNF
933 measurements and logs. Headers received by themselves must be used as
934 heartbeat indicators. The common structure and delivery protocols for
935 other types of data will be given in future versions of this document as
936 we get more insight into data volumes and required processing.
937
938 In the following guidelines, we provide options for encoding,
939 serialization and data delivery. Agreements between Service Providers
940 and VNF vendors shall determine which encoding, serialization and
941 delivery method to use for particular data sets. The selected methods
942 must be agreed to prior to the on-boarding of the VNF into ONAP design
943 studio.
944
945 Table 11. Monitoring & Management
946
947 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
948 | **Principle**                                | **Description**                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | **Type**   | **ID #**   |
949 +==============================================+=====================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================+============+============+
950 | VNF telemetry via standardized interface     | VNFs 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Must       | 13005      |
951 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
952 | Encoding and Serialization                   | Content delivered from VNFs to ONAP is to be encoded and serialized 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) [8]_.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Must       | 13010      |
953 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
954 |                                              | -  JSON plain text format is preferred for moderate volume data sets (option 1), as JSON has the advantage of having well-understood simple processing and being human-readable without additional decoding. Examples of moderate volume data sets include the fault alarms and performance alerts, heartbeat messages, measurements used for VNF scaling and syslogs.                                                                                                                                                                                                                                                                                                                                                                                              |            |            |
955 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
956 |                                              | -  Binary format using Avro is preferred for high volume data sets (option 2) such as mobility flow measurements and other high-volume streaming events (such as mobility signaling events or SIP signaling) or bulk data, as this will significantly reduce the volume of data to be transmitted. As of the date of this document, all events are reported using plain text JSON and REST.                                                                                                                                                                                                                                                                                                                                                                         |            |            |
957 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
958 |                                              | -  Avro content is self-documented, using a JSON schema. The JSON schema is delivered along with the data content (http://avro.apache.org/docs/current/ ). This means the presence and position of data fields can be recognized automatically, as well as the data format, definition and other attributes. Avro content can be serialized as JSON tagged text or as binary. In binary format, the JSON schema is included as a separate data block, so the content is not tagged, further compressing the volume. For streaming data, Avro will read the schema when the stream is established and apply the schema to the received content.                                                                                                                      |            |            |
959 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
960 |                                              | -  In the future, we may consider support for other types of encoding & serialization (e.g., gRPC) based on industry demand.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |            |            |
961 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
962 | Reporting Frequency                          | The frequency that asynchronous data is delivered will vary 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.   | Must       | 13020      |
963 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
964 |                                              | -  We expect the reporting frequency to be configurable depending on the virtual network function’s needs for management. For example, Service Provider may choose to vary the frequency of collection between normal and trouble-shooting scenarios.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |            |
965 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
966 |                                              | -  Decisions about the frequency of data reporting will affect the size of delivered data sets, recommended delivery method, and how the data will be interpreted by ONAP. However, this should not affect deserialization and decoding of the data, which will be guided by the accompanying JSON schema.                                                                                                                                                                                                                                                                                                                                                                                                                                                          |            |            |
967 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
968 | Addressing and Delivery Protocol             | ONAP destinations can be addressed by URLs for RESTful data PUT. Future data sets may also be addressed by host name and port number for TCP streaming, or by host name and landing zone directory for SFTP transfer of bulk files.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Must       | 13030      |
969 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
970 |                                              | -  REST using HTTPS delivery of plain text JSON is preferred for moderate sized asynchronous data sets, and for high volume data sets when feasible.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |            |            |
971 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
972 |                                              | -  VNFs 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.                                                                                                                                                                                                                             |            |            |
973 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
974 |                                              | -  VNFs will 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                            |            |            |
975 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
976 |                                              | -  Other options are expected to include:                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |            |            |
977 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
978 |                                              |    -  REST delivery of binary encoded data sets.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |            |            |
979 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
980 |                                              |    -  TCP for high volume streaming asynchronous data sets and for other high volume data sets. TCP delivery can be used for either JSON or binary encoded data sets.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |            |            |
981 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
982 |                                              |    -  SFTP for asynchronous bulk files, such as bulk files that contain large volumes of data collected over a long time interval or data collected across many VNFs. This is not preferred. Preferred is to reorganize the data into more frequent or more focused data sets, and deliver these by REST or TCP as appropriate.                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
983 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
984 |                                              |    -  REST for synchronous data, using RESTCONF (e.g., for VNF state polling).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |            |            |
985 |                                              |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |            |            |
986 |                                              | -  The ONAP addresses as data destinations for each VNF must be provided by ONAP Policy, 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.                                                                                                                                                                                                                                                                                                                                                                                                                       |            |            |
987 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
988 | Asynchronous and Synchronous Data Delivery   | VNFs are to deliver asynchronous data as data becomes available, or according to the configured frequency. The delivered data must be encoded using JSON or Avro, addressed and delivered as described in the previous paragraphs.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | Must       | 13040      |
989 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
990 |                                              | VNFs are to respond to data requests from ONAP as soon as those requests are received, as a synchronous response.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Must       | 13050      |
991 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
992 |                                              | Synchronous communication must leverage the RESTCONF/NETCONF framework used by the ONAP configuration subsystem. This shall include using YANG configuration models and RESTCONF (https://tools.ietf.org/html/draft-ietf-netconf-restconf-09#page-46).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              | Must       | 13060      |
993 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
994 |                                              | 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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Must       | 13070      |
995 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
996 |                                              | ONAP may request the VNF to deliver the current data for any of the record types defined in Section 4.2 below. The VNF must respond 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.)                                                                                                                                                                                                 | Must       | 13080      |
997 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
998 |                                              | ONAP may request the VNF to deliver granular data on device or subsystem status or performance, referencing the YANG configuration model for the VNF. The VNF must respond by returning the requested data elements.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | Must       | 13090      |
999 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
1000 |                                              | If YANG models need to be translated to and from JSON, (https://trac.tools.ietf.org/id/draft-lhotka-netmod-yang-json-00.html) should be utilized for translation, meaning YANG configuration and content can be represented via JSON, consistent with Avro, as described in “Encoding and Serialization” section.                                                                                                                                                                                                                                                                                                                                                                                                                                                   | Should     | 13100      |
1001 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
1002 | Security                                     | VNFs must support secure connections and transports.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | Must       | 13110      |
1003 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
1004 |                                              | Access to ONAP and to VNFs, and creation of connections, must be controlled through secure credentials, log-on and exchange mechanisms.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | Must       | 13120      |
1005 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
1006 |                                              | Data in motion must be carried only over secure connections.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Must       | 13130      |
1007 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
1008 |                                              | Service Providers require that any content containing Sensitive Personal Information (SPI) or certain proprietary data must be encrypted, in addition to applying the regular procedures for securing access and delivery.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          | Must       | 13140      |
1009 +----------------------------------------------+---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+------------+------------+
1010
1011 Data Model for Event Records 
1012 -----------------------------
1013
1014 This section describes the data model for the collection of telemetry
1015 data from VNFs by Service Providers (SPs) to manage VNF health and
1016 runtime lifecycle. This data model is referred to as the VNF Event
1017 Streaming (VES) specifications. While this document is focused on
1018 specifying some of the records from the ONAP perspective, there may be
1019 other external bodies using the same framework to specify additional
1020 records. For example, OPNFV has a VES project [9]_ that is looking to
1021 specify records for OpenStack’s internal telemetry to manage Application
1022 (VNFs), physical and virtual infrastructure (compute, storage, network
1023 devices), and virtual infrastructure managers (cloud controllers, SDN
1024 controllers). Note that any configurable parameters for these data
1025 records (e.g., frequency, granularity, policy-based configuration) will
1026 be managed using the “Configuration” framework described in the prior
1027 sections of this document.
1028
1029 The Data Model consists of:
1030
1031 -  Common Header Record: This data structure precedes each of the
1032    Technology Independent and Technology Specific records sections of
1033    the data model.
1034
1035 -  Technology Independent Records: This version of the document
1036    specifies the model for Fault, Heartbeat, State Change, Syslog,
1037    Threshold Crossing Alerts, and VF Scaling\* (short for
1038    measurementForVfScalingFields) records. In the future, these may be
1039    extended to support other types of technology independent records.
1040    Each of these records allows additional fields (name/ value pairs)
1041    for extensibility. The vendors can use these vendor-specific
1042    additional fields to provide additional information that may be
1043    relevant to the managing systems.
1044
1045 -  Technology Specific Records: This version of the document specifies
1046    the model for Mobile Flow records, Signaling and Voice Quality
1047    records. In the future, these may be extended to support other types
1048    of records (e.g., Network Fabric, Security records, etc.). Each of
1049    these records allows additional fields (name/value pairs) for
1050    extensibility. The VNF vendors can use these VNF-specific additional
1051    fields to provide additional information that may be relevant to the
1052    managing systems. A placeholder for additional technology specific
1053    areas of interest to be defined in the future documents has been
1054    depicted.
1055
1056 |image0|
1057 Figure 1. Data Model for Event Records
1058
1059 Event Records - Data Structure Description
1060 ------------------------------------------
1061
1062 The data structure for event records consists of:
1063
1064 -  a Common Event Header block;
1065
1066 -  zero or more technology independent domain blocks; and
1067
1068    -  e.g., Fault domain, State Change domain, Syslog domain, etc.
1069
1070 -  zero or more technology specific domain blocks.
1071
1072    -  e.g., Mobile Flow domain, Signaling domain, Voice Quality domain,
1073       etc.
1074
1075 Note: Heartbeat records would only have the Common Event Header block.
1076 An optional heartbeat domain is available if required by the heartbeat
1077 implementation.
1078
1079 Common Event Header
1080 ~~~~~~~~~~~~~~~~~~~~~
1081
1082 The common header that precedes any of the domain-specific records
1083 contains information identifying the type of record to follow,
1084 information about the sender and other identifying characteristics
1085 related to timestamp, sequence number, etc.
1086
1087 Technology Independent Records – Fault Fields
1088 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1089
1090 The Fault Record, describing a condition in the Fault domain, contains
1091 information about the fault such as the entity under fault, the
1092 severity, resulting status, etc.
1093
1094 Technology Independent Records – Heartbeat Fields
1095 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1096
1097 The Heartbeat Record provides an optional structure for communicating
1098 information about heartbeat or watchdog signaling events. It can contain
1099 information about service intervals, status information etc. as required
1100 by the heartbeat implementation.
1101
1102 Technology Independent Records – State Change Fields
1103 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1104
1105 The State Change Record provides a structure for communicating
1106 information about data flow through the VNF. It can contain information
1107 about state change related to physical device that is reported by VNF.
1108 As an example, when cards or port name of the entity that has changed
1109 state.
1110
1111 Technology Independent Records – Syslog Fields
1112 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1113
1114 The Syslog Record provides a structure for communicating any type of
1115 information that may be logged by the VNF. It can contain information
1116 about system internal events, status, errors, etc.
1117
1118 Technology Independent Records – Threshold Crossing Alert Fields
1119 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1120
1121 The Threshold Crossing Alert (TCA) Record provides a structure for
1122 communicating information about threshold crossing alerts. It can
1123 contain alert definitions and types, actions, events, timestamps and
1124 physical or logical details.
1125
1126 Technology Independent Records - VF Scaling Fields
1127 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1128
1129 The VF Scaling\* (short for measurementForVfScalingFields) Record
1130 contains information about VF and VNF resource structure and its
1131 condition to help in the management of the resources for purposes of
1132 elastic scaling.
1133
1134 Technology Independent Records – otherFields
1135 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1136
1137 The otherFields Record defines fields for events belonging to the
1138 otherFields domain of the Technology Independent domain enumeration.
1139 This record provides a mechanism to convey a complex set of fields
1140 (possibly nested or opaque) and is purely intended to address
1141 miscellaneous needs such as addressing time-to-market considerations or
1142 other proof-of-concept evaluations.  Hence, use of this record type is
1143 discouraged and should be minimized.
1144
1145 Technology Specific Records – Mobile Flow Fields
1146 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1147
1148 The Mobile Flow Record provides a structure for communicating
1149 information about data flow through the VNF. It can contain information
1150 about connectivity and data flows between serving elements for mobile
1151 service, such as between LTE reference points, etc.
1152
1153 Technology Specific Records – Signaling Fields
1154 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1155
1156 The Signaling Record provides a structure for communicating information
1157 about signaling messages, parameters and signaling state. It can contain
1158 information about data flows for
1159 `signaling <https://en.wikipedia.org/wiki/Signaling_%28telecommunications%29>`__
1160 and controlling
1161 `multimedia <https://en.wikipedia.org/wiki/Multimedia>`__ communication
1162 `session <https://en.wikipedia.org/wiki/Session_%28computer_science%29>`__\ s
1163 such as `voice <https://en.wikipedia.org/wiki/Telephone_call>`__ and
1164 `video calls <https://en.wikipedia.org/wiki/Video_call>`__.
1165
1166 Technology Specific Records – Voice Quality Fields
1167 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1168
1169 The Voice Quality Record provides a structure for communicating
1170 information about voice quality statistics including media connection
1171 information, such as transmitted octet and packet counts, packet loss,
1172 packet delay variation, round-trip delay, QoS parameters and codec
1173 selection.
1174
1175 Technology Specific Records – Future Domains
1176 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1177
1178 The futureDomains Record is a placeholder for additional technology
1179 specific areas of interest that will be defined and described in the
1180 future documents.
1181
1182 Data Structure Specification of the Event Record
1183 ------------------------------------------------
1184
1185 For additional information on the event record formats of the data
1186 structures mentioned above, please refer to `AT&T Service Specification;
1187 Service: VES Event
1188 Listener <https://github.com/att/evel-test-collector/tree/master/docs/att_interface_definition>`__.
1189
1190 .. [1]
1191    ECOMP (Enhanced Control Orchestration, Management & Policy)
1192    Architecture White Paper
1193    (http://about.att.com/content/dam/snrdocs/ecomp.pdf)
1194
1195 .. [2]
1196    https://github.com/mbj4668/pyang
1197
1198 .. [3]
1199    Decision on which Chef Server instance associates with a VNF will be
1200    made on a case-by-case basis depending on VNF, access requirements,
1201    etc. and are outside the scope of this document. The specific
1202    criteria for this would involve considerations like connectivity and
1203    access required by the VNF, security, VNF topology and proprietary
1204    cookbooks.
1205
1206 .. [4]
1207    Recall that the Node Object **is required** to be identical across
1208    all VMs of a VNF invoked as part of the action except for the “name”.
1209
1210 .. [5]
1211    Decision on which Ansible Server to use may happen on a case-by-case
1212    basis depending on VNF, access requirements etc. and are outside the
1213    scope of this document. The specific criteria for this could involve
1214    considerations like connectivity and access required by the VNF,
1215    security, VNF topology and proprietary playbooks.
1216
1217 .. [6]
1218    Upstream elements must provide the appropriate FQDN in the request to
1219    ONAP for the desired action.
1220
1221 .. [7]
1222    Multiple ONAP actions may map to one playbook.
1223
1224 .. [8]
1225    This option is not currently supported in ONAP and it is currently
1226    under consideration.
1227
1228 .. [9]
1229    https://wiki.opnfv.org/display/PROJ/VNF+Event+Stream
1230
1231 .. [10]
1232    The “name” field is a mandatory field in a valid Chef Node Object
1233    JSON dictionary.
1234
1235 .. |image0| image:: Data_Model_For_Event_Records.png
1236       :width: 7in
1237       :height: 8in