From 1f4df7c7ad27b23773ad9cdbe4db1632ce388cf1 Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Mon, 17 Dec 2018 12:43:02 -0800 Subject: [VVP] updating validation scripts in dublin - adding backlog of new validation scripts for dublin - updating existing tests - removing outdated tests Issue-ID: VVP-123 Change-Id: Ib8260889ac957c1dd28d8ede450fc8edc6fb0ec0 Signed-off-by: stark, steven --- README.md | 46 - README.rst | 114 + ice_validator/requirements.json | 31116 ++++++++++++++++++- ice_validator/tests/cached_yaml.py | 5 +- ice_validator/tests/conftest.py | 2 +- .../fail/fail.yaml | 15 + .../pass/pass.yaml | 19 + .../fail/fail.yaml | 55 + .../fail/nested.yaml | 46 + .../pass/nested.yaml | 46 + .../pass/pass.yaml | 55 + .../fixtures/test_contrail_fqdn/fail/fail0.yaml | 51 + .../fixtures/test_contrail_fqdn/fail/fail1.yaml | 54 + .../fixtures/test_contrail_fqdn/fail/fail2.yaml | 56 + .../fixtures/test_contrail_fqdn/pass/pass0.yaml | 56 + .../fail/fail0.yaml | 75 + .../pass/pass0.yaml | 78 + .../test_contrail_irt_routes/fail/fail0.yaml | 55 + .../test_contrail_irt_routes/pass/pass0.yaml | 55 + .../test_contrail_resource_id/fail/fail0.yaml | 70 + .../test_contrail_resource_id/pass/pass0.yaml | 70 + .../test_contrail_vmi_resource_id/fail/fail0.yaml | 75 + .../test_contrail_vmi_resource_id/pass/pass0.yaml | 75 + .../test_contrail_vn_resource_id/fail/fail0.yaml | 56 + .../test_contrail_vn_resource_id/pass/pass0.yaml | 50 + .../fail/fail.env | 3 + .../fail/fail.yaml | 4 + .../pass/pass.env | 2 + .../pass/pass.yaml | 4 + .../test_environment_file_parameters/fail/fail.env | 5 +- .../fail/fail.yaml | 26 +- .../fail/testvm.yaml | 51 + .../pass/test_vm.yaml | 51 + .../test_files_in_flat_dir/fail/nested/test2.yaml | 36 + .../fixtures/test_files_in_flat_dir/fail/test.yaml | 36 + .../fixtures/test_files_in_flat_dir/pass/test.yaml | 36 + .../test_files_in_flat_dir/pass/test2.yaml | 36 + .../test_forbidden_resources/fail/fail1.yaml | 49 + .../test_forbidden_resources/pass/pass0.yaml | 49 + .../test_get_attr_usage/fail/fail_get_attr.yaml | 60 + .../fixtures/test_get_attr_usage/fail/nested.yaml | 54 + .../fixtures/test_get_attr_usage/pass/nested.yaml | 54 + .../test_get_attr_usage/pass/pass_get_attr.yaml | 60 + .../pass/new.txt | 0 .../pass/user_data.sh | 0 .../pass/good_yaml_eg.yaml | 48 +- .../test_ip_parameters_start_at_0/fail/fail.yaml | 61 + .../test_ip_parameters_start_at_0/fail/fail2.yaml | 55 + .../test_ip_parameters_start_at_0/fail/nested.yaml | 46 + .../test_ip_parameters_start_at_0/pass/nested.yaml | 46 + .../test_ip_parameters_start_at_0/pass/pass.yaml | 61 + .../test_ip_parameters_start_at_0/pass/pass2.yaml | 55 + .../test_nested_parameter_args/fail/fail0.yaml | 59 + .../test_nested_parameter_args/pass/pass0.yaml | 59 + .../test_nested_parameters/fail/heat_template.yaml | 25 + .../fail/nested_template_1.yaml | 62 - .../fail/bad-heat_template.yaml | 59 + .../pass/heat_template.yaml | 62 + .../pass/nested_template_1.yaml | 68 + .../test_nesting_level/fail/bad-level0.yaml | 51 + .../test_nesting_level/fail/bad-level1.yaml | 63 + .../test_nesting_level/fail/bad-level2.yaml | 63 + .../test_nesting_level/fail/bad-level3.yaml | 60 + .../fixtures/test_nesting_level/pass/level0.yaml | 51 + .../fixtures/test_nesting_level/pass/level1.yaml | 63 + .../fixtures/test_nesting_level/pass/level2.yaml | 63 + .../fixtures/test_nesting_level/pass/level3.yaml | 60 + .../test_nesting_nova_server/fail/bad-17528_0.yaml | 50 + .../test_nesting_nova_server/fail/bad-17528_1.yaml | 65 + .../test_nesting_nova_server/fail/bad-17528_2.yaml | 60 + .../test_nesting_nova_server/pass/17528_0.yaml | 50 + .../test_nesting_nova_server/pass/17528_1.yaml | 64 + .../test_nesting_nova_server/pass/17528_2.yaml | 60 + .../test_nesting_nova_server/pass/17528_3.yaml | 63 + .../fail/invalid_naming_used_for_network.yaml | 14 +- .../pass/valid_heat_template.yaml | 8 +- .../test_neutron_net_resource_id/fail/fail.yaml | 53 + .../test_neutron_net_resource_id/pass/pass.yaml | 53 + .../test_neutron_port_addresses/fail/fail0.yaml | 86 + .../test_neutron_port_addresses/fail/fail1.yaml | 86 + .../test_neutron_port_addresses/fail/fail2.yaml | 86 + .../test_neutron_port_addresses/fail/fail3.yaml | 86 + .../test_neutron_port_addresses/fail/other0.yaml | 53 + .../test_neutron_port_addresses/pass/other0.yaml | 55 + .../test_neutron_port_addresses/pass/pass0.yaml | 86 + .../test_neutron_port_fixed_ips/fail/fail0.yaml | 97 + .../test_neutron_port_fixed_ips/fail/fail1.yaml | 97 + .../test_neutron_port_fixed_ips/pass/pass0.yaml | 95 + .../pass/pass0_base.yaml | 49 + .../fail/fail0.yaml | 100 + .../fail/fail0_base.yaml | 63 + .../pass/pass0.yaml | 100 + .../pass/pass0_base.yaml | 63 + .../fail/fail.yaml | 16 + .../pass/pass.yaml | 16 + .../fixtures/test_no_http_resources/fail/fail.yaml | 94 + .../pass/valid_template.yaml | 94 + .../fixtures/test_no_image_files/fail/image.ami | 0 .../fixtures/test_no_image_files/fail/image2.ISO | 0 .../fixtures/test_no_image_files/fail/pass.sh | 1 + .../fixtures/test_no_image_files/fail/pass.yaml | 16 + .../fixtures/test_no_image_files/fail/settings | 1 + .../fixtures/test_no_image_files/pass/pass.sh | 1 + .../fixtures/test_no_image_files/pass/pass.yaml | 16 + .../fixtures/test_no_image_files/pass/settings | 1 + .../fixtures/test_non_server_name/fail/fail0.yaml | 126 + .../fixtures/test_non_server_name/fail/fail1.yaml | 129 + .../fixtures/test_non_server_name/fail/fail2.yaml | 133 + .../fixtures/test_non_server_name/fail/fail3.yaml | 135 + .../fixtures/test_non_server_name/pass/pass0.yaml | 135 + .../fail/fail.yaml | 56 + .../fail/fail2.yaml | 55 + .../fail/nested.yaml | 46 + .../pass/nested.yaml | 46 + .../pass/pass.yaml | 51 + .../pass/pass2.yaml | 54 + .../test_nova_server_resource_id/fail/fail.yaml | 56 + .../test_nova_server_resource_id/pass/pass.yaml | 56 + .../test_nova_servers_index/fail/fail0.yaml | 72 - .../test_nova_servers_index/fail/fail1.yaml | 72 - .../test_nova_servers_index/fail/fail2.yaml | 79 - .../test_nova_servers_index/pass/pass0.yaml | 72 - .../test_nova_servers_valet/fail/fail0.yaml | 55 + .../test_nova_servers_valet/pass/pass.yaml | 74 + .../fail/fail0.yaml | 69 + .../fail/fail1.yaml | 69 + .../fail/fail2.yaml | 69 + .../fail/fail3.yaml | 69 + .../fail/fail4.yaml | 69 + .../fail/fail5.yaml | 69 + .../fail/fail6.yaml | 64 + .../pass/pass0.yaml | 69 + .../pass/pass1.yaml | 66 + .../test_nova_servers_valet_host/fail/fail0.yaml | 93 + .../test_nova_servers_valet_host/fail/fail0c.yaml | 91 + .../test_nova_servers_valet_host/fail/fail1.yaml | 93 + .../test_nova_servers_valet_host/fail/fail1c.yaml | 91 + .../test_nova_servers_valet_host/fail/fail2.yaml | 93 + .../test_nova_servers_valet_host/fail/fail2c.yaml | 91 + .../test_nova_servers_valet_host/fail/fail3.yaml | 93 + .../test_nova_servers_valet_host/fail/fail4.yaml | 93 + .../test_nova_servers_valet_host/fail/fail5.yaml | 93 + .../test_nova_servers_valet_host/fail/fail6.yaml | 93 + .../test_nova_servers_valet_host/fail/fail8.yaml | 93 + .../test_nova_servers_valet_host/fail/fail9.yaml | 93 + .../test_nova_servers_valet_host/pass/pass0.yaml | 93 + .../test_nova_servers_valet_host/pass/pass1.yaml | 91 + .../fail/base_mod.yaml | 21 + .../pass/base_mod.yaml | 21 + .../pass/valid_template.yaml | 9 +- ...plate_required_parameters_with_constraints.yaml | 40 + .../fail/invalid_base_naming_for_fixed_ips.yaml | 69 - .../pass/valid_base_heat_template.yaml | 69 - .../fail/invalid_base_heat_template_1.yaml | 90 - .../fail/invalid_base_heat_template_2.yaml | 95 - .../pass/valid_base_heat_template_1.yaml | 94 - .../pass/valid_base_heat_template_2.yaml | 76 - .../fail/invalid_base_naming_for_fixed_ips.yaml | 69 - .../pass/valid_base_heat_template_1.yaml | 69 - .../pass/valid_base_heat_template_2.yaml | 69 - .../pass/valid_base_heat_template_3.yaml | 69 - .../pass/valid_module_heat_template.yaml | 69 - .../fixtures/test_resource_indices/fail/fail0.yaml | 84 + .../test_resource_indices/fail/nested.yaml | 55 + .../test_resource_indices/pass/nested.yaml | 62 + .../fixtures/test_resource_indices/pass/pass0.yaml | 85 + .../fixtures/test_server_parameters/fail/fail.yaml | 72 + .../fixtures/test_server_parameters/pass/pass.yaml | 72 + .../fail/not_using_get_param.yaml | 16 +- .../fail/fail.yaml | 56 + .../pass/pass.yaml | 56 + .../fail/get_param_not_used_for_subnet.yaml | 86 - .../get_resource_used_for_external_network.yaml | 86 - .../pass/valid_heat_template.yaml | 86 - .../fail/heat_template_1.yaml | 108 - ...at_template_2_identical_to_heat_template_2.yaml | 108 - .../pass/unique_resource_template_1.yml | 108 - .../pass/unique_resource_template_2.yml | 108 - .../fixtures/test_vm_type_case/fail/fail.yaml | 70 + .../fixtures/test_vm_type_case/pass/pass.yaml | 70 + .../fail/no_value_volume.yaml | 69 - .../fail/use_get_param_volume.yml | 61 - .../pass/valid_template_volume.yml | 70 - .../fail/module_volumes.yaml | 52 + .../fail/nested_volume1.yaml | 40 + .../fail/nested_volume2.yaml | 40 + .../pass/module2_base.yaml | 55 + .../pass/module_volume.yaml | 52 + .../pass/nested_volume1.yaml | 40 + .../pass/nested_volume2.yaml | 40 + ice_validator/tests/helpers.py | 100 +- ice_validator/tests/parametrizers.py | 472 +- ice_validator/tests/report.html.jinja2 | 2 +- ice_validator/tests/structures.py | 612 +- .../tests/test_all_parameters_used_in_template.py | 80 + ...d_address_pairs_include_vm_type_network_role.py | 27 +- ice_validator/tests/test_availability_zone.py | 21 +- .../test_availability_zone_params_start_at_0.py | 50 + ice_validator/tests/test_base_template_names.py | 30 +- .../tests/test_cloud_config_resource_id.py | 31 +- ice_validator/tests/test_contrail_fqdn.py | 138 + .../tests/test_contrail_instance_ip_resource_id.py | 141 + ice_validator/tests/test_contrail_irt_routes.py | 167 + ice_validator/tests/test_contrail_resource_id.py | 150 + .../tests/test_contrail_vmi_resource_id.py | 132 + .../tests/test_contrail_vn_resource_id.py | 82 + ice_validator/tests/test_env_and_yaml_same_name.py | 25 +- .../tests/test_env_no_resource_registry.py | 20 +- .../test_env_parameters_defined_in_template.py | 79 + .../tests/test_environment_file_parameters.py | 550 +- .../tests/test_environment_file_structure.py | 10 +- .../tests/test_filename_is_vmtype_dot_yaml.py | 75 + ice_validator/tests/test_files_in_flat_dir.py | 50 + .../test_fixed_ips_include_vm_type_network_role.py | 35 +- ice_validator/tests/test_forbidden_resources.py | 81 + ice_validator/tests/test_get_attr_usage.py | 86 + .../test_get_file_only_reference_local_files.py | 59 +- .../tests/test_heat_numeric_parameters.py | 78 - ice_validator/tests/test_heat_pairs_provided.py | 50 +- ice_validator/tests/test_heat_parameter_section.py | 41 +- ..._template_parameters_contain_required_fields.py | 29 +- .../tests/test_heat_template_structure.py | 87 +- ice_validator/tests/test_initial_configuration.py | 158 +- .../tests/test_ip_parameters_start_at_0.py | 50 + .../tests/test_multipart_mime_resource_id.py | 31 +- ice_validator/tests/test_nested_parameter_args.py | 112 + ice_validator/tests/test_nested_parameters.py | 113 +- .../tests/test_nested_template_parameters.py | 120 + ice_validator/tests/test_nesting_level.py | 64 + ice_validator/tests/test_nesting_nova_server.py | 99 + ice_validator/tests/test_network_format.py | 112 +- ...network_format_use_get_param_or_get_resource.py | 45 +- .../tests/test_neutron_net_resource_id.py | 73 + ice_validator/tests/test_neutron_port_addresses.py | 242 + ice_validator/tests/test_neutron_port_fixed_ips.py | 325 + .../tests/test_neutron_port_internal_network.py | 241 + .../tests/test_neutron_port_network_parameter.py | 94 + ice_validator/tests/test_no_http_resources.py | 74 + ice_validator/tests/test_no_image_files.py | 69 + ..._unused_parameters_between_env_and_templates.py | 44 +- ice_validator/tests/test_non_server_name.py | 143 + .../test_nova_server_name_parameters_start_at_0.py | 52 + .../tests/test_nova_server_resource_id.py | 78 + .../tests/test_nova_servergroup_policies.py | 32 +- .../tests/test_nova_servers_environment_context.py | 56 +- ice_validator/tests/test_nova_servers_index.py | 120 - .../tests/test_nova_servers_resource_ids.py | 34 +- ice_validator/tests/test_nova_servers_vm_types.py | 94 +- .../test_nova_servers_vm_types_use_get_param.py | 22 +- .../tests/test_nova_servers_workload_context.py | 55 +- .../test_port_connected_to_multiple_servers.py | 71 + ice_validator/tests/test_port_resource_ids.py | 107 +- .../test_required_parameters_no_constraints.py | 63 +- ...t_required_parameters_specified_in_env_files.py | 81 - ...uired_parameters_specified_in_heat_templates.py | 77 - .../tests/test_resource_ids_alphanumeric_only.py | 22 +- ice_validator/tests/test_resource_indices.py | 84 + ice_validator/tests/test_server_parameters.py | 178 + .../tests/test_servers_have_optional_metadata.py | 93 - .../tests/test_servers_have_required_metadata.py | 30 +- .../tests/test_servers_metadata_use_get_param.py | 51 +- .../tests/test_software_config_resource_id.py | 84 + ice_validator/tests/test_subnet_format.py | 127 - ..._subnet_format_use_get_param_or_get_resource.py | 99 - ice_validator/tests/test_unique_name_resources.py | 110 - ...t_unique_name_str_replace_use_params_in_tmpl.py | 79 - .../test_unique_name_str_replace_use_req_params.py | 35 +- .../test_unique_resources_across_all_templates.py | 28 +- .../tests/test_unique_resources_across_template.py | 68 - ice_validator/tests/test_vm_type_case.py | 129 + ice_validator/tests/test_vm_type_resource_id.py | 25 +- ice_validator/tests/test_vm_type_syntax.py | 22 +- ice_validator/tests/test_volume_format_outputs.py | 69 - ice_validator/tests/test_volume_module_naming.py | 79 + .../tests/test_volume_outputs_consumed.py | 58 +- ice_validator/tests/test_volume_resource_ids.py | 58 +- ice_validator/tests/test_volume_templates.py | 68 +- .../tests/test_volume_templates_outputs.py | 45 +- .../test_volume_templates_outputs_resources.py | 80 - ice_validator/tests/utils/nested_dict.py | 30 +- ice_validator/tests/utils/nested_files.py | 239 +- ice_validator/tests/utils/nested_iterables.py | 65 +- ice_validator/tests/utils/network_roles.py | 189 +- ice_validator/tests/utils/ports.py | 201 +- ice_validator/tests/utils/vm_types.py | 33 +- ice_validator/tests/utils/volumes.py | 18 +- ice_validator/tests/utils/yaml_custom_utils.py | 7 +- tox.ini | 5 +- 288 files changed, 45846 insertions(+), 5897 deletions(-) delete mode 100644 README.md create mode 100644 README.rst create mode 100644 ice_validator/tests/fixtures/test_all_parameters_used_in_template/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_all_parameters_used_in_template/pass/pass.yaml create mode 100644 ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/nested.yaml create mode 100644 ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/nested.yaml create mode 100644 ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/pass.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail1.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail2.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_fqdn/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_irt_routes/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_irt_routes/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_resource_id/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_resource_id/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_vmi_resource_id/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_vmi_resource_id/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_vn_resource_id/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_contrail_vn_resource_id/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.env create mode 100644 ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.env create mode 100644 ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.yaml create mode 100644 ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/fail/testvm.yaml create mode 100644 ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/pass/test_vm.yaml create mode 100644 ice_validator/tests/fixtures/test_files_in_flat_dir/fail/nested/test2.yaml create mode 100644 ice_validator/tests/fixtures/test_files_in_flat_dir/fail/test.yaml create mode 100644 ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test.yaml create mode 100644 ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test2.yaml create mode 100644 ice_validator/tests/fixtures/test_forbidden_resources/fail/fail1.yaml create mode 100644 ice_validator/tests/fixtures/test_forbidden_resources/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_get_attr_usage/fail/fail_get_attr.yaml create mode 100644 ice_validator/tests/fixtures/test_get_attr_usage/fail/nested.yaml create mode 100644 ice_validator/tests/fixtures/test_get_attr_usage/pass/nested.yaml create mode 100644 ice_validator/tests/fixtures/test_get_attr_usage/pass/pass_get_attr.yaml create mode 100644 ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/new.txt create mode 100644 ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/user_data.sh create mode 100644 ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail2.yaml create mode 100644 ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/nested.yaml create mode 100644 ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/nested.yaml create mode 100644 ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass.yaml create mode 100644 ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass2.yaml create mode 100644 ice_validator/tests/fixtures/test_nested_parameter_args/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_nested_parameter_args/pass/pass0.yaml delete mode 100644 ice_validator/tests/fixtures/test_nested_parameters/fail/nested_template_1.yaml create mode 100644 ice_validator/tests/fixtures/test_nested_template_parameters/fail/bad-heat_template.yaml create mode 100644 ice_validator/tests/fixtures/test_nested_template_parameters/pass/heat_template.yaml create mode 100644 ice_validator/tests/fixtures/test_nested_template_parameters/pass/nested_template_1.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_level/fail/bad-level0.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_level/fail/bad-level1.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_level/fail/bad-level2.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_level/fail/bad-level3.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_level/pass/level0.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_level/pass/level1.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_level/pass/level2.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_level/pass/level3.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_0.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_1.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_2.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_0.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_1.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_2.yaml create mode 100644 ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_3.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_net_resource_id/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_net_resource_id/pass/pass.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail1.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail2.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail3.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_addresses/fail/other0.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_addresses/pass/other0.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_addresses/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail1.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0_base.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0_base.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0_base.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_network_parameter/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_neutron_port_network_parameter/pass/pass.yaml create mode 100644 ice_validator/tests/fixtures/test_no_http_resources/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_no_http_resources/pass/valid_template.yaml create mode 100644 ice_validator/tests/fixtures/test_no_image_files/fail/image.ami create mode 100644 ice_validator/tests/fixtures/test_no_image_files/fail/image2.ISO create mode 100644 ice_validator/tests/fixtures/test_no_image_files/fail/pass.sh create mode 100644 ice_validator/tests/fixtures/test_no_image_files/fail/pass.yaml create mode 100644 ice_validator/tests/fixtures/test_no_image_files/fail/settings create mode 100644 ice_validator/tests/fixtures/test_no_image_files/pass/pass.sh create mode 100644 ice_validator/tests/fixtures/test_no_image_files/pass/pass.yaml create mode 100644 ice_validator/tests/fixtures/test_no_image_files/pass/settings create mode 100644 ice_validator/tests/fixtures/test_non_server_name/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_non_server_name/fail/fail1.yaml create mode 100644 ice_validator/tests/fixtures/test_non_server_name/fail/fail2.yaml create mode 100644 ice_validator/tests/fixtures/test_non_server_name/fail/fail3.yaml create mode 100644 ice_validator/tests/fixtures/test_non_server_name/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail2.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/nested.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/nested.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass2.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_server_resource_id/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_server_resource_id/pass/pass.yaml delete mode 100644 ice_validator/tests/fixtures/test_nova_servers_index/fail/fail0.yaml delete mode 100644 ice_validator/tests/fixtures/test_nova_servers_index/fail/fail1.yaml delete mode 100644 ice_validator/tests/fixtures/test_nova_servers_index/fail/fail2.yaml delete mode 100644 ice_validator/tests/fixtures/test_nova_servers_index/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet/pass/pass.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail1.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail2.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail3.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail4.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail5.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail6.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass1.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0c.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1c.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2c.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail3.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail4.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail5.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail6.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail8.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail9.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass1.yaml create mode 100644 ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/fail/base_mod.yaml create mode 100644 ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/pass/base_mod.yaml delete mode 100644 ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/fail/invalid_base_naming_for_fixed_ips.yaml delete mode 100644 ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/pass/valid_base_heat_template.yaml delete mode 100644 ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_1.yaml delete mode 100644 ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_2.yaml delete mode 100644 ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_1.yaml delete mode 100644 ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_2.yaml delete mode 100644 ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/fail/invalid_base_naming_for_fixed_ips.yaml delete mode 100644 ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_1.yaml delete mode 100644 ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_2.yaml delete mode 100644 ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_3.yaml delete mode 100644 ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_module_heat_template.yaml create mode 100644 ice_validator/tests/fixtures/test_resource_indices/fail/fail0.yaml create mode 100644 ice_validator/tests/fixtures/test_resource_indices/fail/nested.yaml create mode 100644 ice_validator/tests/fixtures/test_resource_indices/pass/nested.yaml create mode 100644 ice_validator/tests/fixtures/test_resource_indices/pass/pass0.yaml create mode 100644 ice_validator/tests/fixtures/test_server_parameters/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_server_parameters/pass/pass.yaml create mode 100644 ice_validator/tests/fixtures/test_software_config_resource_id/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_software_config_resource_id/pass/pass.yaml delete mode 100644 ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_param_not_used_for_subnet.yaml delete mode 100644 ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_resource_used_for_external_network.yaml delete mode 100644 ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/pass/valid_heat_template.yaml delete mode 100644 ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_1.yaml delete mode 100644 ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_2_identical_to_heat_template_2.yaml delete mode 100644 ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_1.yml delete mode 100644 ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_2.yml create mode 100644 ice_validator/tests/fixtures/test_vm_type_case/fail/fail.yaml create mode 100644 ice_validator/tests/fixtures/test_vm_type_case/pass/pass.yaml delete mode 100644 ice_validator/tests/fixtures/test_volume_format_outputs/fail/no_value_volume.yaml delete mode 100644 ice_validator/tests/fixtures/test_volume_format_outputs/fail/use_get_param_volume.yml delete mode 100644 ice_validator/tests/fixtures/test_volume_format_outputs/pass/valid_template_volume.yml create mode 100644 ice_validator/tests/fixtures/test_volume_module_naming/fail/module_volumes.yaml create mode 100644 ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume1.yaml create mode 100644 ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume2.yaml create mode 100644 ice_validator/tests/fixtures/test_volume_module_naming/pass/module2_base.yaml create mode 100644 ice_validator/tests/fixtures/test_volume_module_naming/pass/module_volume.yaml create mode 100644 ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume1.yaml create mode 100644 ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume2.yaml create mode 100644 ice_validator/tests/test_all_parameters_used_in_template.py create mode 100644 ice_validator/tests/test_availability_zone_params_start_at_0.py create mode 100644 ice_validator/tests/test_contrail_fqdn.py create mode 100644 ice_validator/tests/test_contrail_instance_ip_resource_id.py create mode 100644 ice_validator/tests/test_contrail_irt_routes.py create mode 100644 ice_validator/tests/test_contrail_resource_id.py create mode 100644 ice_validator/tests/test_contrail_vmi_resource_id.py create mode 100644 ice_validator/tests/test_contrail_vn_resource_id.py create mode 100644 ice_validator/tests/test_env_parameters_defined_in_template.py create mode 100644 ice_validator/tests/test_filename_is_vmtype_dot_yaml.py create mode 100644 ice_validator/tests/test_files_in_flat_dir.py create mode 100644 ice_validator/tests/test_forbidden_resources.py create mode 100644 ice_validator/tests/test_get_attr_usage.py delete mode 100644 ice_validator/tests/test_heat_numeric_parameters.py create mode 100644 ice_validator/tests/test_ip_parameters_start_at_0.py create mode 100644 ice_validator/tests/test_nested_parameter_args.py create mode 100644 ice_validator/tests/test_nested_template_parameters.py create mode 100644 ice_validator/tests/test_nesting_level.py create mode 100644 ice_validator/tests/test_nesting_nova_server.py create mode 100644 ice_validator/tests/test_neutron_net_resource_id.py create mode 100644 ice_validator/tests/test_neutron_port_addresses.py create mode 100644 ice_validator/tests/test_neutron_port_fixed_ips.py create mode 100644 ice_validator/tests/test_neutron_port_internal_network.py create mode 100644 ice_validator/tests/test_neutron_port_network_parameter.py create mode 100644 ice_validator/tests/test_no_http_resources.py create mode 100644 ice_validator/tests/test_no_image_files.py create mode 100644 ice_validator/tests/test_non_server_name.py create mode 100644 ice_validator/tests/test_nova_server_name_parameters_start_at_0.py create mode 100644 ice_validator/tests/test_nova_server_resource_id.py delete mode 100644 ice_validator/tests/test_nova_servers_index.py create mode 100644 ice_validator/tests/test_port_connected_to_multiple_servers.py delete mode 100644 ice_validator/tests/test_required_parameters_specified_in_env_files.py delete mode 100644 ice_validator/tests/test_required_parameters_specified_in_heat_templates.py create mode 100644 ice_validator/tests/test_resource_indices.py create mode 100644 ice_validator/tests/test_server_parameters.py delete mode 100644 ice_validator/tests/test_servers_have_optional_metadata.py create mode 100644 ice_validator/tests/test_software_config_resource_id.py delete mode 100644 ice_validator/tests/test_subnet_format.py delete mode 100644 ice_validator/tests/test_subnet_format_use_get_param_or_get_resource.py delete mode 100644 ice_validator/tests/test_unique_name_resources.py delete mode 100644 ice_validator/tests/test_unique_name_str_replace_use_params_in_tmpl.py delete mode 100644 ice_validator/tests/test_unique_resources_across_template.py create mode 100644 ice_validator/tests/test_vm_type_case.py delete mode 100644 ice_validator/tests/test_volume_format_outputs.py create mode 100644 ice_validator/tests/test_volume_module_naming.py delete mode 100644 ice_validator/tests/test_volume_templates_outputs_resources.py diff --git a/README.md b/README.md deleted file mode 100644 index cf8456d..0000000 --- a/README.md +++ /dev/null @@ -1,46 +0,0 @@ -# ice-heat-validation - -This project contains a ``pytest`` tool that automatically checks Heat Templates -are adhering to the AT&T Domain 2.0 Heat Template Guidelines. - -# Installation - -This software is not platform dependent and can be run in a Windows, Unix or -OS X environment. - -### Satisfy Dependencies - -In addition to python, this project requires the following packages: - - - ``pytest`` - - ``PyYAML`` - - ``pytest-tap`` - - These can be installed using pip (assuming pip is installed) with the command: - -``$ pip install -r requirements.txt`` - -# Use - -Clone this project. - -To validate Heat templates just run this the command under the folder ``ice_validator``: - -``$ pytest --tap-stream --template-directory=`` - -where ```` is the absolute path to the folder containing the Heat -Templates to be verified. - - -# Self-Test Suite - -The ``ice_validator`` includes an extensive self-test suite. It is a -**requirement** for any additions or changes to the test suite to -successfully and cleanly complete a tox run. Simply run ``tox`` from -the project root as: - -``$ tox`` - -You can also run it under the folder ``ice_validator``: - -``$ pytest --self-test`` diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..8c3e782 --- /dev/null +++ b/README.rst @@ -0,0 +1,114 @@ +.. This work is licensed under a Creative Commons Attribution 4.0 International License. +.. http://creativecommons.org/licenses/by/4.0 +.. Copyright 2018 AT&T Intellectual Property. All rights reserved. + +Manual Heat Template Validation +=============================== + +validation-scripts +------------------ + +This project contains validation scripts to test +that a set of Heat Templates adheres to +the ONAP VNF Heat Orchestration Template guidelines. + +For more information on the ONAP Heat Orchestration +Template Guidelines, vist the `Heat Guidelines `__ + +About +_____ + +The validation scripts project allows performing heat template +validation without installing the full VVP platform. The following +instructions apply to running these validation scripts in that manner. + + +Installation +____________ + +This software is not platform dependent and can be run in a Windows, Unix or +OS X environment. + +Satisfy Dependencies +#################### + + + These can be installed using pip (assuming pip is installed) with the command: + +``$ pip install -r requirements.txt`` + +Use +___ + +Clone this project. + +To validate Heat templates just run this the command under the folder ``ice_validator``: + +``$ pytest --tap-stream --template-directory=`` + +where ```` is the full path to a folder containing heat templates. + +Output +______ + +After performing a validation, an output folder will be created. + +``/path/to/validation-scripts/ice_validator/output/`` + +This folder will contain a file ``report.html`` which contains a list of all +of the ONAP VNF Heat Template Guideline violations. If there are no violations, +the report will say ``No validation errors found.`` + +Interpreting the Output +_______________________ + +The report file will have 4 columns for details about a violation, and one +row for each violation. Below contains details about each column. + +File +#### + +This is the file(s) that contained the violation + +Error Message +############# + +This shows the test and brief error message from the validation script that +contained the violation. There is a ``Full Details`` button to show the +complete raw test output. The error message will also contain details +about what element is involved with the violation (such as the parameter +name, resource id, etc...). + +Requirement(s) +############## + +This column contains the requirement(s) that each test/violation is +mapped to. These requirements are taken directly from the VNF Requirements +project Heat Orchestration Template Guidelines section. + + +Resolution Steps +################ + +For some violations, there are pre-defined resolution steps that +indicate what action the user should take to resolve the violation. + +**Note**: Not all violations will have resolution steps. Most violations +can be resolved simply by reviewing the requirements that have been violated +in the previous column. + + +Self-Test Suite +_______________ + +The ``ice_validator`` includes an extensive self-test suite. It is a +**requirement** for any additions or changes to the test suite to +successfully and cleanly complete a tox run. Simply run ``tox`` from +the project root as: + +``$ tox`` + +You can also run it under the folder ``ice_validator``: + +``$ pytest --self-test`` + diff --git a/ice_validator/requirements.json b/ice_validator/requirements.json index c3a3fc1..b7540a2 100644 --- a/ice_validator/requirements.json +++ b/ice_validator/requirements.json @@ -1,6 +1,6 @@ { - "created": "2018-09-17T18:00:05.985381", - "current_version": "casablanca", + "created": "2018-12-12T19:04:40.917222", + "current_version": "dublin", "project": "", "versions": { "beijing": { @@ -21858,10 +21858,11 @@ "needs_amount": 750 }, "casablanca": { - "created": "2018-09-17T18:00:05.985311", + "created": "2018-11-07T12:53:57.615875", "needs": { "R-00011": { "description": "A VNF's Heat Orchestration Template's parameter defined\nin a nested YAML file\n**MUST NOT** have a parameter constraint defined.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-00011", @@ -21870,6 +21871,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "constraints", "sections": [ "constraints", @@ -21886,12 +21888,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-00068": { "description": "The xNF Package **MUST** include documentation which includes\na description of parameters that can be monitored for the xNF\nand event records (status, fault, flow, session, call, control\nplane, etc.) generated by the xNF after instantiation.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-00068", @@ -21900,6 +21903,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Description", "sections": [ "Resource Description", @@ -21920,6 +21924,7 @@ }, "R-00098": { "description": "The VNF **MUST NOT** impact the ability of the VNF to provide\nservice/function due to a single container restart.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-00098", @@ -21928,6 +21933,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "All Layer Redundancy", "sections": [ "All Layer Redundancy", @@ -21948,6 +21954,7 @@ }, "R-00156": { "description": "The xNF Package **MUST** include documentation describing xNF\nManagement APIs, which must include information and tools for\nONAP to monitor the health of the xNF (conditions that require\nhealing and/or scaling responses).", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-00156", @@ -21956,6 +21963,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Description", "sections": [ "Resource Description", @@ -21976,6 +21984,7 @@ }, "R-00228": { "description": "A VNF's Heat Orchestration Template **MAY**\nreference the nested heat statically by repeated definition.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", "full_title": "", "hide_links": "", "id": "R-00228", @@ -21984,6 +21993,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Nested Heat Template Requirements", "sections": [ "Nested Heat Template Requirements", @@ -22004,7 +22014,8 @@ "validation_mode": "" }, "R-00606": { - "description": "A VNF **MAY** be connected to zero, one or more than one external\nnetworks.", + "description": "A VNF **MAY** be connected to zero, one or more than one external\nnetwork.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", "id": "R-00606", @@ -22013,6 +22024,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "External Networks", "sections": [ "External Networks", @@ -22033,6 +22045,7 @@ }, "R-00977": { "description": "A VNF's Heat Orchestration Template's ``{network-role}``\n**MUST NOT** be a substring of ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", "full_title": "", "hide_links": "", "id": "R-00977", @@ -22041,6 +22054,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "{network-role}", "sections": [ "{network-role}" @@ -22060,6 +22074,7 @@ }, "R-01033": { "description": "The xNF **MAY** use another option which is expected to include SFTP\nfor asynchronous bulk files, such as bulk files that contain large volumes\nof data collected over a long time interval or data collected across many\nxNFs. (Preferred is to reorganize the data into more frequent or more focused\ndata sets, and deliver these by REST or TCP as appropriate.)", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-01033", @@ -22068,6 +22083,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Addressing and Delivery Protocol", "sections": [ "Addressing and Delivery Protocol", @@ -22089,6 +22105,7 @@ }, "R-01101": { "description": "A VNF's Heat Orchestration Template **MAY**\nreference the nested heat dynamically using the resource\n``OS::Heat::ResourceGroup``.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", "full_title": "", "hide_links": "", "id": "R-01101", @@ -22097,6 +22114,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Nested Heat Template Requirements", "sections": [ "Nested Heat Template Requirements", @@ -22116,8 +22134,40 @@ "validated_by": "", "validation_mode": "" }, + "R-01123": { + "description": "The VNF package Manifest file **MUST** contain: VNF package meta-data, a\nlist of all artifacts (both internal and external) entry's including\ntheir respected URI's, an algorithm to calculate a digest and a digest\nresult calculated on the content of each artifacts, as specified in\nETSI GS NFV-SOL004. The VNF Package MUST include VNF Identification\nData to uniquely identify the resource for a given VNF provider. The\nidentification data must include: an identifier for the VNF, the name\nof the VNF as was given by the VNF provider, VNF description, VNF\nprovider, and version.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-01123", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Contents", + "sections": [ + "VNF Package Contents", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-01334": { "description": "The xNF **MUST** conform to the NETCONF RFC 5717,\n\"Partial Lock Remote Procedure Call\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-01334", @@ -22126,10 +22176,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -22148,6 +22199,7 @@ }, "R-01359": { "description": "A VNF's Heat Orchestration Template that contains an ``OS::Nova:Server``\nResource **MAY** define a parameter for the property\n``availability_zone`` that is not utilized in any ``OS::Nova::Server``\nresources in the Heat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-01359", @@ -22156,6 +22208,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Property: availability_zone", "sections": [ "Property: availability_zone", @@ -22176,6 +22229,7 @@ }, "R-01382": { "description": "The xNF **MUST** allow the entire configuration of the xNF to be\nretrieved via NETCONF's and , independently\nof whether it was configured via NETCONF or other mechanisms.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-01382", @@ -22184,10 +22238,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -22204,8 +22259,39 @@ "validated_by": "", "validation_mode": "" }, + "R-01427": { + "description": "The PNF **MUST** support the provisioning of security and authentication\nparameters (HTTP username and password) in order to be able to authenticate\nwith DCAE (in ONAP).\n\nNote: In R3, a username and password are used with the DCAE VES Event\nListener which are used for HTTP Basic Authentication.\n\nNote: The configuration management and provisioning software are specific\nto a vendor architecture.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-01427", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-01455": { "description": "When a VNF's Heat Orchestration Template creates a Virtual Machine\n(i.e., ``OS::Nova::Server``),\neach \"class\" of VMs **MUST** be assigned a VNF unique\n``{vm-type}``; where \"class\" defines VMs that\n**MUST** have the following identical characteristics:\n\n 1.) ``OS::Nova::Server`` resource property ``flavor`` value\n\n 2.) ``OS::Nova::Server`` resource property ``image`` value\n\n 3.) Cinder Volume attachments\n\n - Each VM in the \"class\" **MUST** have the identical Cinder Volume\n configuration\n\n 4.) Network attachments and IP address requirements\n\n - Each VM in the \"class\" **MUST** have the the identical number of\n ports connecting to the identical networks and requiring the identical\n IP address configuration.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", "full_title": "", "hide_links": "", "id": "R-01455", @@ -22214,6 +22300,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "{vm-type}", "sections": [ "{vm-type}" @@ -22233,6 +22320,7 @@ }, "R-01478": { "description": "The xNF Package **MUST** include documentation describing all\nparameters that are available to monitor the xNF after instantiation\n(includes all counters, OIDs, PM data, KPIs, etc.) that must be\ncollected for reporting purposes.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-01478", @@ -22241,6 +22329,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -22261,6 +22350,7 @@ }, "R-01556": { "description": "The xNF Package **MUST** include documentation describing the\nfault, performance, capacity events/alarms and other event records\nthat are made available by the xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-01556", @@ -22269,6 +22359,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -22289,6 +22380,7 @@ }, "R-01896": { "description": "A VNF's Heat Orchestration Template's parameter values that are constant\nacross all deployments **MUST** be declared in a Heat Orchestration\nTemplate Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-01896", @@ -22297,6 +22389,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Scope of a Heat Orchestration Template", "sections": [ "Scope of a Heat Orchestration Template", @@ -22317,6 +22410,7 @@ }, "R-02164": { "description": "When a VNF's Heat Orchestration Template's Contrail resource\nhas a property that\nreferences an external network that requires the network's\nFully Qualified Domain Name (FQDN), the property parameter\n\n* **MUST** follow the format ``{network-role}_net_fqdn``\n* **MUST** be declared as type ``string``\n* **MUST NOT** be enumerated in the VNF's Heat Orchestration Template's\n Environment File", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Contrail Resource Parameters", "full_title": "", "hide_links": "", "id": "R-02164", @@ -22325,6 +22419,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "External Networks", "sections": [ "External Networks", @@ -22346,6 +22441,7 @@ }, "R-02170": { "description": "The VNF **MUST** use, whenever possible, standard implementations\nof security applications, protocols, and formats, e.g., S/MIME, TLS, SSH,\nIPSec, X.509 digital certificates for cryptographic implementations.\nThese implementations must be purchased from reputable vendors or obtained\nfrom reputable open source communities and must not be developed in-house.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-02170", @@ -22354,6 +22450,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Data Protection Requirements", "sections": [ "VNF Data Protection Requirements", @@ -22374,6 +22471,7 @@ }, "R-02360": { "description": "The VNFC **MUST** be designed as a standalone, executable process.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-02360", @@ -22382,6 +22480,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -22401,6 +22500,7 @@ }, "R-02454": { "description": "The VNF **MUST** support the existence of multiple major/minor\nversions of the VNF software and/or sub-components and interfaces that\nsupport both forward and backward compatibility to be transparent to\nthe Service Provider usage.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-02454", @@ -22409,6 +22509,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Deployment Optimization", "sections": [ "Deployment Optimization", @@ -22428,7 +22529,8 @@ "validation_mode": "" }, "R-02597": { - "description": "The xNF **MUST** implement the protocol operation:\n**lock(target)** - Lock the configuration datastore target.", + "description": "The xNF **MUST** implement the protocol operation:\n``lock(target)`` - Lock the configuration data store target.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-02597", @@ -22437,10 +22539,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -22453,12 +22556,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-02616": { "description": "The xNF **MUST** permit locking at the finest granularity\nif a xNF needs to lock an object for configuration to avoid blocking\nsimultaneous configuration operations on unrelated objects (e.g., BGP\nconfiguration should not be locked out if an interface is being\nconfigured or entire Interface configuration should not be locked out\nif a non-overlapping parameter on the interface is being configured).", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-02616", @@ -22467,10 +22571,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -22488,7 +22593,8 @@ "validation_mode": "" }, "R-02651": { - "description": "The xNF **SHOULD** use the Ansible backup feature to save a\ncopy of configuration files before implementing changes to support\noperations such as backing out of software upgrades, configuration\nchanges or other work as this will help backing out of configuration\nchanges when needed.", + "description": "The xNF **SHOULD** use available backup capabilities to save a\ncopy of configuration files before implementing changes to support\noperations such as backing out of software upgrades, configuration\nchanges or other work as this will help backing out of configuration\nchanges when needed.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-02651", @@ -22497,10 +22603,11 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Playbook Requirements", "sections": [ "Ansible Playbook Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -22513,12 +22620,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-02691": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``workload_context`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``workload_context``\nparameter ``workload_context`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-02691", @@ -22527,10 +22635,11 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "workload_context", "sections": [ "workload_context", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -22547,6 +22656,7 @@ }, "R-02997": { "description": "The VNF **MUST** preserve their persistent data. Running VMs\nwill not be backed up in the Network Cloud infrastructure.", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", "id": "R-02997", @@ -22555,6 +22665,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Devops", "sections": [ "VNF Devops" @@ -22574,6 +22685,7 @@ }, "R-03070": { "description": "The xNF **MUST**, by ONAP Policy, provide the ONAP addresses\nas data destinations for each xNF, and may be changed by Policy while\nthe xNF is in operation. We expect the xNF to be capable of redirecting\ntraffic to changed destinations with no loss of data, for example from\none REST URL to another, or from one TCP host and port to another.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-03070", @@ -22582,6 +22694,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Addressing and Delivery Protocol", "sections": [ "Addressing and Delivery Protocol", @@ -22603,6 +22716,7 @@ }, "R-03251": { "description": "A VNF's Heat Orchestration Template's Resource OS::Heat::CinderVolume\n**MAY** be defined in a Cinder Volume Module.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-03251", @@ -22611,6 +22725,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -22631,6 +22746,7 @@ }, "R-03324": { "description": "A VNF's Heat Orchestration template's Environment File **MUST**\ncontain the ``parameters:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-03324", @@ -22639,6 +22755,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Environment File Format", "sections": [ "Environment File Format", @@ -22653,12 +22770,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-03465": { "description": "The xNF **MUST** release locks to prevent permanent lock-outs\nwhen the corresponding operation succeeds.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-03465", @@ -22667,10 +22785,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -22689,6 +22808,7 @@ }, "R-03595": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup`` that\nis applicable to more than one ``{vm-type}`` and one external network Resource ID\n**SHOULD** use the naming convention\n\n* ``{network-role}_security_group``\n\nwhere\n\n* ``{network-role}`` is the network-role", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-03595", @@ -22697,6 +22817,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Neutron::SecurityGroup", "sections": [ "OS::Neutron::SecurityGroup", @@ -22718,6 +22839,7 @@ }, "R-03656": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Heat::SoftwareConfig``\nResource ID **MAY** use the naming convention\n\n* ``{vm-type}_RSC``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``RSC`` signifies that it is the Resource Software Config", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-03656", @@ -22726,6 +22848,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Heat::SoftwareConfig", "sections": [ "OS::Heat::SoftwareConfig", @@ -22747,6 +22870,7 @@ }, "R-03954": { "description": "The VNF **MUST** survive any single points of failure within\nthe Network Cloud (e.g., virtual NIC, VM, disk failure).", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-03954", @@ -22755,6 +22879,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "All Layer Redundancy", "sections": [ "All Layer Redundancy", @@ -22775,6 +22900,7 @@ }, "R-04158": { "description": "The xNF **MUST** conform to the NETCONF RFC 4742,\n\"Using the NETCONF Configuration Protocol over Secure Shell (SSH)\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-04158", @@ -22783,10 +22909,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -22805,6 +22932,7 @@ }, "R-04298": { "description": "The xNF provider **MUST** provide their testing scripts to\nsupport testing.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-04298", @@ -22813,6 +22941,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Testing", "sections": [ "Testing", @@ -22833,6 +22962,7 @@ }, "R-04344": { "description": "A VNF's Nested YAML file **MAY** be invoked by more than one of\na VNF's Heat Orchestration Templates (when the VNF is composed of two\nor more Heat Orchestration Templates).", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", "full_title": "", "hide_links": "", "id": "R-04344", @@ -22841,6 +22971,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Nested Heat Template Requirements", "sections": [ "Nested Heat Template Requirements", @@ -22862,6 +22993,7 @@ }, "R-04492": { "description": "The VNF **MUST** generate security audit logs that can be sent\nto Security Analytics Tools for analysis.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-04492", @@ -22870,6 +23002,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -22890,6 +23023,7 @@ }, "R-04697": { "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv4 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``comma_delimited_list``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_ips``\n\n where\n\n * ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n * ``{network-role}`` is the {network-role} of the external\n network", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-04697", @@ -22898,6 +23032,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -22918,6 +23053,7 @@ }, "R-04747": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Heat::CloudConfig``\nResource ID **MUST** contain the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-04747", @@ -22926,6 +23062,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Heat::CloudConfig", "sections": [ "OS::Heat::CloudConfig", @@ -22947,6 +23084,7 @@ }, "R-04982": { "description": "The VNF **MUST NOT** include an authentication credential,\ne.g., password, in the security audit logs, even if encrypted.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-04982", @@ -22955,6 +23093,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -22975,6 +23114,7 @@ }, "R-05050": { "description": "A VNF's Heat Orchestration Templates intrinsic function\n``get_file`` **MAY** be used:\n\n * more than once in a VNF's Heat Orchestration Template\n * in two or more of a VNF's Heat Orchestration Templates\n * in a VNF's Heat Orchestration Templates nested YAML file", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", "full_title": "", "hide_links": "", "id": "R-05050", @@ -22983,6 +23123,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Heat Files Support (get_file)", "sections": [ "Heat Files Support (get_file)", @@ -23003,6 +23144,7 @@ }, "R-05201": { "description": "When a VNF connects to two or more external networks, each external\nnetwork **MUST** be assigned a unique ``{network-role}``\nin the context of the VNF for use in the VNF's Heat Orchestration\nTemplate.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", "id": "R-05201", @@ -23011,6 +23153,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "External Networks", "sections": [ "External Networks", @@ -23031,6 +23174,7 @@ }, "R-05257": { "description": "A VNF's Heat Orchestration Template's **MUST NOT**\ncontain the Resource ``OS::Neutron::FloatingIP``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-05257", @@ -23039,6 +23183,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VIP Assignment, External Networks, Supported by Automation", "sections": [ "VIP Assignment, External Networks, Supported by Automation", @@ -23060,6 +23205,7 @@ }, "R-06327": { "description": "The VNF **MUST** respond to a \"drain VNFC\" [#4.5.2]_ command against\na specific VNFC, preventing new session from reaching the targeted VNFC,\nwith no disruption to active sessions on the impacted VNFC, if a VNF\nprovides a load balancing function across multiple instances of its VNFCs.\nThis is used to support scenarios such as proactive maintenance with no\nuser impact.", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", "id": "R-06327", @@ -23068,6 +23214,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Devops", "sections": [ "VNF Devops" @@ -23087,6 +23234,7 @@ }, "R-06413": { "description": "The VNF **MUST** log the field \"service or program used for access\"\nin the security audit logs.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-06413", @@ -23095,6 +23243,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -23115,6 +23264,7 @@ }, "R-06613": { "description": "A VNF's Heat Orchestration Template's parameter defined\nin a non-nested YAML file as type\n``boolean`` **MAY** have a parameter constraint defined.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-06613", @@ -23123,6 +23273,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "constraints", "sections": [ "constraints", @@ -23139,12 +23290,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-06668": { "description": "The VNF **MUST** handle the start or restart of VNFC instances\nin any order with each VNFC instance establishing or re-establishing\nrequired connections or relationships with other VNFC instances and/or\nVNFs required to perform the VNF function/role without requiring VNFC\ninstance(s) to be started/restarted in a particular order.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-06668", @@ -23153,6 +23305,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Resilient Error Handling", "sections": [ "Application Resilient Error Handling", @@ -23173,6 +23326,7 @@ }, "R-06885": { "description": "The VNF **SHOULD** support the ability to scale down a VNFC pool\nwithout jeopardizing active sessions. Ideally, an active session should\nnot be tied to any particular VNFC instance.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-06885", @@ -23181,6 +23335,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "System Resource Optimization", "sections": [ "System Resource Optimization", @@ -23201,6 +23356,7 @@ }, "R-06924": { "description": "The xNF **MUST** deliver asynchronous data as data becomes\navailable, or according to the configured frequency.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-06924", @@ -23209,6 +23365,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Asynchronous and Synchronous Data Delivery", "sections": [ "Asynchronous and Synchronous Data Delivery", @@ -23229,7 +23386,8 @@ "validation_mode": "" }, "R-07251": { - "description": "The xNF **MUST** support ONAP Controller's **ResumeTraffic** command.", + "description": "The xNF **MUST** support APPC/SDN-C ``ResumeTraffic`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-07251", @@ -23238,10 +23396,11 @@ "keyword": "MUST", "links": [], "notes": "", - "section_name": "LifeCycle Management Related Commands", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", "sections": [ - "LifeCycle Management Related Commands", - "Controller Interactions With VNF", + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -23253,12 +23412,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-07443": { "description": "A VNF's Heat Orchestration Templates' Cinder Volume Module Output\nParameter's name and type **MUST** match the input parameter name and type\nin the corresponding Base Module or Incremental Module unless the Output\nParameter is of the type ``comma_delimited_list``, then the corresponding\ninput parameter **MUST** be declared as type ``json``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-07443", @@ -23267,6 +23427,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP Volume Module Output Parameters", "sections": [ "ONAP Volume Module Output Parameters", @@ -23282,12 +23443,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-07507": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property\n``metadata`` key/value pair ``vnf_id`` parameter ``vnf_id`` **MUST**\nbe declared as type: ``string``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property\n``metadata`` key/value pair ``vnf_id`` parameter\n**MUST** be declared as ``vnf_id`` and the parameter **MUST**\nbe defined as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-07507", @@ -23296,10 +23458,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "vnf_id", "sections": [ "vnf_id", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -23316,6 +23479,7 @@ }, "R-07545": { "description": "The xNF **MUST** support all operations, administration and\nmanagement (OAM) functions available from the supplier for xNFs using\nthe supplied YANG code and associated NETCONF servers.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-07545", @@ -23324,10 +23488,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -23345,7 +23510,8 @@ "validation_mode": "" }, "R-07577": { - "description": "If the VNF's ports connected to a unique network (internal or external)\nand the port's IP addresses are Cloud Assigned IP Addresses,\nall the IPv4 Addresses **MUST** be from\nthe same subnet and all the IPv6 Addresses **MUST** be from the\nsame subnet.", + "description": "If the VNF's ports connected to a unique network (internal or external)\nand the port's IP addresses are cloud assigned IP Addresses,\nall the IPv4 Addresses **MUST** be from\nthe same subnet and all the IPv6 Addresses **MUST** be from the\nsame subnet.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-07577", @@ -23354,6 +23520,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Items to Note", "sections": [ "Items to Note", @@ -23375,6 +23542,7 @@ }, "R-07617": { "description": "The VNF **MUST** log success and unsuccessful creation, removal, or\nchange to the inherent privilege level of users.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-07617", @@ -23383,6 +23551,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -23403,6 +23572,7 @@ }, "R-08134": { "description": "The xNF **MUST** conform to the NETCONF RFC 6241,\n\"NETCONF Configuration Protocol\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-08134", @@ -23411,10 +23581,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -23433,6 +23604,7 @@ }, "R-08312": { "description": "The xNF **MAY** use another option which is expected to include REST\ndelivery of binary encoded data sets.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-08312", @@ -23441,6 +23613,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Addressing and Delivery Protocol", "sections": [ "Addressing and Delivery Protocol", @@ -23462,6 +23635,7 @@ }, "R-08315": { "description": "The VNF **SHOULD** use redundant connection pooling to connect\nto any backend data source that can be switched between pools in an\nautomated/scripted fashion to ensure high availability of the connection\nto the data source.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-08315", @@ -23470,6 +23644,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Intelligent Transaction Distribution & Management", "sections": [ "Intelligent Transaction Distribution & Management", @@ -23490,6 +23665,7 @@ }, "R-08775": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup``\nthat is applicable to one ``{vm-type}`` and more than one network (internal\nand/or external) Resource ID **SHOULD** use the naming convention\n\n* ``{vm-type}_security_group``\n\nwhere\n\n* ``{vm-type}`` is the vm-type", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-08775", @@ -23498,6 +23674,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Neutron::SecurityGroup", "sections": [ "OS::Neutron::SecurityGroup", @@ -23519,6 +23696,7 @@ }, "R-08975": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Heat::SoftwareConfig``\nResource ID **MUST** contain the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-08975", @@ -23527,6 +23705,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Heat::SoftwareConfig", "sections": [ "OS::Heat::SoftwareConfig", @@ -23548,6 +23727,7 @@ }, "R-09467": { "description": "The VNF **MUST** utilize only NCSP standard compute flavors. [#4.5.1]_", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", "id": "R-09467", @@ -23556,6 +23736,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Devops", "sections": [ "VNF Devops" @@ -23574,7 +23755,8 @@ "validation_mode": "" }, "R-09811": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vf_module_index`` **MUST NOT**\nhave parameter constraints defined.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vf_module_index`` **MUST NOT**\nhave parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-09811", @@ -23583,10 +23765,11 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_index", "sections": [ "vf_module_index", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -23601,8 +23784,40 @@ "validated_by": "", "validation_mode": "static" }, + "R-10087": { + "description": "The VNF package **MUST** contain all standard artifacts as specified in\nETSI GS NFV-SOL004 including Manifest file, VNFD (or Main TOSCA/YAML\nbased Service Template) and other optional artifacts. CSAR Manifest\nfile as per SOL004 - for example ROOT\\\\ **MainServiceTemplate.mf**", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-10087", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Contents", + "sections": [ + "VNF Package Contents", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-10129": { "description": "The xNF **SHOULD** conform its YANG model to RFC 7223,\n\"A YANG Data Model for Interface Management\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-10129", @@ -23611,10 +23826,11 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -23633,6 +23849,7 @@ }, "R-10173": { "description": "The xNF **MUST** allow another NETCONF session to be able to\ninitiate the release of the lock by killing the session owning the lock,\nusing the operation to guard against hung NETCONF sessions.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-10173", @@ -23641,10 +23858,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -23663,6 +23881,7 @@ }, "R-10353": { "description": "The xNF **MUST** conform its YANG model to RFC 6244,\n\"An Architecture for Network Management Using NETCONF and YANG\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-10353", @@ -23671,10 +23890,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -23691,25 +23911,26 @@ "validated_by": "", "validation_mode": "" }, - "R-10623": { - "description": "Telemetry data delivered using Google Protocol Buffers v3 (proto3)\n**MUST** be serialized in one of the following methods:\n\n * Key-value Google Protocol Buffers (KV-GPB) is also known as\n self-describing GPB:\n\n * keys are strings that correspond to the path of the system\n resources for the VNF being monitored.\n * values correspond to integers or strings that identify the\n operational state of the VNF resource, such a statistics counters\n and the state of a VNF resource.\n * VNF providers must supply valid KV-GPB definition file(s) to allow\n for the decoding of all KV-GPB encoded telemetry messages.\n\n * Native Google Protocol Buffers (GPB) is also known as compact GPB:\n\n * keys are represented as integers pointing to the system resources for\n the VNF being monitored.\n * values correspond to integers or strings that identify the operational\n state of the VNF resource, such a statistics counters and the state\n of a VNF resource.\n * Google Protocol Buffers (GPB) requires metadata in the form of .proto\n files. VNF providers must supply the necessary GPB .proto files such that\n GPB telemetry messages can be encoded and decoded.", + "R-106240": { + "description": "The following VES Events **MUST** be supported by the PNF: pnfRegistration\nVES Event, HVol VES Event, and Fault VES Event. These are onboarded via\nhe SDC Design Studio.\n\nNote: these VES Events are emitted from the PNF to support PNF Plug and\nPlay, High Volume Measurements, and Fault events respectively.", + "docname": "Chapter7/PNF-Plug-and-Play", "full_title": "", "hide_links": "", - "id": "R-10623", + "id": "R-106240", "impacts": "", "introduced": "casablanca", "keyword": "MUST", "links": [], "notes": "", - "section_name": "KV-GPB/GPB", + "parts": {}, + "section_name": "PNF Plug and Play", "sections": [ - "KV-GPB/GPB", - "Monitoring & Management Requirements", - "Monitoring & Management" + "PNF Plug and Play", + "PNF Plug and Play" ], "status": null, "tags": [], - "target": "XNF", + "target": "PNF", "test": "", "test_case": "", "test_file": "", @@ -23722,6 +23943,7 @@ }, "R-10716": { "description": "The xNF **MUST** support parallel and simultaneous\nconfiguration of separate objects within itself.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-10716", @@ -23730,10 +23952,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -23752,6 +23975,7 @@ }, "R-10754": { "description": "If a VNF has two or more ports that\nattach to an external network that require a Virtual IP Address (VIP),\nand the VNF requires ONAP automation to assign the IP address,\nall the Virtual Machines using the VIP address **MUST**\nbe instantiated in the same Base Module Heat Orchestration Template\nor in the same Incremental Module Heat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-10754", @@ -23760,6 +23984,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VIP Assignment, External Networks, Supported by Automation", "sections": [ "VIP Assignment, External Networks, Supported by Automation", @@ -23781,6 +24006,7 @@ }, "R-10834": { "description": "If a VNF's Heat Orchestration Template resource attribute\n``property:`` uses a nested ``get_param``, the nested\n``get_param`` **MUST** reference an index.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-10834", @@ -23789,6 +24015,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "properties", "sections": [ "properties", @@ -23805,12 +24032,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-11041": { "description": "All parameters defined in a VNFs Nested YAML file\n**MUST** be passed in as properties of the resource calling\nthe nested yaml file.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", "full_title": "", "hide_links": "", "id": "R-11041", @@ -23819,6 +24047,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Nested Heat Template Requirements", "sections": [ "Nested Heat Template Requirements", @@ -23840,6 +24069,7 @@ }, "R-11168": { "description": "A VNF's Heat Orchestration Template's Resource ID that is associated with\nan external network **MUST** include the ``{network-role}`` as part\nof the resource ID.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", "full_title": "", "hide_links": "", "id": "R-11168", @@ -23848,6 +24078,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "{network-role}", "sections": [ "{network-role}" @@ -23867,6 +24098,7 @@ }, "R-11200": { "description": "A VNF's Cinder Volume Module, when it exists, **MUST** be 1:1\nwith a Base module or Incremental module.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-11200", @@ -23875,6 +24107,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -23889,12 +24122,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-11235": { - "description": "The xNF **MUST** implement the protocol operation:\n**kill-session(session)** - Force the termination of **session**.", + "description": "The xNF **MUST** implement the protocol operation:\n``kill-session(session``- Force the termination of **session**.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-11235", @@ -23903,10 +24137,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -23919,12 +24154,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-11240": { "description": "The xNF **MUST** respond with content encoded in JSON, as\ndescribed in the RESTCONF specification. This way the encoding of a\nsynchronous communication will be consistent with Avro.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-11240", @@ -23933,6 +24169,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Asynchronous and Synchronous Data Delivery", "sections": [ "Asynchronous and Synchronous Data Delivery", @@ -23954,6 +24191,7 @@ }, "R-11441": { "description": "A VNF's Heat Orchestration Template's parameter type **MUST** be one of\nthe following values:\n\n* ``string``\n* ``number``\n* ``json``\n* ``comma_delimited_list``\n* ``boolean``", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-11441", @@ -23962,6 +24200,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "type", "sections": [ "type", @@ -23978,12 +24217,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-11499": { - "description": "The xNF **MUST** fully support the XPath 1.0 specification\nfor filtered retrieval of configuration and other database contents.\nThe 'type' attribute within the parameter for and\n operations may be set to 'xpath'. The 'select' attribute\n(which contains the XPath expression) will also be supported by the\nserver. A server may support partial XPath retrieval filtering, but\nit cannot advertise the **:xpath** capability unless the entire XPath\n1.0 specification is supported.", + "description": "The xNF **MUST** fully support the XPath 1.0 specification\nfor filtered retrieval of configuration and other database contents.\nThe 'type' attribute within the parameter for and\n operations may be set to 'xpath'. The 'select' attribute\n(which contains the XPath expression) will also be supported by the\nserver. A server may support partial XPath retrieval filtering, but\nit cannot advertise the ``:xpath`` capability unless the entire XPath\n1.0 specification is supported.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-11499", @@ -23992,10 +24232,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -24014,6 +24255,7 @@ }, "R-11690": { "description": "When a VNF's Heat Orchestration Template's Resource ID contains an\n``{index}`` value (e.g. multiple VMs of same ``{vm-type}``), the ``{index}``\n**MUST** start at zero and increment by one.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-11690", @@ -24022,6 +24264,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource IDs", "sections": [ "Resource IDs" @@ -24041,6 +24284,7 @@ }, "R-11790": { "description": "The VNF **MUST** support ONAP Controller's\n**Restart (stop/start or reboot)** command.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-11790", @@ -24049,11 +24293,41 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Virtual Function - Container Recovery Requirements", "sections": [ "Virtual Function - Container Recovery Requirements", - "Controller Interactions With VNF", - "Configuration Management" + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-118669": { + "description": "Login access (e.g., shell access) to the operating system layer, whether\ninteractive or as part of an automated process, **MUST** be through an\nencrypted protocol such as SSH or TLS.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-118669", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" ], "status": null, "tags": [], @@ -24068,8 +24342,39 @@ "validated_by": "", "validation_mode": "" }, + "R-120182": { + "description": "The xNF provider **MUST** indicate specific conditions that may arise, and\nrecommend actions that may be taken at specific thresholds, or if specific\nconditions repeat within a specified time interval, using the semantics and\nsyntax described by the :doc:`VES Event Registration specification<../../../../vnfsdk/module.git/files/VESEventRegistration_3_0>`.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-120182", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Data Structure Specification of the Event Record", + "sections": [ + "Data Structure Specification of the Event Record", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF PROVIDER", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, "R-12110": { "description": "The VNF **MUST NOT** use keys generated or derived from\npredictable functions or values, e.g., values considered predictable\ninclude user identity information, time of day, stored/transmitted data.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-12110", @@ -24078,6 +24383,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Data Protection Requirements", "sections": [ "VNF Data Protection Requirements", @@ -24098,6 +24404,7 @@ }, "R-12271": { "description": "The xNF **SHOULD** conform its YANG model to RFC 7223,\n\"IANA Interface Type YANG Module\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-12271", @@ -24106,10 +24413,11 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -24126,8 +24434,39 @@ "validated_by": "", "validation_mode": "" }, + "R-123044": { + "description": "The xNF Provider **MAY** require that specific events, identified by their\n``eventName``, require that certain fields, which are optional in the common\nevent format, must be present when they are published.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-123044", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Data Structure Specification of the Event Record", + "sections": [ + "Data Structure Specification of the Event Record", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF PROVIDER", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, "R-12467": { "description": "The VNF **MUST NOT** use compromised encryption algorithms.\nFor example, SHA, DSS, MD5, SHA-1 and Skipjack algorithms.\nAcceptable algorithms can be found in the NIST FIPS publications\n(https://csrc.nist.gov/publications/fips) and in the\nNIST Special Publications (https://csrc.nist.gov/publications/sp).", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-12467", @@ -24136,6 +24475,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Data Protection Requirements", "sections": [ "VNF Data Protection Requirements", @@ -24156,6 +24496,7 @@ }, "R-12538": { "description": "The VNF **SHOULD** support load balancing and discovery\nmechanisms in resource pools containing VNFC instances.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-12538", @@ -24164,6 +24505,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "System Resource Optimization", "sections": [ "System Resource Optimization", @@ -24184,6 +24526,7 @@ }, "R-12678": { "description": "The xNF Package **MUST** include documentation which includes a\ndescription of runtime lifecycle events and related actions (e.g.,\ncontrol responses, tests) which can be performed for the xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-12678", @@ -24192,6 +24535,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Description", "sections": [ "Resource Description", @@ -24211,7 +24555,8 @@ "validation_mode": "" }, "R-12706": { - "description": "The xNF **MUST** support ONAP Controller's **QuiesceTraffic** command.", + "description": "The xNF **MUST** support APPC/SDN-C ``QuiesceTraffic`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-12706", @@ -24220,10 +24565,11 @@ "keyword": "MUST", "links": [], "notes": "", - "section_name": "LifeCycle Management Related Commands", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", "sections": [ - "LifeCycle Management Related Commands", - "Controller Interactions With VNF", + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -24235,12 +24581,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-12709": { "description": "The VNFC **SHOULD** be independently deployed, configured,\nupgraded, scaled, monitored, and administered by ONAP.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-12709", @@ -24249,6 +24596,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -24268,6 +24616,7 @@ }, "R-13151": { "description": "The VNF **SHOULD** disable the paging of the data requiring\nencryption, if possible, where the encryption of non-transient data is\nrequired on a device for which the operating system performs paging to\nvirtual memory. If not possible to disable the paging of the data\nrequiring encryption, the virtual memory should be encrypted.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-13151", @@ -24276,6 +24625,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Data Protection Requirements", "sections": [ "VNF Data Protection Requirements", @@ -24295,7 +24645,8 @@ "validation_mode": "" }, "R-13194": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``environment_context`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``environment_context`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-13194", @@ -24304,10 +24655,11 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "environment_context", "sections": [ "environment_context", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -24324,6 +24676,7 @@ }, "R-13196": { "description": "A VNF **MAY** be composed of zero to many Incremental Modules.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-13196", @@ -24332,6 +24685,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -24352,6 +24706,7 @@ }, "R-13344": { "description": "The VNF **MUST** log starting and stopping of security\nlogging.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-13344", @@ -24360,6 +24715,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -24380,6 +24736,7 @@ }, "R-13390": { "description": "The xNF provider **MUST** provide cookbooks to be loaded\non the appropriate Chef Server.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-13390", @@ -24388,6 +24745,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Management via Chef", "sections": [ "Configuration Management via Chef", @@ -24409,6 +24767,7 @@ }, "R-13613": { "description": "The VNF **MUST** provide clear measurements for licensing\npurposes to allow automated scale up/down by the management system.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-13613", @@ -24417,6 +24776,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Licensing Requirements", "sections": [ "Licensing Requirements", @@ -24437,6 +24797,7 @@ }, "R-13627": { "description": "The VNF **MUST** monitor API invocation patterns to detect\nanomalous access patterns that may represent fraudulent access or other\ntypes of attacks, or integrate with tools that implement anomaly and\nabuse detection.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-13627", @@ -24445,6 +24806,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -24465,6 +24827,7 @@ }, "R-13800": { "description": "The xNF **MUST** conform to the NETCONF RFC 5277,\n\"NETCONF Event Notification\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-13800", @@ -24473,10 +24836,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -24494,7 +24858,8 @@ "validation_mode": "" }, "R-13841": { - "description": "A VNF **MAY** have one or more ports connected to a unique\ninternal network. All VNF ports connected to the unique internal\nnetwork **MUST** have Cloud Assigned IP Addresses\nor **MUST** have statically assigned IP addresses.", + "description": "A VNF **MAY** have one or more ports connected to a unique\ninternal network. All VNF ports connected to the unique internal\nnetwork **MUST** have cloud assigned IP Addresses\nor **MUST** have statically assigned IP addresses.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-13841", @@ -24503,6 +24868,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Items to Note", "sections": [ "Items to Note", @@ -24524,6 +24890,7 @@ }, "R-14198": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup`` that\nis applicable to one {vm-type} and one internal network Resource ID **SHOULD**\nuse the naming convention\n\n* ``{vm-type}_int_{network-role}_security_group``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{network-role}`` is the network-role", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-14198", @@ -24532,6 +24899,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Neutron::SecurityGroup", "sections": [ "OS::Neutron::SecurityGroup", @@ -24553,6 +24921,7 @@ }, "R-14447": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::ServiceTemplate``\nResource ID **MAY** use the naming convention\n\n* ``{vm-type}_RST_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``RST`` signifies that it is the Resource Service Template\n* ``{index}`` is is the index", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-14447", @@ -24561,6 +24930,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::ServiceTemplate", "sections": [ "OS::ContrailV2::ServiceTemplate", @@ -24580,8 +24950,40 @@ "validated_by": "", "validation_mode": "" }, + "R-146931": { + "description": "The xNF **MUST** report exactly one Measurement event per period\nper source name.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-146931", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Reporting Frequency", + "sections": [ + "Reporting Frequency", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, "R-14853": { "description": "The VNF **MUST** respond to a \"move traffic\" [#4.5.2]_ command\nagainst a specific VNFC, moving all existing session elsewhere with\nminimal disruption if a VNF provides a load balancing function across\nmultiple instances of its VNFCs.\n\nNote: Individual VNF performance aspects (e.g., move duration or\ndisruption scope) may require further constraints.", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", "id": "R-14853", @@ -24590,6 +24992,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Devops", "sections": [ "VNF Devops" @@ -24609,6 +25012,7 @@ }, "R-15189": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Nova::ServerGroup`` Resource ID\n**MAY** use the naming convention\n\n* ``{vm-type}_RSG``\n\nor\n\n* ``{vm-type}_Server_Grp``\n\nor\n\n* ``{vm-type}_ServerGroup``\n\nor\n\n* ``{vm-type}_servergroup``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-15189", @@ -24617,6 +25021,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Nova::ServerGroup", "sections": [ "OS::Nova::ServerGroup", @@ -24637,7 +25042,8 @@ "validation_mode": "" }, "R-15287": { - "description": "When the VNF's Heat Orchestration Template's\nresource ``OS::Neutron::Port`` is attaching\nto an external network (per the ONAP definition, see\nRequirement R-57424),\nand an IPv6 address is being cloud assigned by OpenStack's DHCP Service\nand the external network IPv6 subnet is to be specified\nusing the property ``fixed_ips``\nmap property ``subnet``/``subnet_id``, the parameter\n**MUST** follow the naming convention\n\n * ``{network-role}_v6_subnet_id``\n\nwhere\n\n * ``{network-role}`` is the network role of the network.", + "description": "When the VNF's Heat Orchestration Template's\nresource ``OS::Neutron::Port`` is attaching\nto an external network (per the ONAP definition, see\nRequirement R-57424),\nand an IPv6 address is being cloud assigned by OpenStack's DHCP Service\nand the external network IPv6 subnet is to be specified\nusing the property ``fixed_ips``\nmap property ``subnet``, the parameter\n**MUST** follow the naming convention\n\n * ``{network-role}_v6_subnet_id``\n\nwhere\n\n * ``{network-role}`` is the network role of the network.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-15287", @@ -24646,9 +25052,10 @@ "keyword": "MUST", "links": [], "notes": "", - "section_name": "Property: fixed_ips, Map Property: subnet_id", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", "sections": [ - "Property: fixed_ips, Map Property: subnet_id", + "Property: fixed_ips, Map Property: subnet", "Resource: OS::Neutron::Port - Parameters" ], "status": null, @@ -24666,6 +25073,7 @@ }, "R-15325": { "description": "The VNF **MUST** log the field \"success/failure\" in the\nsecurity audit logs.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-15325", @@ -24674,6 +25082,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -24693,7 +25102,8 @@ "validation_mode": "" }, "R-15480": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vf_module_name`` **MUST NOT**\nhave parameter constraints defined.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``vf_module_name`` parameter ``vf_module_name``\n**MUST NOT** have parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-15480", @@ -24702,10 +25112,11 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_name", "sections": [ "vf_module_name", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -24722,6 +25133,7 @@ }, "R-15671": { "description": "The VNF **MUST** provide access controls that allow the Operator\nto restrict access to VNF functions and data to authorized entities.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-15671", @@ -24730,6 +25142,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -24748,8 +25161,40 @@ "validated_by": "", "validation_mode": "" }, + "R-15837": { + "description": "The following table defines the major TOSCA Types specified in\nETSI NFV-SOL001 standard draft. The VNFD provided by a VNF vendor\n**MUST** comply with the below definitions:", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-15837", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "General", + "sections": [ + "General", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-15884": { "description": "The VNF **MUST** include the field \"date\" in the Security alarms\n(where applicable and technically feasible).", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-15884", @@ -24758,6 +25203,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -24778,6 +25224,7 @@ }, "R-15885": { "description": "The xNF **MUST** Upon completion of the chef-client run,\nPOST back on the callback URL, a JSON object as described in Table\nA2 if the chef-client run list includes a cookbook/recipe that is\ncallback capable. Failure to POST on the Callback Url should not be\nconsidered a critical error. That is, if the chef-client successfully\ncompletes the xNF action, it should reflect this status on the Chef\nServer regardless of whether the Callback succeeded or not.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-15885", @@ -24786,10 +25233,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Roles/Requirements", "sections": [ "Chef Roles/Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -24808,6 +25256,7 @@ }, "R-16039": { "description": "The VNF **SHOULD** test for adherence to the defined\nresiliency rating recommendation at each layer, during each\ndelivery cycle so that the resiliency rating is measured and\nfeedback is provided where software resiliency requirements are\nnot met.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-16039", @@ -24816,6 +25265,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Deployment Optimization", "sections": [ "Deployment Optimization", @@ -24836,6 +25286,7 @@ }, "R-16065": { "description": "The xNF provider **MUST** provide configurable parameters\n(if unable to conform to YANG model) including xNF attributes/parameters\nand valid values, dynamic attributes and cross parameter dependencies\n(e.g., customer provisioning data).", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-16065", @@ -24844,6 +25295,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Management via Ansible", "sections": [ "Configuration Management via Ansible", @@ -24865,6 +25317,7 @@ }, "R-16241": { "description": "A VNF's internal network **MUST** have one subnet.\nA VNF's internal network **MAY** have more than one subnet.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", "id": "R-16241", @@ -24873,6 +25326,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Internal Networks", "sections": [ "Internal Networks", @@ -24893,6 +25347,7 @@ }, "R-16437": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::ServiceTemplate``\nResource ID **MUST** contain the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-16437", @@ -24901,6 +25356,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::ServiceTemplate", "sections": [ "OS::ContrailV2::ServiceTemplate", @@ -24922,6 +25378,7 @@ }, "R-16447": { "description": "A VNF's **MUST** be unique across all Heat\nOrchestration Templates and all HEAT Orchestration Template\nNested YAML files that are used to create the VNF.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-16447", @@ -24930,6 +25387,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "resource ID", "sections": [ "resource ID", @@ -24952,6 +25410,7 @@ }, "R-16496": { "description": "The VNF **MUST** enable instantiating only the functionality that\nis needed for the decomposed VNF (e.g., if transcoding is not needed it\nshould not be instantiated).", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-16496", @@ -24960,6 +25419,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -24979,6 +25439,7 @@ }, "R-16560": { "description": "The VNF **SHOULD** conduct a resiliency impact assessment for all\ninter/intra-connectivity points in the VNF to provide an overall resiliency\nrating for the VNF to be incorporated into the software design and\ndevelopment of the VNF.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-16560", @@ -24987,6 +25448,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Monitoring & Dashboard", "sections": [ "Monitoring & Dashboard", @@ -25006,7 +25468,8 @@ "validation_mode": "" }, "R-16576": { - "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vnf_name`` is passed into a Nested YAML\nfile, the parameter name ``vnf_name`` **MUST NOT** change.", + "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``vnf_name`` is passed into a Nested YAML\nfile, the key/value pair name ``vnf_name`` **MUST NOT** change.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-16576", @@ -25015,10 +25478,11 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vnf_name", "sections": [ "vnf_name", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -25035,6 +25499,7 @@ }, "R-16777": { "description": "The xNF provider **MUST** provide a JSON file for each\nsupported action for the xNF. The JSON file must contain key value\npairs with all relevant values populated with sample data that illustrates\nits usage. The fields and their description are defined in Table B1\nin the Appendix.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-16777", @@ -25043,6 +25508,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Management via Ansible", "sections": [ "Configuration Management via Ansible", @@ -25064,6 +25530,7 @@ }, "R-16875": { "description": "The xNF Package **MUST** include documentation which must include\na unique identification string for the specific xNF, a description of\nthe problem that caused the error, and steps or procedures to perform\nRoot Cause Analysis and resolve the issue.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-16875", @@ -25072,6 +25539,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -25092,6 +25560,7 @@ }, "R-16968": { "description": "A VNF's Heat Orchestration Templates **MUST NOT** include heat\nresources to create external networks.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", "id": "R-16968", @@ -25100,6 +25569,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "External Networks", "sections": [ "External Networks", @@ -25120,6 +25590,7 @@ }, "R-17334": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup``\nthat is applicable to one ``{vm-type}`` and one external network Resource ID\n**SHOULD** use the naming convention\n\n* ``{vm-type}_{network-role}_security_group``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{network-role}`` is the network-role", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-17334", @@ -25128,6 +25599,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Neutron::SecurityGroup", "sections": [ "OS::Neutron::SecurityGroup", @@ -25149,6 +25621,7 @@ }, "R-17528": { "description": "A VNF's Heat Orchestration Template's first level Nested YAML file\n**MUST NOT** contain more than one ``OS::Nova::Server`` resource.\nA VNF's Heat Orchestration Template's second level Nested YAML file\n**MUST NOT** contain an ``OS::Nova::Server`` resource.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", "full_title": "", "hide_links": "", "id": "R-17528", @@ -25157,6 +25630,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Nested Heat Template Requirements", "sections": [ "Nested Heat Template Requirements", @@ -25176,8 +25650,70 @@ "validated_by": "", "validation_mode": "static" }, + "R-17624": { + "description": "The PNF **MAY** support the optional parameters for Service\nConfiguration Parameters.\n\nNote: These are detailed in the Stage 5 PnP\n\nNote: These parameters are optional, and not all PNFs will support any\nor all of these parameters, it is up to the vendor and service provider\nto ascertain which ones are supported up to an including all of the ones\nthat have been defined. Note: It is expected that there will be a growing\nlist of supported configuration parameters in future releases of ONAP.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-17624", + "impacts": "", + "introduced": "casablanca", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-17852": { + "description": "The VNFD **MAY** include TOSCA/YAML definitions that are not part of\nNFV Profile. If provided, these definitions MUST comply with TOSCA\nSimple Profile in YAML v.1.2.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-17852", + "impacts": "", + "introduced": "casablanca", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "General", + "sections": [ + "General", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-18001": { "description": "If the VNF's ports connected to a unique internal network\nand the port's IP addresses are statically assigned IP Addresses,\nthe IPv4 Addresses **MAY** be from different subnets and the\nIPv6 Addresses **MAY** be from different subnets.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-18001", @@ -25186,6 +25722,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Items to Note", "sections": [ "Items to Note", @@ -25207,6 +25744,7 @@ }, "R-18008": { "description": "The VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nproperty ``network`` parameter **MUST** be declared as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-18008", @@ -25215,6 +25753,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: network", "sections": [ "Property: network", @@ -25235,6 +25774,7 @@ }, "R-18202": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::Heat::MultipartMime``\nResource ID\n**MAY**\nuse the naming convention\n\n* ``{vm-type}_RMM``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``RMM`` signifies that it is the Resource Multipart Mime", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-18202", @@ -25243,6 +25783,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Heat::MultipartMime", "sections": [ "OS::Heat::MultipartMime", @@ -25264,6 +25805,7 @@ }, "R-18525": { "description": "The xNF provider **MUST** provide a JSON file for each\nsupported action for the xNF. The JSON file must contain key value\npairs with all relevant values populated with sample data that illustrates\nits usage. The fields and their description are defined in Tables A1\nand A2 in the Appendix.\n\nNote: Chef support in ONAP is not currently available and planned for 4Q 2017.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-18525", @@ -25272,6 +25814,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Management via Chef", "sections": [ "Configuration Management via Chef", @@ -25293,6 +25836,7 @@ }, "R-18683": { "description": "If a VNF has one IPv4 OAM Management IP Address and the\nIP Address needs to be inventoried in ONAP's A&AI\ndatabase, an output parameter **MUST** be declared in only one of the\nVNF's Heat Orchestration Templates and the parameter **MUST** be named\n``oam_management_v4_address``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", "full_title": "", "hide_links": "", "id": "R-18683", @@ -25301,6 +25845,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OAM Management IP Addresses", "sections": [ "OAM Management IP Addresses", @@ -25322,6 +25867,7 @@ }, "R-18725": { "description": "The VNF **MUST** handle the restart of a single VNFC instance\nwithout requiring all VNFC instances to be restarted.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-18725", @@ -25330,6 +25876,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Resilient Error Handling", "sections": [ "Application Resilient Error Handling", @@ -25349,7 +25896,8 @@ "validation_mode": "" }, "R-18733": { - "description": "The xNF **MUST** implement the protocol operation:\n**discard-changes()** - Revert the candidate configuration\ndatastore to the running configuration.", + "description": "The xNF **MUST** implement the protocol operation:\n``discard-changes()`` - Revert the candidate configuration\ndata store to the running configuration.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-18733", @@ -25358,10 +25906,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -25374,12 +25923,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-18864": { "description": "The VNF **MUST NOT** use technologies that bypass virtualization\nlayers (such as SR-IOV) unless approved by the NCSP (e.g., if necessary\nto meet functional or performance requirements).", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-18864", @@ -25388,6 +25938,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -25407,6 +25958,7 @@ }, "R-19082": { "description": "The VNF **MUST** allow the Operator to disable or remove any security\ntesting tools or programs included in the VNF, e.g., password cracker,\nport scanner.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-19082", @@ -25415,6 +25967,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -25434,7 +25987,8 @@ "validation_mode": "" }, "R-19366": { - "description": "The xNF **MUST** support ONAP Controller's **ConfigModify** command.", + "description": "The xNF **MUST** support APPC ``ConfigModify`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-19366", @@ -25443,10 +25997,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Commands", "sections": [ "Configuration Commands", - "Controller Interactions With VNF", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -25458,12 +26013,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-19624": { - "description": "The xNF **MUST** encode and serialize content delivered to\nONAP using JSON (RFC 7159) plain text format. High-volume data\nis to be encoded and serialized using `Avro `_,\nwhere the Avro [#7.4.1]_ data format are described using JSON.\n\nNote:\n\n - JSON plain text format is preferred for moderate volume data sets\n (option 1), as JSON has the advantage of having well-understood simple\n processing and being human-readable without additional decoding. Examples\n of moderate volume data sets include the fault alarms and performance\n alerts, heartbeat messages, measurements used for xNF scaling and syslogs.\n - Binary format using Avro is preferred for high volume data sets\n (option 2) such as mobility flow measurements and other high-volume\n streaming events (such as mobility signaling events or SIP signaling)\n or bulk data, as this will significantly reduce the volume of data\n to be transmitted. As of the date of this document, all events are\n reported using plain text JSON and REST.\n - Avro content is self-documented, using a JSON schema. The JSON schema is\n delivered along with the data content\n (http://avro.apache.org/docs/current/ ). This means the presence and\n position of data fields can be recognized automatically, as well as the\n data format, definition and other attributes. Avro content can be\n serialized as JSON tagged text or as binary. In binary format, the\n JSON schema is included as a separate data block, so the content is\n not tagged, further compressing the volume. For streaming data, Avro\n will read the schema when the stream is established and apply the\n schema to the received content.", + "description": "The xNF, when leveraging JSON for events, **MUST** encode and serialize\ncontent delivered to ONAP using JSON (RFC 7159) plain text format.\nHigh-volume data is to be encoded and serialized using\n`Avro `_, where the Avro [#7.4.1]_ data\nformat are described using JSON.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-19624", @@ -25472,6 +26028,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "JSON", "sections": [ "JSON", @@ -25487,12 +26044,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-19756": { "description": "If a VNF's Heat Orchestration Template\n``OS::ContrailV2::InterfaceRouteTable`` resource\n``interface_route_table_routes`` property\n``interface_route_table_routes_route`` map property parameter\n``{vm-type}_{network-role}_route_prefixes``\n**MUST** be defined as type ``json``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Contrail Resource Parameters", "full_title": "", "hide_links": "", "id": "R-19756", @@ -25501,6 +26059,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Interface Route Table Prefixes for Contrail InterfaceRoute Table", "sections": [ "Interface Route Table Prefixes for Contrail InterfaceRoute Table", @@ -25520,7 +26079,8 @@ "validation_mode": "static" }, "R-19768": { - "description": "The VNF **SHOULD** support Layer 3 VPNs that enable segregation of\ntraffic by application (i.e., AVPN, IPSec VPN for Internet routes).", + "description": "The VNF **SHOULD** support network segregation, i.e., separation of OA&M\ntraffic from signaling and payload traffic, using technologies such as\nVPN and VLAN.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-19768", @@ -25529,6 +26089,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -25548,7 +26109,8 @@ "validation_mode": "" }, "R-19922": { - "description": "The xNF **MUST** support ONAP Controller's **UpgradePrecheck** command.", + "description": "The xNF **MUST** support APPC/SDN-C ``UpgradePrecheck`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-19922", @@ -25557,10 +26119,11 @@ "keyword": "MUST", "links": [], "notes": "", - "section_name": "LifeCycle Management Related Commands", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", "sections": [ - "LifeCycle Management Related Commands", - "Controller Interactions With VNF", + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -25572,12 +26135,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-20065": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::PortTuple``\nResource ID **MUST** contain the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-20065", @@ -25586,6 +26150,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::PortTuple", "sections": [ "OS::ContrailV2::PortTuple", @@ -25607,6 +26172,7 @@ }, "R-20204": { "description": "The VNF Package **MUST** include VM requirements via a Heat\ntemplate that provides the necessary data for network connections,\ninterface connections, internal and external to VNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-20204", @@ -25615,6 +26181,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Compute, Network, and Storage Requirements", "sections": [ "Compute, Network, and Storage Requirements", @@ -25634,7 +26201,8 @@ "validation_mode": "" }, "R-20308": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``environment_context`` **MUST**\nbe declared as type: ``string``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``environment_context``\nparameter **MUST** be declared as ``environment_context`` and the\nparameter type **MUST** be defined as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-20308", @@ -25643,10 +26211,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "environment_context", "sections": [ "environment_context", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -25663,6 +26232,7 @@ }, "R-20319": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Heat::CloudConfig``\nResource ID **MAY** use the naming convention\n\n* ``{vm-type}_RCC``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``RCC`` signifies that it is the Resource Cloud Config", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-20319", @@ -25671,6 +26241,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Heat::CloudConfig", "sections": [ "OS::Heat::CloudConfig", @@ -25691,7 +26262,8 @@ "validation_mode": "" }, "R-20353": { - "description": "The xNF **MUST** implement both **:candidate** and\n**:writable-running** capabilities. When both **:candidate** and\n**:writable-running** are provided then two locks should be supported.", + "description": "The xNF **MUST** implement both ``:candidate`` and\n``:writable-running`` capabilities. When both ``:candidate`` and\n``:writable-running`` are provided then two locks should be supported.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-20353", @@ -25700,10 +26272,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -25722,6 +26295,7 @@ }, "R-20453": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nthat is attaching to an external network Resource ID\n**MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_{network-role}_port_{port-index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{port-index}`` is the instance of the the port on the vm-type\n attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-20453", @@ -25730,6 +26304,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Neutron::Port", "sections": [ "OS::Neutron::Port", @@ -25751,6 +26326,7 @@ }, "R-20547": { "description": "When an ONAP Volume Module Output Parameter is declared as an input\nparameter in a base or an incremental module Heat Orchestration\nTemplate, parameter constraints **MUST NOT** be declared.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-20547", @@ -25759,6 +26335,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP Volume Module Output Parameters", "sections": [ "ONAP Volume Module Output Parameters", @@ -25779,7 +26356,8 @@ "validation_mode": "static" }, "R-20741": { - "description": "The xNF **MUST** support ONAP Controller's **Configure** command.", + "description": "The xNF **MUST** support APPC/SDN-C ``Configure`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-20741", @@ -25788,10 +26366,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Commands", "sections": [ "Configuration Commands", - "Controller Interactions With VNF", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -25803,12 +26382,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-20856": { "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property\n``metadata`` key/value pair ``vnf_id`` parameter ``vnf_id`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-20856", @@ -25817,10 +26397,11 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vnf_id", "sections": [ "vnf_id", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -25837,6 +26418,7 @@ }, "R-20860": { "description": "The VNF **MUST** be agnostic to the underlying infrastructure\n(such as hardware, host OS, Hypervisor), any requirements should be\nprovided as specification to be fulfilled by any hardware.", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", "id": "R-20860", @@ -25845,6 +26427,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Devops", "sections": [ "VNF Devops" @@ -25864,6 +26447,7 @@ }, "R-20947": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``\nthat is configuring an IPv4 Address on a sub-interface port attached to a\nsub-interface network Resource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_subint_{network-role}_vmi_{vmi_index}_IP_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{vmi_index}`` is the instance of the the virtual machine interface\n (e.g., port) on the vm-type\n attached to the network of ``{network-role}``\n* ``IP`` signifies that an IPv4 address is being configured\n* ``{index}`` is the index of the IPv4 address", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-20947", @@ -25872,6 +26456,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::InstanceIp", "sections": [ "OS::ContrailV2::InstanceIp", @@ -25893,6 +26478,7 @@ }, "R-20974": { "description": "At orchestration time, the VNF's Base Module **MUST**\nbe deployed first, prior to any incremental modules.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-20974", @@ -25901,6 +26487,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -25915,12 +26502,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-21210": { "description": "The VNF **MUST** implement the following input validation control\non APIs: Validate that any input file has a correct and valid\nMultipurpose Internet Mail Extensions (MIME) type. Input files\nshould be tested for spoofed MIME types.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-21210", @@ -25929,6 +26517,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF API Security Requirements", "sections": [ "VNF API Security Requirements", @@ -25947,8 +26536,40 @@ "validated_by": "", "validation_mode": "" }, + "R-21322": { + "description": "The VNF provider **MUST** provide their testing scripts to support\ntesting as specified in ETSI NFV-SOL004 - Testing directory in CSAR", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-21322", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Contents", + "sections": [ + "VNF Package Contents", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-21330": { "description": "A VNF's Heat Orchestration Template's Resource property parameter that is\nassociated with external network **MUST** include the ``{network-role}``\nas part of the parameter name.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", "full_title": "", "hide_links": "", "id": "R-21330", @@ -25957,6 +26578,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "{network-role}", "sections": [ "{network-role}" @@ -25976,6 +26598,7 @@ }, "R-21511": { "description": "A VNF's Heat Orchestration Template's use of ``{network-role}``\nin all Resource IDs **MUST** be the same case.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", "full_title": "", "hide_links": "", "id": "R-21511", @@ -25984,6 +26607,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "{network-role}", "sections": [ "{network-role}" @@ -26003,6 +26627,7 @@ }, "R-21558": { "description": "The VNF **SHOULD** use intelligent routing by having knowledge\nof multiple downstream/upstream endpoints that are exposed to it, to\nensure there is no dependency on external services (such as load balancers)\nto switch to alternate endpoints.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-21558", @@ -26011,6 +26636,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Intelligent Transaction Distribution & Management", "sections": [ "Intelligent Transaction Distribution & Management", @@ -26031,6 +26657,7 @@ }, "R-21652": { "description": "The VNF **MUST** implement the following input validation\ncontrol: Check the size (length) of all input. Do not permit an amount\nof input so great that it would cause the VNF to fail. Where the input\nmay be a file, the VNF API must enforce a size limit.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-21652", @@ -26039,6 +26666,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF API Security Requirements", "sections": [ "VNF API Security Requirements", @@ -26059,6 +26687,7 @@ }, "R-21819": { "description": "The VNF **MUST** provide functionality that enables the Operator to comply\nwith requests for information from law enforcement and government agencies.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-21819", @@ -26067,6 +26696,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -26087,6 +26717,7 @@ }, "R-22059": { "description": "The VNF **MUST NOT** execute long running tasks (e.g., IO,\ndatabase, network operations, service calls) in a critical section\nof code, so as to minimize blocking of other operations and increase\nconcurrent throughput.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-22059", @@ -26095,6 +26726,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "System Resource Optimization", "sections": [ "System Resource Optimization", @@ -26115,6 +26747,7 @@ }, "R-22286": { "description": "The VNF **MUST** support Integration functionality via\nAPI/Syslog/SNMP to other functional modules in the network (e.g.,\nPCRF, PCEF) that enable dynamic security control by blocking the\nmalicious traffic or malicious end users.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-22286", @@ -26123,6 +26756,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -26142,7 +26776,8 @@ "validation_mode": "" }, "R-22288": { - "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet``/``subnet_id`` parameter\n``int_{network-role}_v6_subnet_id``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet`` parameter\n``int_{network-role}_v6_subnet_id``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-22288", @@ -26151,9 +26786,10 @@ "keyword": "MUST NOT", "links": [], "notes": "", - "section_name": "Property: fixed_ips, Map Property: subnet_id", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", "sections": [ - "Property: fixed_ips, Map Property: subnet_id", + "Property: fixed_ips, Map Property: subnet", "Resource: OS::Neutron::Port - Parameters" ], "status": null, @@ -26170,7 +26806,8 @@ "validation_mode": "static" }, "R-22346": { - "description": "The VNF package MUST provide `VES Event Registration `_ for all VES events provided by that xNF.", + "description": "The VNF package MUST provide :doc:`VES Event Registration <../../../../vnfsdk/module.git/files/VESEventRegistration_3_0>`\nfor all VES events provided by that xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-22346", @@ -26179,6 +26816,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Description", "sections": [ "Resource Description", @@ -26198,7 +26836,8 @@ "validation_mode": "static" }, "R-22367": { - "description": "The VNF **MUST** support detection of malformed packets due to\nsoftware misconfiguration or software vulnerability.", + "description": "The VNF **MUST** support detection of malformed packets due to software\nmisconfiguration or software vulnerability, and generate an error to the\nsyslog console facility.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-22367", @@ -26207,6 +26846,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -26221,12 +26861,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-22441": { - "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vf_module_index`` is passed into a\nNested YAML\nfile, the parameter name ``vf_module_index`` **MUST NOT** change.", + "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vf_module_index`` is passed into a\nNested YAML file, the key/value pair\n``vf_module_index`` **MUST NOT** change.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-22441", @@ -26235,10 +26876,11 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_index", "sections": [ "vf_module_index", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -26255,6 +26897,7 @@ }, "R-22589": { "description": "A VNF's Heat Orchestration Template parameter declaration\n**MAY** contain the attribute ``immutable:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-22589", @@ -26263,6 +26906,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "immutable", "sections": [ "immutable", @@ -26285,6 +26929,7 @@ }, "R-22608": { "description": "When a VNF's Heat Orchestration Template's Base Module's output\nparameter is declared as an input parameter in an Incremental Module,\nthe parameter attribute ``constraints:`` **MUST NOT** be declared.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-22608", @@ -26293,6 +26938,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP Base Module Output Parameters", "sections": [ "ONAP Base Module Output Parameters", @@ -26314,6 +26960,7 @@ }, "R-22680": { "description": "The xNF Package **MUST** include documentation that describes\nany requirements for the monitoring component of tools for Network\nCloud automation and management to provide these records to components\nof the xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-22680", @@ -26322,6 +26969,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -26342,6 +26990,7 @@ }, "R-22688": { "description": "If a VNF's port is connected to an internal network and the port is\ncreated in an Incremental Module and the internal network is created\nin the Base Module then the UUID of the internal network **MUST** be\nexposed as a parameter in the ``outputs:`` section of the Base Module\nand the port resource **MUST** use a ``get_param`` to obtain the network\nUUID.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", "id": "R-22688", @@ -26350,6 +26999,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Internal Networks", "sections": [ "Internal Networks", @@ -26370,6 +27020,7 @@ }, "R-22700": { "description": "The xNF **MUST** conform its YANG model to RFC 6470,\n\"NETCONF Base Notifications\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-22700", @@ -26378,10 +27029,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -26400,6 +27052,7 @@ }, "R-22838": { "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``name`` parameter **MUST NOT** be enumerated in the Heat Orchestration\nTemplate's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-22838", @@ -26408,6 +27061,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Property: Name", "sections": [ "Property: Name", @@ -26428,6 +27082,7 @@ }, "R-22888": { "description": "The xNF provider **MUST** provide documentation for the xNF\nPolicy Description to manage the xNF runtime lifecycle. The document\nmust include a description of how the policies (conditions and actions)\nare implemented in the xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-22888", @@ -26436,6 +27091,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -26456,6 +27112,7 @@ }, "R-22946": { "description": "The xNF **SHOULD** conform its YANG model to RFC 6536,\n\"NETCONF Access Control Model\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-22946", @@ -26464,10 +27121,11 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -26486,6 +27144,7 @@ }, "R-23035": { "description": "The VNF **MUST** be designed to scale horizontally (more\ninstances of a VNF or VNFC) and not vertically (moving the existing\ninstances to larger VMs or increasing the resources within a VM)\nto achieve effective utilization of cloud resources.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-23035", @@ -26494,6 +27153,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -26512,7 +27172,8 @@ "validation_mode": "" }, "R-23135": { - "description": "The VNF **MUST**, if not using the NCSP's IDAM API,\nauthenticate system to system communications where one system\naccesses the resources of another system, and must never conceal\nindividual accountability.", + "description": "The VNF **MUST**, if not integrated with the Operator's identity and\naccess management system, authenticate all access to protected GUIs, CLIs,\nand APIs.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-23135", @@ -26521,9 +27182,40 @@ "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF General Security Requirements", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", "sections": [ - "VNF General Security Requirements", + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-231402": { + "description": "The VNF **MUST** provide a means for the user to explicitly logout, thus\nending that session for that authenticated user.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-231402", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", "VNF Security" ], "status": null, @@ -26541,6 +27233,7 @@ }, "R-23311": { "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Nova::Server`` property\n``availability_zone`` parameter **MUST** be declared as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-23311", @@ -26549,6 +27242,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: availability_zone", "sections": [ "Property: availability_zone", @@ -26569,6 +27263,7 @@ }, "R-23475": { "description": "VNFCs **SHOULD** be agnostic to the details of the Network Cloud\n(such as hardware, host OS, Hypervisor or container technology) and must run\non the Network Cloud with acknowledgement to the paradigm that the Network\nCloud will continue to rapidly evolve and the underlying components of\nthe platform will change regularly.", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", "id": "R-23475", @@ -26577,6 +27272,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Devops", "sections": [ "VNF Devops" @@ -26595,7 +27291,8 @@ "validation_mode": "" }, "R-23503": { - "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement Requirement R-57424),\nand an IPv6 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``comma_delimited_list``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_v6_ips``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n OS::Nova::Server\n * ``{network-role}`` is the {network-role} of the external\n network", + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv6 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``comma_delimited_list``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_v6_ips``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n OS::Nova::Server\n * ``{network-role}`` is the {network-role} of the external\n network", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-23503", @@ -26604,6 +27301,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -26624,6 +27322,7 @@ }, "R-23664": { "description": "A VNF's Heat Orchestration template **MUST**\ncontain the section ``resources:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-23664", @@ -26632,6 +27331,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "resources", "sections": [ "resources", @@ -26653,6 +27353,7 @@ }, "R-23740": { "description": "The VNF **MUST** implement and enforce the principle of least privilege\non all protected interfaces.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-23740", @@ -26661,6 +27362,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -26681,6 +27383,7 @@ }, "R-23882": { "description": "The VNF **SHOULD** provide the capability for the Operator to run security\nvulnerability scans of the operating system and all application layers.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-23882", @@ -26689,6 +27392,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -26709,6 +27413,7 @@ }, "R-23957": { "description": "The VNF **MUST** include the field \"time\" in the Security alarms\n(where applicable and technically feasible).", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-23957", @@ -26717,6 +27422,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -26735,8 +27441,71 @@ "validated_by": "", "validation_mode": "" }, + "R-240760": { + "description": "The VNF **MUST NOT** contain any backdoors.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-240760", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-24189": { + "description": "The xNF provider **MUST** deliver a new set of playbooks that includes\nall updated and unchanged playbooks for any new revision to an existing\nset of playbooks.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-24189", + "impacts": "", + "introduced": "casablanca", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-24269": { "description": "The xNF **SHOULD** conform its YANG model to RFC 7407,\n\"A YANG Data Model for SNMP Configuration\", if Netconf used to\nconfigure SNMP engine.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-24269", @@ -26745,10 +27514,11 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -26767,6 +27537,7 @@ }, "R-24359": { "description": "The VNF **MUST** provide the capability of testing the validity\nof a digital certificate by validating the date the certificate is being\nused is within the validity period for the certificate.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-24359", @@ -26775,6 +27546,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Cryptography Requirements", "sections": [ "VNF Cryptography Requirements", @@ -26793,8 +27565,41 @@ "validated_by": "", "validation_mode": "" }, + "R-24482": { + "description": "The xNF **MUST** provide Ansible playbooks that are designed to run using\nan inventory hosts file in a supported format; with site group that shall\nbe used to add site specific configurations to the target xNF VM(s) as\nneeded.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-24482", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-24893": { "description": "A VNF's Heat Orchestration template's Environment File's\n**MAY** contain the ``event_sinks:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-24893", @@ -26803,6 +27608,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Environment File Format", "sections": [ "Environment File Format", @@ -26823,6 +27629,7 @@ }, "R-24997": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Nova::Keypair`` applies to\none ``{vm-type}`` Resource ID **SHOULD** use the naming convention\n\n* ``{vm-type}_keypair_{index}``\n\nwhere\n\n* ``{network-role}`` is the network-role\n* ``{index}`` is the ``{index}`` of the keypair", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-24997", @@ -26831,6 +27638,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Nova::Keypair", "sections": [ "OS::Nova::Keypair", @@ -26852,6 +27660,7 @@ }, "R-25190": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Cinder::Volume``\n**SHOULD NOT** declare the property ``availability_zone``.", + "docname": "Chapter5/Heat/ONAP Heat Cinder Volumes", "full_title": "", "hide_links": "", "id": "R-25190", @@ -26860,6 +27669,7 @@ "keyword": "SHOULD NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Optional Property availability_zone", "sections": [ "Optional Property availability_zone", @@ -26880,6 +27690,7 @@ }, "R-25238": { "description": "The xNF PACKAGE **MUST** validated YANG code using the open\nsource pyang [#7.3.1]_ program using the following commands:\n\n.. code-block:: text\n\n $ pyang --verbose --strict $ echo $!", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-25238", @@ -26888,10 +27699,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -26910,6 +27722,7 @@ }, "R-25401": { "description": "The VNF **MUST** use asymmetric keys of at least 2048 bits in length.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-25401", @@ -26918,6 +27731,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Cryptography Requirements", "sections": [ "VNF Cryptography Requirements", @@ -26938,6 +27752,7 @@ }, "R-25547": { "description": "The VNF **MUST** log the field \"protocol\" in the security audit logs.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-25547", @@ -26946,6 +27761,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -26964,8 +27780,69 @@ "validated_by": "", "validation_mode": "" }, + "R-256267": { + "description": "If SNMP is utilized, the VNF **MUST** support at least SNMPv3 with\nmessage authentication.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-256267", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-256347": { + "description": "The PNF **MUST** support the Ansible protocol for a Service Configuration\nmessage exchange between the PNF and PNF Controller (in ONAP).\n\nNote: this exchange may be either Ansible, Chef, or NetConf depending on\nthe PNF. Note: The PNF Controller may be VF-C, APP-C or SDN-C based on the\nPNF and PNF domain. Note: for R3 (Casablanca) only Ansible is supported.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-256347", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-25720": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Net``\nResource ID **MUST** use the naming convention\n\n* ``int_{network-role}_network``\n\nVNF Heat Orchestration Templates can only create internal networks.\nThere is no ``{index}`` after ``{network-role}`` because ``{network-role}``\n**MUST** be unique in the scope of the VNF's\nHeat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-25720", @@ -26974,6 +27851,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Neutron::Net", "sections": [ "OS::Neutron::Net", @@ -26993,8 +27871,100 @@ "validated_by": "", "validation_mode": "static" }, + "R-257367": { + "description": "The xNF, when leveraging Google Protocol Buffers for events, **MUST**\nserialize the events using native Google Protocol Buffers (GPB) according\nto the following guidelines:\n\n * The keys are represented as integers pointing to the system resources\n for the xNF being monitored\n * The values correspond to integers or strings that identify the\n operational state of the VNF resource, such a statistics counters and\n the state of an xNF resource.\n * The required Google Protocol Buffers (GPB) metadata is provided in the\n form of .proto files.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-257367", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Google Protocol Buffers (GPB)", + "sections": [ + "Google Protocol Buffers (GPB)", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-258352": { + "description": "The PNF **MUST** support & accept the provisioning of an ONAP contact IP\naddress (in IPv4 or IPv6 format).\n\nNote: For example, it a possibility is that an external EMS would configure\n& provision the ONAP contact IP address to the PNF (in either IPv4 or\nIPv6 format). For the PNF Plug and Play Use Case, this IP address is the\nservice provider's \"point of entry\" to the DCAE VES Listener.\n\nNote: different service provider's network architecture may also require\nspecial setup to allow an external PNF to contact the ONAP installation.\nFor example, in the AT&T network, a maintenance tunnel is used to access\nONAP.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-258352", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-258686": { + "description": "The VNF application processes **MUST NOT** run as root.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-258686", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-25877": { "description": "A VNF's Heat Orchestration Template's parameter name\n(i.e., ) **MUST** contain only alphanumeric\ncharacters and underscores ('_').", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-25877", @@ -27003,6 +27973,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "", "sections": [ "", @@ -27025,6 +27996,7 @@ }, "R-26115": { "description": "The xNF **MUST** follow the data model upgrade rules defined\nin [RFC6020] section 10. All deviations from section 10 rules shall\nbe handled by a built-in automatic upgrade mechanism.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-26115", @@ -27033,10 +28005,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -27055,6 +28028,7 @@ }, "R-26124": { "description": "If a VNF Heat Orchestration Template parameter has a default value,\nit **MUST** be enumerated in the environment file.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-26124", @@ -27063,6 +28037,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "default", "sections": [ "default", @@ -27079,12 +28054,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-26351": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nthat is attaching to an internal network Resource ID **MUST**\nuse the naming convention\n\n* ``{vm-type}_{vm-type_index}_int_{network-role}_port_{port-index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{port-index}`` is the instance of the the port on the vm-type\n attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-26351", @@ -27093,6 +28069,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Neutron::Port", "sections": [ "OS::Neutron::Port", @@ -27114,6 +28091,7 @@ }, "R-26371": { "description": "The VNF **MUST** detect communication failure for inter VNFC\ninstance and intra/inter VNF and re-establish communication\nautomatically to maintain the VNF without manual intervention to\nprovide service continuity.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-26371", @@ -27122,6 +28100,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Resilient Error Handling", "sections": [ "Application Resilient Error Handling", @@ -27142,6 +28121,7 @@ }, "R-26506": { "description": "A VNF's Heat Orchestration Template's ``{network-role}`` **MUST** contain\nonly alphanumeric characters and/or underscores '_' and\n**MUST NOT** contain any of the following strings:\n``_int`` or ``int_`` or ``_int_``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", "full_title": "", "hide_links": "", "id": "R-26506", @@ -27150,6 +28130,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "{network-role}", "sections": [ "{network-role}" @@ -27169,6 +28150,7 @@ }, "R-26508": { "description": "The xNF **MUST** support a NETCONF server that can be mounted on\nOpenDaylight (client) and perform the operations of: modify, update,\nchange, rollback configurations using each configuration data element,\nquery each state (non-configuration) data element, execute each YANG\nRPC, and receive data through each notification statement.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-26508", @@ -27177,10 +28159,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -27198,7 +28181,8 @@ "validation_mode": "" }, "R-26567": { - "description": "The xNF Package **MUST** include a run list of\nroles/cookbooks/recipes, for each supported xNF action, that will\nperform the desired xNF action in its entirety as specified by ONAP\n(see Section 7.c, ONAP Controller APIs and Behavior, for list of xNF\nactions and requirements), when triggered by a chef-client run list\nin JSON file.", + "description": "The xNF Package **MUST** include a run list of\nroles/cookbooks/recipes, for each supported xNF action, that will\nperform the desired xNF action in its entirety as specified by ONAP\n(see Section 7.c, APPC/SDN-C APIs and Behavior, for list of xNF\nactions and requirements), when triggered by a chef-client run list\nin JSON file.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-26567", @@ -27207,10 +28191,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Roles/Requirements", "sections": [ "Chef Roles/Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -27223,12 +28208,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-26881": { "description": "The xNF provider **MUST** provide the binaries and images\nneeded to instantiate the xNF (xNF and VNFC images).", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-26881", @@ -27237,6 +28223,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Compute, Network, and Storage Requirements", "sections": [ "Compute, Network, and Storage Requirements", @@ -27255,8 +28242,69 @@ "validated_by": "", "validation_mode": "" }, + "R-26885": { + "description": "The VNF provider **MUST** provide the binaries and images needed to\ninstantiate the VNF (VNF and VNFC images) either as:\n\n - Local artifact in CSAR: ROOT\\\\Artifacts\\\\ **VNF_Image.bin**\n\n - externally referred (by URI) artifact in Manifest file (also may be\n referred by VNF Descriptor)\n\nNote: Currently, ONAP doesn't have the capability of Image management,\nwe upload the image into VIM/VNFM manually.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-26885", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Contents", + "sections": [ + "VNF Package Contents", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-270358": { + "description": "A VNF's Heat Orchestration Template's Cinder Volume Template **MUST**\ncontain either\n\n* An ``OS::Cinder::Volume`` resource\n* An ``OS::Heat::ResourceGroup`` resource that references a Nested YAML\n file that contains an ``OS::Cinder::Volume`` resource\n* A resource that defines the property ``type`` as a Nested YAML file\n (i.e., static nesting) and the Nested YAML contains\n an ``OS::Cinder::Volume`` resource", + "docname": "Chapter5/Heat/ONAP Heat Cinder Volumes", + "full_title": "", + "hide_links": "", + "id": "R-270358", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Heat Cinder Volumes", + "sections": [ + "ONAP Heat Cinder Volumes" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, "R-27078": { "description": "A VNF's Heat Orchestration template **MUST** contain the\nsection ``heat_template_version:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-27078", @@ -27265,6 +28313,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "heat_template_version", "sections": [ "heat_template_version", @@ -27286,6 +28335,7 @@ }, "R-27310": { "description": "The xNF Package **MUST** include all relevant Chef artifacts\n(roles/cookbooks/recipes) required to execute xNF actions requested by\nONAP for loading on appropriate Chef Server.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-27310", @@ -27294,10 +28344,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Roles/Requirements", "sections": [ "Chef Roles/Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -27316,6 +28367,7 @@ }, "R-27469": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nthat is creating a *Reserve Port* with an IPv4 address Resource ID **MUST**\nuse the naming convention\n\n* ``reserve_port_{vm-type}_{network-role}_floating_ip_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{index}`` is the instance of the IPv4 *Reserve Port*\n for the vm-type attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-27469", @@ -27324,6 +28376,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Neutron::Port", "sections": [ "OS::Neutron::Port", @@ -27345,6 +28398,7 @@ }, "R-27511": { "description": "The VNF provider **MUST** provide the ability to scale\nup a VNF provider supplied product during growth and scale down a\nVNF provider supplied product during decline without \"real-time\"\nrestrictions based upon VNF provider permissions.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-27511", @@ -27353,6 +28407,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Licensing Requirements", "sections": [ "Licensing Requirements", @@ -27373,6 +28428,7 @@ }, "R-27711": { "description": "The xNF provider **MUST** provide an XML file that contains a\nlist of xNF error codes, descriptions of the error, and possible\ncauses/corrective action.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-27711", @@ -27381,6 +28437,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -27401,6 +28458,7 @@ }, "R-27818": { "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see RRequirements R-52425 and R-46461),\nand an IPv6 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``string``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_int_{network-role}_v6_ip_{index}``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n * ``{network-role}`` is the {network-role} of the internal\n network\n * the value for ``{index}`` must start at zero (0) and increment by one", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-27818", @@ -27409,6 +28467,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -27429,6 +28488,7 @@ }, "R-27970": { "description": "When a VNF's Heat Orchestration Template's resource is associated with\nmore than one ``{vm-type}`` and/or more than one internal and/or external\nnetwork, the Resource ID **MAY** contain the term ``shared`` and/or **MAY**\ncontain text that identifies the VNF.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-27970", @@ -27437,6 +28497,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Resource IDs", "sections": [ "Resource IDs" @@ -27456,6 +28517,7 @@ }, "R-27995": { "description": "The VNF **SHOULD** include control loop mechanisms to notify\nthe consumer of the VNF of their exceeding SLA thresholds so the consumer\nis able to control its load against the VNF.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-27995", @@ -27464,6 +28526,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Intelligent Transaction Distribution & Management", "sections": [ "Intelligent Transaction Distribution & Management", @@ -27484,6 +28547,7 @@ }, "R-28168": { "description": "The VNF **SHOULD** use an appropriately configured logging\nlevel that can be changed dynamically, so as to not cause performance\ndegradation of the VNF due to excessive logging.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-28168", @@ -27492,6 +28556,7 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Monitoring & Dashboard", "sections": [ "Monitoring & Dashboard", @@ -27512,6 +28577,7 @@ }, "R-28189": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::InterfaceRouteTable``\nResource ID **MAY** use the naming convention\n\n* ``{network-role}_RIRT``\n\nwhere\n\n* ``{network-role}`` is the network-role\n* ``RIRT`` signifies that it is the Resource Interface Route Table", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-28189", @@ -27520,6 +28586,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::InterfaceRouteTable", "sections": [ "OS::ContrailV2::InterfaceRouteTable", @@ -27541,6 +28608,7 @@ }, "R-28222": { "description": "If a VNF's Heat Orchestration Template\n``OS::ContrailV2::InterfaceRouteTable`` resource\n``interface_route_table_routes`` property\n``interface_route_table_routes_route`` map property parameter name\n**MUST** follow the format\n\n* ``{vm-type}_{network-role}_route_prefixes``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Contrail Resource Parameters", "full_title": "", "hide_links": "", "id": "R-28222", @@ -27549,6 +28617,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Interface Route Table Prefixes for Contrail InterfaceRoute Table", "sections": [ "Interface Route Table Prefixes for Contrail InterfaceRoute Table", @@ -27567,8 +28636,70 @@ "validated_by": "", "validation_mode": "static" }, + "R-283988": { + "description": "The VNF, when publishing events, **MUST NOT** send information through\nextensible structures if the event specification has explicitly defined\nfields for that information.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-283988", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Miscellaneous", + "sections": [ + "Miscellaneous", + "Event Records - Data Structure Description", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-284934": { + "description": "If the PNF encounters an error authenticating, reaching the ONAP DCAE VES\nEvent listener or recieves an error response from sending the pnfRegistration\nVES Event, it **MAY** log the error, and notify the operator.\n\nNote: the design of how errors are logged, retrieved and reported\nwill be a vendor-specific architecture. Reporting faults and errors\nis also a vendor specific design. It is expected that the PNF shall\nhave a means to log an error and notify a user when a fault condition\noccurs in trying to contact ONAP, authenticate or send a pnfRegistration\nevent.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-284934", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-28545": { "description": "The xNF **MUST** conform its YANG model to RFC 6060,\n\"YANG - A Data Modeling Language for the Network Configuration\nProtocol (NETCONF)\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-28545", @@ -27577,10 +28708,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -27598,7 +28730,8 @@ "validation_mode": "" }, "R-28756": { - "description": "The xNF **MUST** support **:partial-lock** and\n**:partial-unlock** capabilities, defined in RFC 5717. This\nallows multiple independent clients to each write to a different\npart of the configuration at the same time.", + "description": "The xNF **MUST** support ``:partial-lock`` and\n``:partial-unlock`` capabilities, defined in RFC 5717. This\nallows multiple independent clients to each write to a different\npart of the configuration at the same time.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-28756", @@ -27607,10 +28740,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -27629,6 +28763,7 @@ }, "R-28795": { "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_int_{network-role}_ip_{index}``\n**MUST** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-28795", @@ -27637,6 +28772,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -27657,6 +28793,7 @@ }, "R-28980": { "description": "A VNF's incremental module **MAY** be used for initial VNF deployment only.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-28980", @@ -27665,6 +28802,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -27684,7 +28822,8 @@ "validation_mode": "" }, "R-29324": { - "description": "The xNF **SHOULD** implement the protocol operation:\n**copy-config(target, source) -** Copy the content of the\nconfiguration datastore source to the configuration datastore target.", + "description": "The xNF **SHOULD** implement the protocol operation:\n``copy-config(target, source)`` - Copy the content of the\nconfiguration data store source to the configuration data store target.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-29324", @@ -27693,10 +28832,11 @@ "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -27709,12 +28849,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-29488": { - "description": "The xNF **MUST** implement the protocol operation:\n**get-config(source, filter)** - Retrieve a (filtered subset of\na) configuration from the configuration datastore source.", + "description": "The xNF **MUST** implement the protocol operation:\n``get-config(source, filter`` - Retrieve a (filtered subset of\na) configuration from the configuration data store source.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-29488", @@ -27723,10 +28864,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -27739,12 +28881,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-29495": { "description": "The xNF **MUST** support locking if a common object is\nbeing manipulated by two simultaneous NETCONF configuration operations\non the same xNF within the context of the same writable running data\nstore (e.g., if an interface parameter is being configured then it\nshould be locked out for configuration by a simultaneous configuration\noperation on that same interface parameter).", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-29495", @@ -27753,10 +28896,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -27775,6 +28919,7 @@ }, "R-29705": { "description": "The VNF **MUST** restrict changing the criticality level of a\nsystem security alarm to users with administrative privileges.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-29705", @@ -27783,6 +28928,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -27803,6 +28949,7 @@ }, "R-29751": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Nova::Server`` Resource ID\n**MUST** use the naming convention\n\n* ``{vm-type}_server_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{index}`` is the index", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-29751", @@ -27811,6 +28958,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Nova::Server", "sections": [ "OS::Nova::Server", @@ -27832,6 +28980,7 @@ }, "R-29760": { "description": "The VNFC **MUST** be installed on non-root file systems,\nunless software is specifically included with the operating system\ndistribution of the guest image.", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", "id": "R-29760", @@ -27840,6 +28989,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Devops", "sections": [ "VNF Devops" @@ -27858,7 +29008,8 @@ "validation_mode": "" }, "R-29765": { - "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see Requirement Requirements R-52425 and R-46461),\nand an IPv6 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``comma_delimited_list``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_int_{network-role}_v6_ips``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n * ``{network-role}`` is the {network-role} of the internal\n network", + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see Requirements R-52425 and R-46461),\nand an IPv6 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``comma_delimited_list``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_int_{network-role}_v6_ips``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n * ``{network-role}`` is the {network-role} of the internal\n network", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-29765", @@ -27867,6 +29018,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -27885,36 +29037,9 @@ "validated_by": "", "validation_mode": "static" }, - "R-29865": { - "description": "When a VNF connects to an external network, a network role,\nreferred to as the '{network-role}' **MUST** be assigned to the\nexternal network for use in the VNF's Heat Orchestration Template.", - "full_title": "", - "hide_links": "", - "id": "R-29865", - "impacts": "", - "introduced": "", - "keyword": "MUST", - "links": [], - "notes": "", - "section_name": "External Networks", - "sections": [ - "External Networks", - "ONAP Heat Networking" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "", - "validated_by": "", - "validation_mode": "" - }, "R-29872": { - "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``network``\nparameter **MUST NOT** be enumerated in the Heat Orchestration\nTemplate's Environment File.", + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nproperty ``network``\nparameter **MUST NOT** be enumerated in the Heat Orchestration\nTemplate's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-29872", @@ -27923,6 +29048,7 @@ "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Property: network", "sections": [ "Property: network", @@ -27943,6 +29069,7 @@ }, "R-29977": { "description": "The VNF **MUST** provide the capability of testing the validity\nof a digital certificate by validating the CA signature on the certificate.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-29977", @@ -27951,6 +29078,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Cryptography Requirements", "sections": [ "VNF Cryptography Requirements", @@ -27971,6 +29099,7 @@ }, "R-30005": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup`` that\nis applicable to more than one ``{vm-type}`` and more than one network\n(internal and/or external) Resource ID **MAY**\nuse the naming convention\n\n* ``shared_security_group``\n\nor\n\n* ``{vnf-type}_security_group``\n\nwhere\n\n* ``{vnf-type}`` describes the VNF", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-30005", @@ -27979,6 +29108,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Neutron::SecurityGroup", "sections": [ "OS::Neutron::SecurityGroup", @@ -28000,6 +29130,7 @@ }, "R-30278": { "description": "The xNF provider **MUST** provide a Resource/Device YANG model\nas a foundation for creating the YANG model for configuration. This will\ninclude xNF attributes/parameters and valid values/attributes configurable\nby policy.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-30278", @@ -28008,6 +29139,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Management via NETCONF/YANG", "sections": [ "Configuration Management via NETCONF/YANG", @@ -28027,8 +29159,39 @@ "validated_by": "", "validation_mode": "" }, + "R-303569": { + "description": "The VNF **MUST** log the Source IP address in the security audit logs.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-303569", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-30395": { "description": "A VNF's Cinder Volume Module **MAY** utilize nested heat.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-30395", @@ -28037,6 +29200,7 @@ "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Nested Heat Orchestration Templates Overview", "sections": [ "Nested Heat Orchestration Templates Overview", @@ -28055,8 +29219,38 @@ "validated_by": "", "validation_mode": "" }, + "R-304011": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource's\n\n* Resource ID\n* property ``image`` parameter name\n* property ``flavor`` parameter name\n* property ``name`` parameter name\n\n\n**MUST** contain the identical ``{vm-type}``\nand **MUST** follow the naming conventions defined\nin R-58670, R-45188, R-54171, R-87817, and R-29751.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-304011", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource: OS::Nova::Server - Parameters", + "sections": [ + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, "R-30650": { "description": "The VNF **MUST** utilize cloud provided infrastructure and\nVNFs (e.g., virtualized Local Load Balancer) as part of the VNF so\nthat the cloud can manage and provide a consistent service resiliency\nand methods across all VNF's.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-30650", @@ -28065,6 +29259,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -28084,6 +29279,7 @@ }, "R-30654": { "description": "The xNF Package **MUST** have appropriate cookbooks that are\ndesigned to automatically 'rollback' to the original state in case of\nany errors for actions that change state of the xNF (e.g., configure).", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-30654", @@ -28092,10 +29288,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Roles/Requirements", "sections": [ "Chef Roles/Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -28114,6 +29311,7 @@ }, "R-30753": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::NetworkIpam``\nResource ID\n**MUST**\ncontain the ``{network-role}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-30753", @@ -28122,6 +29320,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::NetworkIpam", "sections": [ "OS::ContrailV2::NetworkIpam", @@ -28143,6 +29342,7 @@ }, "R-30804": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::Heat::MultipartMime``\nResource ID\n**MUST**\ncontain the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-30804", @@ -28151,6 +29351,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Heat::MultipartMime", "sections": [ "OS::Heat::MultipartMime", @@ -28172,6 +29373,7 @@ }, "R-30932": { "description": "The VNF **MUST** log successful and unsuccessful access to VNF\nresources, including data.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-30932", @@ -28180,6 +29382,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -28200,6 +29403,7 @@ }, "R-31141": { "description": "VNF Heat Orchestration Template's Cinder Volume Module's Environment File\n**MUST** be named identical to the VNF Heat Orchestration Template's\nCinder Volume Module with ``.y[a]ml`` replaced with ``.env``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-31141", @@ -28208,6 +29412,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Cinder Volume Modules", "sections": [ "Cinder Volume Modules", @@ -28223,12 +29428,13 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-31614": { "description": "The VNF **MUST** log the field \"event type\" in the security audit\nlogs.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-31614", @@ -28237,6 +29443,7 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -28257,6 +29464,7 @@ }, "R-31809": { "description": "The xNF **MUST** support the HealthCheck RPC. The HealthCheck\nRPC executes a xNF Provider-defined xNF HealthCheck over the scope of\nthe entire xNF (e.g., if there are multiple VNFCs, then run a health check,\nas appropriate, for all VNFCs). It returns a 200 OK if the test completes.\nA JSON object is returned indicating state (healthy, unhealthy), scope\nidentifier, time-stamp and one or more blocks containing info and fault\ninformation. If the xNF is unable to run the HealthCheck, return a\nstandard http error code and message.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-31809", @@ -28265,10 +29473,11 @@ "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "REST APIs", "sections": [ "REST APIs", - "VNF REST APIs", + "xNF REST APIs", "Configuration Management" ], "status": null, @@ -28284,16 +29493,233 @@ "validated_by": "", "validation_mode": "" }, - "R-31961": { - "description": "The VNF **MUST** support integrated DPI/monitoring functionality\nas part of VNFs (e.g., PGW, MME).", + "R-32025": { + "description": "When a VNF creates two or more internal networks, each internal\nnetwork **MUST** be assigned a unique ``{network-role}`` in the context\nof the VNF for use in the VNF's Heat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", - "id": "R-31961", + "id": "R-32025", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Internal Networks", + "sections": [ + "Internal Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-32094": { + "description": "A VNF's Heat Orchestration Template parameter declaration **MAY**\ncontain the attribute ``label:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-32094", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "label", + "sections": [ + "label", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-32155": { + "description": "The VNFD provided by VNF vendor may use the below described TOSCA\ninterface types. An on-boarding entity (ONAP SDC) **MUST** support them.\n\n **tosca.interfaces.nfv.vnf.lifecycle.Nfv** supports LCM operations", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-32155", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Interface Types", + "sections": [ + "Interface Types", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-32217": { + "description": "The xNF **MUST** have routable management IP addresses or FQDNs that\nare reachable via the Ansible Server for the endpoints (VMs) of a\nxNF that playbooks will target. ONAP will initiate requests to the\nAnsible Server for invocation of playbooks against these end\npoints [#7.3.3]_.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-32217", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-32394": { + "description": "A VNF's Heat Orchestration Template's use of ``{vm-type}`` in all Resource\nproperty parameter names **MUST** be the same case.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", + "full_title": "", + "hide_links": "", + "id": "R-32394", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{vm-type}", + "sections": [ + "{vm-type}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-32408": { + "description": "If a VNF's Heat Orchestration Template property ``name``\nfor a non ``OS::Nova::Server`` resource uses the intrinsic function\n``str_replace`` in conjunction with the ONAP\nsupplied metadata parameter ``vnf_name`` and does not create\na unique value, additional data **MUST** be used in the\n``str_replace`` to create a unique value, such as ``OS::stack_name``\nand/or the ``OS::Heat::ResourceGroup`` ``index``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property", + "full_title": "", + "hide_links": "", + "id": "R-32408", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Property \u201cname\u201d", + "sections": [ + "Resource Property \u201cname\u201d" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-32557": { + "description": "A VNF's Heat Orchestration Template parameter declaration **MAY**\ncontain the attribute ``hidden:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-32557", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "hidden", + "sections": [ + "hidden", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-32636": { + "description": "The VNF **MUST** support API-based monitoring to take care of\nthe scenarios where the control interfaces are not exposed, or are\noptimized and proprietary in nature.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-32636", "impacts": "", "introduced": "", "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -28312,20 +29738,22 @@ "validated_by": "", "validation_mode": "" }, - "R-32025": { - "description": "When a VNF creates two or more internal networks, each internal\nnetwork **MUST** be assigned a unique ``{network-role}`` in the context\nof the VNF for use in the VNF's Heat Orchestration Template.", + "R-32641": { + "description": "The VNF **MUST** provide the capability to encrypt data on\nnon-volatile memory.Non-volative memory is storage that is\ncapable of retaining data without electrical power, e.g.\nComplementary metal-oxide-semiconductor (CMOS) or hard drives.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", - "id": "R-32025", + "id": "R-32641", "impacts": "", "introduced": "", "keyword": "MUST", "links": [], "notes": "", - "section_name": "Internal Networks", + "parts": {}, + "section_name": "VNF Data Protection Requirements", "sections": [ - "Internal Networks", - "ONAP Heat Networking" + "VNF Data Protection Requirements", + "VNF Security" ], "status": null, "tags": [], @@ -28338,18 +29766,24137 @@ "type_name": "Requirement", "updated": "casablanca", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" + }, + "R-32695": { + "description": "The VNF **MUST** provide the ability to modify the number of\nretries, the time between retries and the behavior/action taken after\nthe retries have been exhausted for exception handling to allow the\nNCSP to control that behavior, where the interface and/or functional\nspecification allows for altering behaviour.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-32695", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Resilient Error Handling", + "sections": [ + "Application Resilient Error Handling", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-328086": { + "description": "The xNF **MUST**, if serving as a distribution point or anchor point for\nsteering point from source to destination, support the ONAP Controller's\n``DistributeTraffic`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-328086", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", + "sections": [ + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-32981": { + "description": "The xNF **MUST** support APPC ``ConfigBackup`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-32981", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Commands", + "sections": [ + "Configuration Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-33132": { + "description": "A VNF's Heat Orchestration Template **MAY** be\n 1.) Base Module Heat Orchestration Template (also referred to as a\n Base Module),\n 2.) Incremental Module Heat Orchestration Template (referred to as\n an Incremental Module), or\n 3.) a Cinder Volume Module Heat Orchestration Template (referred to as\n Cinder Volume Module).", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-33132", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-332680": { + "description": "The xNF **SHOULD** deliver all syslog messages to the VES Collector per the\nspecifications in Monitoring and Management chapter.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-332680", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Asynchronous and Synchronous Data Delivery", + "sections": [ + "Asynchronous and Synchronous Data Delivery", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-33280": { + "description": "The xNF **MUST NOT** use any instance specific parameters\nin a playbook.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-33280", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-33488": { + "description": "The VNF **MUST** protect against all denial of service\nattacks, both volumetric and non-volumetric, or integrate with external\ndenial of service protection tools.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-33488", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-33694": { + "description": "The xNF Package **MUST** include documentation to when applicable,\nprovide calculators needed to convert raw data into appropriate reporting\nartifacts.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-33694", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-33846": { + "description": "The VNF **MUST** install the NCSP required software on Guest OS\nimages when not using the NCSP provided Guest OS images. [#4.5.1]_", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-33846", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-33904": { + "description": "The xNF Package **MUST** include documentation for each KPI, provide\nlower and upper limits.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-33904", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-33946": { + "description": "The xNF **MUST** conform to the NETCONF RFC 4741,\n\"NETCONF Configuration Protocol\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-33946", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-33955": { + "description": "The xNF **SHOULD** conform its YANG model to RFC 6991,\n\"Common YANG Data Types\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-33955", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-34037": { + "description": "The VNF's Heat Orchestration Template's\nresource ``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n**MUST** be declared as either type ``string`` or type\n``comma_delimited_list``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-34037", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-34055": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``workload_context``\nparameter ``workload_context`` **MUST NOT**\nhave parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-34055", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "workload_context", + "sections": [ + "workload_context", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-343842": { + "description": "The VNF **MUST**, after a successful login at command line or a GUI,\ndisplay the last valid login date and time and the number of unsuccessful\nattempts since then made with that user's ID. This requirement is only\napplicable when the user account is defined locally in the VNF.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-343842", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-34484": { + "description": "The VNF **SHOULD** create a single component VNF for VNFCs\nthat can be used by other VNFs.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-34484", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-34552": { + "description": "The VNF **MUST** be implemented so that it is not vulnerable to OWASP\nTop 10 web application security risks.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-34552", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-34660": { + "description": "The xNF **MUST** use the RESTCONF/NETCONF framework used by\nthe ONAP configuration subsystem for synchronous communication.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-34660", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Asynchronous and Synchronous Data Delivery", + "sections": [ + "Asynchronous and Synchronous Data Delivery", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-34957": { + "description": "The VNF **MUST** provide a method of metrics gathering for each\nlayer's performance to identify/document variances in the allocations so\nthey can be addressed.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-34957", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Monitoring & Dashboard", + "sections": [ + "Monitoring & Dashboard", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-35291": { + "description": "The VNF **MUST** support the ability to failover a VNFC\nautomatically to other geographically redundant sites if not\ndeployed active-active to increase the overall resiliency of the VNF.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-35291", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "All Layer Redundancy", + "sections": [ + "All Layer Redundancy", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-35401": { + "description": "The xNF **MUST** support SSH and allow SSH access by the\nAnsible server to the endpoint VM(s) and comply with the Network\nCloud Service Provider guidelines for authentication and access.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-35401", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-35414": { + "description": "A VNF Heat Orchestration's template **MUST** contain the\nsection ``parameters:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-35414", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "parameters", + "sections": [ + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-35532": { + "description": "The VNF **SHOULD** release and clear all shared assets (memory,\ndatabase operations, connections, locks, etc.) as soon as possible,\nespecially before long running sync and asynchronous operations, so as\nto not prevent use of these assets by other entities.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-35532", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "System Resource Optimization", + "sections": [ + "System Resource Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-35666": { + "description": "If a VNF has an internal network, the VNF Heat Orchestration Template\n**MUST** include the heat resources to create the internal network.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-35666", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Internal Networks", + "sections": [ + "Internal Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-35735": { + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv6 Virtual IP (VIP)\naddress is assigned via ONAP automation\nusing the property ``allowed_address_pairs``\nmap property ``ip_address``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_floating_v6_ip``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n OS::Nova::Server\n * ``{network-role}`` is the {network-role} of the external\n network\n\nAnd the parameter **MUST** be declared as type ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-35735", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VIP Assignment, External Networks, Supported by Automation", + "sections": [ + "VIP Assignment, External Networks, Supported by Automation", + "Property: allowed_address_pairs, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-35851": { + "description": "The xNF Package **MUST** include xNF topology that describes\nbasic network and application connectivity internal and external to the\nxNF including Link type, KPIs, Bandwidth, latency, jitter, QoS (if\napplicable) for each interface.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-35851", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Compute, Network, and Storage Requirements", + "sections": [ + "Compute, Network, and Storage Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-35854": { + "description": "The VNF Descriptor (VNFD) provided by VNF vendor **MUST** comply with\nTOSCA/YAML based Service template for VNF descriptor specified in\nETSI NFV-SOL001.\n\n**Note**: As the ETSI NFV-SOL001 is work in progress the below tables\nsummarizes the TOSCA definitions agreed to be part of current version\nof NFV profile and that VNFD MUST comply with in ONAP Release 2+\nRequirements.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-35854", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "General", + "sections": [ + "General", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-35960": { + "description": "The xNF Package **MUST** include documentation which must include\nall events, severity level (e.g., informational, warning, error) and\ndescriptions including causes/fixes if applicable for the event.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-35960", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-36280": { + "description": "The xNF provider **MUST** provide documentation describing\nxNF Functional Capabilities that are utilized to operationalize the\nxNF and compose complex services.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-36280", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Description", + "sections": [ + "Resource Description", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-36542": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vnf_name`` parameter\n``vnf_name`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-36542", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vnf_name", + "sections": [ + "vnf_name", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-36582": { + "description": "A VNF's Base Module **MAY** utilize nested heat.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-36582", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat Orchestration Templates Overview", + "sections": [ + "Nested Heat Orchestration Templates Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-36687": { + "description": "A VNF's Heat Orchestration Template's ``{vm-type}`` case in Resource\nproperty parameter names **SHOULD** match the case of ``{vm-type}``\nin Resource IDs and vice versa.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", + "full_title": "", + "hide_links": "", + "id": "R-36687", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{vm-type}", + "sections": [ + "{vm-type}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-36772": { + "description": "A VNF's Heat Orchestration Template's parameter **MUST** include the\nattribute ``type:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-36772", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "type", + "sections": [ + "type", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-36792": { + "description": "The VNF **MUST** automatically retry/resubmit failed requests\nmade by the software to its downstream system to increase the success rate.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-36792", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Resilient Error Handling", + "sections": [ + "Application Resilient Error Handling", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-36843": { + "description": "The VNF **MUST** support the ability of the VNFC to be deployable\nin multi-zoned cloud sites to allow for site support in the event of cloud\nzone failure or upgrades.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-36843", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "All Layer Redundancy", + "sections": [ + "All Layer Redundancy", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-36982": { + "description": "A VNF's Heat Orchestration template **MAY** contain the ``outputs:``\nsection.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-36982", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "outputs", + "sections": [ + "outputs", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-37028": { + "description": "A VNF **MUST** be composed of one Base Module", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-37028", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-37039": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``vf_module_index`` parameter\n``vf_module_index`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-37039", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_index", + "sections": [ + "vf_module_index", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-37437": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property ``metadata`` **MUST**\ncontain the key/value pair ``vnf_id``\nand the value **MUST** be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-37437", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vnf_id", + "sections": [ + "vnf_id", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-37692": { + "description": "The VNFC **MUST** provide API versioning to allow for\nindependent upgrades of VNFC.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-37692", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-378131": { + "description": "(Error Case) - If an error is encountered by the PNF during a\nService Configuration exchange with ONAP, the PNF **MAY** log the\nerror and notify an operator.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-378131", + "impacts": "", + "introduced": "casablanca", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-37929": { + "description": "The xNF **MUST** accept all necessary instance specific\ndata from the environment or node object attributes for the xNF\nin roles/cookbooks/recipes invoked for a xNF action.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-37929", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Roles/Requirements", + "sections": [ + "Chef Roles/Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-38001": { + "description": "The VNF **MUST** support ONAP Controller's **Rebuild** command.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-38001", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Virtual Function - Container Recovery Requirements", + "sections": [ + "Virtual Function - Container Recovery Requirements", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-38236": { + "description": "The VNF's Heat Orchestration Template's\nresource ``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet`` parameter\n**MUST** be declared type ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-38236", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", + "sections": [ + "Property: fixed_ips, Map Property: subnet", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-384337": { + "description": "The VNF documentation **MUST** contain a list of the files within the VNF\npackage that are static during the VNF's runtime.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-384337", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Description", + "sections": [ + "Resource Description", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-38474": { + "description": "A VNF's Base Module **MUST** have a corresponding Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-38474", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-39067": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``vf_module_name`` parameter **MUST** be\ndeclared as ``vf_module_name`` and the parameter **MUST**\nbe defined as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-39067", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_name", + "sections": [ + "vf_module_name", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-39349": { + "description": "A VNF Heat Orchestration Template **MUST NOT** be designed to utilize the\nOpenStack ``heat stack-update`` command for scaling (growth/de-growth).", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-39349", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Support of heat stack update", + "sections": [ + "Support of heat stack update", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-39402": { + "description": "A VNF's Heat Orchestration Template **MUST** contain the\nsection ``description:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-39402", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "description", + "sections": [ + "description", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-39562": { + "description": "The VNF **MUST** disable unnecessary or vulnerable cgi-bin programs.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-39562", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-39604": { + "description": "The VNF **MUST** provide the capability of testing the\nvalidity of a digital certificate by checking the Certificate Revocation\nList (CRL) for the certificates of that type to ensure that the\ncertificate has not been revoked.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-39604", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Cryptography Requirements", + "sections": [ + "VNF Cryptography Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-39650": { + "description": "The VNF **SHOULD** provide the ability to test incremental\ngrowth of the VNF.", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-39650", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-39841": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_{network-role}_ip_{index}``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-39841", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-40293": { + "description": "The xNF **MUST** make available playbooks that conform\nto the ONAP requirement.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-40293", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-40499": { + "description": "Each VNF's Heat Orchestration Template's ``{vm-type}`` **MUST**\nhave a unique parameter name for the ``OS::Nova::Server`` property\n``flavor`` even if more than one ``{vm-type}`` shares the same flavor.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-40499", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: flavor", + "sections": [ + "Property: flavor", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-40518": { + "description": "A VNF's Heat Orchestration Template's parameter defined\nin a non-nested YAML file as type\n``string`` **MAY** have a parameter constraint defined.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-40518", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "constraints", + "sections": [ + "constraints", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-40551": { + "description": "A VNF's Heat Orchestration Template's Nested YAML files **MAY**\n(or **MAY NOT**) contain the section ``resources:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-40551", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "resources", + "sections": [ + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-40813": { + "description": "The VNF **SHOULD** support the use of virtual trusted platform\nmodule.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-40813", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-40820": { + "description": "The VNF provider MUST enumerate all of the open source licenses\ntheir VNF(s) incorporate. CSAR License directory as per ETSI SOL004.\n\nfor example ROOT\\\\Licenses\\\\ **License_term.txt**", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-40820", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Contents", + "sections": [ + "VNF Package Contents", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-40827": { + "description": "The xNF provider **MUST** enumerate all of the open\nsource licenses their xNF(s) incorporate.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-40827", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Licensing Requirements", + "sections": [ + "Licensing Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-408813": { + "description": "The VNF, when publishing events, **MUST** pass all information it is\nable to collect even if the information field is identified as optional.\nHowever, if the data cannot be collected, then optional fields can be\nomitted.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-408813", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Miscellaneous", + "sections": [ + "Miscellaneous", + "Event Records - Data Structure Description", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "none" + }, + "R-40899": { + "description": "When the VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``name`` parameter is defined as a ``string``, a parameter\n**MUST** be delcared for\neach ``OS::Nova::Server`` resource associated with the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-40899", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: Name", + "sections": [ + "Property: Name", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-40971": { + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv4 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a string,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_ip_{index}``\n\n where\n\n * ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n * ``{network-role}`` is the {network-role} of the external\n network\n * the value for ``{index}`` must start at zero (0) and increment by one", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-40971", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-41159": { + "description": "The VNF **MUST** deliver any and all functionality from any\nVNFC in the pool (where pooling is the most suitable solution). The\nVNFC pool member should be transparent to the client. Upstream and\ndownstream clients should only recognize the function being performed,\nnot the member performing it.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-41159", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "System Resource Optimization", + "sections": [ + "System Resource Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-41215": { + "description": "The VNF **MAY** have zero to many \"incremental\" modules.", + "docname": "Chapter4/Modularity", + "full_title": "", + "hide_links": "", + "id": "R-41215", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "VNF Modularity" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-41252": { + "description": "The VNF **MUST** support the capability of online storage of\nsecurity audit logs.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-41252", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-41430": { + "description": "The xNF **MUST** support APPC/SDN-C ``HealthCheck`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-41430", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "HealthCheck and Failure Related Commands", + "sections": [ + "HealthCheck and Failure Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-41492": { + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv4 Virtual IP (VIP)\naddress is assigned via ONAP automation\nusing the property ``allowed_address_pairs``\nmap property ``ip_address`` and\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_floating_ip``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n OS::Nova::Server\n * ``{network-role}`` is the {network-role} of the external\n network\n\nAnd the parameter **MUST** be declared as type ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-41492", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VIP Assignment, External Networks, Supported by Automation", + "sections": [ + "VIP Assignment, External Networks, Supported by Automation", + "Property: allowed_address_pairs, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-41825": { + "description": "The VNF **MUST** activate security alarms automatically when\na configurable number of consecutive unsuccessful login attempts\nis reached.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-41825", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-41829": { + "description": "The xNF **MUST** be able to specify the granularity of the\nlock via a restricted or full XPath expression.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-41829", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-41888": { + "description": "A VNF's Heat Orchestration Template intrinsic function\n``get_file`` **MUST NOT** utilize URL-based file retrieval.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-41888", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Heat Files Support (get_file)", + "sections": [ + "Heat Files Support (get_file)", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-41956": { + "description": "If a VNF requires ONAP to assign a Virtual IP (VIP) Address to\nports connected an external network, the port\n**MUST NOT** have more than one IPv6 VIP address.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-41956", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VIP Assignment, External Networks, Supported by Automation", + "sections": [ + "VIP Assignment, External Networks, Supported by Automation", + "Property: allowed_address_pairs, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-41994": { + "description": "The VNF **MUST** support the use of X.509 certificates issued from any\nCertificate Authority (CA) that is compliant with RFC5280, e.g., a public\nCA such as DigiCert or Let's Encrypt, or an RFC5280 compliant Operator\nCA.\n\nNote: The VNF provider cannot require the use of self-signed certificates\nin an Operator's run time environment.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-41994", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Cryptography Requirements", + "sections": [ + "VNF Cryptography Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-42018": { + "description": "The xNF Package **MUST** include documentation which must include\nall events (fault, measurement for xNF Scaling, Syslogs, State Change\nand Mobile Flow), that need to be collected at each VM, VNFC (defined in `VNF Guidelines `__ ) and for the overall xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-42018", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-42140": { + "description": "The xNF **MUST** respond to data requests from ONAP as soon\nas those requests are received, as a synchronous response.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-42140", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Asynchronous and Synchronous Data Delivery", + "sections": [ + "Asynchronous and Synchronous Data Delivery", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-42207": { + "description": "The VNF **MUST** design resiliency into a VNF such that the\nresiliency deployment model (e.g., active-active) can be chosen at\nrun-time.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-42207", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "All Layer Redundancy", + "sections": [ + "All Layer Redundancy", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-42366": { + "description": "The xNF **MUST** support secure connections and transports such as\nTransport Layer Security (TLS) protocol\n[`RFC5246 `_] and should adhere to\nthe best current practices outlined in\n`RFC7525 `_.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-42366", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Security", + "sections": [ + "Security", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-42685": { + "description": "A VNF's Heat Orchestration template's Environment File's\n**MAY** contain the ``parameter_merge_strategies:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-42685", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Environment File Format", + "sections": [ + "Environment File Format", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-42874": { + "description": "The VNF **MUST** allow the Operator to restrict access based on\nthe assigned permissions associated with an ID in order to support\nLeast Privilege (no more privilege than required to perform job\nfunctions).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-42874", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-43253": { + "description": "The xNF **MUST** use playbooks designed to allow Ansible\nServer to infer failure or success based on the \"PLAY_RECAP\" capability.\n\n**Note**: There are cases where playbooks need to interpret results\nof a task and then determine success or failure and return result\naccordingly (failure for failed tasks).", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-43253", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-43327": { + "description": "The xNF **SHOULD** use `Modeling JSON text with YANG\n`_, If YANG models need to be\ntranslated to and from JSON{RFC7951]. YANG configuration and content can\nbe represented via JSON, consistent with Avro, as described in \"Encoding\nand Serialization\" section.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-43327", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Asynchronous and Synchronous Data Delivery", + "sections": [ + "Asynchronous and Synchronous Data Delivery", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-43332": { + "description": "The VNF **MUST** activate security alarms automatically when\nit detects the successful modification of a critical system or\napplication file.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-43332", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-43353": { + "description": "The xNF **MUST** return control from Ansible Playbooks only after all\ntasks performed by playbook are fully complete, signaling that the\nplaybook completed all tasks. When starting services, return control\nonly after all services are up. This is critical for workflows where\nthe next steps are dependent on prior tasks being fully completed.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-43353", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-43413": { + "description": "A VNF **MUST** utilize a modular Heat Orchestration Template design to\nsupport scaling (growth/de-growth).", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-43413", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Support of heat stack update", + "sections": [ + "Support of heat stack update", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-43740": { + "description": "VNF's Heat Orchestration Template's Resource **MAY** declare the\nattribute ``deletion_policy:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-43740", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "deletion_policy", + "sections": [ + "deletion_policy", + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-43884": { + "description": "The VNF **SHOULD** integrate with the Operator's authentication and\nauthorization services (e.g., IDAM).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-43884", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF API Security Requirements", + "sections": [ + "VNF API Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-43958": { + "description": "The xNF Package **MUST** include documentation describing\nthe tests that were conducted by the xNF provider and the test results.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-43958", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Testing", + "sections": [ + "Testing", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-44001": { + "description": "A VNF's Heat Orchestration Template parameter declaration **MUST**\ncontain the attribute ``description``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-44001", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "description", + "sections": [ + "description", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-44013": { + "description": "The xNF **MUST** populate an attribute, defined as node\n['PushJobOutput'] with the desired output on all nodes in the push job\nthat execute chef-client run if the xNF action requires the output of a\nchef-client run be made available (e.g., get running configuration).", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-44013", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Roles/Requirements", + "sections": [ + "Chef Roles/Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-440220": { + "description": "The xNF **SHOULD** support File transferring protocol, such as FTPES or SFTP,\nwhen supporting the event-driven bulk transfer of monitoring data.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-440220", + "impacts": "dcae, dmaap", + "introduced": "casablanca", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Bulk Performance Measurement", + "sections": [ + "Bulk Performance Measurement", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-44125": { + "description": "The xNF provider **MUST** agree to the process that can\nbe met by Service Provider reporting infrastructure. The Contract\nshall define the reporting process and the available reporting tools.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-44125", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Licensing Requirements", + "sections": [ + "Licensing Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-44271": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``name`` parameter value **SHOULD NOT** contain special characters\nsince the Contrail GUI has a limitation displaying special characters.\n\nHowever, if special characters must be used, the only special characters\nsupported are: --- \\\" ! $ ' (\\ \\ ) = ~ ^ | @ ` { } [ ] > , . _", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-44271", + "impacts": "", + "introduced": "", + "keyword": "SHOULD NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Contrail Issue with Values for OS::Nova::Server Property Name", + "sections": [ + "Contrail Issue with Values for OS::Nova::Server Property Name", + "Property: Name", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-44281": { + "description": "The xNF **MUST** implement the protocol operation:\n``edit-config(target, default-operation, test-option, error-option,\nconfig)`` - Edit the target configuration data store by merging,\nreplacing, creating, or deleting new config elements.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-44281", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-44290": { + "description": "The xNF **MUST** control access to ONAP and to xNFs, and creation\nof connections, through secure credentials, log-on and exchange mechanisms.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-44290", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Security", + "sections": [ + "Security", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-44318": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vnf_name``\nparameter ``vnf_name`` **MUST NOT**\nhave parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-44318", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vnf_name", + "sections": [ + "vnf_name", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-44491": { + "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``vnf_id`` is passed into a Nested YAML\nfile, the key/value pair name ``vnf_id`` **MUST NOT** change.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-44491", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vnf_id", + "sections": [ + "vnf_id", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-44569": { + "description": "The xNF provider **MUST NOT** require additional\ninfrastructure such as a xNF provider license server for xNF provider\nfunctions and metrics.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-44569", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Licensing Requirements", + "sections": [ + "Licensing Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-44723": { + "description": "The VNF **MUST** use symmetric keys of at least 112 bits in length.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-44723", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Cryptography Requirements", + "sections": [ + "VNF Cryptography Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-44896": { + "description": "The VNF Package **MUST** include VM requirements via a Heat\ntemplate that provides the necessary data for high availability\nredundancy model.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-44896", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Compute, Network, and Storage Requirements", + "sections": [ + "Compute, Network, and Storage Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-45188": { + "description": "The VNF's Heat Orchestration Template's Resource 'OS::Nova::Server' property\n``flavor`` parameter name **MUST** follow the naming convention\n``{vm-type}_flavor_name``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-45188", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: flavor", + "sections": [ + "Property: flavor", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-45197": { + "description": "The xNF **MUST** define the \"from=\" clause to provide the list of IP\naddresses of the Ansible Servers in the Cluster, separated by coma, to\nrestrict use of the SSH key pair to elements that are part of the Ansible\nCluster owner of the issued and assigned mechanized user ID.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-45197", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-45602": { + "description": "If a VNF's Port is attached to a network (internal or external)\nand the port's IP addresses are cloud assigned by OpenStack's DHCP\nService, the ``OS::Neutron::Port`` Resource's\n\n* property ``fixed_ips`` map property ``ip_address`` **MUST NOT** be used\n* property ``fixed_ips`` map property ``subnet``\n **MAY** be used", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-45602", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Items to Note", + "sections": [ + "Items to Note", + "Introduction", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-45719": { + "description": "The VNF **MUST**, if not integrated with the Operator's Identity and Access\nManagement system, or enforce a configurable \"terminate idle sessions\"\npolicy by terminating the session after a configurable period of inactivity.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-45719", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-45856": { + "description": "The xNF **MUST** support APPC/SDN-C ``UpgradePostCheck`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-45856", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", + "sections": [ + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-46096": { + "description": "A VNF's Heat Orchestration template's Environment File's\n**MAY** contain the ``encrypted_parameters:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-46096", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Environment File Format", + "sections": [ + "Environment File Format", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-46119": { + "description": "A VNF's Heat Orchestration Template's Resource OS::Heat::CinderVolume\n**MAY** be defined in a Base Module.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-46119", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-46128": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``\nthat is configuring an IPv6 Address on a port attached to an external network\nResource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_{network-role}_vmi_{vmi_index}_v6_IP_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{vmi_index}`` is the instance of the the virtual machine interface\n (e.g., port) on the vm-type\n attached to the network of {network-role}\n* ``v6_IP`` signifies that an IPv6 address is being configured\n* ``{index}`` is the index of the IPv6 address", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-46128", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::InstanceIp", + "sections": [ + "OS::ContrailV2::InstanceIp", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-46290": { + "description": "The xNF **MUST** respond to an ONAP request to deliver granular\ndata on device or subsystem status or performance, referencing the YANG\nconfiguration model for the xNF by returning the requested data elements.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-46290", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Asynchronous and Synchronous Data Delivery", + "sections": [ + "Asynchronous and Synchronous Data Delivery", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-46461": { + "description": "A VNF's port connected to an internal network **MUST NOT** use the port\nfor the purpose of reaching VMs in another VNF and/or an\nexternal gateway and/or\nexternal router.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-46461", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Internal Networks", + "sections": [ + "Internal Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-465236": { + "description": "The VNF **SHOULD** provide the capability of maintaining the integrity of\nits static files using a cryptographic method.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-465236", + "impacts": "", + "introduced": "casablanca", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-46527": { + "description": "A VNFD is a deployment template which describes a VNF in terms of\ndeployment and operational behavior requirements. It contains\nvirtualized resources (nodes) requirements as well as connectivity\nand interfaces requirements and **MUST** comply with info elements\nspecified in ETSI GS NFV-IFA 011. The main parts of the VNFD are\nthe following:\n\n - VNF topology: it is modeled in a cloud agnostic way using virtualized\n containers and their connectivity. Virtual Deployment Units (VDU)\n describe the capabilities of the virtualized containers, such as\n virtual CPU, RAM, disks; their connectivity is modeled with VDU\n Connection Point Descriptors (VduCpd), Virtual Link Descriptors\n (VnfVld) and VNF External Connection Point Descriptors\n (VnfExternalCpd);\n\n - VNF deployment aspects: they are described in one or more\n deployment flavours, including configurable parameters, instantiation\n levels, placement constraints (affinity / antiaffinity), minimum and\n maximum VDU instance numbers. Horizontal scaling is modeled with\n scaling aspects and the respective scaling levels in the deployment\n flavours;\n\n**Note**: The deployment aspects (deployment flavour etc.) are postponed\nfor future ONAP releases.\n\n - VNF lifecycle management (LCM) operations: describes the LCM operations\n supported per deployment flavour, and their input parameters;\n Note, thatthe actual LCM implementation resides in a different layer,\n namely referring to additional template artifacts.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-46527", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "General", + "sections": [ + "General", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-46567": { + "description": "The xNF Package **MUST** include configuration scripts\nfor boot sequence and configuration.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-46567", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Management via Ansible", + "sections": [ + "Configuration Management via Ansible", + "Resource Configuration", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-46839": { + "description": "A VNF's Heat Orchestration Template's use of ``{vm-type}``\nin all Resource IDs **MUST** be the same case.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", + "full_title": "", + "hide_links": "", + "id": "R-46839", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{vm-type}", + "sections": [ + "{vm-type}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-46851": { + "description": "The VNF **MUST** support ONAP Controller's Evacuate command.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-46851", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Virtual Function - Container Recovery Requirements", + "sections": [ + "Virtual Function - Container Recovery Requirements", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-46908": { + "description": "The VNF **MUST**, if not integrated with the Operator's Identity and\nAccess Management system, comply with \"password complexity\" policy. When\npasswords are used, they shall be complex and shall at least meet the\nfollowing password construction requirements: (1) be a minimum configurable\nnumber of characters in length, (2) include 3 of the 4 following types of\ncharacters: upper-case alphabetic, lower-case alphabetic, numeric, and\nspecial, (3) not be the same as the UserID with which they are associated\nor other common strings as specified by the environment, (4) not contain\nrepeating or sequential characters or numbers, (5) not to use special\ncharacters that may have command functions, and (6) new passwords must\nnot contain sequences of three or more characters from the previous\npassword.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-46908", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-46960": { + "description": "NCSPs **MAY** operate a limited set of Guest OS and CPU\narchitectures and families, virtual machines, etc.", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-46960", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-46968": { + "description": "VNF's Heat Orchestration Template's Resource **MAY** declare the\nattribute ``depends_on:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-46968", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "depends_on", + "sections": [ + "depends_on", + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-46986": { + "description": "The VNF **SHOULD** have source code scanned using scanning\ntools (e.g., Fortify) and provide reports.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-46986", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-47061": { + "description": "A VNF's Heat Orchestration Template's OS::Nova::Server\nResource **SHOULD** contain the metadata map value parameter\n'workload_context'.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-47061", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "workload_context", + "sections": [ + "workload_context", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-47068": { + "description": "The xNF **MAY** expose a single endpoint that is\nresponsible for all functionality.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-47068", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Client Requirements", + "sections": [ + "Chef Client Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-470963": { + "description": "The VNF, when publishing events, **MUST** leverage camel case to separate\nwords and acronyms used as keys that will be sent through extensible fields.\nWhen an acronym is used as the key, then only the first letter shall be\ncapitalized.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-470963", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Miscellaneous", + "sections": [ + "Miscellaneous", + "Event Records - Data Structure Description", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-47204": { + "description": "The VNF **MUST** be capable of protecting the confidentiality and integrity\nof data at rest and in transit from unauthorized access and modification.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-47204", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Data Protection Requirements", + "sections": [ + "VNF Data Protection Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-47597": { + "description": "The xNF **MUST** carry data in motion only over secure connections.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-47597", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Security", + "sections": [ + "Security", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-47849": { + "description": "The xNF provider **MUST** support the metadata about\nlicenses (and their applicable entitlements) as defined in this\ndocument for xNF software, and any license keys required to authorize\nuse of the xNF software. This metadata will be used to facilitate\nonboarding the xNF into the ONAP environment and automating processes\nfor putting the licenses into use and managing the full lifecycle of\nthe licenses. The details of this license model are described in\nTables C1 to C8 in the Appendix.\n\nNote: License metadata support in ONAP is not currently available\nand planned for 1Q 2018.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-47849", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Licensing Requirements", + "sections": [ + "Licensing Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-47874": { + "description": "A VNF **MAY** have\n * Only an IPv4 OAM Management IP Address\n * Only an IPv6 OAM Management IP Address\n * Both a IPv4 and IPv6 OAM Management IP Addresses", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", + "full_title": "", + "hide_links": "", + "id": "R-47874", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OAM Management IP Addresses", + "sections": [ + "OAM Management IP Addresses", + "Predefined Output Parameters", + "ONAP Output Parameter Names" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-479386": { + "description": "The VNF **MUST NOT** display \"Welcome\" notices or messages that could\nbe misinterpreted as extending an invitation to unauthorized users.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-479386", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-48067": { + "description": "A VNF's Heat Orchestration Template's ``{vm-type}`` **MUST NOT** be a\nsubstring\nof ``{network-role}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", + "full_title": "", + "hide_links": "", + "id": "R-48067", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{vm-type}", + "sections": [ + "{vm-type}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-48080": { + "description": "The VNF **SHOULD** support an automated certificate management protocol\nsuch as CMPv2, Simple Certificate Enrollment Protocol (SCEP) or\nAutomated Certificate Management Environment (ACME).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-48080", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Cryptography Requirements", + "sections": [ + "VNF Cryptography Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-481670": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``flavor`` value **MUST** be be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-481670", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: flavor", + "sections": [ + "Property: flavor", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-48247": { + "description": "The xNF **MUST** support APPC ``ConfigRestore`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-48247", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Commands", + "sections": [ + "Configuration Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-48356": { + "description": "The VNF **MUST** fully exploit exception handling to the extent\nthat resources (e.g., threads and memory) are released when no longer\nneeded regardless of programming language.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-48356", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Resilient Error Handling", + "sections": [ + "Application Resilient Error Handling", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-48470": { + "description": "The VNF **MUST** support Real-time detection and\nnotification of security events.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-48470", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-48596": { + "description": "The xNF Package **MUST** include documentation describing\nthe characteristics for the xNF reliability and high availability.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-48596", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-48698": { + "description": "The xNF **MUST** utilize information from key value pairs that will be\nprovided by the Ansible Server as \"extra-vars\" during invocation to\nexecute the desired xNF action. The \"extra-vars\" attribute-value pairs\nare passed to the Ansible Server by an APPC/SDN-C as part of the\nRest API request. If the playbook requires files, they must also be\nsupplied using the methodology detailed in the Ansible Server API, unless\nthey are bundled with playbooks, example, generic templates. Any files\ncontaining instance specific info (attribute-value pairs), not obtainable\nfrom any ONAP inventory databases or other sources, referenced and used an\ninput by playbooks, shall be provisioned (and distributed) in advance of\nuse, e.g., xNF instantiation. Recommendation is to avoid these instance\nspecific, manually created in advance of instantiation, files.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-48698", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-48761": { + "description": "The VNF **MUST** support ONAP Controller's Snapshot command.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-48761", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Virtual Function - Container Recovery Requirements", + "sections": [ + "Virtual Function - Container Recovery Requirements", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-48880": { + "description": "If a VNF's Port is attached to an external network and the port's\nIP addresses are assigned by ONAP's SDN-Controller,\nthe ``OS::Neutron::Port`` Resource's\n\n* property ``fixed_ips`` map property ``ip_address`` **MUST** be used\n* property ``fixed_ips`` map property ``subnet``\n **MUST NOT** be used", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-48880", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Items to Note", + "sections": [ + "Items to Note", + "Introduction", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-48917": { + "description": "The VNF **MUST** monitor for and alert on (both sender and\nreceiver) errant, running longer than expected and missing file transfers,\nso as to minimize the impact due to file transfer errors.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-48917", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Monitoring & Dashboard", + "sections": [ + "Monitoring & Dashboard", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-48987": { + "description": "If the VNF's OAM Management IP Address is cloud assigned and\nand the OAM IP Address is required to be inventoried in ONAP A&AI,\nthen the parameter **MUST** be obtained by the\nresource ``OS::Neutron::Port``\nattribute ``ip_address``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", + "full_title": "", + "hide_links": "", + "id": "R-48987", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OAM Management IP Addresses", + "sections": [ + "OAM Management IP Addresses", + "Predefined Output Parameters", + "ONAP Output Parameter Names" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-49036": { + "description": "The xNF **SHOULD** conform its YANG model to RFC 7277,\n\"A YANG Data Model for IP Management\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-49036", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-49109": { + "description": "The VNF **MUST** support HTTP/S using TLS v1.2 or higher\nwith strong cryptographic ciphers.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-49109", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Cryptography Requirements", + "sections": [ + "VNF Cryptography Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-49145": { + "description": "The xNF **MUST** implement ``:confirmed-commit`` If\n``:candidate`` is supported.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-49145", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-49177": { + "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vf_module_name`` is passed into a\nNested YAML\nfile, the key/value pair name ``vf_module_name`` **MUST NOT** change.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-49177", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_name", + "sections": [ + "vf_module_name", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-49224": { + "description": "The VNF **MUST** provide unique traceability of a transaction\nthrough its life cycle to ensure quick and efficient troubleshooting.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-49224", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Monitoring & Dashboard", + "sections": [ + "Monitoring & Dashboard", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-49308": { + "description": "The VNF **SHOULD** test for adherence to the defined resiliency\nrating recommendation at each layer, during each delivery cycle with\ndelivered results, so that the resiliency rating is measured and the\ncode is adjusted to meet software resiliency requirements.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-49308", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Deployment Optimization", + "sections": [ + "Deployment Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-49396": { + "description": "The xNF **MUST** support each APPC/SDN-C xNF action\nby invocation of **one** playbook [#7.3.4]_. The playbook will be responsible\nfor executing all necessary tasks (as well as calling other playbooks)\nto complete the request.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-49396", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-49466": { + "description": "The xNF **MUST** support APPC/SDN-C ``UpgradeSoftware`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-49466", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", + "sections": [ + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-49751": { + "description": "The xNF **MUST** support Ansible playbooks that are compatible with\nAnsible version 2.6 or later.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-49751", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-49911": { + "description": "The xNF provider **MUST** assign a new point release to the updated\nplaybook set. The functionality of a new playbook set must be tested before\nit is deployed to the production.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-49911", + "impacts": "", + "introduced": "casablanca", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-50011": { + "description": "A VNF's Heat Orchestration Template's ``OS::Heat::ResourceGroup``\nproperty ``count`` **MUST** be enumerated in the VNF's\nHeat Orchestration Template's Environment File and **MUST** be\nassigned a value.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-50011", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Heat::ResourceGroup Property count", + "sections": [ + "OS::Heat::ResourceGroup Property count", + "Use of Heat ResourceGroup", + "Nested Heat Templates", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-50252": { + "description": "The xNF **MUST** write to a response file in JSON format that will be\nretrieved and made available by the Ansible Server if, as part of a xNF\naction (e.g., audit), a playbook is required to return any xNF\ninformation/response. The text files must be written in the main playbook\nhome directory, in JSON format. The JSON file must be created for the xNF\nwith the name '_results.txt'. All playbook output results, for\nall xNF VMs, to be provided as a response to the request, must be written\nto this response file.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-50252", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-50436": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``flavor`` parameter **MUST** be declared as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-50436", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: flavor", + "sections": [ + "Property: flavor", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-50468": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::VirtualMachineInterface`` that is attaching to an internal network\nResource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_int_{network-role}_vmi_{vmi_index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port (i.e. virtual machine interface) is attached to\n* ``{vmi_index}`` is the instance of the the vmi on the vm-type\n attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-50468", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::VirtualMachineInterface", + "sections": [ + "OS::ContrailV2::VirtualMachineInterface", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-50816": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property ``metadata`` **MAY**\ncontain the key/value pair ``vf_module_index``\nand the value **MUST** be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-50816", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_index", + "sections": [ + "vf_module_index", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-51347": { + "description": "The VNF package **MUST** be arranged as a CSAR archive as specified in\nTOSCA Simple Profile in YAML 1.2.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-51347", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Structure and Format", + "sections": [ + "VNF Package Structure and Format", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-51430": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``name`` parameter **MUST** be declared as either type ``string``\nor type ``comma_delimited_list``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-51430", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: Name", + "sections": [ + "Property: Name", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-51442": { + "description": "The xNF **SHOULD** use playbooks that are designed to\nautomatically 'rollback' to the original state in case of any errors\nfor actions that change state of the xNF (e.g., configure).\n\n**Note**: In case rollback at the playbook level is not supported or\npossible, the xNF provider shall provide alternative rollback\nmechanism (e.g., for a small xNF the rollback mechanism may rely\non workflow to terminate and re-instantiate VNF VMs and then re-run\nplaybook(s)). Backing up updated files is also recommended to support\nrollback when soft rollback is feasible.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-51442", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-52060": { + "description": "The VNF **MUST** provide the capability to configure encryption\nalgorithms or devices so that they comply with the laws of the jurisdiction\nin which there are plans to use data encryption.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-52060", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Cryptography Requirements", + "sections": [ + "VNF Cryptography Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-520802": { + "description": "The xNF provider **MUST** provide a YAML file formatted in adherence with\nthe :doc:`VES Event Registration specification<../../../../vnfsdk/module.git/files/VESEventRegistration_3_0>`\nthat defines the following information for each event produced by the VNF:\n\n* ``eventName``\n* Required fields\n* Optional fields\n* Any special handling to be performed for that event", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-520802", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Data Structure Specification of the Event Record", + "sections": [ + "Data Structure Specification of the Event Record", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF PROVIDER", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-52425": { + "description": "A VNF's port connected to an internal network **MUST**\nuse the port for the purpose of reaching VMs in the same VNF.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-52425", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Internal Networks", + "sections": [ + "Internal Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-52499": { + "description": "The VNF **MUST** meet their own resiliency goals and not rely\non the Network Cloud.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-52499", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "All Layer Redundancy", + "sections": [ + "All Layer Redundancy", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-52530": { + "description": "A VNF's Heat Orchestration Template's Nested YAML file\n**MUST** be in the same directory hierarchy as the VNF's Heat\nOrchestration Templates.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-52530", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat Template Requirements", + "sections": [ + "Nested Heat Template Requirements", + "Nested Heat Templates", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-52753": { + "description": "VNF's Heat Orchestration Template's Base Module's output parameter's\nname and type **MUST** match the VNF's Heat Orchestration Template's\nincremental Module's name and type unless the output parameter is of\ntype ``comma_delimited_list``, then the corresponding input parameter\n**MUST** be declared as type ``json``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-52753", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Base Module Output Parameters", + "sections": [ + "ONAP Base Module Output Parameters", + "Output Parameters", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-52870": { + "description": "The VNF **MUST** provide a method of metrics gathering\nand analysis to evaluate the resiliency of the software from both\na granular as well as a holistic standpoint. This includes, but is\nnot limited to thread utilization, errors, timeouts, and retries.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-52870", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Monitoring & Dashboard", + "sections": [ + "Monitoring & Dashboard", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-528866": { + "description": "The VNF **MUST** produce VES events that include the following mandatory\nfields in the common event header.\n\n * ``domain`` - the event domain enumeration\n * ``eventId`` - the event key unique to the event source\n * ``eventName`` - the unique event name\n * ``lastEpochMicrosec`` - the latest unix time (aka epoch time) associated\n with the event\n * ``priority`` - the processing priority enumeration\n * ``reportingEntityName`` - name of the entity reporting the event or\n detecting a problem in another xNF\n * ``sequence`` - the ordering of events communicated by an event source\n * ``sourceName`` - name of the entity experiencing the event issue, which\n may be detected and reported by a separate reporting entity\n * ``startEpochMicrosec`` - the earliest unix time (aka epoch time)\n associated with the event\n * ``version`` - the version of the event header\n * ``vesEventListenerVersion`` - Version of the VES event listener API spec\n that this event is compliant with", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-528866", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Common Event Header", + "sections": [ + "Common Event Header", + "Event Records - Data Structure Description", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-53015": { + "description": "The xNF **MUST** apply locking based on the sequence of\nNETCONF operations, with the first configuration operation locking\nout all others until completed.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-53015", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-53310": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``\nthat is configuring an IPv4 Address on a port attached to an external network\nResource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_{network-role}_vmi_{vmi_index}_IP_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the {vm-type}\n* ``{network-role}`` is the network-role of the network that the port is attached to\n* ``{vmi_index}`` is the instance of the the virtual machine interface\n (e.g., port) on the vm-type attached to the network of {network-role}\n* ``IP`` signifies that an IPv4 address is being configured\n* ``{index}`` is the index of the IPv4 address", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-53310", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::InstanceIp", + "sections": [ + "OS::ContrailV2::InstanceIp", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-53317": { + "description": "The xNF **MUST** conform its YANG model to RFC 6087,\n\"Guidelines for Authors and Reviewers of YANG Data Model Documents\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-53317", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-53433": { + "description": "A VNF's Cinder Volume Module **MUST** have a corresponding environment file", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-53433", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-53598": { + "description": "The xNF Package **MUST** include documentation to, when relevant,\nprovide a threshold crossing alert point for each KPI and describe the\nsignificance of the threshold crossing.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-53598", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-53952": { + "description": "A VNF's Heat Orchestration Template's Resource\n**MUST NOT** reference a HTTP-based resource definitions.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-53952", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "type", + "sections": [ + "type", + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-54171": { + "description": "When the VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``name`` parameter is defined as a ``string``,\nthe parameter name **MUST** follow the naming convention\n``{vm-type}_name_{index}``, where ``{index}`` is a numeric\nvalue that starts at\nzero and increments by one.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-54171", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: Name", + "sections": [ + "Property: Name", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-54190": { + "description": "The xNF **MUST** release locks to prevent permanent lock-outs\nwhen/if a session applying the lock is terminated (e.g., SSH session\nis terminated).", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-54190", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-54340": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``vf_module_index`` parameter **MUST**\nbe declared as ``vf_module_index`` and the parameter **MUST** be\ndefined as type: ``number``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-54340", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_index", + "sections": [ + "vf_module_index", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-54356": { + "description": "The below table includes the data types used by NFV node and is based\non TOSCA/YAML constructs specified in draft GS NFV-SOL 001. The node\ndata definitions/attributes used in VNFD **MUST** comply with the below\ntable.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-54356", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Data Types", + "sections": [ + "Data Types", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-54373": { + "description": "The xNF **MUST** have Python >= 2.6 on the endpoint VM(s)\nof a xNF on which an Ansible playbook will be executed.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-54373", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-54430": { + "description": "The VNF **MUST** use the NCSP's supported library and compute\nflavor that supports DPDK to optimize network efficiency if using DPDK. [#4.1.1]_", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-54430", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-54458": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::VirtualMachineInterface`` that is attaching to a sub-interface\nnetwork Resource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_subint_{network-role}_vmi_{vmi_index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port (i.e. virtual machine interface) is attached to\n* ``{vmi_index}`` is the instance of the the vmi on the vm-type\n attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-54458", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::VirtualMachineInterface", + "sections": [ + "OS::ContrailV2::VirtualMachineInterface", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-54517": { + "description": "When a VNF's Heat Orchestration Template's resource is associated with\na single ``{vm-type}``, the Resource ID **MUST** contain the\n``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-54517", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource IDs", + "sections": [ + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-54520": { + "description": "The VNF **MUST** log successful and unsuccessful authentication\nattempts, e.g., authentication associated with a transaction,\nauthentication to create a session, authentication to assume elevated\nprivilege.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-54520", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-54816": { + "description": "The VNF **MUST** support the storage of security audit logs for a\nconfigurable period of time.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-54816", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-54876": { + "description": "The below table describes the data types used for LCM configuration\nand is based on TOSCA constructs specified in draft GS NFV-SOL 001.\nThe LCM configuration data elements used in VNFD **MUST** comply\nwith the below table.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-54876", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Data Types", + "sections": [ + "Data Types", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-54930": { + "description": "The VNF **MUST** implement the following input validation controls:\nDo not permit input that contains content or characters inappropriate\nto the input expected by the design. Inappropriate input, such as\nSQL expressions, may cause the system to execute undesirable and\nunauthorized transactions against the database or allow other\ninappropriate access to the internal network (injection attacks).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-54930", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF API Security Requirements", + "sections": [ + "VNF API Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-55218": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property\n``metadata`` key/value pair ``vnf_id`` parameter ``vnf_id`` **MUST NOT**\nhave parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-55218", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vnf_id", + "sections": [ + "vnf_id", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-55306": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vf_module_index`` **MUST NOT**\nbe used in a ``OS::Cinder::Volume`` resource and **MUST NOT** be\nused in VNF's Volume template;\nit is not supported.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-55306", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_index", + "sections": [ + "vf_module_index", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-55345": { + "description": "The VNF **SHOULD** use techniques such as \"lazy loading\" when\ninitialization includes loading catalogues and/or lists which can grow\nover time, so that the VNF startup time does not grow at a rate\nproportional to that of the list.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-55345", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "System Resource Optimization", + "sections": [ + "System Resource Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-55478": { + "description": "The VNF **MUST** log logoffs.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-55478", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-55802": { + "description": "The VNF Package **MUST** include VM requirements via a Heat\ntemplate that provides the necessary data for scaling/growth VM\nspecifications.\n\nNote: Must comply with the *Heat requirements in 5.b*.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-55802", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Compute, Network, and Storage Requirements", + "sections": [ + "Compute, Network, and Storage Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-56183": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata``key/value pair ``environment_context``\nparameter ``environment_context`` **MUST NOT**\nhave parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-56183", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "environment_context", + "sections": [ + "environment_context", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-56218": { + "description": "The VNF **MUST** support ONAP Controller's Migrate command that\nmoves container (VM) from a live Physical Server / Compute Node to\nanother live Physical Server / Compute Node.\n\n Note: Container migrations MUST be transparent to the VNF and no more intrusive than a stop,\n followed by some down time for the migration to be performed from one Compute Node / Physical\n Server to another, followed by a start of the same VM with same configuration on the new\n Compute Node / Physical Server.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-56218", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Virtual Function - Container Recovery Requirements", + "sections": [ + "Virtual Function - Container Recovery Requirements", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-56287": { + "description": "If the VNF's OAM Management IP Address is assigned by ONAP SDN-C and\nassigned in the VNF's Heat Orchestration Template's via a heat resource\n``OS::Neutron::Port`` property ``fixed_ips`` map property\n``ip_adress`` parameter (e.g., ``{vm-type}_{network-role}_ip_{index}``,\n``{vm-type}_{network-role}_v6_ip_{index}``)\nand the OAM IP Address is required to be inventoried in ONAP A&AI,\nthen the parameter **MUST** be echoed in an output statement.\n\n.. code-block:: yaml\n\n outputs:\n oam_management_v4_address:\n value: {get_param: {vm-type}_{network-role}_ip_{index} }\n oam_management_v6_address:\n value: {get_param: {vm-type}_{network-role}_v6_ip_{index} }", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", + "full_title": "", + "hide_links": "", + "id": "R-56287", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OAM Management IP Addresses", + "sections": [ + "OAM Management IP Addresses", + "Predefined Output Parameters", + "ONAP Output Parameter Names" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-56385": { + "description": "The xNF **MUST** support APPC ``Audit`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-56385", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Commands", + "sections": [ + "Configuration Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-56438": { + "description": "A VNF's Heat Orchestration Template's Nested YAML file extension **MUST**\nbe in the lower case format ``.yaml`` or ``.yml``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-56438", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Heat Orchestration Template Filenames", + "sections": [ + "ONAP Heat Orchestration Template Filenames", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-56718": { + "description": "The PNF Vendor **MAY** provide software version(s) to be supported by PNF\nfor SDC Design Studio PNF Model. This is set in the PNF Model property\nsoftware_versions.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-56718", + "impacts": "", + "introduced": "casablanca", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-56721": { + "description": "A VNF's Incremental Module **MAY** utilize nested heat.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-56721", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat Orchestration Templates Overview", + "sections": [ + "Nested Heat Orchestration Templates Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-56793": { + "description": "The VNF **MUST** test for adherence to the defined performance\nbudgets at each layer, during each delivery cycle with delivered\nresults, so that the performance budget is measured and the code\nis adjusted to meet performance budget.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-56793", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Deployment Optimization", + "sections": [ + "Deployment Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-56815": { + "description": "The xNF Package **MUST** include documentation describing\nsupported xNF scaling capabilities and capacity limits (e.g., number\nof users, bandwidth, throughput, concurrent calls).", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-56815", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-56904": { + "description": "The VNF **MUST** interoperate with the ONAP (SDN) Controller so that\nit can dynamically modify the firewall rules, ACL rules, QoS rules, virtual\nrouting and forwarding rules.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-56904", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-56920": { + "description": "The VNF **MUST** protect all security audit logs (including\nAPI, OS and application-generated logs), security audit software, data,\nand associated documentation from modification, or unauthorized viewing,\nby standard OS access control mechanisms, by sending to a remote system,\nor by encryption.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-56920", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-570134": { + "description": "The events produced by the xNF **MUST** must be compliant with the common\nevent format defined in the\n:doc:`VES Event Listener<../../../../vnfsdk/model.git/docs/files/VESEventListener_7_0_1>`\nspecification.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-570134", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Data Structure Specification of the Event Record", + "sections": [ + "Data Structure Specification of the Event Record", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-57282": { + "description": "Each VNF's Heat Orchestration Template's ``{vm-type}`` **MUST**\nhave a unique parameter name for the ``OS::Nova::Server`` property\n``image`` even if more than one ``{vm-type}`` shares the same image.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-57282", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: image", + "sections": [ + "Property: image", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-57424": { + "description": "A VNF's port connected to an external network **MUST**\nuse the port for the purpose of reaching\nVMs in another VNF and/or an external gateway and/or external router.\nA VNF's port connected to an external network **MAY**\nuse the port for the purpose of reaching VMs in the same VNF.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-57424", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "External Networks", + "sections": [ + "External Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-57617": { + "description": "The VNF **MUST** include the field \"success/failure\" in the\nSecurity alarms (where applicable and technically feasible).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-57617", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-57855": { + "description": "The VNF **MUST** support hitless staggered/rolling deployments\nbetween its redundant instances to allow \"soak-time/burn in/slow roll\"\nwhich can enable the support of low traffic loads to validate the\ndeployment prior to supporting full traffic loads.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-57855", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Deployment Optimization", + "sections": [ + "Deployment Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-579051": { + "description": "The PNF **MAY** support a HTTP connection to the DCAE VES Event Listener.\n\nNote: HTTP is allowed but not recommended.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-579051", + "impacts": "", + "introduced": "casablanca", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-581188": { + "description": "A failed authentication attempt **MUST NOT** identify the reason for the\nfailure to the user, only that the authentication failed.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-581188", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-58301": { + "description": "The xNF **SHOULD NOT** use playbooks that make requests to\nCloud resources e.g. Openstack (nova, neutron, glance, heat, etc.);\ntherefore, there is no use for Cloud specific variables like Openstack\nUUIDs in Ansible Playbook related artifacts.\n\n**Rationale**: Flows that require interactions with Cloud services e.g.\nOpenstack shall rely on workflows run by an Orchestrator\n(Change Management) or other capability (such as a control loop or\nOperations GUI) outside Ansible Server which can be executed by a\nAPPC/SDN-C. There are policies, as part of Control Loop\nmodels, that send remediation action requests to an APPC/SDN-C; these\nare triggered as a response to an event or correlated events published\nto Event Bus.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-58301", + "impacts": "", + "introduced": "", + "keyword": "SHOULD NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-58358": { + "description": "The xNF **MUST** implement the ``:with-defaults`` capability\n[RFC6243].", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-58358", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-58370": { + "description": "The VNF **SHOULD** operate with anti-virus software which produces alarms\nevery time a virus is detected.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-58370", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-58421": { + "description": "The VNF **SHOULD** be decomposed into granular re-usable VNFCs.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-58421", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-58424": { + "description": "A VNF's Heat Orchestration Template's use of ``{network-role}``\nin all Resource property parameter names **MUST** be the same case.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", + "full_title": "", + "hide_links": "", + "id": "R-58424", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{network-role}", + "sections": [ + "{network-role}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-58670": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``image`` parameter name **MUST** follow the naming convention\n``{vm-type}_image_name``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-58670", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: image", + "sections": [ + "Property: image", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-58775": { + "description": "The xNF provider **MUST** provide software components that\ncan be packaged with/near the xNF, if needed, to simulate any functions\nor systems that connect to the xNF system under test. This component is\nnecessary only if the existing testing environment does not have the\nnecessary simulators.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-58775", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Testing", + "sections": [ + "Testing", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-58964": { + "description": "The VNF **MUST** provide the capability to restrict read\nand write access to data handled by the VNF.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-58964", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Data Protection Requirements", + "sections": [ + "VNF Data Protection Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-59391": { + "description": "The VNF **MUST NOT** allow the assumption of the permissions of another\naccount to mask individual accountability. For example, use SUDO when a\nuser requires elevated permissions such as root or admin.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-59391", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-59434": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Subnet``\nResource ID **SHOULD** use the naming convention\n\n* ``int_{network-role}_subnet_{index}``\n\nwhere\n\n* ``{network-role}`` is the network-role\n* ``{index}`` is the ``{index}`` of the subnet of the network", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-59434", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Neutron::Subnet", + "sections": [ + "OS::Neutron::Subnet", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-59482": { + "description": "A VNF's Heat Orchestration Template **MUST NOT** be VNF instance\nspecific or cloud site specific.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-59482", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Scope of a Heat Orchestration Template", + "sections": [ + "Scope of a Heat Orchestration Template", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-59568": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``availability_zone`` parameter **MUST NOT** be enumerated in the Heat\nOrchestration\nTemplate's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-59568", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: availability_zone", + "sections": [ + "Property: availability_zone", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-59610": { + "description": "The xNF **MUST** implement the data model discovery and\ndownload as defined in [RFC6022].", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-59610", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-59930": { + "description": "A VNF's Heat Orchestration template's Environment File's\n**MAY** contain the ``parameter_defaults:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-59930", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Environment File Format", + "sections": [ + "Environment File Format", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-60011": { + "description": "A VNF's Heat Orchestration Template **MUST** have no more than\ntwo levels of nesting.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-60011", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat Template Requirements", + "sections": [ + "Nested Heat Template Requirements", + "Nested Heat Templates", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-60106": { + "description": "The xNF **MUST** implement the protocol operation:\n``get(filter)`` - Retrieve (a filtered subset of) the running\nconfiguration and device state information. This should include\nthe list of xNF supported schemas.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-60106", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-60656": { + "description": "The xNF **MUST** support sub tree filtering.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-60656", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-61001": { + "description": "A shared Heat Orchestration Template resource is a resource that **MUST**\nbe defined in the base module and will be referenced by one or\nmore resources in one or more incremental modules.\n\nThe UUID of the shared resource (created in the base module) **MUST** be\nexposed by declaring a parameter in the\n``outputs`` section of the base module.\n\nFor ECOMP to provided the UUID value of the shared resource to the\nincremental module, the parameter name defined in the ``outputs``\nsection of the base module **MUST** be defined as a parameter\nin the ``parameters`` section of the incremental module.\n\nECOMP will capture the output parameter name and value in the base module\nand provide the value to the corresponding parameter(s) in the\nincremental module(s).", + "docname": "Chapter5/Heat/ONAP Heat VNF Modularity", + "full_title": "", + "hide_links": "", + "id": "R-61001", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Heat VNF Modularity", + "sections": [ + "ONAP Heat VNF Modularity" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-61354": { + "description": "The VNF **MUST** provide a mechanism (e.g., access control list) to\npermit and/or restrict access to services on the VNF by source,\ndestination, protocol, and/or port.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-61354", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-62170": { + "description": "The xNF **MUST** over-ride any default values for\nconfigurable parameters that can be set by ONAP in the roles,\ncookbooks and recipes.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-62170", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Roles/Requirements", + "sections": [ + "Chef Roles/Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-62187": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``\nthat is configuring an IPv4 Address on a port attached to an internal network\nResource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_int_{network-role}_vmi_{vmi_index}_IP_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{vmi_index}`` is the instance of the the virtual machine interface\n (e.g., port) on the vm-type\n attached to the network of ``{network-role}``\n* ``IP`` signifies that an IPv4 address is being configured\n* ``{index}`` is the index of the IPv4 address", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-62187", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::InstanceIp", + "sections": [ + "OS::ContrailV2::InstanceIp", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-62300": { + "description": "If a VNF has two or more ports that require a Virtual IP Address (VIP),\na VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``allowed_address_pairs``\nmap property ``ip_address`` parameter\n**MUST** be used.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-62300", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: allowed_address_pairs, Map Property: ip_address", + "sections": [ + "Property: allowed_address_pairs, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-62428": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vnf_name`` parameter **MUST**\nbe declared as ``vnf_name`` and the parameter **MUST** be defined as\ntype: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-62428", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vnf_name", + "sections": [ + "vnf_name", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-62468": { + "description": "The xNF **MUST** allow all configuration data to be\nedited through a NETCONF operation. Proprietary\nNETCONF RPCs that make configuration changes are not sufficient.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-62468", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-62498": { + "description": "The VNF **MUST** support encrypted access protocols, e.g., TLS,\nSSH, SFTP.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-62498", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-62590": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nproperty ``fixed_ips``\nmap property ``ip_address``\nparameter associated with an external network, i.e.,\n\n * ``{vm-type}_{network-role}_ip_{index}``\n * ``{vm-type}_{network-role}_v6_ip_{index}``\n * ``{vm-type}_{network-role}_ips``\n * ``{vm-type}_{network-role}_v6_ips``\n\n\n**MUST NOT** be enumerated in the Heat Orchestration\nTemplate's Environment File. ONAP provides the IP address\nassignments at orchestration time.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-62590", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-62802": { + "description": "When the VNF's Heat Orchestration Template's\nresource ``OS::Neutron::Port`` is attaching\nto an external network (per the ONAP definition, see\nRequirement R-57424),\nand an IPv4 address is being cloud assigned by OpenStack's DHCP Service\nand the external network IPv4 subnet is to be specified\nusing the property ``fixed_ips``\nmap property ``subnet``, the parameter\n**MUST** follow the naming convention\n\n * ``{network-role}_subnet_id``\n\nwhere\n\n * ``{network-role}`` is the network role of the network.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-62802", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", + "sections": [ + "Property: fixed_ips, Map Property: subnet", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-629534": { + "description": "The VNF **MUST** be capable of automatically synchronizing the system clock\ndaily with the Operator's trusted time source, to assure accurate time\nreporting in log files. It is recommended that Coordinated Universal Time\n(UTC) be used where possible, so as to eliminate ambiguity owing to daylight\nsavings time.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-629534", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-62954": { + "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server Resource``\n``metadata`` map value parameter ``environment_context`` is passed into a\nNested YAML\nfile, the parameter name ``environment_context`` **MUST NOT** change.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-62954", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "environment_context", + "sections": [ + "environment_context", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-62983": { + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424), the\n``network`` parameter name **MUST**\n\n * follow the naming convention ``{network-role}_net_id`` if the Neutron\n network UUID value is used to reference the network\n * follow the naming convention ``{network-role}_net_name`` if the\n OpenStack network name is used to reference the network.\n\nwhere ``{network-role}`` is the network-role of the external network\nand a ``get_param`` **MUST** be used as the intrinsic function.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-62983", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: network", + "sections": [ + "Property: network", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-63137": { + "description": "VNF's Heat Orchestration Template's Resource **MAY** declare the\nattribute ``update_policy:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-63137", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "update_policy", + "sections": [ + "update_policy", + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-63229": { + "description": "The xNF **MAY** use another option which is expected to include REST\nfor synchronous data, using RESTCONF (e.g., for xNF state polling).", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-63229", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Addressing and Delivery Protocol", + "sections": [ + "Addressing and Delivery Protocol", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-63330": { + "description": "The VNF **MUST** detect when its security audit log storage\nmedium is approaching capacity (configurable) and issue an alarm.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-63330", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-63473": { + "description": "The VNF **MUST** automatically advertise newly scaled\ncomponents so there is no manual intervention required.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-63473", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "System Resource Optimization", + "sections": [ + "System Resource Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-638216": { + "description": "(Error Case) - The PNF **MUST** support a configurable timer to stop the\nperiodicity sending of the pnfRegistration VES event. If this timer expires\nduring a Service Configuration exchange between the PNF and ONAP, it\nMAY log a time-out error and notify an operator.\n\nNote: It is expected that each vendor will enforce and define a PNF\nservice configuration timeout period. This is because the PNF cannot\nwait indefinitely as there may also be a technician on-site trying to\ncomplete installation & commissioning. The management of the VES event\nexchange is also a requirement on the PNF to be developed by the PNF\nvendor.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-638216", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-638682": { + "description": "The VNF **MUST** log any security event required by the VNF Requirements to\nSyslog using LOG_AUTHPRIV for any event that would contain sensitive\ninformation and LOG_AUTH for all other relevant events.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-638682", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-63935": { + "description": "The xNF **MUST** release locks to prevent permanent lock-outs\nwhen a user configured timer has expired forcing the NETCONF SSH Session\ntermination (i.e., product must expose a configuration knob for a user\nsetting of a lock expiration timer).", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-63935", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-63953": { + "description": "The xNF **MUST** have the echo command return a zero value\notherwise the validation has failed.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-63953", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-63956": { + "description": "If the VNF's ports connected to a unique external network\nand the port's IP addresses are ONAP SDN-C assigned IP Addresses,\nthe IPv4 Addresses **MAY** be from different subnets and the IPv6\nAddresses **MAY** be from different subnets.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-63956", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Items to Note", + "sections": [ + "Items to Note", + "Introduction", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-64197": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Heat::ResourceGroup``\nResource ID that creates sub-interfaces **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_subint_{network-role}_port_{port-index}_subinterfaces``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the networks\n that the sub-interfaces attach to\n* ``{port-index}`` is the instance of the the port on the vm-type\n attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-64197", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Heat::ResourceGroup", + "sections": [ + "OS::Heat::ResourceGroup", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-64445": { + "description": "The VNF **MUST** support the ability of a requestor of the\nservice to determine the version (and therefore capabilities) of the\nservice so that Network Cloud Service Provider can understand the\ncapabilities of the service.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-64445", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Deployment Optimization", + "sections": [ + "Deployment Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-64713": { + "description": "The VNF **SHOULD** support a software promotion methodology\nfrom dev/test -> pre-prod -> production in software, development &\ntesting and operations.", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-64713", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-64768": { + "description": "The VNF **MUST** limit the size of application data packets\nto no larger than 9000 bytes for SDN network-based tunneling when\nguest data packets are transported between tunnel endpoints that\nsupport guest logical networks.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-64768", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-65134": { + "description": "The VNF **SHOULD** maintain state in a geographically\nredundant datastore that may, in fact, be its own VNFC.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-65134", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-65486": { + "description": "The VNFD **MUST** comply with ETSI GS NFV-SOL001 document endorsing\nthe above mentioned NFV Profile and maintaining the gaps with the\nrequirements specified in ETSI GS NFV-IFA011 standard.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-65486", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "General", + "sections": [ + "General", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-65515": { + "description": "The VNF **MUST** provide a mechanism and tool to start VNF\ncontainers (VMs) without impacting service or service quality assuming\nanother VNF in same or other geographical location is processing service\nrequests.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-65515", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Resilient Error Handling", + "sections": [ + "Application Resilient Error Handling", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-65516": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Nova::Keypair`` applies to\nall Virtual Machines in the the VNF, the Resource ID **SHOULD** use the naming\nconvention\n\n* ``{vnf-type}_keypair``\n\nwhere\n\n* ``{vnf-type}`` describes the VNF", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-65516", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Nova::Keypair", + "sections": [ + "OS::Nova::Keypair", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-65618": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::ServiceHealthCheck`` Resource ID **MAY** use the naming convention\n\n* ``{vm-type}_RSHC_{LEFT|RIGHT}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``RSHC`` signifies that it is the Resource Service Health Check\n* ``LEFT`` is used if the Service Health Check is on the left interface\n* ``RIGHT`` is used if the Service Health Check is on the right interface", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-65618", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::ServiceHealthCheck", + "sections": [ + "OS::ContrailV2::ServiceHealthCheck", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-65641": { + "description": "The xNF **MUST** support APPC/SDN-C ``UpgradeBackOut`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-65641", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", + "sections": [ + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-65755": { + "description": "The xNF **SHOULD** support callback URLs to return information\nto ONAP upon completion of the chef-client run for any chef-client run\nassociated with a xNF action.\n\n- As part of the push job, ONAP will provide two parameters in the\n environment of the push job JSON object:\n\n - \"RequestId\" a unique Id to be used to identify the request,\n - \"CallbackUrl\", the URL to post response back.\n\n- If the CallbackUrl field is empty or missing in the push job, then\n the chef-client run need not post the results back via callback.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-65755", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Roles/Requirements", + "sections": [ + "Chef Roles/Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-659655": { + "description": "The xNF **SHOULD** leverage the JSON-driven model, as depicted in Figure 2,\nfor data delivery unless there are specific performance or operational\nconcerns agreed upon by the Service Provider that would warrant using an\nalternate model.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-659655", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "xNF Telemetry using VES/JSON Model", + "sections": [ + "xNF Telemetry using VES/JSON Model", + "Transports and Protocols Supporting Resource Interfaces", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-66070": { + "description": "The xNF Package **MUST** include xNF Identification Data to\nuniquely identify the resource for a given xNF provider. The identification\ndata must include: an identifier for the xNF, the name of the xNF as was\ngiven by the xNF provider, xNF description, xNF provider, and version.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-66070", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Description", + "sections": [ + "Resource Description", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-663631": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``name`` value **MUST** be be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-663631", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: Name", + "sections": [ + "Property: Name", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-66729": { + "description": "A VNF's Heat Orchestration Template's Resource that is associated with a\nunique Virtual Machine type **MUST** include ``{vm-type}`` as part of the\nresource ID.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", + "full_title": "", + "hide_links": "", + "id": "R-66729", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{vm-type}", + "sections": [ + "{vm-type}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-66793": { + "description": "The xNF **MUST** guarantee the xNF configuration integrity\nfor all simultaneous configuration operations (e.g., if a change is\nattempted to the BUM filter rate from multiple interfaces on the same\nEVC, then they need to be sequenced in the xNF without locking either\nconfiguration method out).", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-66793", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-67114": { + "description": "The xNF **MUST** be installed with Chef-Client >= 12.0 and Chef\npush jobs client >= 2.0.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-67114", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Client Requirements", + "sections": [ + "Chef Client Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-67124": { + "description": "The xNF **MUST** provide Ansible playbooks that are designed to run using\nan inventory hosts file in a supported format; with group names matching\nVNFC 3-character string adding \"vip\" for groups with virtual IP addresses\nshared by multiple VMs as seen in examples provided in Appendix.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-67124", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-67231": { + "description": "A VNF's Heat Orchestration template's Environment File's\n**MUST NOT** contain the ``resource_registry:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-67231", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Environment File Format", + "sections": [ + "Environment File Format", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-67386": { + "description": "A VNF's Heat Orchestration Template's Resource **MAY** declare the\nattribute ``metadata``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-67386", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "metadata", + "sections": [ + "metadata", + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-67597": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vm_role`` parameter ``vm_role``\n**MUST NOT** have parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-67597", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vm_role", + "sections": [ + "vm_role", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-67709": { + "description": "The VNF **MUST** be designed, built and packaged to enable\ndeployment across multiple fault zones (e.g., VNFCs deployed in\ndifferent servers, racks, OpenStack regions, geographies) so that\nin the event of a planned/unplanned downtime of a fault zone, the\noverall operation/throughput of the VNF is maintained.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-67709", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "All Layer Redundancy", + "sections": [ + "All Layer Redundancy", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-67793": { + "description": "When a VNF's Heat Orchestration Template's resource is associated\nwith more than one ``{vm-type}`` and/or more than one internal and/or\nexternal network, the Resource ID **MUST** not contain the ``{vm-type}``\nand/or ``{network-role}``/``int_{network-role}``. It also should contain the\nterm ``shared`` and/or contain text that identifies the VNF.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-67793", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource IDs", + "sections": [ + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-67895": { + "description": "The VNFD provided by VNF vendor may use the below described TOSCA\ncapabilities. An on-boarding entity (ONAP SDC) **MUST** support them.\n\n **tosca.capabilities.nfv.VirtualBindable**\n\n A node type that includes the VirtualBindable capability indicates\n that it can be pointed by **tosca.relationships.nfv.VirtualBindsTo**\n relationship type.\n\n **tosca.capabilities.nfv.VirtualLinkable**\n\n A node type that includes the VirtualLinkable capability indicates\n that it can be pointed by **tosca.relationships.nfv.VirtualLinksTo**\n relationship.\n\n **tosca.capabilities.nfv.ExtVirtualLinkable**\n\n A node type that includes the ExtVirtualLinkable capability\n indicates that it can be pointed by\n **tosca.relationships.nfv.VirtualLinksTo** relationship.\n\n **Note**: This capability type is used in Casablanca how it does\n not exist in the last SOL001 draft\n\n **tosca.capabilities.nfv.VirtualCompute** and\n **tosca.capabilities.nfv.VirtualStorage** includes flavours of VDU", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-67895", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Capability Types", + "sections": [ + "Capability Types", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-67918": { + "description": "The VNF **MUST** handle replication race conditions both locally\nand geo-located in the event of a data base instance failure to maintain\nservice continuity.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-67918", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Resilient Error Handling", + "sections": [ + "Application Resilient Error Handling", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-68023": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` **SHOULD**\ncontain the key/value pair ``vf_module_name`` and the value **MUST**\nbe obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-68023", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_name", + "sections": [ + "vf_module_name", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-68122": { + "description": "A VNF's incremental module **MAY** be deployed more than once,\neither during initial VNF deployment and/or scale out.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-68122", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-68165": { + "description": "The xNF **MUST** encrypt any content containing Sensitive Personal\nInformation (SPI) or certain proprietary data, in addition to applying the\nregular procedures for securing access and delivery.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-68165", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Security", + "sections": [ + "Security", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-68198": { + "description": "A VNF's Heat Orchestration template's Environment File's\n``parameters:`` section **MAY** (or **MAY NOT**) enumerate parameters.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-68198", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Environment File Format", + "sections": [ + "Environment File Format", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-68200": { + "description": "The xNF **MUST** support the ``:url`` value to specify\nprotocol operation source and target parameters. The capability URI\nfor this feature will indicate which schemes (e.g., file, https, sftp)\nthat the server supports within a particular URL value. The 'file'\nscheme allows for editable local configuration databases. The other\nschemes allow for remote storage of configuration databases.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-68200", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-68520": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nthat is creating a *Reserve Port* with an IPv6 address Resource ID **MUST**\nuse the naming convention\n\n* ``reserve_port_{vm-type}_{network-role}_floating_v6_ip_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{index}`` is the instance of the IPv6 *Reserve Port*\n for the vm-type attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-68520", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Neutron::Port", + "sections": [ + "OS::Neutron::Port", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-686466": { + "description": "The PNF **MUST** support sending a pnfRegistration VES event.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-686466", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-68936": { + "description": "When a VNF creates an internal network, a network role, referred to as\nthe ``{network-role}`` **MUST** be assigned to the internal network\nfor use in the VNF's Heat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-68936", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Internal Networks", + "sections": [ + "Internal Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-68990": { + "description": "The xNF **MUST** support the ``:startup`` capability. It\nwill allow the running configuration to be copied to this special\ndatabase. It can also be locked and unlocked.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-68990", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-69014": { + "description": "When a VNF connects to an external network, a network role, referred to\nas the ``{network-role}`` **MUST** be assigned to the external network for\nuse in the VNF's Heat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-69014", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "External Networks", + "sections": [ + "External Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-69431": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``flavor`` parameter **MUST** be enumerated in the Heat Orchestration\nTemplate's Environment File and a value **MUST** be assigned.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-69431", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: flavor", + "sections": [ + "Property: flavor", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-69565": { + "description": "The xNF Package **MUST** include documentation describing xNF\nManagement APIs, which must include information and tools for ONAP to\ndeploy and configure (initially and ongoing) the xNF application(s)\n(e.g., NETCONF APIs) which includes a description of configurable\nparameters for the xNF and whether the parameters can be configured\nafter xNF instantiation.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-69565", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Description", + "sections": [ + "Resource Description", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-69588": { + "description": "When a VNF's Heat Orchestration Template's Virtual Machine\n(i.e., ``OS::Nova::Server`` Resource) boots from Cinder Volume, the\n``OS::Nova::Server`` resource property\n``block_device_mapping`` or ``block_device_mapping_v2``\n**MUST** be used.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-69588", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Boot Options", + "sections": [ + "Boot Options", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-69610": { + "description": "The VNF **MUST** provide the capability of using X.509 certificates\nissued by an external Certificate Authority.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-69610", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Data Protection Requirements", + "sections": [ + "VNF Data Protection Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-69634": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet`` parameter\n``int_{network-role}_subnet_id``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-69634", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", + "sections": [ + "Property: fixed_ips, Map Property: subnet", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-69649": { + "description": "The VNF Provider **MUST** have patches available for vulnerabilities\nin the VNF as soon as possible. Patching shall be controlled via change\ncontrol process with vulnerabilities disclosed along with\nmitigation recommendations.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-69649", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-69663": { + "description": "A VNF **MAY** be composed from one or more Heat Orchestration\nTemplates, each of which represents a subset of the overall VNF.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-69663", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-697654": { + "description": "The xNF **MAY** leverage the Google Protocol Buffers (GPB) delivery model\ndepicted in Figure 3 to support real-time performance management (PM) data.\nIn this model the VES events are streamed as binary-encoded GBPs over via\nTCP sockets.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-697654", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "xNF Telemetry using Google Protocol Buffers", + "sections": [ + "xNF Telemetry using Google Protocol Buffers", + "Transports and Protocols Supporting Resource Interfaces", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-69874": { + "description": "A VNF's ``{network-role}`` assigned to an internal network **MUST**\nbe different than the ``{network-role}`` assigned to the VNF's external\nnetworks.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-69874", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Internal Networks", + "sections": [ + "Internal Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-69877": { + "description": "The xNF Package **MUST** include documentation for each KPI,\nidentify the suggested actions that need to be performed when a\nthreshold crossing alert event is recorded.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-69877", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-70013": { + "description": "The VNF **MUST NOT** require any manual steps to get it ready for\nservice after a container rebuild.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-70013", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Resilient Error Handling", + "sections": [ + "Application Resilient Error Handling", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-70112": { + "description": "A VNF's Heat Orchestration Template **MUST** reference a Nested YAML\nfile by name. The use of ``resource_registry`` in the VNF's Heat\nOrchestration Templates Environment File **MUST NOT** be used.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-70112", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat Template Requirements", + "sections": [ + "Nested Heat Template Requirements", + "Nested Heat Templates", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-70266": { + "description": "The xNF **MUST** respond to an ONAP request to deliver the\ncurrent data for any of the record types defined in\n`Event Records - Data Structure Description`_ by returning the requested\nrecord, populated with the current field values. (Currently the defined\nrecord types include fault fields, mobile flow fields, measurements for\nxNF scaling fields, and syslog fields. Other record types will be added\nin the future as they become standardized and are made available.)", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-70266", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Asynchronous and Synchronous Data Delivery", + "sections": [ + "Asynchronous and Synchronous Data Delivery", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-70276": { + "description": "A VNF HEAT's Orchestration Nested Template's YAML file name **MUST NOT**\nbe in the format ``{vm-type}.y[a]ml`` where ``{vm-type}`` is defined\nin the Heat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-70276", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat file", + "sections": [ + "Nested Heat file", + "ONAP Heat Orchestration Template Filenames", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-703767": { + "description": "The VNF **MUST** have the capability to securely transmit the security logs\nand security events to a remote system before they are purged from the\nsystem.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-703767", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-70496": { + "description": "The xNF **MUST** implement the protocol operation:\n``commit(confirmed, confirm-timeout)`` - Commit candidate\nconfiguration data store to the running configuration.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-70496", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-70757": { + "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vm_role`` is passed into a Nested\nYAML\nfile, the key/value pair name ``vm_role`` **MUST NOT** change.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-70757", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vm_role", + "sections": [ + "vm_role", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-707977": { + "description": "When the PNF receives a Service configuration from ONAP, the PNF **MUST**\ncease sending the pnfRegistration VES Event.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-707977", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-70933": { + "description": "The VNF **MUST** provide the ability to migrate to newer\nversions of cryptographic algorithms and protocols with minimal impact.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-70933", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Data Protection Requirements", + "sections": [ + "VNF Data Protection Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-70964": { + "description": "If a VNF's Port is attached to an internal network and the port's\nIP addresses are statically assigned by the VNF's Heat Orchestration\\\nTemplate (i.e., enumerated in the Heat Orchestration Template's\nenvironment file), the ``OS::Neutron::Port`` Resource's\n\n* property ``fixed_ips`` map property ``ip_address`` **MUST** be used\n* property ``fixed_ips`` map property ``subnet``\n **MUST NOT** be used", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-70964", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Items to Note", + "sections": [ + "Items to Note", + "Introduction", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-71152": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``image`` parameter **MUST** be declared as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-71152", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: image", + "sections": [ + "Property: image", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-71493": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` **MUST**\ncontain the key/value pair ``vf_module_id``\nand the value MUST be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-71493", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_id", + "sections": [ + "vf_module_id", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-71577": { + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv6 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a string,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_v6_ip_{index}``\n\n where\n\n * ``{vm-type}`` is the {vm-type} associated with the\n OS::Nova::Server\n * ``{network-role}`` is the {network-role} of the external\n network\n * the value for ``{index}`` must start at zero (0) and increment by one", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-71577", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-71699": { + "description": "A VNF's Heat Orchestration Template's Resource\n**MUST NOT** reference a HTTP-based Nested YAML file.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-71699", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "type", + "sections": [ + "type", + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-71787": { + "description": "Each architectural layer of the VNF (eg. operating system, network,\napplication) **MUST** support access restriction independently of all\nother layers so that Segregation of Duties can be implemented.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-71787", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-71842": { + "description": "The VNF **MUST** include the field \"service or program used for\naccess\" in the Security alarms (where applicable and technically feasible).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-71842", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-72184": { + "description": "The xNF **MUST** have routable FQDNs for all the endpoints\n(VMs) of a xNF that contain chef-clients which are used to register\nwith the Chef Server. As part of invoking xNF actions, ONAP will\ntrigger push jobs against FQDNs of endpoints for a xNF, if required.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-72184", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Client Requirements", + "sections": [ + "Chef Client Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-72483": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource property\n``metadata`` **MUST** contain the key/value pair ``vnf_name`` and the\nvalue **MUST** be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-72483", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vnf_name", + "sections": [ + "vnf_name", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-72871": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource property\n``metadata`` key/value pair ``vf_module_id`` parameter ``vf_module_id``\n**MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-72871", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_id", + "sections": [ + "vf_module_id", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-73067": { + "description": "The VNF **MUST** use NIST and industry standard cryptographic\nalgorithms and standard modes of operations when implementing\ncryptography.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-73067", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Data Protection Requirements", + "sections": [ + "VNF Data Protection Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-73213": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup`` that\nis applicable to more than one ``{vm-type}`` and one internal network Resource ID\n**SHOULD** use the naming convention\n\n* ``int_{network-role}_security_group``\n\nwhere\n\n* ``{network-role}`` is the network-role", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-73213", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Neutron::SecurityGroup", + "sections": [ + "OS::Neutron::SecurityGroup", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-73223": { + "description": "The VNF **MUST** support proactive monitoring to detect and\nreport the attacks on resources so that the VNFs and associated VMs can\nbe isolated, such as detection techniques for resource exhaustion, namely\nOS resource attacks, CPU attacks, consumption of kernel memory, local\nstorage attacks.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-73223", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-73285": { + "description": "The xNF **MUST** must encode, address and deliver the data\nas described in the previous paragraphs.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-73285", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Asynchronous and Synchronous Data Delivery", + "sections": [ + "Asynchronous and Synchronous Data Delivery", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-73364": { + "description": "The VNF **MUST** support at least two major versions of the\nVNF software and/or sub-components to co-exist within production\nenvironments at any time so that upgrades can be applied across\nmultiple systems in a staggered manner.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-73364", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Deployment Optimization", + "sections": [ + "Deployment Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-73459": { + "description": "The xNF **MUST** provide the ability to include a \"from=\" clause in SSH\npublic keys associated with mechanized user IDs created for an Ansible\nServer cluster to use for xNF VM authentication.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-73459", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-73468": { + "description": "The xNF **MUST** allow the NETCONF server connection\nparameters to be configurable during virtual machine instantiation\nthrough Heat templates where SSH keys, usernames, passwords, SSH\nservice and SSH port numbers are Heat template parameters.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-73468", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-73560": { + "description": "The xNF Package **MUST** include documentation about monitoring\nparameters/counters exposed for virtual resource management and xNF\napplication management.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-73560", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-73583": { + "description": "The VNF **MUST** allow changes of configuration parameters\nto be consumed by the VNF without requiring the VNF or its sub-components\nto be bounced so that the VNF availability is not effected.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-73583", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Configuration Management", + "sections": [ + "Application Configuration Management", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-74304": { + "description": "A VNF's Heat Orchestration Template's Environment file extension **MUST**\nbe in the lower case format ``.env``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-74304", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Heat Orchestration Template Filenames", + "sections": [ + "ONAP Heat Orchestration Template Filenames", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-74481": { + "description": "The VNF **MUST NOT** require the use of a dynamic routing\nprotocol unless necessary to meet functional requirements.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-74481", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-74712": { + "description": "The VNF **MUST** utilize FQDNs (and not IP address) for\nboth Service Chaining and scaling.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-74712", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "System Resource Optimization", + "sections": [ + "System Resource Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-74763": { + "description": "The xNF provider **MUST** provide an artifact per xNF that contains\nall of the xNF Event Records supported. The artifact should include\nreference to the specific release of the xNF Event Stream Common Event\nData Model document it is based on. (e.g.,\n`VES Event Listener `__)", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-74763", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-74958": { + "description": "The VNF **MUST** activate security alarms automatically when\nit detects an unsuccessful attempt to gain permissions\nor assume the identity of another user.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-74958", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-74978": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``workload_context``\nparameter **MUST**\nbe declared as ``workload_context`` and the parameter **MUST**\nbe defined as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-74978", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "workload_context", + "sections": [ + "workload_context", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-75041": { + "description": "The VNF **MUST**, if not integrated with the Operator's Identity and\nAccess Management system, support configurable password expiration.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-75041", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-75141": { + "description": "A VNF's Heat Orchestration Template's resource name\n(i.e., ) **MUST** only contain alphanumeric\ncharacters and underscores ('_').", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-75141", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "resource ID", + "sections": [ + "resource ID", + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-75202": { + "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``workload_context``\nis passed into a Nested YAML\nfile, the key/value pair name ``workload_context`` **MUST NOT** change.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-75202", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "workload_context", + "sections": [ + "workload_context", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-75343": { + "description": "The VNF **MUST** provide the capability of testing the\nvalidity of a digital certificate by recognizing the identity represented\nby the certificate - the \"distinguished name\".", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-75343", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Cryptography Requirements", + "sections": [ + "VNF Cryptography Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-75608": { + "description": "The xNF provider **MUST** provide playbooks to be loaded\non the appropriate Ansible Server.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-75608", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Management via Ansible", + "sections": [ + "Configuration Management via Ansible", + "Resource Configuration", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-756950": { + "description": "The VNF **MUST** be operable without the use of Network File System (NFS).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-756950", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-75850": { + "description": "The VNF **SHOULD** decouple persistent data from the VNFC\nand keep it in its own datastore that can be reached by all instances\nof the VNFC requiring the data.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-75850", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-75943": { + "description": "The xNF **SHOULD** support the data schema defined in 3GPP TS 32.435, when\nsupporting the event-driven bulk transfer of monitoring data.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-75943", + "impacts": "dcae, dmaap", + "introduced": "casablanca", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Bulk Performance Measurement", + "sections": [ + "Bulk Performance Measurement", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-76014": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::ServiceHealthCheck``\nResource ID\n**MUST**\ncontain the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-76014", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::ServiceHealthCheck", + "sections": [ + "OS::ContrailV2::ServiceHealthCheck", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-76057": { + "description": "VNF Heat Orchestration Template's Nested YAML file name **MUST** contain\nonly alphanumeric characters and underscores '_' and\n**MUST NOT** contain the case insensitive word ``base``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-76057", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat file", + "sections": [ + "Nested Heat file", + "ONAP Heat Orchestration Template Filenames", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-76160": { + "description": "When\n\n * the VNF's Heat Orchestration Template's\n resource ``OS::Neutron::Port`` in an Incremental Module is attaching\n to an internal network (per the ONAP definition, see Requirements\n R-52425 and R-46461)\n that is created in the Base Module, AND\n * an IPv6 address is being cloud assigned by OpenStack's DHCP Service AND\n * the internal network IPv6 subnet is to be specified\n using the property ``fixed_ips`` map property ``subnet``,\n\nthe parameter **MUST** follow the naming convention\n``int_{network-role}_v6_subnet_id``,\nwhere ``{network-role}`` is the network role of the internal network.\n\nNote that the parameter **MUST** be defined as an ``output`` parameter in\nthe base module.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-76160", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", + "sections": [ + "Property: fixed_ips, Map Property: subnet", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-763774": { + "description": "The PNF **MUST** support a HTTPS connection to the DCAE VES Event\nListener.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-763774", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-76449": { + "description": "A VNF's Heat Orchestration Template's **MUST NOT**\ncontain the Resource ``OS::Neutron::FloatingIPAssociation``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-76449", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VIP Assignment, External Networks, Supported by Automation", + "sections": [ + "VIP Assignment, External Networks, Supported by Automation", + "Property: allowed_address_pairs, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-76682": { + "description": "If a VNF's Heat Orchestration Template\n``OS::ContrailV2::InterfaceRouteTable`` resource\n``interface_route_table_routes`` property\n``interface_route_table_routes_route`` map property parameter\n``{vm-type}_{network-role}_route_prefixes``\n**MUST NOT** be enumerated in the VNF's Heat Orchestration Template's\nEnvironment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Contrail Resource Parameters", + "full_title": "", + "hide_links": "", + "id": "R-76682", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Interface Route Table Prefixes for Contrail InterfaceRoute Table", + "sections": [ + "Interface Route Table Prefixes for Contrail InterfaceRoute Table", + "Contrail Resource Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-76718": { + "description": "If a VNF's Heat Orchestration Template uses the intrinsic function\n``get_file``, the ``get_file`` target **MUST** be referenced in\nthe Heat Orchestration Template by file name.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-76718", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Heat Files Support (get_file)", + "sections": [ + "Heat Files Support (get_file)", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-76901": { + "description": "The VNF **MUST** support a container rebuild mechanism based on existing\nimage (e.g. Glance image in Openstack environment) or a snapshot.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-76901", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Virtual Function - Container Recovery Requirements", + "sections": [ + "Virtual Function - Container Recovery Requirements", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-77334": { + "description": "The VNF **MUST** allow configurations and configuration parameters\nto be managed under version control to ensure consistent configuration\ndeployment, traceability and rollback.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-77334", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Configuration Management", + "sections": [ + "Application Configuration Management", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-77667": { + "description": "The VNF **MUST** test for adherence to the defined performance\nbudget at each layer, during each delivery cycle so that the performance\nbudget is measured and feedback is provided where the performance budget\nis not met.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-77667", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Deployment Optimization", + "sections": [ + "Deployment Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-77707": { + "description": "The xNF provider **MUST** include a Manifest File that\ncontains a list of all the components in the xNF package.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-77707", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Description", + "sections": [ + "Resource Description", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-78010": { + "description": "The VNF **MUST** integrate with standard identity and access management\nprotocols such as LDAP, TACACS+, Windows Integrated Authentication\n(Kerberos), SAML federation, or OAuth 2.0.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-78010", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-78116": { + "description": "The xNF **MUST** update status on the Chef Server\nappropriately (e.g., via a fail or raise an exception) if the\nchef-client run encounters any critical errors/failures when\nexecuting a xNF action.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-78116", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Roles/Requirements", + "sections": [ + "Chef Roles/Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-78282": { + "description": "The xNF **MUST** conform to the NETCONF RFC 6242,\n\"Using the Network Configuration Protocol over Secure Shell\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-78282", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-78380": { + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see Requirements R-52425 and R-46461),\nand an IPv4 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is\ndefined as a ``string``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_int_{network-role}_ip_{index}``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n OS::Nova::Server\n * ``{network-role}`` is the {network-role} of the internal\n network\n * the value for ``{index`` must start at zero (0) and increment by one", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-78380", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-78569": { + "description": "VNF's Heat Orchestration Template's Resource **MAY** declare the\nattribute ``external_id:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-78569", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "external_id", + "sections": [ + "external_id", + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-79107": { + "description": "The VNF **MUST**, if not integrated with the Operator's Identity\nand Access Management system, support the ability to disable the\nuserID after a configurable number of consecutive unsuccessful\nauthentication attempts using the same userID.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-79107", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-79224": { + "description": "The xNF **MUST** have the chef-client be preloaded with\nvalidator keys and configuration to register with the designated\nChef Server as part of the installation process.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-79224", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Client Requirements", + "sections": [ + "Chef Client Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-793716": { + "description": "The PNF **MUST** have \"ONAP Aware\" software which is capable of performing\nPNF PnP registration with ONAP. The \"ONAP Aware\" software is capable of\nperforming the PNF PnP Registration with ONAP MUST either be loaded\nseparately or integrated into the PNF software upon physical delivery\nand installation of the PNF.\n\nNote: It is up to the specific vendor to design the software management\nfunctions.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-793716", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-79412": { + "description": "The xNF **MAY** use another option which is expected to include TCP\nfor high volume streaming asynchronous data sets and for other high volume\ndata sets. TCP delivery can be used for either JSON or binary encoded data\nsets.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-79412", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Addressing and Delivery Protocol", + "sections": [ + "Addressing and Delivery Protocol", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-79817": { + "description": "A VNF's Heat Orchestration Template's parameter defined\nin a non-nested YAML file as\ntype ``comma_delimited_list`` **MAY** have a parameter constraint defined.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-79817", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "constraints", + "sections": [ + "constraints", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-798933": { + "description": "The xNF **SHOULD** deliver event records that fall into the event domains\nsupported by VES.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-798933", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Transports and Protocols Supporting Resource Interfaces", + "sections": [ + "Transports and Protocols Supporting Resource Interfaces", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-79952": { + "description": "The VNF **SHOULD** support container snapshots if not for rebuild\nand evacuate for rollback or back out mechanism.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-79952", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "All Layer Redundancy", + "sections": [ + "All Layer Redundancy", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-80070": { + "description": "The VNF **MUST** handle errors and exceptions so that they do\nnot interrupt processing of incoming VNF requests to maintain service\ncontinuity (where the error is not directly impacting the software\nhandling the incoming request).", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-80070", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Resilient Error Handling", + "sections": [ + "Application Resilient Error Handling", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-80335": { + "description": "For all GUI and command-line interfaces, the VNF **MUST** provide the\nability to present a warning notice that is set by the Operator. A warning\nnotice is a formal statement of resource intent presented to everyone\nwho accesses the system.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-80335", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-80374": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vf_module_name``\nparameter ``vf_module_name`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-80374", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_name", + "sections": [ + "vf_module_name", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-80829": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet`` parameter\n``{network-role}_v6_subnet_id``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-80829", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", + "sections": [ + "Property: fixed_ips, Map Property: subnet", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-80898": { + "description": "TThe xNF **MUST** support heartbeat via a with null filter.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-80898", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-809261": { + "description": "The PNF **MUST** use a IP address to contact ONAP.\n\nNote: it is expected that an ONAP operator can ascertain the ONAP IP\naddress or the security gateway to reach ONAP on the VID or ONAP portal\nGUI.\n\nNote: The ONAP contact IP address has been previously configured and\nprovisioned prior to this step.\n\nNote: The ONAP IP address could be provisioned or resolved through\nFQDN & DNS.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-809261", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-81147": { + "description": "The VNF **MUST** support strong authentication, also known as\nmultifactor authentication, on all protected interfaces exposed by the\nVNF for use by human users. Strong authentication uses at least two of the\nthree different types of authentication factors in order to prove the\nclaimed identity of a user.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-81147", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-81214": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::InterfaceRouteTable``\nResource ID\n**MUST**\ncontain the ``{network-role}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-81214", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::InterfaceRouteTable", + "sections": [ + "OS::ContrailV2::InterfaceRouteTable", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-81339": { + "description": "A VNF Heat Orchestration Template's Base Module file name **MUST** include\ncase insensitive 'base' in the filename and\n**MUST** match one of the following four\nformats:\n\n 1.) ``base_.y[a]ml``\n\n 2.) ``_base.y[a]ml``\n\n 3.) ``base.y[a]ml``\n\n 4.) ``_base_``.y[a]ml\n\nwhere ```` **MUST** contain only alphanumeric characters and\nunderscores '_' and **MUST NOT** contain the case insensitive word ``base``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-81339", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Base Modules", + "sections": [ + "Base Modules", + "ONAP Heat Orchestration Template Filenames", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-814377": { + "description": "The VNF **MUST** have the capability of allowing the Operator to create,\nmanage, and automatically provision user accounts using an Operator\napproved identity lifecycle management tool using a standard protocol,\ne.g., NETCONF API.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-814377", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-81725": { + "description": "A VNF's Incremental Module **MUST** have a corresponding Environment File", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-81725", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-81777": { + "description": "The xNF **MUST** be configured with initial address(es) to use\nat deployment time. Subsequently, address(es) may be changed through\nONAP-defined policies delivered from ONAP to the xNF using PUTs to a\nRESTful API, in the same manner that other controls over data reporting\nwill be controlled by policy.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-81777", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Addressing and Delivery Protocol", + "sections": [ + "Addressing and Delivery Protocol", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-81979": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::NetworkIpam``\nResource ID **MAY** use the naming convention\n\n* ``{network-role}_RNI``\n\nwhere\n\n* ``{network-role}`` is the network-role\n* ``RNI`` signifies that it is the Resource Network IPAM", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-81979", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::NetworkIpam", + "sections": [ + "OS::ContrailV2::NetworkIpam", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-82018": { + "description": "The xNF **MUST** load the Ansible Server SSH public key onto xNF\nVM(s) /root/.ssh/authorized_keys as part of instantiation. Alternative,\nis for Ansible Server SSH public key to be loaded onto xNF VM(s) under\n/home//.ssh/authorized_keys as part of instantiation,\nwhen a Mechanized user ID is created during instantiation, and Configure\nand all playbooks are designed to use a mechanized user ID only for\nauthentication (never using root authentication during Configure playbook\nrun). This will allow the Ansible Server to authenticate to perform\npost-instantiation configuration without manual intervention and without\nrequiring specific xNF login IDs and passwords.\n\n*CAUTION*: For xNFs configured using Ansible, to eliminate the need\nfor manual steps, post-instantiation and pre-configuration, to\nupload of SSH public keys, SSH public keys loaded during (heat)\ninstantiation shall be preserved and not removed by (heat) embedded\n(userdata) scripts.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-82018", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-82115": { + "description": "When a VNF's Heat Orchestration Template's resource is associated with a\nsingle ``{vm-type}``\nand a single external network, the Resource ID text **MUST** contain both\nthe ``{vm-type}``\nand the ``{network-role}``\n\n- the ``{vm-type}`` **MUST** appear before the ``{network-role}`` and\n **MUST** be separated by an underscore '_'\n\n\n - e.g., ``{vm-type}_{network-role}``, ``{vm-type}_{index}_{network-role}``\n\n\n- note that an ``{index}`` value **MAY** separate the ``{vm-type}`` and the\n ``{network-role}`` and when this occurs underscores **MUST** separate the\n three values. (e.g., ``{vm-type}_{index}_{network-role}``).", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-82115", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource IDs", + "sections": [ + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-82134": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource property\n``metadata`` key/value pair ``vf_module_id`` parameter **MUST**\nbe declared as ``vf_module_id`` and the parameter **MUST**\nbe defined as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-82134", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_id", + "sections": [ + "vf_module_id", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-821473": { + "description": "The xNF MUST produce heartbeat indicators consisting of events containing\nthe common event header only per the VES Listener Specification.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-821473", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF telemetry via standardized interface", + "sections": [ + "VNF telemetry via standardized interface", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-821839": { + "description": "The xNF **MUST** deliver event records to ONAP using the common transport\nmechanisms and protocols defined in this document.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-821839", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Transports and Protocols Supporting Resource Interfaces", + "sections": [ + "Transports and Protocols Supporting Resource Interfaces", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-82223": { + "description": "The VNF **MUST** be decomposed if the functions have\nsignificantly different scaling characteristics (e.g., signaling\nversus media functions, control versus data plane functions).", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-82223", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-82481": { + "description": "A VNF's Heat Orchestration Template's Resource property parameter that is\nassociated with a unique Virtual Machine type **MUST** include\n``{vm-type}`` as part of the parameter name with two exceptions:\n\n 1.) The Resource ``OS::Nova::Server`` property ``availability_zone``\n parameter **MUST NOT** be prefixed with a common ``{vm-type}`` identifier,\n\n 2.) The Resource ``OS::Nova::Server`` eight mandatory and optional\n ``metadata``\n parameters (i.e., ``vnf_name``, ``vnf_id``, ``vf_module_id``,\n ``vf_module_name``, ``vm_role``,\n ``vf_module_index``, ``environment_context``, ``workload_context``)\n **MUST NOT** be prefixed with a common ``{vm-type}`` identifier.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", + "full_title": "", + "hide_links": "", + "id": "R-82481", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{vm-type}", + "sections": [ + "{vm-type}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-82551": { + "description": "When a VNF's Heat Orchestration Template's resource is associated with a\nsingle ``{vm-type}`` and a single internal network, the Resource ID **MUST**\ncontain both the ``{vm-type}`` and the ``int_{network-role}`` and\n\n- the ``{vm-type}`` **MUST** appear before the ``int_{network-role}`` and\n **MUST** be separated by an underscore '_'\n\n - (e.g., ``{vm-type}_int_{network-role}``,\n ``{vm-type}_{index}_int_{network-role}``)\n\n- note that an ``{index}`` value **MAY** separate the\n ``{vm-type}`` and the ``int_{network-role}`` and when this occurs\n underscores **MUST** separate the three values.\n (e.g., ``{vm-type}_{index}_int_{network-role}``).", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-82551", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource IDs", + "sections": [ + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-82732": { + "description": "A VNF Heat Orchestration Template's Cinder Volume Module **MUST**\nbe named identical to the base or incremental module it is supporting with\n``_volume`` appended.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-82732", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Cinder Volume Modules", + "sections": [ + "Cinder Volume Modules", + "ONAP Heat Orchestration Template Filenames", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-82811": { + "description": "The xNF **MUST** support APPC ``StartApplication`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-82811", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", + "sections": [ + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-83015": { + "description": "A VNF's ``{network-role}`` assigned to an external network **MUST**\nbe different than the ``{network-role}`` assigned to the VNF's\ninternal networks, if internal networks exist.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-83015", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "External Networks", + "sections": [ + "External Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-83146": { + "description": "The xNF **MUST** support APPC ``StopApplication`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-83146", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", + "sections": [ + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-83227": { + "description": "The VNF **MUST** Provide the capability to encrypt data in\ntransit on a physical or virtual network.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-83227", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Data Protection Requirements", + "sections": [ + "VNF Data Protection Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-83412": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``allowed_address_pairs``\nmap property ``ip_address`` parameter\n``{vm-type}_{network-role}_floating_ip``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-83412", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VIP Assignment, External Networks, Supported by Automation", + "sections": [ + "VIP Assignment, External Networks, Supported by Automation", + "Property: allowed_address_pairs, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-83418": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``allowed_address_pairs``\nmap property ``ip_address`` parameter\n``{vm-type}_{network-role}_floating_v6_ip``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-83418", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VIP Assignment, External Networks, Supported by Automation", + "sections": [ + "VIP Assignment, External Networks, Supported by Automation", + "Property: allowed_address_pairs, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-83500": { + "description": "The VNF **MUST** provide the capability of allowing certificate\nrenewal and revocation.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-83500", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Cryptography Requirements", + "sections": [ + "VNF Cryptography Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-83677": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet`` parameter\n``{network-role}_subnet_id``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-83677", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", + "sections": [ + "Property: fixed_ips, Map Property: subnet", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-83706": { + "description": "When a VNF's Heat Orchestration Template's Virtual Machine\n(i.e., ``OS::Nova::Server`` resource) boots from an image, the\n``OS::Nova::Server`` resource property ``image`` **MUST** be used.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-83706", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Boot Options", + "sections": [ + "Boot Options", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-83790": { + "description": "The xNF **MUST** implement the ``:validate`` capability.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-83790", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-83873": { + "description": "The xNF **MUST** support ``:rollback-on-error`` value for\nthe parameter to the operation. If any\nerror occurs during the requested edit operation, then the target\ndatabase (usually the running configuration) will be left unaffected.\nThis provides an 'all-or-nothing' edit mode for a single \nrequest.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-83873", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-84123": { + "description": "When\n\n * the VNF's Heat Orchestration Template's\n resource ``OS::Neutron::Port`` in an Incremental Module is attaching\n to an internal network (per the ONAP definition, see\n Requirements R-52425 and R-46461)\n that is created in the Base Module, AND\n * an IPv4 address is being cloud assigned by OpenStack's DHCP Service AND\n * the internal network IPv4 subnet is to be specified\n using the property ``fixed_ips`` map property ``subnet``,\n\nthe parameter **MUST** follow the naming convention\n\n * ``int_{network-role}_subnet_id``\n\nwhere\n\n * ``{network-role}`` is the network role of the internal network\n\nNote that the parameter **MUST** be defined as an ``output`` parameter in\nthe base module.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-84123", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", + "sections": [ + "Property: fixed_ips, Map Property: subnet", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-84160": { + "description": "The VNF **MUST** have security logging for VNFs and their\nOSs be active from initialization. Audit logging includes automatic\nroutines to maintain activity records and cleanup programs to ensure\nthe integrity of the audit/logging systems.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-84160", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-841740": { + "description": "The xNF **SHOULD** support FileReady VES event for event-driven bulk transfer\nof monitoring data.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-841740", + "impacts": "dcae, dmaap", + "introduced": "casablanca", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Bulk Performance Measurement", + "sections": [ + "Bulk Performance Measurement", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-842258": { + "description": "The VNF **MUST** include a configuration, e.g., a heat template or CSAR\npackage, that specifies the targetted parameters, e.g. a limited set of\nports, over which the VNF will communicate (including internal, external\nand management communication).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-842258", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-84322": { + "description": "A VNF's Heat Orchestration Template's Resource property parameter that\nis associated with an internal network **MUST** include\n``int_{network-role}`` as part of the parameter name,\nwhere ``int_`` is a hard coded string.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", + "full_title": "", + "hide_links": "", + "id": "R-84322", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{network-role}", + "sections": [ + "{network-role}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-84366": { + "description": "The xNF Package **MUST** include documentation describing\nxNF Functional APIs that are utilized to build network and\napplication services. This document describes the externally exposed\nfunctional inputs and outputs for the xNF, including interface\nformat and protocols supported.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-84366", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Description", + "sections": [ + "Resource Description", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-844011": { + "description": "The VNF MUST not store authentication credentials to itself in clear\ntext or any reversible form and must use salting.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-844011", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-84457": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::PortTuple``\nResource ID **MAY** use the naming convention\n\n* ``{vm-type}_RPT``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``RPT`` signifies that it is the Resource Port Tuple", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-84457", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::PortTuple", + "sections": [ + "OS::ContrailV2::PortTuple", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-84473": { + "description": "The VNF **MUST** enable DPDK in the guest OS for VNF's requiring\nhigh packets/sec performance. High packet throughput is defined as greater\nthan 500K packets/sec.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-84473", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-84517": { + "description": "The Contrail GUI has a limitation displaying special characters.\nThe issue is documented in\nhttps://bugs.launchpad.net/juniperopenstack/+bug/1590710.\nIt is recommended that special **SHOULD** characters be avoided.\nHowever, if special characters must be used, note that for\nthe following resources:\n\n* Virtual Machine\n* Virtual Network\n* Port\n* Security Group\n* Policies\n* IPAM Creation\n\nthe only special characters supported\nare - \\\" ! $\\ \\ ' ( ) = ~ ^ | @ ` { } [ ] > , . _\"", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property", + "full_title": "", + "hide_links": "", + "id": "R-84517", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Contrail Issue with Values for the Property Name", + "sections": [ + "Contrail Issue with Values for the Property Name", + "Resource Property \u201cname\u201d" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-84879": { + "description": "The xNF **MUST** have the capability of maintaining a primary\nand backup DNS name (URL) for connecting to ONAP collectors, with the\nability to switch between addresses based on conditions defined by policy\nsuch as time-outs, and buffering to store messages until they can be\ndelivered. At its discretion, the service provider may choose to populate\nonly one collector address for a xNF. In this case, the network will\npromptly resolve connectivity problems caused by a collector or network\nfailure transparently to the xNF.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-84879", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Addressing and Delivery Protocol", + "sections": [ + "Addressing and Delivery Protocol", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-85235": { + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see Requirements R-52425 and R-46461),\nand an IPv4 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``comma_delimited_list``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_int_{network-role}_ips``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n * ``{network-role}`` is the {network-role} of the internal\n network", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-85235", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-85328": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource property\n``metadata`` **MAY**\ncontain the key/value pair ``vm_role`` and the value **MUST** be\nobtained either via\n\n- ``get_param``\n- hard coded in the key/value pair ``vm_role``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-85328", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vm_role", + "sections": [ + "vm_role", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-85419": { + "description": "The VNF **SHOULD** support OAuth 2.0 authorization using an external\nAuthorization Server.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-85419", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-85653": { + "description": "The xNF **MUST** provide metrics (e.g., number of sessions,\nnumber of subscribers, number of seats, etc.) to ONAP for tracking\nevery license.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-85653", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Licensing Requirements", + "sections": [ + "Licensing Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-85734": { + "description": "If a VNF's Heat Orchestration Template contains the property ``name``\nfor a non ``OS::Nova::Server`` resource, the intrinsic function\n``str_replace`` **MUST** be used in conjunction with the ONAP\nsupplied metadata parameter ``vnf_name`` to generate a unique value.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property", + "full_title": "", + "hide_links": "", + "id": "R-85734", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Property \u201cname\u201d", + "sections": [ + "Resource Property \u201cname\u201d" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-85800": { + "description": "When the VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``name`` parameter is defined as a ``comma_delimited_list``,\na parameter **MUST** be delcared once for all ``OS::Nova::Server`` resources\nassociated with the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-85800", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: Name", + "sections": [ + "Property: Name", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-859208": { + "description": "The VNF **MUST** log automated remote activities performed with\nelevated privileges.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-859208", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-85959": { + "description": "The VNF **SHOULD** automatically enable/disable added/removed\nsub-components or component so there is no manual intervention required.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-85959", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "System Resource Optimization", + "sections": [ + "System Resource Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-85991": { + "description": "The xNF provider **MUST** provide a universal license key\nper xNF to be used as needed by services (i.e., not tied to a VM\ninstance) as the recommended solution. The xNF provider may provide\npools of Unique xNF License Keys, where there is a unique key for\neach xNF instance as an alternate solution. Licensing issues should\nbe resolved without interrupting in-service xNFs.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-85991", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Licensing Requirements", + "sections": [ + "Licensing Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-86182": { + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see Requirements R-52425 and R-46461),\nand the internal network is created in a\ndifferent Heat Orchestration Template than the ``OS::Neutron::Port``,\nthe ``network`` parameter name **MUST**\n\n * follow the naming convention ``int_{network-role}_net_id`` if the Neutron\n network UUID value is used to reference the network\n * follow the naming convention ``int_{network-role}_net_name`` if the\n OpenStack network name in is used to reference the network.\n\nwhere ``{network-role}`` is the network-role of the internal network and\na ``get_param`` **MUST** be used as the intrinsic function.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-86182", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: network", + "sections": [ + "Property: network", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-86235": { + "description": "The xNF Package **MUST** include documentation about the monitoring\nparameters that must include latencies, success rates, retry rates, load\nand quality (e.g., DPM) for the key transactions/functions supported by\nthe xNF and those that must be exercised by the xNF in order to perform\nits function.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-86235", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-86237": { + "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``vf_module_id`` is passed into a\nNested YAML\nfile, the key/value pair name ``vf_module_id`` **MUST NOT** change.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-86237", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_id", + "sections": [ + "vf_module_id", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-86261": { + "description": "The VNF **MUST** support the ability to prohibit remote access to the VNF\nvia a host based security mechanism.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-86261", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-86285": { + "description": "A VNF's Heat Orchestration template **MUST** have a\ncorresponding environment file.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-86285", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Environment File Format", + "sections": [ + "Environment File Format", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-86476": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vm_role`` value **MUST**\nonly contain alphanumeric characters and underscores (i.e., '_').", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-86476", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vm_role", + "sections": [ + "vm_role", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-86497": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::Cinder::VolumeAttachment``\nResource ID\n**SHOULD**\nuse the naming convention\n\n* ``{vm-type}_volume_attachment_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{index}`` starts at zero and increments by one", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-86497", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Cinder::VolumeAttachment", + "sections": [ + "OS::Cinder::VolumeAttachment", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-86585": { + "description": "The VNFC **SHOULD** minimize the use of state within\na VNFC to facilitate the movement of traffic from one instance\nto another.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-86585", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-86586": { + "description": "The xNF **MUST** use the YANG configuration models and RESTCONF\n[RFC8040] (https://tools.ietf.org/html/rfc8040).", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-86586", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Asynchronous and Synchronous Data Delivery", + "sections": [ + "Asynchronous and Synchronous Data Delivery", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-86588": { + "description": "A VNF's Heat Orchestration Template's ``{network-role}`` case in Resource\nproperty parameter names **SHOULD** match the case of ``{network-role}``\nin Resource IDs and vice versa.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", + "full_title": "", + "hide_links": "", + "id": "R-86588", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{network-role}", + "sections": [ + "{network-role}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-86758": { + "description": "The VNF **SHOULD** provide an automated test suite to validate\nevery new version of the software on the target environment(s). The tests\nshould be of sufficient granularity to independently test various\nrepresentative VNF use cases throughout its lifecycle. Operations might\nchoose to invoke these tests either on a scheduled basis or on demand to\nsupport various operations functions including test, turn-up and\ntroubleshooting.", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-86758", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-86835": { + "description": "The VNF **MUST** set the default settings for user access\nto deny authorization, except for a super user type of account.\nWhen a VNF is added to the network, nothing should be able to use\nit until the super user configures the VNF to allow other users\n(human and application) have access.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-86835", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-86926": { + "description": "A VNF's incremental module **MAY** be used for scale out only.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-86926", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-86972": { + "description": "A VNF **SHOULD** create the internal network in the VNF's Heat\nOrchestration Template Base Module.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-86972", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Internal Networks", + "sections": [ + "Internal Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-87004": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::Cinder::Volume``\nResource ID\n**SHOULD**\nuse the naming convention\n\n* ``{vm-type}_volume_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{index}`` starts at zero and increments by one", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-87004", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Cinder::Volume", + "sections": [ + "OS::Cinder::Volume", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-87096": { + "description": "A VNF **MAY** contain zero, one or more than one internal network.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-87096", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Internal Networks", + "sections": [ + "Internal Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-87123": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_{network-role}_v6_ip_{index}``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-87123", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-87234": { + "description": "The VNF package provided by a VNF vendor **MAY** be either with\nTOSCA-Metadata directory (CSAR Option 1) or without TOSCA-Metadata\ndirectory (CSAR Option 2) as specified in ETSI GS NFV-SOL004. On-boarding\nentity (ONAP SDC) must support both options.\n\n**Note:** SDC supports only the CSAR Option 1 in Casablanca. The Option 2\nwill be considered in future ONAP releases,", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-87234", + "impacts": "", + "introduced": "casablanca", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Structure and Format", + "sections": [ + "VNF Package Structure and Format", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-87247": { + "description": "VNF Heat Orchestration Template's Incremental Module file name\n**MUST** contain only alphanumeric characters and underscores\n'_' and **MUST NOT** contain the case insensitive word ``base``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-87247", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Incremental Modules", + "sections": [ + "Incremental Modules", + "ONAP Heat Orchestration Template Filenames", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-872986": { + "description": "The VNF **MUST** store Authentication Credentials used to authenticate to\nother systems encrypted except where there is a technical need to store\nthe password unencrypted in which case it must be protected using other\nsecurity techniques that include the use of file and directory permissions.\nIdeally, credentials SHOULD rely on a HW Root of Trust, such as a\nTPM or HSM.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-872986", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-87352": { + "description": "The VNF **SHOULD** utilize Cloud health checks, when available\nfrom the Network Cloud, from inside the application through APIs to check\nthe network connectivity, dropped packets rate, injection, and auto failover\nto alternate sites if needed.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-87352", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Monitoring & Dashboard", + "sections": [ + "Monitoring & Dashboard", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-87485": { + "description": "A VNF's Heat Orchestration Template's file extension **MUST**\nbe in the lower case format ``.yaml`` or ``.yml``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-87485", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Heat Orchestration Template Filenames", + "sections": [ + "ONAP Heat Orchestration Template Filenames", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-87563": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``\nthat is configuring an IPv6 Address on a port attached to an internal network\nResource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_int_{network-role}_vmi_{vmi_index}_v6_IP_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{vmi_index}`` is the instance of the the virtual machine interface\n (e.g., port) on the vm-type\n attached to the network of ``{network-role}``\n* ``v6_IP`` signifies that an IPv6 address is being configured\n* ``{index}`` is the index of the IPv6 address", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-87563", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::InstanceIp", + "sections": [ + "OS::ContrailV2::InstanceIp", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-87564": { + "description": "The xNF **SHOULD** conform its YANG model to RFC 7317,\n\"A YANG Data Model for System Management\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-87564", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-87817": { + "description": "When the VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``name`` parameter is defined as a ``comma_delimited_list``,\nthe parameter name **MUST** follow the naming convention\n``{vm-type}_names``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-87817", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: Name", + "sections": [ + "Property: Name", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-87848": { + "description": "When using the intrinsic function get_file, ONAP does not support\na directory hierarchy for included files. All files must be in a\nsingle, flat directory per VNF. A VNF's Heat Orchestration\nTemplate's ``get_file`` target files **MUST** be in the same\ndirectory hierarchy as the VNF's Heat Orchestration Templates.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-87848", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Heat Files Support (get_file)", + "sections": [ + "Heat Files Support (get_file)", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-88026": { + "description": "The xNF **MUST** include a NETCONF server enabling\nruntime configuration and lifecycle management capabilities.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-88026", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Management", + "sections": [ + "Configuration Management", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-88031": { + "description": "The xNF **SHOULD** implement the protocol operation:\n``delete-config(target)`` - Delete the named configuration\ndata store target.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-88031", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-88199": { + "description": "The VNF **MUST** utilize a persistent datastore service that\ncan meet the data performance/latency requirements. (For example:\nDatastore service could be a VNFC in VNF or a DBaaS in the Cloud\nexecution environment)", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-88199", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-88482": { + "description": "The xNF **SHOULD** use REST using HTTPS delivery of plain\ntext JSON for moderate sized asynchronous data sets, and for high\nvolume data sets when feasible.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-88482", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Addressing and Delivery Protocol", + "sections": [ + "Addressing and Delivery Protocol", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-88524": { + "description": "A VNF's Heat Orchestration Template's Volume Template\nOutput Parameter names\n**MUST** contain ``{vm-type}`` when appropriate.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", + "full_title": "", + "hide_links": "", + "id": "R-88524", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Volume Template Output Parameters:", + "sections": [ + "ONAP Volume Template Output Parameters:", + "ONAP Output Parameter Names" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-88536": { + "description": "A VNF's Heat Orchestration Template's OS::Nova::Server\nResource **SHOULD** contain the metadata map value parameter\n'environment_context'.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-88536", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "environment_context", + "sections": [ + "environment_context", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-88540": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``\nthat is configuring an IPv6 Address on a sub-interface port attached to a\nsub-interface network Resource ID **MUST**\nuse the naming convention\n\n* ``{vm-type}_{vm-type_index}_subint_{network-role}_vmi_{vmi_index}_v6_IP_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{vmi_index}`` is the instance of the the virtual machine interface\n (e.g., port) on the vm-type\n attached to the network of ``{network-role}``\n* ``v6_IP`` signifies that an IPv6 address is being configured\n* ``{index}`` is the index of the IPv6 address", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-88540", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::InstanceIp", + "sections": [ + "OS::ContrailV2::InstanceIp", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-88863": { + "description": "A VNF's Heat Orchestration Template's parameter defined\nin a non-nested YAML file as type\n``number`` **MUST** have a parameter constraint of ``range`` or\n``allowed_values`` defined.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-88863", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "constraints", + "sections": [ + "constraints", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-88899": { + "description": "The xNF **MUST** support simultaneous operations\nwithin the context of this locking requirements framework.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-88899", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-89010": { + "description": "The VNF **MUST** survive any single points of software failure\ninternal to the VNF (e.g., in memory structures, JMS message queues).", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-89010", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "All Layer Redundancy", + "sections": [ + "All Layer Redundancy", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-894004": { + "description": "When the PNF sets up a HTTP or HTTPS connection, it **MUST** provide a\nusername and password to the DCAE VES Collector for HTTP Basic\nAuthentication.\n\nNote: HTTP Basic Authentication has 4 steps: Request, Authenticate,\nAuthorization with Username/Password Credentials, and Authentication Status\nas per RFC7617 and RFC 2617.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-894004", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-89474": { + "description": "The VNF **MUST** log the field \"Login ID\" in the security audit logs.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-89474", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-89571": { + "description": "The xNF **MUST** support and provide artifacts for configuration\nmanagement using at least one of the following technologies;\na) Netconf/YANG, b) Chef, or c) Ansible.\n\nNote: The requirements for Netconf/YANG, Chef, and Ansible protocols\nare provided separately and must be supported only if the corresponding\nprotocol option is provided by the xNF providor.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-89571", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Configuration", + "sections": [ + "Resource Configuration", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-89800": { + "description": "The VNF **MUST NOT** require Hypervisor-level customization\nfrom the cloud provider.", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-89800", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-89913": { + "description": "A VNF's Heat Orchestration Template's Cinder Volume Module Output\nParameter(s)\n**MUST** include the\nUUID(s) of the Cinder Volumes created in template,\nwhile others **MAY** be included.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-89913", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Volume Module Output Parameters", + "sections": [ + "ONAP Volume Module Output Parameters", + "Output Parameters", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-90007": { + "description": "The xNF **MUST** implement the protocol operation:\n``close-session()`` - Gracefully close the current session.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-90007", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-90022": { + "description": "A VNF's Nested YAML file **MAY** be invoked more than\nonce by a VNF's Heat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-90022", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat Template Requirements", + "sections": [ + "Nested Heat Template Requirements", + "Nested Heat Templates", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-901331": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``image`` value **MUST** be be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-901331", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: image", + "sections": [ + "Property: image", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-90152": { + "description": "A VNF's Heat Orchestration Template's\n``resources:`` section **MUST** contain the declaration of at\nleast one resource.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-90152", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "resources", + "sections": [ + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-90206": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_int_{network-role}_int_ips``\n**MUST** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-90206", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-90279": { + "description": "A VNF Heat Orchestration's template's parameter **MUST** be used\nin a resource with the exception of the parameters for the\n``OS::Nova::Server`` resource property ``availability_zone``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-90279", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "parameters", + "sections": [ + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-90526": { + "description": "A VNF Heat Orchestration Template parameter declaration **MUST NOT**\ncontain the ``default`` attribute.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-90526", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "default", + "sections": [ + "default", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-90632": { + "description": "The xNF Package **MUST** include documentation about KPIs and\nmetrics that need to be collected at each VM for capacity planning\nand performance management purposes.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-90632", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-90748": { + "description": "A VNF's Heat Orchestration Template's Resource OS::Heat::CinderVolume\n**MAY** be defined in an Incremental Module.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-90748", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-908291": { + "description": "The XNF **MAY** leverage bulk xNF telemetry transmission mechanism, as\ndepicted in Figure 4, in instances where other transmission methods are not\npractical or advisable.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-908291", + "impacts": "dcae, dmaap", + "introduced": "casablanca", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Bulk Telemetry Transmission", + "sections": [ + "Bulk Telemetry Transmission", + "Transports and Protocols Supporting Resource Interfaces", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-91125": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``image`` parameter **MUST** be enumerated in the Heat Orchestration\nTemplate's Environment File and a value **MUST** be assigned.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-91125", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: image", + "sections": [ + "Property: image", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-91273": { + "description": "A VNF Heat Orchestration's template's parameter for the\n``OS::Nova::Server`` resource property ``availability_zone``\n**MAY NOT** be used in any ``OS::Nova::Server``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-91273", + "impacts": "", + "introduced": "", + "keyword": "MAY NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "parameters", + "sections": [ + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-91342": { + "description": "A VNF Heat Orchestration Template's Base Module's Environment File\n**MUST** be named identical to the VNF Heat Orchestration Template's\nBase Module with ``.y[a]ml`` replaced with ``.env``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-91342", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Base Modules", + "sections": [ + "Base Modules", + "ONAP Heat Orchestration Template Filenames", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-91497": { + "description": "A VNF's incremental module **MAY** be used for both deployment and\nscale out.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-91497", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-91745": { + "description": "The xNF **MUST** update the Ansible Server and other entities\nstoring and using the SSH keys for authentication when the SSH\nkeys used by Ansible are regenerated/updated.\n\n**Note**: Ansible Server itself may be used to upload new SSH public\nkeys onto supported xNFs.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-91745", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-91810": { + "description": "If a VNF requires ONAP to assign a Virtual IP (VIP) Address to\nports connected an external network, the port\n**MUST NOT** have more than one IPv4 VIP address.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-91810", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VIP Assignment, External Networks, Supported by Automation", + "sections": [ + "VIP Assignment, External Networks, Supported by Automation", + "Property: allowed_address_pairs, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-92193": { + "description": "A VNF's Heat Orchestration Template's parameter\n``{network-role}_net_fqdn``\n**MUST NOT** be enumerated in the VNF's Heat Orchestration Template's\nEnvironment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Contrail Resource Parameters", + "full_title": "", + "hide_links": "", + "id": "R-92193", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "External Networks", + "sections": [ + "External Networks", + "Contrail Network Parameters", + "Contrail Resource Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-92207": { + "description": "The VNF **SHOULD** provide a mechanism that enables the operators to\nperform automated system configuration auditing at configurable time\nintervals.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-92207", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-92571": { + "description": "The VNF **MUST** provide operational instrumentation such as\nlogging, so as to facilitate quick resolution of issues with the VNF to\nprovide service continuity.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-92571", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Monitoring & Dashboard", + "sections": [ + "Monitoring & Dashboard", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-92635": { + "description": "A VNF's Heat Orchestration Template **MUST** be compliant with the\nOpenStack Template Guide.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-92635", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Heat Orchestration Template Format", + "sections": [ + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-92866": { + "description": "The xNF **MUST** include as part of post-instantiation configuration\ndone by Ansible Playbooks the removal/update of the SSH public key from\n/root/.ssh/authorized_keys, and update of SSH keys loaded through\ninstantiation to support Ansible. This may include creating Mechanized user\nID(s) used by the Ansible Server(s) on VNF VM(s) and uploading and\ninstalling new SSH keys used by the mechanized use ID(s).", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-92866", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-92935": { + "description": "The VNF **SHOULD** minimize the propagation of state information\nacross multiple data centers to avoid cross data center traffic.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-92935", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Minimize Cross Data-Center Traffic", + "sections": [ + "Minimize Cross Data-Center Traffic", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-93030": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_{network-role}_v6_ips``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-93030", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-931076": { + "description": "The VNF **MUST** support account names that contain at least A-Z, a-z,\n0-9 character sets and be at least 6 characters in length.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-931076", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-93177": { + "description": "When the VNF's Heat Orchestration Template's resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see Requirements R-52425 and R-46461),\nand the internal network is created in the\nsame Heat Orchestration Template as the ``OS::Neutron::Port``,\nthe ``network`` property value **MUST** obtain the UUID\nof the internal network by using the intrinsic function\n``get_resource``\nand referencing the Resource ID of the internal network.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-93177", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: network", + "sections": [ + "Property: network", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-932071": { + "description": "The xNF provider **MUST** reach agreement with the Service Provider on\nthe selected methods for encoding, serialization and data delivery\nprior to the on-boarding of the xNF into ONAP SDC Design Studio.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-932071", + "impacts": "dcae", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Transports and Protocols Supporting Resource Interfaces", + "sections": [ + "Transports and Protocols Supporting Resource Interfaces", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "none" + }, + "R-93272": { + "description": "A VNF **MAY** have one or more ports connected to a unique\nexternal network. All VNF ports connected to the unique external\nnetwork **MUST** have cloud assigned IP Addresses\nor **MUST** have ONAP SDN-C assigned IP addresses.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-93272", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Items to Note", + "sections": [ + "Items to Note", + "Introduction", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-93443": { + "description": "The xNF **MUST** define all data models in YANG [RFC6020],\nand the mapping to NETCONF shall follow the rules defined in this RFC.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-93443", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-93496": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nproperty ``fixed_ips``\nmap property ``ip_address``\nparameter associated with an internal network, i.e.,\n\n * ``{vm-type}_int_{network-role}_ip_{index}``\n * ``{vm-type}_int_{network-role}_v6_ip_{index}``\n * ``{vm-type}_int_{network-role}_ips``\n * ``{vm-type}_int_{network-role}_v6_ips``\n\n\n**MUST** be enumerated in the Heat Orchestration\nTemplate's Environment File and IP addresses **MUST** be\nassigned.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-93496", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-93860": { + "description": "The VNF **SHOULD** provide the capability to integrate with an\nexternal encryption service.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-93860", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Cryptography Requirements", + "sections": [ + "VNF Cryptography Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-94084": { + "description": "The xNF **MUST** support APPC/SDN-C ``ConfigScaleOut`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-94084", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Commands", + "sections": [ + "Configuration Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-94509": { + "description": "A VNF Heat Orchestration Template's Incremental Module's Environment File\n**MUST** be named identical to the VNF Heat Orchestration Template's\nIncremental Module with ``.y[a]ml`` replaced with ``.env``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-94509", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Incremental Modules", + "sections": [ + "Incremental Modules", + "ONAP Heat Orchestration Template Filenames", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-94525": { + "description": "The VNF **MUST** log connections to the network listeners of the\nresource.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-94525", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-94567": { + "description": "The xNF **MUST** provide Ansible playbooks that are designed to run using\nan inventory hosts file in a supported format with only IP addresses or\nIP addresses and VM/xNF names.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-94567", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-94669": { + "description": "If a VNF has one IPv6 OAM Management IP Address and the\nIP Address needs to be inventoried in ONAP's A&AI\ndatabase, an output parameter **MUST** be declared in only one of the\nVNF's Heat Orchestration Templates and the parameter **MUST** be named\n``oam_management_v6_address``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", + "full_title": "", + "hide_links": "", + "id": "R-94669", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OAM Management IP Addresses", + "sections": [ + "OAM Management IP Addresses", + "Predefined Output Parameters", + "ONAP Output Parameter Names" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-94978": { + "description": "The VNF **MUST** provide a mechanism and tool to perform a graceful\nshutdown of all the containers (VMs) in the VNF without impacting service\nor service quality assuming another VNF in same or other geographical\nlocation can take over traffic and process service requests.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-94978", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Resilient Error Handling", + "sections": [ + "Application Resilient Error Handling", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-952314": { + "description": "If the PNF set up a TLS connection and mutual (two-way) authentication is\nbeing used, then the PNF **MUST** provide its own X.509v3 Certificate to\nthe DCAE VES Collector for authentication.\n\nNote: This allows TLS authentication by DCAE VES Collector.\n\nNote: The PNF got its X.509 certificate through Enrollment with an\noperator certificate authority or a X.509 vendor certificate from the\nvendor factory CA.\n\nNote: In R3 three authentication options are supported:\n\n(1) HTTP with Username & Password and no TLS.\n\n(2) HTTP with Username & Password & TLS with two-way certificate\n authentication.\n\n(3) HTTP with Username & Password & TLS with server-side\n certificate authentication.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-952314", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-95303": { + "description": "A VNF's Heat Orchestration Template **MUST** be defined using valid YAML.", + "docname": "Chapter5/Heat/General Guidelines for Heat", + "full_title": "", + "hide_links": "", + "id": "R-95303", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "YAML Format", + "sections": [ + "YAML Format", + "General Guidelines for Heat" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-95321": { + "description": "The VNFD provided by VNF vendor may use the below described TOSCA\nrelationships. An on-boarding entity (ONAP SDC) **MUST** support them.\n\n **tosca.relationships.nfv.VirtualBindsTo**\n\n This relationship type represents an association relationship between\n VDU and CP node types.\n\n **tosca.relationships.nfv.VirtualLinksTo**\n\n This relationship type represents an association relationship between\n the VduCpd's and VirtualLinkDesc node types.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-95321", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Relationship Types", + "sections": [ + "Relationship Types", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-95430": { + "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property\n``metadata`` key/value pair ``vm_role`` value is obtained via\n``get_param``, the parameter **MUST** be declared as ``vm_role``\nand the parameter **MUST** be defined as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-95430", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vm_role", + "sections": [ + "vm_role", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-95864": { + "description": "The VNF **MUST** support digital certificates that comply with X.509\nstandards.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-95864", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Data Protection Requirements", + "sections": [ + "VNF Data Protection Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-95950": { + "description": "The xNF **MUST** provide a NETCONF interface fully defined\nby supplied YANG models for the embedded NETCONF server.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-95950", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Management", + "sections": [ + "Configuration Management", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-96227": { + "description": "A VNF's Heat Orchestration Template's parameter defined\nin a non-nested YAML file as type\n``json`` **MAY** have a parameter constraint defined.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-96227", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "constraints", + "sections": [ + "constraints", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-96253": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::VirtualMachineInterface`` that is attaching to an external network\nResource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_{network-role}_vmi_{vmi_index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port (i.e. virtual machine interface) is attached to\n* ``{vmi_index}`` is the instance of the the vmi on the vm-type\n attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-96253", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::VirtualMachineInterface", + "sections": [ + "OS::ContrailV2::VirtualMachineInterface", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-96482": { + "description": "When a VNF's Heat Orchestration Template's resource is associated\nwith a single external network, the Resource ID **MUST** contain the text\n``{network-role}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-96482", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource IDs", + "sections": [ + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-96554": { + "description": "The xNF **MUST** implement the protocol operation:\n``unlock(target)`` - Unlock the configuration data store target.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-96554", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-96634": { + "description": "The xNF provider **MUST** describe scaling capabilities\nto manage scaling characteristics of the xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-96634", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Compute, Network, and Storage Requirements", + "sections": [ + "Compute, Network, and Storage Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-96983": { + "description": "A VNF's Heat Orchestration Template's Resource ID that is associated\nwith an internal network **MUST** include ``int_{network-role}`` as part\nof the Resource ID, where ``int_`` is a hard coded string.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", + "full_title": "", + "hide_links": "", + "id": "R-96983", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{network-role}", + "sections": [ + "{network-role}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-97102": { + "description": "The VNF Package **MUST** include VM requirements via a Heat\ntemplate that provides the necessary data for VM specifications\nfor all VNF components - for hypervisor, CPU, memory, storage.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-97102", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Compute, Network, and Storage Requirements", + "sections": [ + "Compute, Network, and Storage Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-97201": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_int_{network-role}_v6_ip_{index}``\n**MUST** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-97201", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-97293": { + "description": "The xNF provider **MUST NOT** require audits\nof Service Provider's business.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-97293", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Licensing Requirements", + "sections": [ + "Licensing Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-97343": { + "description": "The xNF **MUST** support APPC/SDN-C ``UpgradeBackup`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-97343", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", + "sections": [ + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-97345": { + "description": "The xNF **MUST** permit authentication, using root account, only right\nafter instantiation and until post-instantiation configuration is\ncompleted.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-97345", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-97445": { + "description": "The VNF **MUST** log the field \"date/time\" in the security audit\nlogs.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-97445", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-97451": { + "description": "The xNF **MUST** provide the ability to remove root access once\npost-instantiation configuration (Configure) is completed.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-97451", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-97529": { + "description": "The xNF **SHOULD** implement the protocol operation:\n``get-schema(identifier, version, format)`` - Retrieve the YANG schema.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-97529", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-97726": { + "description": "A VNF's Heat Orchestration Template's Base Module Output Parameter names\n**MUST** contain ``{vm-type}`` and/or ``{network-role}`` when appropriate.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", + "full_title": "", + "hide_links": "", + "id": "R-97726", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Base Module Output Parameters:", + "sections": [ + "ONAP Base Module Output Parameters:", + "ONAP Output Parameter Names" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-978752": { + "description": "The xNF providers **MUST** provide the Service Provider the following\nartifacts to support the delivery of high-volume xNF telemetry to\nDCAE via GPB over TLS/TCP:\n\n * A valid VES Event .proto definition file, to be used validate and\n decode an event\n * A valid high volume measurement .proto definition file, to be used for\n processing high volume events\n * A supporting PM content metadata file to be used by analytics\n applications to process high volume measurement events", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-978752", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Google Protocol Buffers (GPB)", + "sections": [ + "Google Protocol Buffers (GPB)", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF PROVIDER", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-980039": { + "description": "The PNF **MUST** send the pnfRegistration VES event periodically.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-980039", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-98138": { + "description": "When a VNF's Heat Orchestration Template's resource is associated with a\nsingle internal network, the Resource ID **MUST** contain the text\n``int_{network-role}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-98138", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource IDs", + "sections": [ + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-981585": { + "description": "The pnfRegistration VES event periodicity **MUST** be configurable.\n\nNote: The PNF uses the service configuration request as a semaphore to\nstop sending the pnfRegistration sent. See the requirement PNP-5360\nrequirement.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-981585", + "impacts": "", + "introduced": "casablanca", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-98191": { + "description": "The xNF **MUST** vary the frequency that asynchronous data\nis delivered based on the content and how data may be aggregated or\ngrouped together.\n\n Note:\n\n - For example, alarms and alerts are expected to be delivered as\n soon as they appear. In contrast, other content, such as performance\n measurements, KPIs or reported network signaling may have various\n ways of packaging and delivering content. Some content should be\n streamed immediately; or content may be monitored over a time\n interval, then packaged as collection of records and delivered\n as block; or data may be collected until a package of a certain\n size has been collected; or content may be summarized statistically\n over a time interval, or computed as a KPI, with the summary or KPI\n being delivered.\n - We expect the reporting frequency to be configurable depending on\n the virtual network functions needs for management. For example,\n Service Provider may choose to vary the frequency of collection\n between normal and trouble-shooting scenarios.\n - Decisions about the frequency of data reporting will affect\n the size of delivered data sets, recommended delivery method,\n and how the data will be interpreted by ONAP. These considerations\n should not affect deserialization and decoding of the data, which\n will be guided by the accompanying JSON schema or GPB definition\n files.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-98191", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Reporting Frequency", + "sections": [ + "Reporting Frequency", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-98374": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource property\n``metadata`` key/value pair ``vf_module_id`` parameter ``vf_module_id``\n**MUST NOT**\nhave parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-98374", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_id", + "sections": [ + "vf_module_id", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-98391": { + "description": "The VNF **MUST**, if not integrated with the Operator's Identity and\nAccess Management system, support Role-Based Access Control to enforce\nleast privilege.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-98391", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-98407": { + "description": "A VNF's Heat Orchestration Template's ``{vm-type}`` **MUST** contain only\nalphanumeric characters and/or underscores '_' and **MUST NOT**\ncontain any of the following strings:\n``_int`` or ``int_`` or ``_int_``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", + "full_title": "", + "hide_links": "", + "id": "R-98407", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{vm-type}", + "sections": [ + "{vm-type}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-98450": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``availability_zone`` parameter name **MUST** follow the naming convention\n``availability_zone_{index}`` where the ``{index}``\n**MUST** start at zero and\nincrement by one.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-98450", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: availability_zone", + "sections": [ + "Property: availability_zone", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-98569": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_int_{network-role}_v6_ips``\n**MUST** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-98569", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-98617": { + "description": "The xNF provider **MUST** provide information regarding any\ndependency (e.g., affinity, anti-affinity) with other xNFs and resources.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-98617", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Description", + "sections": [ + "Resource Description", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-98748": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``allowed_address_pairs``\nmap property ``ip_address`` parameter\n**MUST** be declared as type ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-98748", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VIP Assignment, External Networks, Supported by Automation", + "sections": [ + "VIP Assignment, External Networks, Supported by Automation", + "Property: allowed_address_pairs, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-98905": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_{network-role}_ips``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-98905", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-98911": { + "description": "The xNF **MUST NOT** use any instance specific parameters\nfor the xNF in roles/cookbooks/recipes invoked for a xNF action.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-98911", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Roles/Requirements", + "sections": [ + "Chef Roles/Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-98989": { + "description": "The VNF **SHOULD** utilize resource pooling (threads,\nconnections, etc.) within the VNF application so that resources\nare not being created and destroyed resulting in resource management\noverhead.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-98989", + "impacts": "", + "introduced": "", + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "System Resource Optimization", + "sections": [ + "System Resource Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-99110": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::VirtualNetwork`` Resource ID **MUST** use the naming convention\n\n1) ``int_{network-role}_network``\n\nor\n\n2) ``int_{network-role}_RVN`` where RVN represents Resource Virtual\n Network\n\nVNF Heat Orchestration Templates can only create internal networks.\nThere is no ``{index}`` after ``{network-role}`` because ``{network-role}``\n**MUST** be unique in the scope of the VNF's\nHeat Orchestration Template.\n\nNote that option 1 is preferred.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-99110", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::VirtualNetwork", + "sections": [ + "OS::ContrailV2::VirtualNetwork", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-99174": { + "description": "The VNF **MUST**, if not integrated with the Operator's Identity and\nAccess Management system, support the creation of multiple IDs so that\nindividual accountability can be supported.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-99174", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-99646": { + "description": "A VNF's YAML files (i.e, Heat Orchestration Template files and\nNested files) **MUST** have a unique name in the scope of the VNF.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-99646", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Heat Orchestration Template Filenames", + "sections": [ + "ONAP Heat Orchestration Template Filenames", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-99656": { + "description": "The VNF **MUST** NOT terminate stable sessions if a VNFC\ninstance fails.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-99656", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-99730": { + "description": "The VNF **MUST** include the field \"Login ID\" in the Security\nalarms (where applicable and technically feasible).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-99730", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-99766": { + "description": "The VNF **MUST** allow configurations and configuration parameters\nto be managed under version control to ensure the ability to rollback to\na known valid configuration.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-99766", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Configuration Management", + "sections": [ + "Application Configuration Management", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-99771": { + "description": "The VNF **MUST** have all code (e.g., QCOW2) and configuration files\n(e.g., HEAT template, Ansible playbook, script) hardened, or with\ndocumented recommended configurations for hardening and interfaces that\nallow the Operator to harden the VNF. Actions taken to harden a system\ninclude disabling all unnecessary services, and changing default values\nsuch as default credentials and community strings.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-99771", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-99794": { + "description": "An external network **MUST** have one subnet. An external network\n**MAY** have more than one subnet.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-99794", + "impacts": "", + "introduced": "", + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "External Networks", + "sections": [ + "External Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-99798": { + "description": "A VNF's Heat Orchestration Template's Virtual Machine\n(i.e., ``OS::Nova::Server`` resource) **MAY** boot from an image or\n**MAY** boot from a Cinder Volume.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-99798", + "impacts": "", + "introduced": "", + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Boot Options", + "sections": [ + "Boot Options", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-99812": { + "description": "A value for VNF's Heat Orchestration Template's property ``name``\nfor a non ``OS::Nova::Server`` resource **MUST NOT** be declared\nin the VNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property", + "full_title": "", + "hide_links": "", + "id": "R-99812", + "impacts": "", + "introduced": "", + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Property \u201cname\u201d", + "sections": [ + "Resource Property \u201cname\u201d" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + } + }, + "needs_amount": 789 + }, + "dublin": { + "created": "2018-12-12T19:04:40.917158", + "needs": { + "R-00011": { + "description": "A VNF's Heat Orchestration Template's parameter defined\nin a nested YAML file\n**MUST NOT** have a parameter constraint defined.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-00011", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "constraints", + "sections": [ + "constraints", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-00068": { + "description": "The xNF Package **MUST** include documentation which includes\na description of parameters that can be monitored for the xNF\nand event records (status, fault, flow, session, call, control\nplane, etc.) generated by the xNF after instantiation.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-00068", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Description", + "sections": [ + "Resource Description", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-00098": { + "description": "The VNF **MUST NOT** impact the ability of the VNF to provide\nservice/function due to a single container restart.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-00098", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "All Layer Redundancy", + "sections": [ + "All Layer Redundancy", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-00156": { + "description": "The xNF Package **MUST** include documentation describing xNF\nManagement APIs, which must include information and tools for\nONAP to monitor the health of the xNF (conditions that require\nhealing and/or scaling responses).", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-00156", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Description", + "sections": [ + "Resource Description", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-00228": { + "description": "A VNF's Heat Orchestration Template **MAY**\nreference the nested heat statically by repeated definition.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-00228", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat Template Requirements", + "sections": [ + "Nested Heat Template Requirements", + "Nested Heat Templates", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-00606": { + "description": "A VNF **MAY** be connected to zero, one or more than one external\nnetwork.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-00606", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "External Networks", + "sections": [ + "External Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-00977": { + "description": "A VNF's Heat Orchestration Template's ``{network-role}``\n**MUST NOT** be a substring of ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", + "full_title": "", + "hide_links": "", + "id": "R-00977", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{network-role}", + "sections": [ + "{network-role}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-01033": { + "description": "The xNF **MAY** use another option which is expected to include SFTP\nfor asynchronous bulk files, such as bulk files that contain large volumes\nof data collected over a long time interval or data collected across many\nxNFs. (Preferred is to reorganize the data into more frequent or more focused\ndata sets, and deliver these by REST or TCP as appropriate.)", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-01033", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Addressing and Delivery Protocol", + "sections": [ + "Addressing and Delivery Protocol", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-01101": { + "description": "A VNF's Heat Orchestration Template **MAY**\nreference the nested heat dynamically using the resource\n``OS::Heat::ResourceGroup``.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-01101", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat Template Requirements", + "sections": [ + "Nested Heat Template Requirements", + "Nested Heat Templates", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-01123": { + "description": "The VNF package Manifest file **MUST** contain: VNF package meta-data, a\nlist of all artifacts (both internal and external) entry's including\ntheir respected URI's, an algorithm to calculate a digest and a digest\nresult calculated on the content of each artifacts, as specified in\nETSI GS NFV-SOL004. The VNF Package MUST include VNF Identification\nData to uniquely identify the resource for a given VNF provider. The\nidentification data must include: an identifier for the VNF, the name\nof the VNF as was given by the VNF provider, VNF description, VNF\nprovider, and version.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-01123", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Contents", + "sections": [ + "VNF Package Contents", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-01334": { + "description": "The xNF **MUST** conform to the NETCONF RFC 5717,\n\"Partial Lock Remote Procedure Call\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-01334", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-01359": { + "description": "A VNF's Heat Orchestration Template that contains an ``OS::Nova:Server``\nResource **MAY** define a parameter for the property\n``availability_zone`` that is not utilized in any ``OS::Nova::Server``\nresources in the Heat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-01359", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: availability_zone", + "sections": [ + "Property: availability_zone", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-01382": { + "description": "The xNF **MUST** allow the entire configuration of the xNF to be\nretrieved via NETCONF's and , independently\nof whether it was configured via NETCONF or other mechanisms.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-01382", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-01427": { + "description": "The xNF **MUST** support the provisioning of security and authentication\nparameters (HTTP username and password) in order to be able to authenticate\nwith DCAE (in ONAP).\n\nNote: In R3, a username and password are used with the DCAE VES Event\nListener which are used for HTTP Basic Authentication.\n\nNote: The configuration management and provisioning software are specific\nto a vendor architecture.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-01427", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Security", + "sections": [ + "Security", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "dublin", + "validated_by": "", + "validation_mode": "" + }, + "R-01455": { + "description": "When a VNF's Heat Orchestration Template creates a Virtual Machine\n(i.e., ``OS::Nova::Server``),\neach \"class\" of VMs **MUST** be assigned a VNF unique\n``{vm-type}``; where \"class\" defines VMs that\n**MUST** have the following identical characteristics:\n\n 1.) ``OS::Nova::Server`` resource property ``flavor`` value\n\n 2.) ``OS::Nova::Server`` resource property ``image`` value\n\n 3.) Cinder Volume attachments\n\n - Each VM in the \"class\" **MUST** have the identical Cinder Volume\n configuration\n\n 4.) Network attachments and IP address requirements\n\n - Each VM in the \"class\" **MUST** have the the identical number of\n ports connecting to the identical networks and requiring the identical\n IP address configuration.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", + "full_title": "", + "hide_links": "", + "id": "R-01455", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{vm-type}", + "sections": [ + "{vm-type}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-01478": { + "description": "The xNF Package **MUST** include documentation describing all\nparameters that are available to monitor the xNF after instantiation\n(includes all counters, OIDs, PM data, KPIs, etc.) that must be\ncollected for reporting purposes.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-01478", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-01556": { + "description": "The xNF Package **MUST** include documentation describing the\nfault, performance, capacity events/alarms and other event records\nthat are made available by the xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-01556", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-01896": { + "description": "A VNF's Heat Orchestration Template's parameter values that are constant\nacross all deployments **MUST** be declared in a Heat Orchestration\nTemplate Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-01896", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Scope of a Heat Orchestration Template", + "sections": [ + "Scope of a Heat Orchestration Template", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-02164": { + "description": "When a VNF's Heat Orchestration Template's Contrail resource\nhas a property that\nreferences an external network that requires the network's\nFully Qualified Domain Name (FQDN), the property parameter\n\n* **MUST** follow the format ``{network-role}_net_fqdn``\n* **MUST** be declared as type ``string``\n* **MUST NOT** be enumerated in the VNF's Heat Orchestration Template's\n Environment File", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Contrail Resource Parameters", + "full_title": "", + "hide_links": "", + "id": "R-02164", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "External Networks", + "sections": [ + "External Networks", + "Contrail Network Parameters", + "Contrail Resource Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-02170": { + "description": "The VNF **MUST** use, whenever possible, standard implementations\nof security applications, protocols, and formats, e.g., S/MIME, TLS, SSH,\nIPSec, X.509 digital certificates for cryptographic implementations.\nThese implementations must be purchased from reputable vendors or obtained\nfrom reputable open source communities and must not be developed in-house.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-02170", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Data Protection Requirements", + "sections": [ + "VNF Data Protection Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-02360": { + "description": "The VNFC **MUST** be designed as a standalone, executable process.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-02360", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-02454": { + "description": "The VNF **MUST** support the existence of multiple major/minor\nversions of the VNF software and/or sub-components and interfaces that\nsupport both forward and backward compatibility to be transparent to\nthe Service Provider usage.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-02454", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Deployment Optimization", + "sections": [ + "Deployment Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-02597": { + "description": "The xNF **MUST** implement the protocol operation:\n``lock(target)`` - Lock the configuration data store target.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-02597", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-02616": { + "description": "The xNF **MUST** permit locking at the finest granularity\nif a xNF needs to lock an object for configuration to avoid blocking\nsimultaneous configuration operations on unrelated objects (e.g., BGP\nconfiguration should not be locked out if an interface is being\nconfigured or entire Interface configuration should not be locked out\nif a non-overlapping parameter on the interface is being configured).", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-02616", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-02651": { + "description": "The xNF **SHOULD** use available backup capabilities to save a\ncopy of configuration files before implementing changes to support\noperations such as backing out of software upgrades, configuration\nchanges or other work as this will help backing out of configuration\nchanges when needed.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-02651", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-02691": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``workload_context``\nparameter ``workload_context`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-02691", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "workload_context", + "sections": [ + "workload_context", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-02997": { + "description": "The VNF **MUST** preserve their persistent data. Running VMs\nwill not be backed up in the Network Cloud infrastructure.", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-02997", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-03070": { + "description": "The xNF **MUST**, by ONAP Policy, provide the ONAP addresses\nas data destinations for each xNF, and may be changed by Policy while\nthe xNF is in operation. We expect the xNF to be capable of redirecting\ntraffic to changed destinations with no loss of data, for example from\none REST URL to another, or from one TCP host and port to another.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-03070", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Addressing and Delivery Protocol", + "sections": [ + "Addressing and Delivery Protocol", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-03251": { + "description": "A VNF's Heat Orchestration Template's Resource OS::Heat::CinderVolume\n**MAY** be defined in a Cinder Volume Module.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-03251", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-03324": { + "description": "A VNF's Heat Orchestration template's Environment File **MUST**\ncontain the ``parameters:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-03324", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Environment File Format", + "sections": [ + "Environment File Format", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-03465": { + "description": "The xNF **MUST** release locks to prevent permanent lock-outs\nwhen the corresponding operation succeeds.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-03465", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-03595": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup`` that\nis applicable to more than one ``{vm-type}`` and one external network Resource ID\n**SHOULD** use the naming convention\n\n* ``{network-role}_security_group``\n\nwhere\n\n* ``{network-role}`` is the network-role", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-03595", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Neutron::SecurityGroup", + "sections": [ + "OS::Neutron::SecurityGroup", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-03656": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Heat::SoftwareConfig``\nResource ID **MAY** use the naming convention\n\n* ``{vm-type}_RSC``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``RSC`` signifies that it is the Resource Software Config", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-03656", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Heat::SoftwareConfig", + "sections": [ + "OS::Heat::SoftwareConfig", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-03954": { + "description": "The VNF **MUST** survive any single points of failure within\nthe Network Cloud (e.g., virtual NIC, VM, disk failure).", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-03954", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "All Layer Redundancy", + "sections": [ + "All Layer Redundancy", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-04158": { + "description": "The xNF **MUST** conform to the NETCONF RFC 4742,\n\"Using the NETCONF Configuration Protocol over Secure Shell (SSH)\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-04158", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-04298": { + "description": "The xNF provider **MUST** provide their testing scripts to\nsupport testing.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-04298", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Testing", + "sections": [ + "Testing", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-04344": { + "description": "A VNF's Nested YAML file **MAY** be invoked by more than one of\na VNF's Heat Orchestration Templates (when the VNF is composed of two\nor more Heat Orchestration Templates).", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-04344", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat Template Requirements", + "sections": [ + "Nested Heat Template Requirements", + "Nested Heat Templates", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-04492": { + "description": "The VNF **MUST** generate security audit logs that can be sent\nto Security Analytics Tools for analysis.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-04492", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-04697": { + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv4 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``comma_delimited_list``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_ips``\n\n where\n\n * ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n * ``{network-role}`` is the {network-role} of the external\n network", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-04697", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-04747": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Heat::CloudConfig``\nResource ID **MUST** contain the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-04747", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Heat::CloudConfig", + "sections": [ + "OS::Heat::CloudConfig", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-04982": { + "description": "The VNF **MUST NOT** include an authentication credential,\ne.g., password, in the security audit logs, even if encrypted.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-04982", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-05050": { + "description": "A VNF's Heat Orchestration Templates intrinsic function\n``get_file`` **MAY** be used:\n\n * more than once in a VNF's Heat Orchestration Template\n * in two or more of a VNF's Heat Orchestration Templates\n * in a VNF's Heat Orchestration Templates nested YAML file", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-05050", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Heat Files Support (get_file)", + "sections": [ + "Heat Files Support (get_file)", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-05201": { + "description": "When a VNF connects to two or more unique networks, each\nnetwork **MUST** be assigned a unique ``{network-role}``\nin the context of the VNF for use in the VNF's Heat Orchestration\nTemplate.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", + "full_title": "", + "hide_links": "", + "id": "R-05201", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{network-role}", + "sections": [ + "{network-role}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-05257": { + "description": "A VNF's Heat Orchestration Template's **MUST NOT**\ncontain the Resource ``OS::Neutron::FloatingIP``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-05257", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VIP Assignment, External Networks, Supported by Automation", + "sections": [ + "VIP Assignment, External Networks, Supported by Automation", + "Property: allowed_address_pairs, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-06327": { + "description": "The VNF **MUST** respond to a \"drain VNFC\" [#4.5.2]_ command against\na specific VNFC, preventing new session from reaching the targeted VNFC,\nwith no disruption to active sessions on the impacted VNFC, if a VNF\nprovides a load balancing function across multiple instances of its VNFCs.\nThis is used to support scenarios such as proactive maintenance with no\nuser impact.", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-06327", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-06413": { + "description": "The VNF **MUST** log the field \"service or program used for access\"\nin the security audit logs.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-06413", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-06613": { + "description": "A VNF's Heat Orchestration Template's parameter defined\nin a non-nested YAML file as type\n``boolean`` **MAY** have a parameter constraint defined.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-06613", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "constraints", + "sections": [ + "constraints", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-06668": { + "description": "The VNF **MUST** handle the start or restart of VNFC instances\nin any order with each VNFC instance establishing or re-establishing\nrequired connections or relationships with other VNFC instances and/or\nVNFs required to perform the VNF function/role without requiring VNFC\ninstance(s) to be started/restarted in a particular order.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-06668", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Resilient Error Handling", + "sections": [ + "Application Resilient Error Handling", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-06885": { + "description": "The VNF **SHOULD** support the ability to scale down a VNFC pool\nwithout jeopardizing active sessions. Ideally, an active session should\nnot be tied to any particular VNFC instance.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-06885", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "System Resource Optimization", + "sections": [ + "System Resource Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-06924": { + "description": "The xNF **MUST** deliver asynchronous data as data becomes\navailable, or according to the configured frequency.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-06924", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Asynchronous and Synchronous Data Delivery", + "sections": [ + "Asynchronous and Synchronous Data Delivery", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-07251": { + "description": "The xNF **MUST** support APPC/SDN-C ``ResumeTraffic`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-07251", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", + "sections": [ + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-07443": { + "description": "A VNF's Heat Orchestration Templates' Cinder Volume Module Output\nParameter's name and type **MUST** match the input parameter name and type\nin the corresponding Base Module or Incremental Module.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-07443", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Volume Module Output Parameters", + "sections": [ + "ONAP Volume Module Output Parameters", + "Output Parameters", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-07507": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property\n``metadata`` key/value pair ``vnf_id`` parameter\n**MUST** be declared as ``vnf_id`` and the parameter **MUST**\nbe defined as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-07507", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vnf_id", + "sections": [ + "vnf_id", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-07545": { + "description": "The xNF **MUST** support all operations, administration and\nmanagement (OAM) functions available from the supplier for xNFs using\nthe supplied YANG code and associated NETCONF servers.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-07545", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-07617": { + "description": "The VNF **MUST** log success and unsuccessful creation, removal, or\nchange to the inherent privilege level of users.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-07617", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-08134": { + "description": "The xNF **MUST** conform to the NETCONF RFC 6241,\n\"NETCONF Configuration Protocol\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-08134", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-08312": { + "description": "The xNF **MAY** use another option which is expected to include REST\ndelivery of binary encoded data sets.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-08312", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Addressing and Delivery Protocol", + "sections": [ + "Addressing and Delivery Protocol", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-08315": { + "description": "The VNF **SHOULD** use redundant connection pooling to connect\nto any backend data source that can be switched between pools in an\nautomated/scripted fashion to ensure high availability of the connection\nto the data source.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-08315", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Intelligent Transaction Distribution & Management", + "sections": [ + "Intelligent Transaction Distribution & Management", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-08775": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup``\nthat is applicable to one ``{vm-type}`` and more than one network (internal\nand/or external) Resource ID **SHOULD** use the naming convention\n\n* ``{vm-type}_security_group``\n\nwhere\n\n* ``{vm-type}`` is the vm-type", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-08775", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Neutron::SecurityGroup", + "sections": [ + "OS::Neutron::SecurityGroup", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-08975": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Heat::SoftwareConfig``\nResource ID **MUST** contain the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-08975", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Heat::SoftwareConfig", + "sections": [ + "OS::Heat::SoftwareConfig", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-09467": { + "description": "The VNF **MUST** utilize only NCSP standard compute flavors. [#4.5.1]_", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-09467", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-09811": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vf_module_index`` **MUST NOT**\nhave parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-09811", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_index", + "sections": [ + "vf_module_index", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-10087": { + "description": "The VNF package **MUST** contain all standard artifacts as specified in\nETSI GS NFV-SOL004 including Manifest file, VNFD (or Main TOSCA/YAML\nbased Service Template) and other optional artifacts. CSAR Manifest\nfile as per SOL004 - for example ROOT\\\\ **MainServiceTemplate.mf**", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-10087", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Contents", + "sections": [ + "VNF Package Contents", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-10129": { + "description": "The xNF **SHOULD** conform its YANG model to RFC 7223,\n\"A YANG Data Model for Interface Management\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-10129", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-10173": { + "description": "The xNF **MUST** allow another NETCONF session to be able to\ninitiate the release of the lock by killing the session owning the lock,\nusing the operation to guard against hung NETCONF sessions.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-10173", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-10353": { + "description": "The xNF **MUST** conform its YANG model to RFC 6244,\n\"An Architecture for Network Management Using NETCONF and YANG\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-10353", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-106240": { + "description": "The following VES Events **MUST** be supported by the PNF: pnfRegistration\nVES Event, HVol VES Event, and Fault VES Event. These are onboarded via\nhe SDC Design Studio.\n\nNote: these VES Events are emitted from the PNF to support PNF Plug and\nPlay, High Volume Measurements, and Fault events respectively.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-106240", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-10716": { + "description": "The xNF **MUST** support parallel and simultaneous\nconfiguration of separate objects within itself.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-10716", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-10754": { + "description": "If a VNF has two or more ports that\nattach to an external network that require a Virtual IP Address (VIP),\nand the VNF requires ONAP automation to assign the IP address,\nall the Virtual Machines using the VIP address **MUST**\nbe instantiated in the same Base Module Heat Orchestration Template\nor in the same Incremental Module Heat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-10754", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VIP Assignment, External Networks, Supported by Automation", + "sections": [ + "VIP Assignment, External Networks, Supported by Automation", + "Property: allowed_address_pairs, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-10834": { + "description": "If a VNF's Heat Orchestration Template resource attribute\n``property:`` uses a nested ``get_param``, the nested\n``get_param`` **MUST** reference an index.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-10834", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "properties", + "sections": [ + "properties", + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-11041": { + "description": "All parameters defined in a VNFs Nested YAML file\n**MUST** be passed in as properties of the resource calling\nthe nested yaml file.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-11041", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat Template Requirements", + "sections": [ + "Nested Heat Template Requirements", + "Nested Heat Templates", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-11168": { + "description": "A VNF's Heat Orchestration Template's Resource ID that is associated with\nan external network **MUST** include the ``{network-role}`` as part\nof the resource ID.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", + "full_title": "", + "hide_links": "", + "id": "R-11168", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{network-role}", + "sections": [ + "{network-role}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-11200": { + "description": "A VNF's Cinder Volume Module, when it exists, **MUST** be 1:1\nwith a Base module or Incremental module.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-11200", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-11235": { + "description": "The xNF **MUST** implement the protocol operation:\n``kill-session(session``- Force the termination of **session**.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-11235", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-11240": { + "description": "The xNF **MUST** respond with content encoded in JSON, as\ndescribed in the RESTCONF specification. This way the encoding of a\nsynchronous communication will be consistent with Avro.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-11240", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Asynchronous and Synchronous Data Delivery", + "sections": [ + "Asynchronous and Synchronous Data Delivery", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-11441": { + "description": "A VNF's Heat Orchestration Template's parameter type **MUST** be one of\nthe following values:\n\n* ``string``\n* ``number``\n* ``json``\n* ``comma_delimited_list``\n* ``boolean``", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-11441", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "type", + "sections": [ + "type", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-11499": { + "description": "The xNF **MUST** fully support the XPath 1.0 specification\nfor filtered retrieval of configuration and other database contents.\nThe 'type' attribute within the parameter for and\n operations may be set to 'xpath'. The 'select' attribute\n(which contains the XPath expression) will also be supported by the\nserver. A server may support partial XPath retrieval filtering, but\nit cannot advertise the ``:xpath`` capability unless the entire XPath\n1.0 specification is supported.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-11499", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-11690": { + "description": "When a VNF's Heat Orchestration Template's Resource ID contains an\n``{index}``, the ``{index}`` is a numeric value that **MUST** start at\nzero and **MUST** increment by one.\n\nAs stated in R-16447,\n*a VNF's MUST be unique across all Heat\nOrchestration Templates and all HEAT Orchestration Template\nNested YAML files that are used to create the VNF*. While the ``{index}``\nwill start at zero in the VNF, the ``{index}`` may not start at zero\nin a given Heat Orchestration Template or HEAT Orchestration Template\nNested YAML file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-11690", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource IDs", + "sections": [ + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-11790": { + "description": "The VNF **MUST** support ONAP Controller's\n**Restart (stop/start or reboot)** command.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-11790", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Virtual Function - Container Recovery Requirements", + "sections": [ + "Virtual Function - Container Recovery Requirements", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-118669": { + "description": "Login access (e.g., shell access) to the operating system layer, whether\ninteractive or as part of an automated process, **MUST** be through an\nencrypted protocol such as SSH or TLS.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-118669", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-120182": { + "description": "The xNF provider **MUST** indicate specific conditions that may arise, and\nrecommend actions that may be taken at specific thresholds, or if specific\nconditions repeat within a specified time interval, using the semantics and\nsyntax described by the :doc:`VES Event Registration specification<../../../../vnfsdk/module.git/files/VESEventRegistration_3_0>`.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-120182", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Data Structure Specification of the Event Record", + "sections": [ + "Data Structure Specification of the Event Record", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF PROVIDER", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-12110": { + "description": "The VNF **MUST NOT** use keys generated or derived from\npredictable functions or values, e.g., values considered predictable\ninclude user identity information, time of day, stored/transmitted data.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-12110", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Data Protection Requirements", + "sections": [ + "VNF Data Protection Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-12271": { + "description": "The xNF **SHOULD** conform its YANG model to RFC 7223,\n\"IANA Interface Type YANG Module\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-12271", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-123044": { + "description": "The xNF Provider **MAY** require that specific events, identified by their\n``eventName``, require that certain fields, which are optional in the common\nevent format, must be present when they are published.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-123044", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Data Structure Specification of the Event Record", + "sections": [ + "Data Structure Specification of the Event Record", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF PROVIDER", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-12467": { + "description": "The VNF **MUST NOT** use compromised encryption algorithms.\nFor example, SHA, DSS, MD5, SHA-1 and Skipjack algorithms.\nAcceptable algorithms can be found in the NIST FIPS publications\n(https://csrc.nist.gov/publications/fips) and in the\nNIST Special Publications (https://csrc.nist.gov/publications/sp).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-12467", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Data Protection Requirements", + "sections": [ + "VNF Data Protection Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-12538": { + "description": "The VNF **SHOULD** support load balancing and discovery\nmechanisms in resource pools containing VNFC instances.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-12538", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "System Resource Optimization", + "sections": [ + "System Resource Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-12678": { + "description": "The xNF Package **MUST** include documentation which includes a\ndescription of runtime lifecycle events and related actions (e.g.,\ncontrol responses, tests) which can be performed for the xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-12678", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Description", + "sections": [ + "Resource Description", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-12706": { + "description": "The xNF **MUST** support APPC/SDN-C ``QuiesceTraffic`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-12706", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", + "sections": [ + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-12709": { + "description": "The VNFC **SHOULD** be independently deployed, configured,\nupgraded, scaled, monitored, and administered by ONAP.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-12709", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-13151": { + "description": "The VNF **SHOULD** disable the paging of the data requiring\nencryption, if possible, where the encryption of non-transient data is\nrequired on a device for which the operating system performs paging to\nvirtual memory. If not possible to disable the paging of the data\nrequiring encryption, the virtual memory should be encrypted.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-13151", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Data Protection Requirements", + "sections": [ + "VNF Data Protection Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-13194": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``environment_context`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-13194", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "environment_context", + "sections": [ + "environment_context", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-13196": { + "description": "A VNF **MAY** be composed of zero to many Incremental Modules.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-13196", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-13344": { + "description": "The VNF **MUST** log starting and stopping of security\nlogging.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-13344", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-13390": { + "description": "The xNF provider **MUST** provide cookbooks to be loaded\non the appropriate Chef Server.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-13390", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Management via Chef", + "sections": [ + "Configuration Management via Chef", + "Resource Configuration", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-13613": { + "description": "The VNF **MUST** provide clear measurements for licensing\npurposes to allow automated scale up/down by the management system.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-13613", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Licensing Requirements", + "sections": [ + "Licensing Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-13627": { + "description": "The VNF **MUST** monitor API invocation patterns to detect\nanomalous access patterns that may represent fraudulent access or other\ntypes of attacks, or integrate with tools that implement anomaly and\nabuse detection.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-13627", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-13800": { + "description": "The xNF **MUST** conform to the NETCONF RFC 5277,\n\"NETCONF Event Notification\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-13800", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-14198": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup`` that\nis applicable to one {vm-type} and one internal network Resource ID **SHOULD**\nuse the naming convention\n\n* ``{vm-type}_int_{network-role}_security_group``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{network-role}`` is the network-role", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-14198", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Neutron::SecurityGroup", + "sections": [ + "OS::Neutron::SecurityGroup", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-14447": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::ServiceTemplate``\nResource ID **MAY** use the naming convention\n\n* ``{vm-type}_RST_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``RST`` signifies that it is the Resource Service Template\n* ``{index}`` is is the index", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-14447", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::ServiceTemplate", + "sections": [ + "OS::ContrailV2::ServiceTemplate", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-146931": { + "description": "The xNF **MUST** report exactly one Measurement event per period\nper source name.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-146931", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Reporting Frequency", + "sections": [ + "Reporting Frequency", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-14853": { + "description": "The VNF **MUST** respond to a \"move traffic\" [#4.5.2]_ command\nagainst a specific VNFC, moving all existing session elsewhere with\nminimal disruption if a VNF provides a load balancing function across\nmultiple instances of its VNFCs.\n\nNote: Individual VNF performance aspects (e.g., move duration or\ndisruption scope) may require further constraints.", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-14853", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-15189": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Nova::ServerGroup`` Resource ID\n**MAY** use the naming convention\n\n* ``{vm-type}_RSG``\n\nor\n\n* ``{vm-type}_Server_Grp``\n\nor\n\n* ``{vm-type}_ServerGroup``\n\nor\n\n* ``{vm-type}_servergroup``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-15189", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Nova::ServerGroup", + "sections": [ + "OS::Nova::ServerGroup", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-15287": { + "description": "When the VNF's Heat Orchestration Template's\nresource ``OS::Neutron::Port`` is attaching\nto an external network (per the ONAP definition, see\nRequirement R-57424),\nand an IPv6 address is being cloud assigned by OpenStack's DHCP Service\nand the external network IPv6 subnet is to be specified\nusing the property ``fixed_ips``\nmap property ``subnet``, the parameter\n**MUST** follow the naming convention\n\n * ``{network-role}_v6_subnet_id``\n\nwhere\n\n * ``{network-role}`` is the network role of the network.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-15287", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", + "sections": [ + "Property: fixed_ips, Map Property: subnet", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-15325": { + "description": "The VNF **MUST** log the field \"success/failure\" in the\nsecurity audit logs.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-15325", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-15480": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``vf_module_name`` parameter ``vf_module_name``\n**MUST NOT** have parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-15480", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vf_module_name", + "sections": [ + "vf_module_name", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-15671": { + "description": "The VNF **MUST** provide access controls that allow the Operator\nto restrict access to VNF functions and data to authorized entities.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-15671", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-15837": { + "description": "The following table defines the major TOSCA Types specified in\nETSI NFV-SOL001 standard draft. The VNFD provided by a VNF vendor\n**MUST** comply with the below definitions:", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-15837", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "General", + "sections": [ + "General", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-15884": { + "description": "The VNF **MUST** include the field \"date\" in the Security alarms\n(where applicable and technically feasible).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-15884", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-15885": { + "description": "The xNF **MUST** Upon completion of the chef-client run,\nPOST back on the callback URL, a JSON object as described in Table\nA2 if the chef-client run list includes a cookbook/recipe that is\ncallback capable. Failure to POST on the Callback Url should not be\nconsidered a critical error. That is, if the chef-client successfully\ncompletes the xNF action, it should reflect this status on the Chef\nServer regardless of whether the Callback succeeded or not.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-15885", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Roles/Requirements", + "sections": [ + "Chef Roles/Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-16039": { + "description": "The VNF **SHOULD** test for adherence to the defined\nresiliency rating recommendation at each layer, during each\ndelivery cycle so that the resiliency rating is measured and\nfeedback is provided where software resiliency requirements are\nnot met.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-16039", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Deployment Optimization", + "sections": [ + "Deployment Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-16065": { + "description": "The xNF provider **MUST** provide configurable parameters\n(if unable to conform to YANG model) including xNF attributes/parameters\nand valid values, dynamic attributes and cross parameter dependencies\n(e.g., customer provisioning data).", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-16065", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Management via Ansible", + "sections": [ + "Configuration Management via Ansible", + "Resource Configuration", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-16241": { + "description": "A VNF's internal network **MUST** have one subnet.\nA VNF's internal network **MAY** have more than one subnet.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-16241", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Internal Networks", + "sections": [ + "Internal Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-16437": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::ServiceTemplate``\nResource ID **MUST** contain the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-16437", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::ServiceTemplate", + "sections": [ + "OS::ContrailV2::ServiceTemplate", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-16447": { + "description": "A VNF's **MUST** be unique across all Heat\nOrchestration Templates and all HEAT Orchestration Template\nNested YAML files that are used to create the VNF.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-16447", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "resource ID", + "sections": [ + "resource ID", + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-16496": { + "description": "The VNF **MUST** enable instantiating only the functionality that\nis needed for the decomposed VNF (e.g., if transcoding is not needed it\nshould not be instantiated).", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-16496", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-16560": { + "description": "The VNF **SHOULD** conduct a resiliency impact assessment for all\ninter/intra-connectivity points in the VNF to provide an overall resiliency\nrating for the VNF to be incorporated into the software design and\ndevelopment of the VNF.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-16560", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Monitoring & Dashboard", + "sections": [ + "Monitoring & Dashboard", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-16777": { + "description": "The xNF provider **MUST** provide a JSON file for each\nsupported action for the xNF. The JSON file must contain key value\npairs with all relevant values populated with sample data that illustrates\nits usage. The fields and their description are defined in Table B1\nin the Appendix.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-16777", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Management via Ansible", + "sections": [ + "Configuration Management via Ansible", + "Resource Configuration", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-16875": { + "description": "The xNF Package **MUST** include documentation which must include\na unique identification string for the specific xNF, a description of\nthe problem that caused the error, and steps or procedures to perform\nRoot Cause Analysis and resolve the issue.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-16875", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-16968": { + "description": "A VNF's Heat Orchestration Templates **MUST NOT** include heat\nresources to create external networks.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-16968", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "External Networks", + "sections": [ + "External Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-17334": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup``\nthat is applicable to one ``{vm-type}`` and one external network Resource ID\n**SHOULD** use the naming convention\n\n* ``{vm-type}_{network-role}_security_group``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{network-role}`` is the network-role", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-17334", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Neutron::SecurityGroup", + "sections": [ + "OS::Neutron::SecurityGroup", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-17528": { + "description": "A VNF's Heat Orchestration Template's first level Nested YAML file\n**MUST NOT** contain more than one ``OS::Nova::Server`` resource.\nA VNF's Heat Orchestration Template's second level Nested YAML file\n**MUST NOT** contain an ``OS::Nova::Server`` resource.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", + "full_title": "", + "hide_links": "", + "id": "R-17528", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat Template Requirements", + "sections": [ + "Nested Heat Template Requirements", + "Nested Heat Templates", + "ONAP Heat Heat Template Constructs" + ], + "status": null, + "tags": [], + "target": "", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-17624": { + "description": "The PNF **MAY** support the optional parameters for Service\nConfiguration Parameters.\n\nNote: These are detailed in the Stage 5 PnP\n\nNote: These parameters are optional, and not all PNFs will support any\nor all of these parameters, it is up to the vendor and service provider\nto ascertain which ones are supported up to an including all of the ones\nthat have been defined. Note: It is expected that there will be a growing\nlist of supported configuration parameters in future releases of ONAP.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-17624", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-17852": { + "description": "The VNFD **MAY** include TOSCA/YAML definitions that are not part of\nNFV Profile. If provided, these definitions MUST comply with TOSCA\nSimple Profile in YAML v.1.2.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-17852", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "General", + "sections": [ + "General", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-18001": { + "description": "If the VNF's ports connected to a unique internal network\nand the port's IP addresses are statically assigned IP Addresses,\nthe IPv4 Addresses **MAY** be from different subnets and the\nIPv6 Addresses **MAY** be from different subnets.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-18001", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Items to Note", + "sections": [ + "Items to Note", + "Introduction", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-18008": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nproperty ``network`` parameter **MUST** be declared as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-18008", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: network", + "sections": [ + "Property: network", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-18202": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::Heat::MultipartMime``\nResource ID\n**MAY**\nuse the naming convention\n\n* ``{vm-type}_RMM``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``RMM`` signifies that it is the Resource Multipart Mime", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-18202", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Heat::MultipartMime", + "sections": [ + "OS::Heat::MultipartMime", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-18525": { + "description": "The xNF provider **MUST** provide a JSON file for each\nsupported action for the xNF. The JSON file must contain key value\npairs with all relevant values populated with sample data that illustrates\nits usage. The fields and their description are defined in Tables A1\nand A2 in the Appendix.\n\nNote: Chef support in ONAP is not currently available and planned for 4Q 2017.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-18525", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Management via Chef", + "sections": [ + "Configuration Management via Chef", + "Resource Configuration", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-18683": { + "description": "If a VNF has one IPv4 OAM Management IP Address and the\nIP Address needs to be inventoried in ONAP's A&AI\ndatabase, an output parameter **MUST** be declared in only one of the\nVNF's Heat Orchestration Templates and the parameter **MUST** be named\n``oam_management_v4_address``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", + "full_title": "", + "hide_links": "", + "id": "R-18683", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OAM Management IP Addresses", + "sections": [ + "OAM Management IP Addresses", + "Predefined Output Parameters", + "ONAP Output Parameter Names" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-18725": { + "description": "The VNF **MUST** handle the restart of a single VNFC instance\nwithout requiring all VNFC instances to be restarted.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-18725", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Resilient Error Handling", + "sections": [ + "Application Resilient Error Handling", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-18733": { + "description": "The xNF **MUST** implement the protocol operation:\n``discard-changes()`` - Revert the candidate configuration\ndata store to the running configuration.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-18733", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-18864": { + "description": "The VNF **MUST NOT** use technologies that bypass virtualization\nlayers (such as SR-IOV) unless approved by the NCSP (e.g., if necessary\nto meet functional or performance requirements).", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-18864", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-19082": { + "description": "The VNF **MUST** allow the Operator to disable or remove any security\ntesting tools or programs included in the VNF, e.g., password cracker,\nport scanner.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-19082", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-19366": { + "description": "The xNF **MUST** support APPC ``ConfigModify`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-19366", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Commands", + "sections": [ + "Configuration Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-19624": { + "description": "The xNF, when leveraging JSON for events, **MUST** encode and serialize\ncontent delivered to ONAP using JSON (RFC 7159) plain text format.\nHigh-volume data is to be encoded and serialized using\n`Avro `_, where the Avro [#7.4.1]_ data\nformat are described using JSON.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-19624", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "JSON", + "sections": [ + "JSON", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-19756": { + "description": "If a VNF's Heat Orchestration Template\n``OS::ContrailV2::InterfaceRouteTable`` resource\n``interface_route_table_routes`` property\n``interface_route_table_routes_route`` map property parameter\n``{vm-type}_{network-role}_route_prefixes``\n**MUST** be defined as type ``json``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Contrail Resource Parameters", + "full_title": "", + "hide_links": "", + "id": "R-19756", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Interface Route Table Prefixes for Contrail InterfaceRoute Table", + "sections": [ + "Interface Route Table Prefixes for Contrail InterfaceRoute Table", + "Contrail Resource Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-19768": { + "description": "The VNF **SHOULD** support network segregation, i.e., separation of OA&M\ntraffic from signaling and payload traffic, using technologies such as\nVPN and VLAN.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-19768", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-19922": { + "description": "The xNF **MUST** support APPC/SDN-C ``UpgradePrecheck`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-19922", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", + "sections": [ + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-20065": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::PortTuple``\nResource ID **MUST** contain the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-20065", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::PortTuple", + "sections": [ + "OS::ContrailV2::PortTuple", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-20204": { + "description": "The VNF Package **MUST** include VM requirements via a Heat\ntemplate that provides the necessary data for network connections,\ninterface connections, internal and external to VNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-20204", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Compute, Network, and Storage Requirements", + "sections": [ + "Compute, Network, and Storage Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-20308": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``environment_context``\nparameter **MUST** be declared as ``environment_context`` and the\nparameter type **MUST** be defined as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-20308", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "environment_context", + "sections": [ + "environment_context", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-20319": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Heat::CloudConfig``\nResource ID **MAY** use the naming convention\n\n* ``{vm-type}_RCC``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``RCC`` signifies that it is the Resource Cloud Config", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-20319", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Heat::CloudConfig", + "sections": [ + "OS::Heat::CloudConfig", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-20353": { + "description": "The xNF **MUST** implement both ``:candidate`` and\n``:writable-running`` capabilities. When both ``:candidate`` and\n``:writable-running`` are provided then two locks should be supported.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-20353", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-20453": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nthat is attaching to an external network Resource ID\n**MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_{network-role}_port_{port-index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{port-index}`` is the instance of the the port on the vm-type\n attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-20453", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Neutron::Port", + "sections": [ + "OS::Neutron::Port", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-20547": { + "description": "When an ONAP Volume Module Output Parameter is declared as an input\nparameter in a base or an incremental module Heat Orchestration\nTemplate, parameter constraints **MUST NOT** be declared.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-20547", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Volume Module Output Parameters", + "sections": [ + "ONAP Volume Module Output Parameters", + "Output Parameters", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-20741": { + "description": "The xNF **MUST** support APPC/SDN-C ``Configure`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-20741", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Commands", + "sections": [ + "Configuration Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-20856": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property\n``metadata`` key/value pair ``vnf_id`` parameter ``vnf_id`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", + "full_title": "", + "hide_links": "", + "id": "R-20856", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "vnf_id", + "sections": [ + "vnf_id", + "Resource: OS::Nova::Server Metadata Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-20860": { + "description": "The VNF **MUST** be agnostic to the underlying infrastructure\n(such as hardware, host OS, Hypervisor), any requirements should be\nprovided as specification to be fulfilled by any hardware.", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-20860", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-20947": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``\nthat is configuring an IPv4 Address on a sub-interface port attached to a\nsub-interface network Resource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_subint_{network-role}_vmi_{vmi_index}_IP_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{vmi_index}`` is the instance of the the virtual machine interface\n (e.g., port) on the vm-type\n attached to the network of ``{network-role}``\n* ``IP`` signifies that an IPv4 address is being configured\n* ``{index}`` is the index of the IPv4 address", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-20947", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::InstanceIp", + "sections": [ + "OS::ContrailV2::InstanceIp", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-21210": { + "description": "The VNF **MUST** implement the following input validation control\non APIs: Validate that any input file has a correct and valid\nMultipurpose Internet Mail Extensions (MIME) type. Input files\nshould be tested for spoofed MIME types.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-21210", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF API Security Requirements", + "sections": [ + "VNF API Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-21322": { + "description": "The VNF provider **MUST** provide their testing scripts to support\ntesting as specified in ETSI NFV-SOL004 - Testing directory in CSAR", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-21322", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Contents", + "sections": [ + "VNF Package Contents", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-21330": { + "description": "A VNF's Heat Orchestration Template's Resource property parameter that is\nassociated with external network **MUST** include the ``{network-role}``\nas part of the parameter name.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", + "full_title": "", + "hide_links": "", + "id": "R-21330", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{network-role}", + "sections": [ + "{network-role}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-21511": { + "description": "A VNF's Heat Orchestration Template's use of ``{network-role}``\nin all Resource IDs **MUST** be the same case.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", + "full_title": "", + "hide_links": "", + "id": "R-21511", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{network-role}", + "sections": [ + "{network-role}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-21558": { + "description": "The VNF **SHOULD** use intelligent routing by having knowledge\nof multiple downstream/upstream endpoints that are exposed to it, to\nensure there is no dependency on external services (such as load balancers)\nto switch to alternate endpoints.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-21558", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Intelligent Transaction Distribution & Management", + "sections": [ + "Intelligent Transaction Distribution & Management", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-21652": { + "description": "The VNF **MUST** implement the following input validation\ncontrol: Check the size (length) of all input. Do not permit an amount\nof input so great that it would cause the VNF to fail. Where the input\nmay be a file, the VNF API must enforce a size limit.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-21652", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF API Security Requirements", + "sections": [ + "VNF API Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-21819": { + "description": "The VNF **MUST** provide functionality that enables the Operator to comply\nwith requests for information from law enforcement and government agencies.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-21819", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-22059": { + "description": "The VNF **MUST NOT** execute long running tasks (e.g., IO,\ndatabase, network operations, service calls) in a critical section\nof code, so as to minimize blocking of other operations and increase\nconcurrent throughput.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-22059", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "System Resource Optimization", + "sections": [ + "System Resource Optimization", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-22286": { + "description": "The VNF **MUST** support Integration functionality via\nAPI/Syslog/SNMP to other functional modules in the network (e.g.,\nPCRF, PCEF) that enable dynamic security control by blocking the\nmalicious traffic or malicious end users.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-22286", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-22288": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet`` parameter\n``int_{network-role}_v6_subnet_id``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-22288", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", + "sections": [ + "Property: fixed_ips, Map Property: subnet", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-22346": { + "description": "The xNF package MUST provide :doc:`VES Event Registration <../../../../vnfsdk/module.git/files/VESEventRegistration_3_0>`\nfor all VES events provided by that xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-22346", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Description", + "sections": [ + "Resource Description", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF PACKAGE", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-22367": { + "description": "The VNF **MUST** support detection of malformed packets due to software\nmisconfiguration or software vulnerability, and generate an error to the\nsyslog console facility.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-22367", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-22589": { + "description": "A VNF's Heat Orchestration Template parameter declaration\n**MAY** contain the attribute ``immutable:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-22589", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "immutable", + "sections": [ + "immutable", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-22608": { + "description": "When a VNF's Heat Orchestration Template's Base Module's output\nparameter is declared as an input parameter in an Incremental Module,\nthe parameter attribute ``constraints:`` **MUST NOT** be declared.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-22608", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Base Module Output Parameters", + "sections": [ + "ONAP Base Module Output Parameters", + "Output Parameters", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-22680": { + "description": "The xNF Package **MUST** include documentation that describes\nany requirements for the monitoring component of tools for Network\nCloud automation and management to provide these records to components\nof the xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-22680", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-22688": { + "description": "If a VNF's port is connected to an internal network and the port is\ncreated in an Incremental Module and the internal network is created\nin the Base Module then the UUID of the internal network **MUST** be\nexposed as a parameter in the ``outputs:`` section of the Base Module\nand the port resource **MUST** use a ``get_param`` to obtain the network\nUUID.", + "docname": "Chapter5/Heat/ONAP Heat Networking", + "full_title": "", + "hide_links": "", + "id": "R-22688", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Internal Networks", + "sections": [ + "Internal Networks", + "ONAP Heat Networking" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-22700": { + "description": "The xNF **MUST** conform its YANG model to RFC 6470,\n\"NETCONF Base Notifications\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-22700", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-22838": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``name`` parameter **MUST NOT** be enumerated in the Heat Orchestration\nTemplate's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-22838", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: Name", + "sections": [ + "Property: Name", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-22888": { + "description": "The xNF provider **MUST** provide documentation for the xNF\nPolicy Description to manage the xNF runtime lifecycle. The document\nmust include a description of how the policies (conditions and actions)\nare implemented in the xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-22888", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-22946": { + "description": "The xNF **SHOULD** conform its YANG model to RFC 6536,\n\"NETCONF Access Control Model\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-22946", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-23035": { + "description": "The VNF **MUST** be designed to scale horizontally (more\ninstances of a VNF or VNFC) and not vertically (moving the existing\ninstances to larger VMs or increasing the resources within a VM)\nto achieve effective utilization of cloud resources.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-23035", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-23135": { + "description": "The VNF **MUST**, if not integrated with the Operator's identity and\naccess management system, authenticate all access to protected GUIs, CLIs,\nand APIs.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-23135", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-231402": { + "description": "The VNF **MUST** provide a means for the user to explicitly logout, thus\nending that session for that authenticated user.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-231402", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-23311": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Nova::Server`` property\n``availability_zone`` parameter **MUST** be declared as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-23311", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: availability_zone", + "sections": [ + "Property: availability_zone", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-23475": { + "description": "VNFCs **SHOULD** be agnostic to the details of the Network Cloud\n(such as hardware, host OS, Hypervisor or container technology) and must run\non the Network Cloud with acknowledgement to the paradigm that the Network\nCloud will continue to rapidly evolve and the underlying components of\nthe platform will change regularly.", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-23475", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-23503": { + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv6 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``comma_delimited_list``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_v6_ips``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n OS::Nova::Server\n * ``{network-role}`` is the {network-role} of the external\n network", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-23503", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-23664": { + "description": "A VNF's Heat Orchestration template **MUST**\ncontain the section ``resources:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-23664", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "resources", + "sections": [ + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-23740": { + "description": "The VNF **MUST** implement and enforce the principle of least privilege\non all protected interfaces.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-23740", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-23882": { + "description": "The VNF **SHOULD** provide the capability for the Operator to run security\nvulnerability scans of the operating system and all application layers.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-23882", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-23957": { + "description": "The VNF **MUST** include the field \"time\" in the Security alarms\n(where applicable and technically feasible).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-23957", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-240760": { + "description": "The VNF **MUST NOT** contain any backdoors.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-240760", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-24189": { + "description": "The xNF provider **MUST** deliver a new set of playbooks that includes\nall updated and unchanged playbooks for any new revision to an existing\nset of playbooks.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-24189", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-24269": { + "description": "The xNF **SHOULD** conform its YANG model to RFC 7407,\n\"A YANG Data Model for SNMP Configuration\", if Netconf used to\nconfigure SNMP engine.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-24269", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-24359": { + "description": "The VNF **MUST** provide the capability of testing the validity\nof a digital certificate by validating the date the certificate is being\nused is within the validity period for the certificate.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-24359", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Cryptography Requirements", + "sections": [ + "VNF Cryptography Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-24482": { + "description": "The xNF **MUST** provide Ansible playbooks that are designed to run using\nan inventory hosts file in a supported format; with site group that shall\nbe used to add site specific configurations to the target xNF VM(s) as\nneeded.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-24482", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-24893": { + "description": "A VNF's Heat Orchestration template's Environment File's\n**MAY** contain the ``event_sinks:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-24893", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Environment File Format", + "sections": [ + "Environment File Format", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-24997": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Nova::Keypair`` applies to\none ``{vm-type}`` Resource ID **SHOULD** use the naming convention\n\n* ``{vm-type}_keypair_{index}``\n\nwhere\n\n* ``{network-role}`` is the network-role\n* ``{index}`` is the ``{index}`` of the keypair", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-24997", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Nova::Keypair", + "sections": [ + "OS::Nova::Keypair", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-25190": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Cinder::Volume``\n**SHOULD NOT** declare the property ``availability_zone``.", + "docname": "Chapter5/Heat/ONAP Heat Cinder Volumes", + "full_title": "", + "hide_links": "", + "id": "R-25190", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Optional Property availability_zone", + "sections": [ + "Optional Property availability_zone", + "ONAP Heat Cinder Volumes" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-25238": { + "description": "The xNF PACKAGE **MUST** validated YANG code using the open\nsource pyang [#7.3.1]_ program using the following commands:\n\n.. code-block:: text\n\n $ pyang --verbose --strict $ echo $!", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-25238", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-25401": { + "description": "The VNF **MUST** use asymmetric keys of at least 2048 bits in length.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-25401", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Cryptography Requirements", + "sections": [ + "VNF Cryptography Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-25547": { + "description": "The VNF **MUST** log the field \"protocol\" in the security audit logs.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-25547", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-256267": { + "description": "If SNMP is utilized, the VNF **MUST** support at least SNMPv3 with\nmessage authentication.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-256267", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-256347": { + "description": "The PNF **MUST** support one of the protocols for a Service Configuration\nmessage exchange between the PNF and PNF Controller (in ONAP):\na) Netconf/YANG, b) Chef, or c) Ansible.\n\nNote: The PNF Controller may be VF-C, APP-C or SDN-C based on the\nPNF and PNF domain.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-256347", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-25720": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Net``\nResource ID **MUST** use the naming convention\n\n* ``int_{network-role}_network``\n\nVNF Heat Orchestration Templates can only create internal networks.\nThere is no ``{index}`` after ``{network-role}`` because ``{network-role}``\n**MUST** be unique in the scope of the VNF's\nHeat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-25720", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Neutron::Net", + "sections": [ + "OS::Neutron::Net", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-257367": { + "description": "The xNF, when leveraging Google Protocol Buffers for events, **MUST**\nserialize the events using native Google Protocol Buffers (GPB) according\nto the following guidelines:\n\n * The keys are represented as integers pointing to the system resources\n for the xNF being monitored\n * The values correspond to integers or strings that identify the\n operational state of the VNF resource, such a statistics counters and\n the state of an xNF resource.\n * The required Google Protocol Buffers (GPB) metadata is provided in the\n form of .proto files.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-257367", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Google Protocol Buffers (GPB)", + "sections": [ + "Google Protocol Buffers (GPB)", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-258352": { + "description": "The PNF **MUST** support & accept the provisioning of an ONAP contact IP\naddress (in IPv4 or IPv6 format).\n\nNote: For example, it a possibility is that an external EMS would configure\n& provision the ONAP contact IP address to the PNF (in either IPv4 or\nIPv6 format). For the PNF Plug and Play Use Case, this IP address is the\nservice provider's \"point of entry\" to the DCAE VES Listener.\n\nNote: different service provider's network architecture may also require\nspecial setup to allow an external PNF to contact the ONAP installation.\nFor example, in the AT&T network, a maintenance tunnel is used to access\nONAP.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-258352", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-258686": { + "description": "The VNF application processes **MUST NOT** run as root.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-258686", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-25877": { + "description": "A VNF's Heat Orchestration Template's parameter name\n(i.e., ) **MUST** contain only alphanumeric\ncharacters and underscores ('_').", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-25877", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "", + "sections": [ + "", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-26115": { + "description": "The xNF **MUST** follow the data model upgrade rules defined\nin [RFC6020] section 10. All deviations from section 10 rules shall\nbe handled by a built-in automatic upgrade mechanism.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-26115", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-26124": { + "description": "If a VNF Heat Orchestration Template parameter has a default value,\nit **MUST** be enumerated in the environment file.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-26124", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "default", + "sections": [ + "default", + "parameters", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-26351": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nthat is attaching to an internal network Resource ID **MUST**\nuse the naming convention\n\n* ``{vm-type}_{vm-type_index}_int_{network-role}_port_{port-index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{port-index}`` is the instance of the the port on the vm-type\n attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-26351", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Neutron::Port", + "sections": [ + "OS::Neutron::Port", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-26371": { + "description": "The VNF **MUST** detect communication failure for inter VNFC\ninstance and intra/inter VNF and re-establish communication\nautomatically to maintain the VNF without manual intervention to\nprovide service continuity.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-26371", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Application Resilient Error Handling", + "sections": [ + "Application Resilient Error Handling", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-26506": { + "description": "A VNF's Heat Orchestration Template's ``{network-role}`` **MUST** contain\nonly alphanumeric characters and/or underscores '_' and\n**MUST NOT** contain any of the following strings:\n``_int`` or ``int_`` or ``_int_``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", + "full_title": "", + "hide_links": "", + "id": "R-26506", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "{network-role}", + "sections": [ + "{network-role}" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-26508": { + "description": "The xNF **MUST** support a NETCONF server that can be mounted on\nOpenDaylight (client) and perform the operations of: modify, update,\nchange, rollback configurations using each configuration data element,\nquery each state (non-configuration) data element, execute each YANG\nRPC, and receive data through each notification statement.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-26508", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-26567": { + "description": "The xNF Package **MUST** include a run list of\nroles/cookbooks/recipes, for each supported xNF action, that will\nperform the desired xNF action in its entirety as specified by ONAP\n(see Section 7.c, APPC/SDN-C APIs and Behavior, for list of xNF\nactions and requirements), when triggered by a chef-client run list\nin JSON file.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-26567", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Roles/Requirements", + "sections": [ + "Chef Roles/Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-26881": { + "description": "The xNF provider **MUST** provide the binaries and images\nneeded to instantiate the xNF (xNF and VNFC images).", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-26881", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Compute, Network, and Storage Requirements", + "sections": [ + "Compute, Network, and Storage Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-26885": { + "description": "The VNF provider **MUST** provide the binaries and images needed to\ninstantiate the VNF (VNF and VNFC images) either as:\n\n - Local artifact in CSAR: ROOT\\\\Artifacts\\\\ **VNF_Image.bin**\n\n - externally referred (by URI) artifact in Manifest file (also may be\n referred by VNF Descriptor)\n\nNote: Currently, ONAP doesn't have the capability of Image management,\nwe upload the image into VIM/VNFM manually.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-26885", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Contents", + "sections": [ + "VNF Package Contents", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-270358": { + "description": "A VNF's Heat Orchestration Template's Cinder Volume Template **MUST**\ncontain either\n\n* An ``OS::Cinder::Volume`` resource\n* An ``OS::Heat::ResourceGroup`` resource that references a Nested YAML\n file that contains an ``OS::Cinder::Volume`` resource\n* A resource that defines the property ``type`` as a Nested YAML file\n (i.e., static nesting) and the Nested YAML contains\n an ``OS::Cinder::Volume`` resource", + "docname": "Chapter5/Heat/ONAP Heat Cinder Volumes", + "full_title": "", + "hide_links": "", + "id": "R-270358", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Heat Cinder Volumes", + "sections": [ + "ONAP Heat Cinder Volumes" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-27078": { + "description": "A VNF's Heat Orchestration template **MUST** contain the\nsection ``heat_template_version:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", + "full_title": "", + "hide_links": "", + "id": "R-27078", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "heat_template_version", + "sections": [ + "heat_template_version", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-27310": { + "description": "The xNF Package **MUST** include all relevant Chef artifacts\n(roles/cookbooks/recipes) required to execute xNF actions requested by\nONAP for loading on appropriate Chef Server.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-27310", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Roles/Requirements", + "sections": [ + "Chef Roles/Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-27469": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nthat is creating a *Reserve Port* with an IPv4 address Resource ID **MUST**\nuse the naming convention\n\n* ``reserve_port_{vm-type}_{network-role}_floating_ip_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{index}`` is the instance of the IPv4 *Reserve Port*\n for the vm-type attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-27469", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Neutron::Port", + "sections": [ + "OS::Neutron::Port", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-27511": { + "description": "The VNF provider **MUST** provide the ability to scale\nup a VNF provider supplied product during growth and scale down a\nVNF provider supplied product during decline without \"real-time\"\nrestrictions based upon VNF provider permissions.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-27511", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Licensing Requirements", + "sections": [ + "Licensing Requirements", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-27711": { + "description": "The xNF provider **MUST** provide an XML file that contains a\nlist of xNF error codes, descriptions of the error, and possible\ncauses/corrective action.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-27711", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Control Loop", + "sections": [ + "Resource Control Loop", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-27818": { + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nECOMP definition, see Requirements R-52425 and R-46461),\nand an IPv6 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``string``,\nthe parameter name **MUST** follow the\nnaming convention\n\n* ``{vm-type}_int_{network-role}_v6_ip_{index}``\n\nwhere\n\n* ``{vm-type}`` is the {vm-type} associated with the ``OS::Nova::Server``\n* ``{network-role}`` is the {network-role} of the internal network\n* ``{index}`` is a numeric value that **MUST** start at zero in a\n VNF's Heat Orchestration Template and **MUST** increment by one", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-27818", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-27970": { + "description": "When a VNF's Heat Orchestration Template's resource is associated with\nmore than one ``{vm-type}`` and/or more than one internal and/or external\nnetwork, the Resource ID **MAY** contain the term ``shared`` and/or **MAY**\ncontain text that identifies the VNF.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-27970", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource IDs", + "sections": [ + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-27995": { + "description": "The VNF **SHOULD** include control loop mechanisms to notify\nthe consumer of the VNF of their exceeding SLA thresholds so the consumer\nis able to control its load against the VNF.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-27995", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Intelligent Transaction Distribution & Management", + "sections": [ + "Intelligent Transaction Distribution & Management", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-28168": { + "description": "The VNF **SHOULD** use an appropriately configured logging\nlevel that can be changed dynamically, so as to not cause performance\ndegradation of the VNF due to excessive logging.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-28168", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Monitoring & Dashboard", + "sections": [ + "Monitoring & Dashboard", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-28189": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::InterfaceRouteTable``\nResource ID **MAY** use the naming convention\n\n* ``{network-role}_RIRT``\n\nwhere\n\n* ``{network-role}`` is the network-role\n* ``RIRT`` signifies that it is the Resource Interface Route Table", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-28189", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::InterfaceRouteTable", + "sections": [ + "OS::ContrailV2::InterfaceRouteTable", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-28222": { + "description": "If a VNF's Heat Orchestration Template\n``OS::ContrailV2::InterfaceRouteTable`` resource\n``interface_route_table_routes`` property\n``interface_route_table_routes_route`` map property parameter name\n**MUST** follow the format\n\n* ``{vm-type}_{network-role}_route_prefixes``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Contrail Resource Parameters", + "full_title": "", + "hide_links": "", + "id": "R-28222", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Interface Route Table Prefixes for Contrail InterfaceRoute Table", + "sections": [ + "Interface Route Table Prefixes for Contrail InterfaceRoute Table", + "Contrail Resource Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-283988": { + "description": "The VNF, when publishing events, **MUST NOT** send information through\nextensible structures if the event specification has explicitly defined\nfields for that information.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-283988", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Miscellaneous", + "sections": [ + "Miscellaneous", + "Event Records - Data Structure Description", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-284934": { + "description": "If the PNF encounters an error authenticating, reaching the ONAP DCAE VES\nEvent listener or recieves an error response from sending the pnfRegistration\nVES Event, it **MAY** log the error, and notify the operator.\n\nNote: the design of how errors are logged, retrieved and reported\nwill be a vendor-specific architecture. Reporting faults and errors\nis also a vendor specific design. It is expected that the PNF shall\nhave a means to log an error and notify a user when a fault condition\noccurs in trying to contact ONAP, authenticate or send a pnfRegistration\nevent.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-284934", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-28545": { + "description": "The xNF **MUST** conform its YANG model to RFC 6060,\n\"YANG - A Data Modeling Language for the Network Configuration\nProtocol (NETCONF)\".", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-28545", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-28756": { + "description": "The xNF **MUST** support ``:partial-lock`` and\n``:partial-unlock`` capabilities, defined in RFC 5717. This\nallows multiple independent clients to each write to a different\npart of the configuration at the same time.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-28756", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-28795": { + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_int_{network-role}_ip_{index}``\n**MUST** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-28795", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-28980": { + "description": "A VNF's incremental module **MAY** be used for initial VNF deployment only.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-28980", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF Modularity Overview", + "sections": [ + "ONAP VNF Modularity Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-29324": { + "description": "The xNF **SHOULD** implement the protocol operation:\n``copy-config(target, source)`` - Copy the content of the\nconfiguration data store source to the configuration data store target.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-29324", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-29488": { + "description": "The xNF **MUST** implement the protocol operation:\n``get-config(source, filter`` - Retrieve a (filtered subset of\na) configuration from the configuration data store source.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-29488", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-29495": { + "description": "The xNF **MUST** support locking if a common object is\nbeing manipulated by two simultaneous NETCONF configuration operations\non the same xNF within the context of the same writable running data\nstore (e.g., if an interface parameter is being configured then it\nshould be locked out for configuration by a simultaneous configuration\noperation on that same interface parameter).", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-29495", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "NETCONF Server Requirements", + "sections": [ + "NETCONF Server Requirements", + "xNF Configuration via NETCONF Requirements", + "NETCONF Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-29705": { + "description": "The VNF **MUST** restrict changing the criticality level of a\nsystem security alarm to users with administrative privileges.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-29705", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-29751": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Nova::Server`` Resource ID\n**MUST** use the naming convention\n\n* ``{vm-type}_server_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{index}`` is the index", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-29751", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Nova::Server", + "sections": [ + "OS::Nova::Server", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-29760": { + "description": "The VNFC **MUST** be installed on non-root file systems,\nunless software is specifically included with the operating system\ndistribution of the guest image.", + "docname": "Chapter4/Devops", + "full_title": "", + "hide_links": "", + "id": "R-29760", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Devops", + "sections": [ + "VNF Devops" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-29765": { + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see Requirements R-52425 and R-46461),\nand an IPv6 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``comma_delimited_list``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_int_{network-role}_v6_ips``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n * ``{network-role}`` is the {network-role} of the internal\n network", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-29765", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", + "sections": [ + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-29872": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nproperty ``network``\nparameter **MUST NOT** be enumerated in the Heat Orchestration\nTemplate's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-29872", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: network", + "sections": [ + "Property: network", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-29977": { + "description": "The VNF **MUST** provide the capability of testing the validity\nof a digital certificate by validating the CA signature on the certificate.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-29977", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Cryptography Requirements", + "sections": [ + "VNF Cryptography Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-30005": { + "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup`` that\nis applicable to more than one ``{vm-type}`` and more than one network\n(internal and/or external) Resource ID **MAY**\nuse the naming convention\n\n* ``shared_security_group``\n\nor\n\n* ``{vnf-type}_security_group``\n\nwhere\n\n* ``{vnf-type}`` describes the VNF", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-30005", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Neutron::SecurityGroup", + "sections": [ + "OS::Neutron::SecurityGroup", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-30278": { + "description": "The xNF provider **MUST** provide a Resource/Device YANG model\nas a foundation for creating the YANG model for configuration. This will\ninclude xNF attributes/parameters and valid values/attributes configurable\nby policy.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-30278", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Configuration Management via NETCONF/YANG", + "sections": [ + "Configuration Management via NETCONF/YANG", + "Resource Configuration", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-303569": { + "description": "The VNF **MUST** log the Source IP address in the security audit logs.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-303569", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-30395": { + "description": "A VNF's Cinder Volume Module **MAY** utilize nested heat.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-30395", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Nested Heat Orchestration Templates Overview", + "sections": [ + "Nested Heat Orchestration Templates Overview", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-304011": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource's\n\n* Resource ID (defined in R-29751)\n* property ``image`` parameter name (defined in R-58670)\n* property ``flavor`` parameter name (defined in R-45188)\n* property ``name`` parameter name (defined in R-54171 & R-87817)\n* property port referenced OS::Neutron::Port Resource ID\n (defined in R-58670)\n\n**MUST** contain the identical ``{vm-type}``\nand **MUST** follow the naming conventions defined\nin R-58670, R-45188, R-54171, R-87817, and R-29751. And the ``{index}`` in\nthe ``OS::Nova::Server`` Resource ID (defined in R-29751) **MUST** match\nthe ``{vm-type_index}`` defined in\nthe ``OS::Nova::Server`` property ``port``\nreferenced ``OS::Neutron::Port`` Resource ID.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-304011", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource: OS::Nova::Server - Parameters", + "sections": [ + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-30650": { + "description": "The VNF **MUST** utilize cloud provided infrastructure and\nVNFs (e.g., virtualized Local Load Balancer) as part of the VNF so\nthat the cloud can manage and provide a consistent service resiliency\nand methods across all VNF's.", + "docname": "Chapter4/Design", + "full_title": "", + "hide_links": "", + "id": "R-30650", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Design", + "sections": [ + "VNF Design" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-30654": { + "description": "The xNF Package **MUST** have appropriate cookbooks that are\ndesigned to automatically 'rollback' to the original state in case of\nany errors for actions that change state of the xNF (e.g., configure).", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-30654", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Chef Roles/Requirements", + "sections": [ + "Chef Roles/Requirements", + "xNF Configuration via Chef Requirements", + "Chef Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-30753": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::NetworkIpam``\nResource ID\n**MUST**\ncontain the ``{network-role}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-30753", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::ContrailV2::NetworkIpam", + "sections": [ + "OS::ContrailV2::NetworkIpam", + "Contrail Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-30804": { + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::Heat::MultipartMime``\nResource ID\n**MUST**\ncontain the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", + "full_title": "", + "hide_links": "", + "id": "R-30804", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "OS::Heat::MultipartMime", + "sections": [ + "OS::Heat::MultipartMime", + "OpenStack Heat Resources Resource ID Naming Convention", + "Resource IDs" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-30932": { + "description": "The VNF **MUST** log successful and unsuccessful access to VNF\nresources, including data.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-30932", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-31141": { + "description": "VNF Heat Orchestration Template's Cinder Volume Module's Environment File\n**MUST** be named identical to the VNF Heat Orchestration Template's\nCinder Volume Module with ``.y[a]ml`` replaced with ``.env``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-31141", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Cinder Volume Modules", + "sections": [ + "Cinder Volume Modules", + "ONAP Heat Orchestration Template Filenames", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, + "R-31614": { + "description": "The VNF **MUST** log the field \"event type\" in the security audit\nlogs.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-31614", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-31809": { + "description": "The xNF **MUST** support the HealthCheck RPC. The HealthCheck\nRPC executes a xNF Provider-defined xNF HealthCheck over the scope of\nthe entire xNF (e.g., if there are multiple VNFCs, then run a health check,\nas appropriate, for all VNFCs). It returns a 200 OK if the test completes.\nA JSON object is returned indicating state (healthy, unhealthy), scope\nidentifier, time-stamp and one or more blocks containing info and fault\ninformation. If the xNF is unable to run the HealthCheck, return a\nstandard http error code and message.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-31809", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "REST APIs", + "sections": [ + "REST APIs", + "xNF REST APIs", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" }, "R-32094": { "description": "A VNF's Heat Orchestration Template parameter declaration **MAY**\ncontain the attribute ``label:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-32094", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "label", "sections": [ "label", @@ -28370,26 +53917,29 @@ "validated_by": "", "validation_mode": "" }, - "R-32217": { - "description": "The xNF **MUST** have routable FQDNs that are reachable via\nthe Ansible Server for the endpoints (VMs) of a xNF on which playbooks\nwill be executed. ONAP will initiate requests to the Ansible Server\nfor invocation of playbooks against these end points [#7.3.3]_.", + "R-32155": { + "description": "The VNFD provided by VNF vendor may use the below described TOSCA\ninterface types. An on-boarding entity (ONAP SDC) **MUST** support them.\n\n **tosca.interfaces.nfv.vnf.lifecycle.Nfv** supports LCM operations", + "docname": "Chapter5/Tosca", "full_title": "", "hide_links": "", - "id": "R-32217", + "id": "R-32155", "impacts": "", - "introduced": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Ansible Client Requirements", + "parts": {}, + "section_name": "Interface Types", "sections": [ - "Ansible Client Requirements", - "VNF Configuration via Ansible Requirements", - "Ansible Standards and Capabilities", - "Configuration Management" + "Interface Types", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" ], "status": null, "tags": [], - "target": "XNF", + "target": "VNF", "test": "", "test_case": "", "test_file": "", @@ -28400,23 +53950,30 @@ "validated_by": "", "validation_mode": "" }, - "R-32394": { - "description": "A VNF's Heat Orchestration Template's use of ``{vm-type}`` in all Resource\nproperty parameter names **MUST** be the same case.", + "R-32217": { + "description": "The xNF **MUST** have routable management IP addresses or FQDNs that\nare reachable via the Ansible Server for the endpoints (VMs) of a\nxNF that playbooks will target. ONAP will initiate requests to the\nAnsible Server for invocation of playbooks against these end\npoints [#7.3.3]_.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", - "id": "R-32394", + "id": "R-32217", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "{vm-type}", + "parts": {}, + "section_name": "Ansible Client Requirements", "sections": [ - "{vm-type}" + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" ], "status": null, "tags": [], - "target": "VNF", + "target": "XNF", "test": "", "test_case": "", "test_file": "", @@ -28425,21 +53982,25 @@ "type_name": "Requirement", "updated": "casablanca", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" }, - "R-32408": { - "description": "If a VNF's Heat Orchestration Template property ``name``\nfor a non ``OS::Nova::Server`` resource uses the intrinsic function\n``str_replace`` in conjunction with the ONAP\nsupplied metadata parameter ``vnf_name`` and does not create\na unique value, additional data **MUST** be used in the\n``str_replace`` to create a unique value, such as ``OS::stack_name``\nand/or the ``OS::Heat::ResourceGroup`` ``index``.", + "R-32394": { + "description": "A VNF's Heat Orchestration Template's use of ``{vm-type}`` in all Resource\nproperty parameter names **MUST** be the same case.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", "full_title": "", "hide_links": "", - "id": "R-32408", + "id": "R-32394", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Resource Property \u201cname\u201d", + "parts": {}, + "section_name": "{vm-type}", "sections": [ - "Resource Property \u201cname\u201d" + "{vm-type}" ], "status": null, "tags": [], @@ -28456,14 +54017,18 @@ }, "R-32557": { "description": "A VNF's Heat Orchestration Template parameter declaration **MAY**\ncontain the attribute ``hidden:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-32557", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "hidden", "sections": [ "hidden", @@ -28486,14 +54051,18 @@ }, "R-32636": { "description": "The VNF **MUST** support API-based monitoring to take care of\nthe scenarios where the control interfaces are not exposed, or are\noptimized and proprietary in nature.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-32636", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -28513,15 +54082,19 @@ "validation_mode": "" }, "R-32641": { - "description": "The VNF **MUST** provide the capability to encrypt data on\nnon-volatile memory.Non-volative memory is storage that is\ncapable of retaining data without electrical power, e.g.\nComplementary metal\u2013oxide\u2013semiconductor (CMOS) or hard drives.", + "description": "The VNF **MUST** provide the capability to encrypt data on\nnon-volatile memory.Non-volative memory is storage that is\ncapable of retaining data without electrical power, e.g.\nComplementary metal-oxide-semiconductor (CMOS) or hard drives.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-32641", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Data Protection Requirements", "sections": [ "VNF Data Protection Requirements", @@ -28542,14 +54115,18 @@ }, "R-32695": { "description": "The VNF **MUST** provide the ability to modify the number of\nretries, the time between retries and the behavior/action taken after\nthe retries have been exhausted for exception handling to allow the\nNCSP to control that behavior, where the interface and/or functional\nspecification allows for altering behaviour.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-32695", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Resilient Error Handling", "sections": [ "Application Resilient Error Handling", @@ -28568,20 +54145,57 @@ "validated_by": "", "validation_mode": "" }, + "R-328086": { + "description": "The xNF **MUST**, if serving as a distribution point or anchor point for\nsteering point from source to destination, support the ONAP Controller's\n``DistributeTraffic`` command.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-328086", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", + "sections": [ + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-32981": { - "description": "The xNF **MUST** support ONAP Controller's **ConfigBackup** command.", + "description": "The xNF **MUST** support APPC ``ConfigBackup`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-32981", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Commands", "sections": [ "Configuration Commands", - "Controller Interactions With VNF", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -28593,20 +54207,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-33132": { "description": "A VNF's Heat Orchestration Template **MAY** be\n 1.) Base Module Heat Orchestration Template (also referred to as a\n Base Module),\n 2.) Incremental Module Heat Orchestration Template (referred to as\n an Incremental Module), or\n 3.) a Cinder Volume Module Heat Orchestration Template (referred to as\n Cinder Volume Module).", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-33132", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -28621,24 +54239,61 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, + "R-332680": { + "description": "The xNF **SHOULD** deliver all syslog messages to the VES Collector per the\nspecifications in Monitoring and Management chapter.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-332680", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Asynchronous and Synchronous Data Delivery", + "sections": [ + "Asynchronous and Synchronous Data Delivery", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, "R-33280": { "description": "The xNF **MUST NOT** use any instance specific parameters\nin a playbook.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-33280", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Playbook Requirements", "sections": [ "Ansible Playbook Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -28657,17 +54312,21 @@ }, "R-33488": { "description": "The VNF **MUST** protect against all denial of service\nattacks, both volumetric and non-volumetric, or integrate with external\ndenial of service protection tools.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-33488", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF API Security Requirements", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", "sections": [ - "VNF API Security Requirements", + "VNF Security Analytics Requirements", "VNF Security" ], "status": null, @@ -28679,20 +54338,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-33694": { "description": "The xNF Package **MUST** include documentation to when applicable,\nprovide calculators needed to convert raw data into appropriate reporting\nartifacts.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-33694", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -28713,14 +54376,18 @@ }, "R-33846": { "description": "The VNF **MUST** install the NCSP required software on Guest OS\nimages when not using the NCSP provided Guest OS images. [#4.5.1]_", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", "id": "R-33846", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Devops", "sections": [ "VNF Devops" @@ -28740,14 +54407,18 @@ }, "R-33904": { "description": "The xNF Package **MUST** include documentation for each KPI, provide\nlower and upper limits.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-33904", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -28768,18 +54439,22 @@ }, "R-33946": { "description": "The xNF **MUST** conform to the NETCONF RFC 4741,\n\"NETCONF Configuration Protocol\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-33946", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -28798,18 +54473,22 @@ }, "R-33955": { "description": "The xNF **SHOULD** conform its YANG model to RFC 6991,\n\"Common YANG Data Types\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-33955", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -28826,20 +54505,24 @@ "validated_by": "", "validation_mode": "" }, - "R-33981": { - "description": "The VNF **SHOULD** interoperate with various access control\nmechanisms for the Network Cloud execution environment (e.g.,\nHypervisors, containers).", + "R-34037": { + "description": "The VNF's Heat Orchestration Template's\nresource ``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n**MUST** be declared as either type ``string`` or type\n``comma_delimited_list``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", - "id": "R-33981", + "id": "R-34037", "impacts": "", "introduced": "", - "keyword": "SHOULD", + "is_need": true, + "is_part": false, + "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF General Security Requirements", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ - "VNF General Security Requirements", - "VNF Security" + "Property: fixed_ips, Map Property: ip_address", + "Resource: OS::Neutron::Port - Parameters" ], "status": null, "tags": [], @@ -28850,24 +54533,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", - "validation_mode": "" + "validation_mode": "static" }, - "R-34037": { - "description": "The VNF's Heat Orchestration Template's\nresource ``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n**MUST** be declared as either type ``string`` or type\n``comma_delimited_list``.", + "R-34055": { + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``workload_context``\nparameter ``workload_context`` **MUST NOT**\nhave parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", - "id": "R-34037", + "id": "R-34055", "impacts": "", "introduced": "", - "keyword": "MUST", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", "links": [], "notes": "", - "section_name": "Property: fixed_ips, Map Property: ip_address", + "parts": {}, + "section_name": "workload_context", "sections": [ - "Property: fixed_ips, Map Property: ip_address", - "Resource: OS::Neutron::Port - Parameters" + "workload_context", + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -28882,20 +54569,24 @@ "validated_by": "", "validation_mode": "static" }, - "R-34055": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``workload_context`` **MUST NOT**\nhave parameter constraints defined.", + "R-343842": { + "description": "The VNF **MUST**, after a successful login at command line or a GUI,\ndisplay the last valid login date and time and the number of unsuccessful\nattempts since then made with that user's ID. This requirement is only\napplicable when the user account is defined locally in the VNF.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", - "id": "R-34055", + "id": "R-343842", "impacts": "", - "introduced": "", - "keyword": "MUST NOT", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", "links": [], "notes": "", - "section_name": "workload_context", + "parts": {}, + "section_name": "VNF General Security Requirements", "sections": [ - "workload_context", - "Resource: OS::Nova::Server - Metadata Parameters" + "VNF General Security Requirements", + "VNF Security" ], "status": null, "tags": [], @@ -28906,20 +54597,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" }, "R-34484": { "description": "The VNF **SHOULD** create a single component VNF for VNFCs\nthat can be used by other VNFs.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-34484", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -28939,14 +54634,18 @@ }, "R-34552": { "description": "The VNF **MUST** be implemented so that it is not vulnerable to OWASP\nTop 10 web application security risks.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-34552", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -28967,14 +54666,18 @@ }, "R-34660": { "description": "The xNF **MUST** use the RESTCONF/NETCONF framework used by\nthe ONAP configuration subsystem for synchronous communication.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-34660", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Asynchronous and Synchronous Data Delivery", "sections": [ "Asynchronous and Synchronous Data Delivery", @@ -28994,24 +54697,28 @@ "validated_by": "", "validation_mode": "" }, - "R-34726": { - "description": "If a VNF's port is connected to an internal network and the port\nis created in the same Heat Orchestration Template as the internal network,\nthen the port resource **MUST** use a 'get_resource' to obtain\nthe network UUID.", + "R-348813": { + "description": "The VNF's Heat Orchestration Template's ZIP file **MUST NOT** include\na binary image file.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", - "id": "R-34726", + "id": "R-348813", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Internal Networks", + "parts": {}, + "section_name": "ONAP VNF On-Boarding", "sections": [ - "Internal Networks", - "ONAP Heat Networking" + "ONAP VNF On-Boarding", + "ONAP Heat Orchestration Templates Overview" ], "status": null, "tags": [], - "target": "VNF", + "target": "", "test": "", "test_case": "", "test_file": "", @@ -29024,14 +54731,18 @@ }, "R-34957": { "description": "The VNF **MUST** provide a method of metrics gathering for each\nlayer's performance to identify/document variances in the allocations so\nthey can be addressed.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-34957", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Monitoring & Dashboard", "sections": [ "Monitoring & Dashboard", @@ -29050,44 +54761,20 @@ "validated_by": "", "validation_mode": "" }, - "R-35144": { - "description": "The VNF **MUST**, if not using the NCSP's IDAM API, comply\nwith the NCSP's credential management policy.", - "full_title": "", - "hide_links": "", - "id": "R-35144", - "impacts": "", - "introduced": "", - "keyword": "MUST", - "links": [], - "notes": "", - "section_name": "VNF General Security Requirements", - "sections": [ - "VNF General Security Requirements", - "VNF Security" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "", - "validated_by": "", - "validation_mode": "" - }, "R-35291": { "description": "The VNF **MUST** support the ability to failover a VNFC\nautomatically to other geographically redundant sites if not\ndeployed active-active to increase the overall resiliency of the VNF.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-35291", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "All Layer Redundancy", "sections": [ "All Layer Redundancy", @@ -29107,19 +54794,23 @@ "validation_mode": "" }, "R-35401": { - "description": "The xNF **MUST** support SSH and allow SSH access by the\nAnsible server for the endpoint VM(s) and comply with the Network\nCloud Service Provider guidelines for authentication and access.", + "description": "The xNF **MUST** support SSH and allow SSH access by the\nAnsible server to the endpoint VM(s) and comply with the Network\nCloud Service Provider guidelines for authentication and access.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-35401", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Client Requirements", "sections": [ "Ansible Client Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -29132,20 +54823,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-35414": { "description": "A VNF Heat Orchestration's template **MUST** contain the\nsection ``parameters:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-35414", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "parameters", "sections": [ "parameters", @@ -29167,14 +54862,18 @@ }, "R-35532": { "description": "The VNF **SHOULD** release and clear all shared assets (memory,\ndatabase operations, connections, locks, etc.) as soon as possible,\nespecially before long running sync and asynchronous operations, so as\nto not prevent use of these assets by other entities.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-35532", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "System Resource Optimization", "sections": [ "System Resource Optimization", @@ -29195,14 +54894,18 @@ }, "R-35666": { "description": "If a VNF has an internal network, the VNF Heat Orchestration Template\n**MUST** include the heat resources to create the internal network.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", "id": "R-35666", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Internal Networks", "sections": [ "Internal Networks", @@ -29222,15 +54925,19 @@ "validation_mode": "static" }, "R-35735": { - "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv6 Virtual IP (VIP)\naddress is assigned via ONAP automation\nusing the property ``allowed_address_pairs``\nmap property ``ip_address``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_v6_floating_ip``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n OS::Nova::Server\n * ``{network-role}`` is the {network-role} of the external\n network\n\nAnd the parameter **MUST** be declared as type ``string``.", + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv6 Virtual IP (VIP)\naddress is assigned via ONAP automation\nusing the property ``allowed_address_pairs``\nmap property ``ip_address``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_floating_v6_ip``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n OS::Nova::Server\n * ``{network-role}`` is the {network-role} of the external\n network\n\nAnd the parameter **MUST** be declared as type ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-35735", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VIP Assignment, External Networks, Supported by Automation", "sections": [ "VIP Assignment, External Networks, Supported by Automation", @@ -29252,14 +54959,18 @@ }, "R-35851": { "description": "The xNF Package **MUST** include xNF topology that describes\nbasic network and application connectivity internal and external to the\nxNF including Link type, KPIs, Bandwidth, latency, jitter, QoS (if\napplicable) for each interface.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-35851", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Compute, Network, and Storage Requirements", "sections": [ "Compute, Network, and Storage Requirements", @@ -29278,16 +54989,53 @@ "validated_by": "", "validation_mode": "" }, + "R-35854": { + "description": "The VNF Descriptor (VNFD) provided by VNF vendor **MUST** comply with\nTOSCA/YAML based Service template for VNF descriptor specified in\nETSI NFV-SOL001.\n\n**Note**: As the ETSI NFV-SOL001 is work in progress the below tables\nsummarizes the TOSCA definitions agreed to be part of current version\nof NFV profile and that VNFD MUST comply with in ONAP Release 2+\nRequirements.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-35854", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "General", + "sections": [ + "General", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-35960": { "description": "The xNF Package **MUST** include documentation which must include\nall events, severity level (e.g., informational, warning, error) and\ndescriptions including causes/fixes if applicable for the event.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-35960", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -29308,14 +55056,18 @@ }, "R-36280": { "description": "The xNF provider **MUST** provide documentation describing\nxNF Functional Capabilities that are utilized to operationalize the\nxNF and compose complex services.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-36280", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Description", "sections": [ "Resource Description", @@ -29335,19 +55087,23 @@ "validation_mode": "" }, "R-36542": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vnf_name`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vnf_name`` parameter\n``vnf_name`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-36542", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vnf_name", "sections": [ "vnf_name", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -29364,14 +55120,18 @@ }, "R-36582": { "description": "A VNF's Base Module **MAY** utilize nested heat.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-36582", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Nested Heat Orchestration Templates Overview", "sections": [ "Nested Heat Orchestration Templates Overview", @@ -29392,14 +55152,18 @@ }, "R-36687": { "description": "A VNF's Heat Orchestration Template's ``{vm-type}`` case in Resource\nproperty parameter names **SHOULD** match the case of ``{vm-type}``\nin Resource IDs and vice versa.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", "full_title": "", "hide_links": "", "id": "R-36687", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "{vm-type}", "sections": [ "{vm-type}" @@ -29419,14 +55183,18 @@ }, "R-36772": { "description": "A VNF's Heat Orchestration Template's parameter **MUST** include the\nattribute ``type:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-36772", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "type", "sections": [ "type", @@ -29449,14 +55217,18 @@ }, "R-36792": { "description": "The VNF **MUST** automatically retry/resubmit failed requests\nmade by the software to its downstream system to increase the success rate.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-36792", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Resilient Error Handling", "sections": [ "Application Resilient Error Handling", @@ -29477,14 +55249,18 @@ }, "R-36843": { "description": "The VNF **MUST** support the ability of the VNFC to be deployable\nin multi-zoned cloud sites to allow for site support in the event of cloud\nzone failure or upgrades.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-36843", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "All Layer Redundancy", "sections": [ "All Layer Redundancy", @@ -29505,14 +55281,18 @@ }, "R-36982": { "description": "A VNF's Heat Orchestration template **MAY** contain the ``outputs:``\nsection.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-36982", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "outputs", "sections": [ "outputs", @@ -29534,14 +55314,18 @@ }, "R-37028": { "description": "A VNF **MUST** be composed of one Base Module", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-37028", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -29556,24 +55340,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-37039": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vf_module_index`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``vf_module_index`` parameter\n``vf_module_index`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-37039", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_index", "sections": [ "vf_module_index", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -29589,19 +55377,23 @@ "validation_mode": "static" }, "R-37437": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property ``metadata`` **MUST**\ncontain the key/value pair ``vnf_id``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property ``metadata`` **MUST**\ncontain the key/value pair ``vnf_id``\nand the value **MUST** be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-37437", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "vnf_id", "sections": [ "vnf_id", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -29618,14 +55410,18 @@ }, "R-37692": { "description": "The VNFC **MUST** provide API versioning to allow for\nindependent upgrades of VNFC.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-37692", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -29643,20 +55439,56 @@ "validated_by": "", "validation_mode": "" }, + "R-378131": { + "description": "(Error Case) - If an error is encountered by the PNF during a\nService Configuration exchange with ONAP, the PNF **MAY** log the\nerror and notify an operator.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-378131", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-37929": { "description": "The xNF **MUST** accept all necessary instance specific\ndata from the environment or node object attributes for the xNF\nin roles/cookbooks/recipes invoked for a xNF action.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-37929", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Roles/Requirements", "sections": [ "Chef Roles/Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -29675,19 +55507,22 @@ }, "R-38001": { "description": "The VNF **MUST** support ONAP Controller's **Rebuild** command.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-38001", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Virtual Function - Container Recovery Requirements", "sections": [ "Virtual Function - Container Recovery Requirements", - "Controller Interactions With VNF", - "Configuration Management" + "VNF Resiliency" ], "status": null, "tags": [], @@ -29703,18 +55538,22 @@ "validation_mode": "" }, "R-38236": { - "description": "The VNF's Heat Orchestration Template's\nresource ``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet``/``subnet_id`` parameter\n**MUST** be declared type ``string``.", + "description": "The VNF's Heat Orchestration Template's\nresource ``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet`` parameter\n**MUST** be declared type ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-38236", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Property: fixed_ips, Map Property: subnet_id", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", "sections": [ - "Property: fixed_ips, Map Property: subnet_id", + "Property: fixed_ips, Map Property: subnet", "Resource: OS::Neutron::Port - Parameters" ], "status": null, @@ -29730,16 +55569,52 @@ "validated_by": "", "validation_mode": "static" }, + "R-384337": { + "description": "The VNF documentation **MUST** contain a list of the files within the VNF\npackage that are static during the VNF's runtime.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", + "full_title": "", + "hide_links": "", + "id": "R-384337", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Resource Description", + "sections": [ + "Resource Description", + "VNF On-boarding and package management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-38474": { - "description": "The VNF **MUST** have a corresponding environment file for a Base Module.", + "description": "A VNF's Base Module **MUST** have a corresponding Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-38474", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -29754,24 +55629,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-39067": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vf_module_name`` **MUST**\nbe declared as type: ``string``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``vf_module_name`` parameter **MUST** be\ndeclared as ``vf_module_name`` and the parameter **MUST**\nbe defined as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-39067", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_name", "sections": [ "vf_module_name", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -29786,44 +55665,20 @@ "validated_by": "", "validation_mode": "static" }, - "R-39342": { - "description": "The VNF **MUST**, if not using the NCSP's IDAM API, comply\nwith \"password changes (includes default passwords)\" policy. Products\nwill support password aging, syntax and other credential management\npractices on a configurable basis.", - "full_title": "", - "hide_links": "", - "id": "R-39342", - "impacts": "", - "introduced": "", - "keyword": "MUST", - "links": [], - "notes": "", - "section_name": "VNF General Security Requirements", - "sections": [ - "VNF General Security Requirements", - "VNF Security" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "", - "validated_by": "", - "validation_mode": "" - }, "R-39349": { "description": "A VNF Heat Orchestration Template **MUST NOT** be designed to utilize the\nOpenStack ``heat stack-update`` command for scaling (growth/de-growth).", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-39349", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Support of heat stack update", "sections": [ "Support of heat stack update", @@ -29844,14 +55699,18 @@ }, "R-39402": { "description": "A VNF's Heat Orchestration Template **MUST** contain the\nsection ``description:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-39402", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "description", "sections": [ "description", @@ -29873,14 +55732,18 @@ }, "R-39562": { "description": "The VNF **MUST** disable unnecessary or vulnerable cgi-bin programs.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-39562", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -29901,14 +55764,18 @@ }, "R-39604": { "description": "The VNF **MUST** provide the capability of testing the\nvalidity of a digital certificate by checking the Certificate Revocation\nList (CRL) for the certificates of that type to ensure that the\ncertificate has not been revoked.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-39604", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Cryptography Requirements", "sections": [ "VNF Cryptography Requirements", @@ -29929,14 +55796,18 @@ }, "R-39650": { "description": "The VNF **SHOULD** provide the ability to test incremental\ngrowth of the VNF.", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", "id": "R-39650", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Devops", "sections": [ "VNF Devops" @@ -29956,14 +55827,18 @@ }, "R-39841": { "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_{network-role}_ip_{index}``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-39841", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -29984,18 +55859,22 @@ }, "R-40293": { "description": "The xNF **MUST** make available playbooks that conform\nto the ONAP requirement.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-40293", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Playbook Requirements", "sections": [ "Ansible Playbook Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -30014,14 +55893,18 @@ }, "R-40499": { "description": "Each VNF's Heat Orchestration Template's ``{vm-type}`` **MUST**\nhave a unique parameter name for the ``OS::Nova::Server`` property\n``flavor`` even if more than one ``{vm-type}`` shares the same flavor.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-40499", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: flavor", "sections": [ "Property: flavor", @@ -30042,14 +55925,18 @@ }, "R-40518": { "description": "A VNF's Heat Orchestration Template's parameter defined\nin a non-nested YAML file as type\n``string`` **MAY** have a parameter constraint defined.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-40518", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "constraints", "sections": [ "constraints", @@ -30066,24 +55953,29 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, - "R-40521": { - "description": "The VNF **MUST**, if not using the NCSP's IDAM API, support\nuse of common third party authentication and authorization tools such\nas TACACS+, RADIUS.", + "R-40551": { + "description": "A VNF's Heat Orchestration Template's Nested YAML files **MAY**\n(or **MAY NOT**) contain the section ``resources:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", - "id": "R-40521", + "id": "R-40551", "impacts": "", "introduced": "", - "keyword": "MUST", + "is_need": true, + "is_part": false, + "keyword": "MAY", "links": [], "notes": "", - "section_name": "VNF General Security Requirements", + "parts": {}, + "section_name": "resources", "sections": [ - "VNF General Security Requirements", - "VNF Security" + "resources", + "Heat Orchestration Template Structure", + "ONAP Heat Orchestration Template Format" ], "status": null, "tags": [], @@ -30094,25 +55986,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, - "R-40551": { - "description": "A VNF's Heat Orchestration Template's Nested YAML files **MAY**\n(or **MAY NOT**) contain the section ``resources:``.", + "R-40813": { + "description": "The VNF **SHOULD** support the use of virtual trusted platform\nmodule.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", - "id": "R-40551", + "id": "R-40813", "impacts": "", "introduced": "", - "keyword": "MAY", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", "links": [], "notes": "", - "section_name": "resources", + "parts": {}, + "section_name": "VNF General Security Requirements", "sections": [ - "resources", - "Heat Orchestration Template Structure", - "ONAP Heat Orchestration Template Format" + "VNF General Security Requirements", + "VNF Security" ], "status": null, "tags": [], @@ -30123,24 +56018,29 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, - "R-40813": { - "description": "The VNF **SHOULD** support the use of virtual trusted platform\nmodule.", + "R-40820": { + "description": "The VNF provider MUST enumerate all of the open source licenses\ntheir VNF(s) incorporate. CSAR License directory as per ETSI SOL004.\n\nfor example ROOT\\\\Licenses\\\\ **License_term.txt**", + "docname": "Chapter5/Tosca", "full_title": "", "hide_links": "", - "id": "R-40813", + "id": "R-40820", "impacts": "", - "introduced": "", - "keyword": "SHOULD", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF General Security Requirements", + "parts": {}, + "section_name": "VNF Package Contents", "sections": [ - "VNF General Security Requirements", - "VNF Security" + "VNF Package Contents", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" ], "status": null, "tags": [], @@ -30151,20 +56051,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", "validation_mode": "" }, "R-40827": { "description": "The xNF provider **MUST** enumerate all of the open\nsource licenses their xNF(s) incorporate.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-40827", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Licensing Requirements", "sections": [ "Licensing Requirements", @@ -30183,20 +56087,25 @@ "validated_by": "", "validation_mode": "" }, - "R-40899": { - "description": "When the VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``name`` parameter is defined as a ``string``, a parameter\n**MUST** be delcared for\neach ``OS::Nova::Server`` resource associated with the ``{vm-type}``.", + "R-408813": { + "description": "The VNF, when publishing events, **MUST** pass all information it is\nable to collect even if the information field is identified as optional.\nHowever, if the data cannot be collected, then optional fields can be\nomitted.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", - "id": "R-40899", - "impacts": "", - "introduced": "", + "id": "R-408813", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Property: Name", + "parts": {}, + "section_name": "Miscellaneous", "sections": [ - "Property: Name", - "Resource: OS::Nova::Server - Parameters" + "Miscellaneous", + "Event Records - Data Structure Description", + "Monitoring & Management" ], "status": null, "tags": [], @@ -30207,20 +56116,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", - "validation_mode": "static" + "validation_mode": "none" }, "R-40971": { - "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv4 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a string,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_ip_{index}``\n\n where\n\n * ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n * ``{network-role}`` is the {network-role} of the external\n network\n * the value for ``{index}`` must start at zero (0) and increment by one", + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nECOMP definition, see Requirement R-57424),\nand an IPv4 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a string,\nthe parameter name **MUST** follow the\nnaming convention\n\n* ``{vm-type}_{network-role}_ip_{index}``\n\nwhere\n\n* ``{vm-type}`` is the {vm-type} associated with the ``OS::Nova::Server``\n* ``{network-role}`` is the {network-role} of the external network\n* ``{index}`` is a numeric value that **MUST** start at zero in a\n VNF's Heat Orchestration Template and **MUST** increment by one", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-40971", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -30241,14 +56154,18 @@ }, "R-41159": { "description": "The VNF **MUST** deliver any and all functionality from any\nVNFC in the pool (where pooling is the most suitable solution). The\nVNFC pool member should be transparent to the client. Upstream and\ndownstream clients should only recognize the function being performed,\nnot the member performing it.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-41159", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "System Resource Optimization", "sections": [ "System Resource Optimization", @@ -30269,14 +56186,18 @@ }, "R-41215": { "description": "The VNF **MAY** have zero to many \"incremental\" modules.", + "docname": "Chapter4/Modularity", "full_title": "", "hide_links": "", "id": "R-41215", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -30297,14 +56218,18 @@ }, "R-41252": { "description": "The VNF **MUST** support the capability of online storage of\nsecurity audit logs.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-41252", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -30324,19 +56249,23 @@ "validation_mode": "" }, "R-41430": { - "description": "The xNF **MUST** support ONAP Controller's **HealthCheck** command.", + "description": "The xNF **MUST** support APPC/SDN-C ``HealthCheck`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-41430", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "HealthCheck and Failure Related Commands", "sections": [ "HealthCheck and Failure Related Commands", - "Controller Interactions With VNF", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -30348,20 +56277,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-41492": { "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv4 Virtual IP (VIP)\naddress is assigned via ONAP automation\nusing the property ``allowed_address_pairs``\nmap property ``ip_address`` and\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_floating_ip``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n OS::Nova::Server\n * ``{network-role}`` is the {network-role} of the external\n network\n\nAnd the parameter **MUST** be declared as type ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-41492", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VIP Assignment, External Networks, Supported by Automation", "sections": [ "VIP Assignment, External Networks, Supported by Automation", @@ -30383,14 +56316,18 @@ }, "R-41825": { "description": "The VNF **MUST** activate security alarms automatically when\na configurable number of consecutive unsuccessful login attempts\nis reached.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-41825", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -30411,18 +56348,22 @@ }, "R-41829": { "description": "The xNF **MUST** be able to specify the granularity of the\nlock via a restricted or full XPath expression.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-41829", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -30441,14 +56382,18 @@ }, "R-41888": { "description": "A VNF's Heat Orchestration Template intrinsic function\n``get_file`` **MUST NOT** utilize URL-based file retrieval.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", "full_title": "", "hide_links": "", "id": "R-41888", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Heat Files Support (get_file)", "sections": [ "Heat Files Support (get_file)", @@ -30469,14 +56414,18 @@ }, "R-41956": { "description": "If a VNF requires ONAP to assign a Virtual IP (VIP) Address to\nports connected an external network, the port\n**MUST NOT** have more than one IPv6 VIP address.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-41956", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VIP Assignment, External Networks, Supported by Automation", "sections": [ "VIP Assignment, External Networks, Supported by Automation", @@ -30497,18 +56446,22 @@ "validation_mode": "static" }, "R-41994": { - "description": "The VNF **MUST**, if not using the NCSP's IDAM API, comply\nwith \"No Self-Signed Certificates\" policy. Self-signed certificates\nmust be used for encryption only, using specified and approved\nencryption protocols such as TLS 1.2 or higher or equivalent security\nprotocols such as IPSec, AES.", + "description": "The VNF **MUST** support the use of X.509 certificates issued from any\nCertificate Authority (CA) that is compliant with RFC5280, e.g., a public\nCA such as DigiCert or Let's Encrypt, or an RFC5280 compliant Operator\nCA.\n\nNote: The VNF provider cannot require the use of self-signed certificates\nin an Operator's run time environment.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-41994", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF General Security Requirements", + "parts": {}, + "section_name": "VNF Cryptography Requirements", "sections": [ - "VNF General Security Requirements", + "VNF Cryptography Requirements", "VNF Security" ], "status": null, @@ -30520,20 +56473,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-42018": { "description": "The xNF Package **MUST** include documentation which must include\nall events (fault, measurement for xNF Scaling, Syslogs, State Change\nand Mobile Flow), that need to be collected at each VM, VNFC (defined in `VNF Guidelines `__ ) and for the overall xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-42018", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -30554,14 +56511,18 @@ }, "R-42140": { "description": "The xNF **MUST** respond to data requests from ONAP as soon\nas those requests are received, as a synchronous response.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-42140", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Asynchronous and Synchronous Data Delivery", "sections": [ "Asynchronous and Synchronous Data Delivery", @@ -30583,14 +56544,18 @@ }, "R-42207": { "description": "The VNF **MUST** design resiliency into a VNF such that the\nresiliency deployment model (e.g., active-active) can be chosen at\nrun-time.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-42207", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "All Layer Redundancy", "sections": [ "All Layer Redundancy", @@ -30611,14 +56576,18 @@ }, "R-42366": { "description": "The xNF **MUST** support secure connections and transports such as\nTransport Layer Security (TLS) protocol\n[`RFC5246 `_] and should adhere to\nthe best current practices outlined in\n`RFC7525 `_.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-42366", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Security", "sections": [ "Security", @@ -30638,44 +56607,20 @@ "validated_by": "", "validation_mode": "" }, - "R-42681": { - "description": "The VNF **MUST** use the NCSP's IDAM API or comply with\nthe requirements if not using the NCSP's IDAM API, for identification,\nauthentication and access control of OA&M and other system level\nfunctions.", - "full_title": "", - "hide_links": "", - "id": "R-42681", - "impacts": "", - "introduced": "", - "keyword": "MUST", - "links": [], - "notes": "", - "section_name": "VNF General Security Requirements", - "sections": [ - "VNF General Security Requirements", - "VNF Security" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "", - "validated_by": "", - "validation_mode": "" - }, "R-42685": { "description": "A VNF's Heat Orchestration template's Environment File's\n**MAY** contain the ``parameter_merge_strategies:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-42685", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Environment File Format", "sections": [ "Environment File Format", @@ -30696,14 +56641,18 @@ }, "R-42874": { "description": "The VNF **MUST** allow the Operator to restrict access based on\nthe assigned permissions associated with an ID in order to support\nLeast Privilege (no more privilege than required to perform job\nfunctions).", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-42874", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -30723,19 +56672,23 @@ "validation_mode": "" }, "R-43253": { - "description": "The xNF **MUST** use playbooks designed to allow Ansible\nServer to infer failure or success based on the \"PLAY_RECAP\" capability.\n\nNote: There are cases where playbooks need to interpret results\nof a task and then determine success or failure and return result\naccordingly (failure for failed tasks).", + "description": "The xNF **MUST** use playbooks designed to allow Ansible\nServer to infer failure or success based on the \"PLAY_RECAP\" capability.\n\n**Note**: There are cases where playbooks need to interpret results\nof a task and then determine success or failure and return result\naccordingly (failure for failed tasks).", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-43253", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Playbook Requirements", "sections": [ "Ansible Playbook Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -30754,14 +56707,18 @@ }, "R-43327": { "description": "The xNF **SHOULD** use `Modeling JSON text with YANG\n`_, If YANG models need to be\ntranslated to and from JSON{RFC7951]. YANG configuration and content can\nbe represented via JSON, consistent with Avro, as described in \"Encoding\nand Serialization\" section.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-43327", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Asynchronous and Synchronous Data Delivery", "sections": [ "Asynchronous and Synchronous Data Delivery", @@ -30783,14 +56740,18 @@ }, "R-43332": { "description": "The VNF **MUST** activate security alarms automatically when\nit detects the successful modification of a critical system or\napplication file.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-43332", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -30810,19 +56771,23 @@ "validation_mode": "" }, "R-43353": { - "description": "The xNF **MUST** return control from Ansible Playbooks only\nafter tasks are fully complete, signaling that the playbook completed\nall tasks. When starting services, return control only after all services\nare up. This is critical for workflows where the next steps are dependent\non prior tasks being fully completed.", + "description": "The xNF **MUST** return control from Ansible Playbooks only after all\ntasks performed by playbook are fully complete, signaling that the\nplaybook completed all tasks. When starting services, return control\nonly after all services are up. This is critical for workflows where\nthe next steps are dependent on prior tasks being fully completed.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-43353", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Playbook Requirements", "sections": [ "Ansible Playbook Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -30835,20 +56800,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-43413": { "description": "A VNF **MUST** utilize a modular Heat Orchestration Template design to\nsupport scaling (growth/de-growth).", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-43413", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Support of heat stack update", "sections": [ "Support of heat stack update", @@ -30869,14 +56838,18 @@ }, "R-43740": { "description": "VNF's Heat Orchestration Template's Resource **MAY** declare the\nattribute ``deletion_policy:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-43740", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "deletion_policy", "sections": [ "deletion_policy", @@ -30893,20 +56866,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-43884": { "description": "The VNF **SHOULD** integrate with the Operator's authentication and\nauthorization services (e.g., IDAM).", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-43884", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF API Security Requirements", "sections": [ "VNF API Security Requirements", @@ -30927,14 +56904,18 @@ }, "R-43958": { "description": "The xNF Package **MUST** include documentation describing\nthe tests that were conducted by the xNF provider and the test results.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-43958", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Testing", "sections": [ "Testing", @@ -30949,20 +56930,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-44001": { "description": "A VNF's Heat Orchestration Template parameter declaration **MUST**\ncontain the attribute ``description``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-44001", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "description", "sections": [ "description", @@ -30985,18 +56970,22 @@ }, "R-44013": { "description": "The xNF **MUST** populate an attribute, defined as node\n['PushJobOutput'] with the desired output on all nodes in the push job\nthat execute chef-client run if the xNF action requires the output of a\nchef-client run be made available (e.g., get running configuration).", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-44013", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Roles/Requirements", "sections": [ "Chef Roles/Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -31015,14 +57004,18 @@ }, "R-440220": { "description": "The xNF **SHOULD** support File transferring protocol, such as FTPES or SFTP,\nwhen supporting the event-driven bulk transfer of monitoring data.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-440220", "impacts": "dcae, dmaap", "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Bulk Performance Measurement", "sections": [ "Bulk Performance Measurement", @@ -31044,14 +57037,18 @@ }, "R-44125": { "description": "The xNF provider **MUST** agree to the process that can\nbe met by Service Provider reporting infrastructure. The Contract\nshall define the reporting process and the available reporting tools.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-44125", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Licensing Requirements", "sections": [ "Licensing Requirements", @@ -31072,14 +57069,18 @@ }, "R-44271": { "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``name`` parameter value **SHOULD NOT** contain special characters\nsince the Contrail GUI has a limitation displaying special characters.\n\nHowever, if special characters must be used, the only special characters\nsupported are: --- \\\" ! $ ' (\\ \\ ) = ~ ^ | @ ` { } [ ] > , . _", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-44271", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Contrail Issue with Values for OS::Nova::Server Property Name", "sections": [ "Contrail Issue with Values for OS::Nova::Server Property Name", @@ -31100,19 +57101,23 @@ "validation_mode": "" }, "R-44281": { - "description": "The xNF **MUST** implement the protocol operation:\n**edit-config(target, default-operation, test-option, error-option,\nconfig)** - Edit the target configuration datastore by merging,\nreplacing, creating, or deleting new config elements.", + "description": "The xNF **MUST** implement the protocol operation:\n``edit-config(target, default-operation, test-option, error-option,\nconfig)`` - Edit the target configuration data store by merging,\nreplacing, creating, or deleting new config elements.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-44281", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -31125,20 +57130,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-44290": { "description": "The xNF **MUST** control access to ONAP and to xNFs, and creation\nof connections, through secure credentials, log-on and exchange mechanisms.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-44290", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Security", "sections": [ "Security", @@ -31159,47 +57168,23 @@ "validation_mode": "" }, "R-44318": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vnf_name`` **MUST NOT**\nhave parameter constraints defined.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vnf_name``\nparameter ``vnf_name`` **MUST NOT**\nhave parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-44318", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vnf_name", "sections": [ "vnf_name", - "Resource: OS::Nova::Server - Metadata Parameters" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "casablanca", - "validated_by": "", - "validation_mode": "static" - }, - "R-44491": { - "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``vnf_id`` is passed into a Nested YAML\nfile, the key/value pair name ``vnf_id`` **MUST NOT** change.", - "full_title": "", - "hide_links": "", - "id": "R-44491", - "impacts": "", - "introduced": "", - "keyword": "MUST NOT", - "links": [], - "notes": "", - "section_name": "vnf_id", - "sections": [ - "vnf_id", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -31216,14 +57201,18 @@ }, "R-44569": { "description": "The xNF provider **MUST NOT** require additional\ninfrastructure such as a xNF provider license server for xNF provider\nfunctions and metrics.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-44569", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Licensing Requirements", "sections": [ "Licensing Requirements", @@ -31244,14 +57233,18 @@ }, "R-44723": { "description": "The VNF **MUST** use symmetric keys of at least 112 bits in length.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-44723", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Cryptography Requirements", "sections": [ "VNF Cryptography Requirements", @@ -31272,14 +57265,18 @@ }, "R-44896": { "description": "The VNF Package **MUST** include VM requirements via a Heat\ntemplate that provides the necessary data for high availability\nredundancy model.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-44896", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Compute, Network, and Storage Requirements", "sections": [ "Compute, Network, and Storage Requirements", @@ -31300,14 +57297,18 @@ }, "R-45188": { "description": "The VNF's Heat Orchestration Template's Resource 'OS::Nova::Server' property\n``flavor`` parameter name **MUST** follow the naming convention\n``{vm-type}_flavor_name``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-45188", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: flavor", "sections": [ "Property: flavor", @@ -31326,16 +57327,54 @@ "validated_by": "", "validation_mode": "static" }, + "R-45197": { + "description": "The xNF **MUST** define the \"from=\" clause to provide the list of IP\naddresses of the Ansible Servers in the Cluster, separated by coma, to\nrestrict use of the SSH key pair to elements that are part of the Ansible\nCluster owner of the issued and assigned mechanized user ID.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-45197", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-45602": { - "description": "If a VNF's Port is attached to a network (internal or external)\nand the port's IP addresses are cloud assigned by OpenStack's DHCP\nService, the ``OS::Neutron::Port`` Resource's\n\n* property ``fixed_ips`` map property ``ip_address`` **MUST NOT** be used\n* property ``fixed_ips`` map property ``subnet``/``subnet_id``\n **MAY** be used", + "description": "If a VNF's Port is attached to a network (internal or external)\nand the port's IP addresses are cloud assigned by OpenStack's DHCP\nService, the ``OS::Neutron::Port`` Resource's\n\n* property ``fixed_ips`` map property ``ip_address`` **MUST NOT** be used\n* property ``fixed_ips`` map property ``subnet``\n **MAY** be used", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-45602", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Items to Note", "sections": [ "Items to Note", @@ -31355,20 +57394,56 @@ "validated_by": "", "validation_mode": "static" }, + "R-45719": { + "description": "The VNF **MUST**, if not integrated with the Operator's Identity and Access\nManagement system, or enforce a configurable \"terminate idle sessions\"\npolicy by terminating the session after a configurable period of inactivity.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-45719", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-45856": { - "description": "The xNF **MUST** support ONAP Controller's **UpgradePostCheck** command.", + "description": "The xNF **MUST** support APPC/SDN-C ``UpgradePostCheck`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-45856", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "LifeCycle Management Related Commands", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", "sections": [ - "LifeCycle Management Related Commands", - "Controller Interactions With VNF", + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -31380,20 +57455,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-46096": { "description": "A VNF's Heat Orchestration template's Environment File's\n**MAY** contain the ``encrypted_parameters:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-46096", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Environment File Format", "sections": [ "Environment File Format", @@ -31414,14 +57493,18 @@ }, "R-46119": { "description": "A VNF's Heat Orchestration Template's Resource OS::Heat::CinderVolume\n**MAY** be defined in a Base Module.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-46119", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -31442,14 +57525,18 @@ }, "R-46128": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``\nthat is configuring an IPv6 Address on a port attached to an external network\nResource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_{network-role}_vmi_{vmi_index}_v6_IP_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{vmi_index}`` is the instance of the the virtual machine interface\n (e.g., port) on the vm-type\n attached to the network of {network-role}\n* ``v6_IP`` signifies that an IPv6 address is being configured\n* ``{index}`` is the index of the IPv6 address", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-46128", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::InstanceIp", "sections": [ "OS::ContrailV2::InstanceIp", @@ -31471,14 +57558,18 @@ }, "R-46290": { "description": "The xNF **MUST** respond to an ONAP request to deliver granular\ndata on device or subsystem status or performance, referencing the YANG\nconfiguration model for the xNF by returning the requested data elements.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-46290", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Asynchronous and Synchronous Data Delivery", "sections": [ "Asynchronous and Synchronous Data Delivery", @@ -31499,15 +57590,19 @@ "validation_mode": "" }, "R-46461": { - "description": "A VNF's port connected to an internal network **MUST NOT** connect\nthe port to VMs in another VNF and/or an external gateway and/or\nexternal router.", + "description": "A VNF's port connected to an internal network **MUST NOT** use the port\nfor the purpose of reaching VMs in another VNF and/or an\nexternal gateway and/or\nexternal router.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", "id": "R-46461", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Internal Networks", "sections": [ "Internal Networks", @@ -31526,16 +57621,85 @@ "validated_by": "", "validation_mode": "static" }, + "R-465236": { + "description": "The VNF **SHOULD** provide the capability of maintaining the integrity of\nits static files using a cryptographic method.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-465236", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-46527": { + "description": "A VNFD is a deployment template which describes a VNF in terms of\ndeployment and operational behavior requirements. It contains\nvirtualized resources (nodes) requirements as well as connectivity\nand interfaces requirements and **MUST** comply with info elements\nspecified in ETSI GS NFV-IFA 011. The main parts of the VNFD are\nthe following:\n\n - VNF topology: it is modeled in a cloud agnostic way using virtualized\n containers and their connectivity. Virtual Deployment Units (VDU)\n describe the capabilities of the virtualized containers, such as\n virtual CPU, RAM, disks; their connectivity is modeled with VDU\n Connection Point Descriptors (VduCpd), Virtual Link Descriptors\n (VnfVld) and VNF External Connection Point Descriptors\n (VnfExternalCpd);\n\n - VNF deployment aspects: they are described in one or more\n deployment flavours, including configurable parameters, instantiation\n levels, placement constraints (affinity / antiaffinity), minimum and\n maximum VDU instance numbers. Horizontal scaling is modeled with\n scaling aspects and the respective scaling levels in the deployment\n flavours;\n\n**Note**: The deployment aspects (deployment flavour etc.) are postponed\nfor future ONAP releases.\n\n - VNF lifecycle management (LCM) operations: describes the LCM operations\n supported per deployment flavour, and their input parameters;\n Note, thatthe actual LCM implementation resides in a different layer,\n namely referring to additional template artifacts.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-46527", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "General", + "sections": [ + "General", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-46567": { "description": "The xNF Package **MUST** include configuration scripts\nfor boot sequence and configuration.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-46567", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Management via Ansible", "sections": [ "Configuration Management via Ansible", @@ -31555,20 +57719,23 @@ "validated_by": "", "validation_mode": "" }, - "R-46823": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vm_role`` **MUST**\nbe either\n\n * enumerated in the VNF's Heat Orchestration Template's environment\n file.\n\n * hard coded in the VNF's\n Heat Orchestration Template's ``OS::Nova::Server`` Resource\n ``metadata`` property.", + "R-46839": { + "description": "A VNF's Heat Orchestration Template's use of ``{vm-type}``\nin all Resource IDs **MUST** be the same case.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", "full_title": "", "hide_links": "", - "id": "R-46823", + "id": "R-46839", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "vm_role", + "parts": {}, + "section_name": "{vm-type}", "sections": [ - "vm_role", - "Resource: OS::Nova::Server - Metadata Parameters" + "{vm-type}" ], "status": null, "tags": [], @@ -31583,19 +57750,24 @@ "validated_by": "", "validation_mode": "static" }, - "R-46839": { - "description": "A VNF's Heat Orchestration Template's use of ``{vm-type}``\nin all Resource IDs **MUST** be the same case.", + "R-46851": { + "description": "The VNF **MUST** support ONAP Controller's Evacuate command.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", - "id": "R-46839", + "id": "R-46851", "impacts": "", - "introduced": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "{vm-type}", + "parts": {}, + "section_name": "Virtual Function - Container Recovery Requirements", "sections": [ - "{vm-type}" + "Virtual Function - Container Recovery Requirements", + "VNF Resiliency" ], "status": null, "tags": [], @@ -31606,20 +57778,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" }, "R-46908": { - "description": "The VNF **MUST**, if not integrated with the Operator\u2019s Identity\nand Access Management system, comply with \"password complexity\"\npolicy. When passwords are used, they shall be complex and shall at\nleast meet the following password construction requirements: (1) be a\nminimum configurable number of characters in length, (2) include 3 of\nthe 4 following types of characters: upper-case alphabetic, lower-case\nalphabetic, numeric, and special, (3) not be the same as the UserID\nwith which they are associated or other common strings as specified\nby the environment, (4) not contain repeating or sequential characters\nor numbers, (5) not to use special characters that may have command\nfunctions, and (6) new passwords must not contain sequences of three\nor more characters from the previous password.", + "description": "The VNF **MUST**, if not integrated with the Operator's Identity and\nAccess Management system, comply with \"password complexity\" policy. When\npasswords are used, they shall be complex and shall at least meet the\nfollowing password construction requirements: (1) be a minimum configurable\nnumber of characters in length, (2) include 3 of the 4 following types of\ncharacters: upper-case alphabetic, lower-case alphabetic, numeric, and\nspecial, (3) not be the same as the UserID with which they are associated\nor other common strings as specified by the environment, (4) not contain\nrepeating or sequential characters or numbers, (5) not to use special\ncharacters that may have command functions, and (6) new passwords must\nnot contain sequences of three or more characters from the previous\npassword.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-46908", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -31640,14 +57816,18 @@ }, "R-46960": { "description": "NCSPs **MAY** operate a limited set of Guest OS and CPU\narchitectures and families, virtual machines, etc.", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", "id": "R-46960", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Devops", "sections": [ "VNF Devops" @@ -31667,14 +57847,18 @@ }, "R-46968": { "description": "VNF's Heat Orchestration Template's Resource **MAY** declare the\nattribute ``depends_on:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-46968", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "depends_on", "sections": [ "depends_on", @@ -31697,14 +57881,18 @@ }, "R-46986": { "description": "The VNF **SHOULD** have source code scanned using scanning\ntools (e.g., Fortify) and provide reports.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-46986", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -31725,18 +57913,22 @@ }, "R-47061": { "description": "A VNF's Heat Orchestration Template's OS::Nova::Server\nResource **SHOULD** contain the metadata map value parameter\n'workload_context'.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-47061", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "workload_context", "sections": [ "workload_context", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -31753,18 +57945,22 @@ }, "R-47068": { "description": "The xNF **MAY** expose a single endpoint that is\nresponsible for all functionality.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-47068", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Client Requirements", "sections": [ "Chef Client Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -31781,16 +57977,53 @@ "validated_by": "", "validation_mode": "" }, + "R-470963": { + "description": "The VNF, when publishing events, **MUST** leverage camel case to separate\nwords and acronyms used as keys that will be sent through extensible fields.\nWhen an acronym is used as the key, then only the first letter shall be\ncapitalized.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-470963", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Miscellaneous", + "sections": [ + "Miscellaneous", + "Event Records - Data Structure Description", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, "R-47204": { "description": "The VNF **MUST** be capable of protecting the confidentiality and integrity\nof data at rest and in transit from unauthorized access and modification.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-47204", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Data Protection Requirements", "sections": [ "VNF Data Protection Requirements", @@ -31811,14 +58044,18 @@ }, "R-47597": { "description": "The xNF **MUST** carry data in motion only over secure connections.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-47597", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Security", "sections": [ "Security", @@ -31840,14 +58077,18 @@ }, "R-47849": { "description": "The xNF provider **MUST** support the metadata about\nlicenses (and their applicable entitlements) as defined in this\ndocument for xNF software, and any license keys required to authorize\nuse of the xNF software. This metadata will be used to facilitate\nonboarding the xNF into the ONAP environment and automating processes\nfor putting the licenses into use and managing the full lifecycle of\nthe licenses. The details of this license model are described in\nTables C1 to C8 in the Appendix.\n\nNote: License metadata support in ONAP is not currently available\nand planned for 1Q 2018.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-47849", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Licensing Requirements", "sections": [ "Licensing Requirements", @@ -31868,14 +58109,18 @@ }, "R-47874": { "description": "A VNF **MAY** have\n * Only an IPv4 OAM Management IP Address\n * Only an IPv6 OAM Management IP Address\n * Both a IPv4 and IPv6 OAM Management IP Addresses", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", "full_title": "", "hide_links": "", "id": "R-47874", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "OAM Management IP Addresses", "sections": [ "OAM Management IP Addresses", @@ -31895,16 +58140,52 @@ "validated_by": "", "validation_mode": "" }, + "R-479386": { + "description": "The VNF **MUST NOT** display \"Welcome\" notices or messages that could\nbe misinterpreted as extending an invitation to unauthorized users.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-479386", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-48067": { "description": "A VNF's Heat Orchestration Template's ``{vm-type}`` **MUST NOT** be a\nsubstring\nof ``{network-role}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", "full_title": "", "hide_links": "", "id": "R-48067", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "{vm-type}", "sections": [ "{vm-type}" @@ -31924,14 +58205,18 @@ }, "R-48080": { "description": "The VNF **SHOULD** support an automated certificate management protocol\nsuch as CMPv2, Simple Certificate Enrollment Protocol (SCEP) or\nAutomated Certificate Management Environment (ACME).", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-48080", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Cryptography Requirements", "sections": [ "VNF Cryptography Requirements", @@ -31950,20 +58235,56 @@ "validated_by": "", "validation_mode": "" }, + "R-481670": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``flavor`` value **MUST** be be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-481670", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: flavor", + "sections": [ + "Property: flavor", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, "R-48247": { - "description": "The xNF **MUST** support ONAP Controller's **ConfigRestore** command.", + "description": "The xNF **MUST** support APPC ``ConfigRestore`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-48247", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Commands", "sections": [ "Configuration Commands", - "Controller Interactions With VNF", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -31975,20 +58296,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-48356": { "description": "The VNF **MUST** fully exploit exception handling to the extent\nthat resources (e.g., threads and memory) are released when no longer\nneeded regardless of programming language.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-48356", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Resilient Error Handling", "sections": [ "Application Resilient Error Handling", @@ -32009,14 +58334,18 @@ }, "R-48470": { "description": "The VNF **MUST** support Real-time detection and\nnotification of security events.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-48470", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -32037,14 +58366,18 @@ }, "R-48596": { "description": "The xNF Package **MUST** include documentation describing\nthe characteristics for the xNF reliability and high availability.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-48596", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -32064,19 +58397,23 @@ "validation_mode": "" }, "R-48698": { - "description": "The xNF **MUST** utilize information from key value pairs\nthat will be provided by the Ansible Server as \"extra-vars\" during\ninvocation to execute the desired xNF action. If the playbook requires\nfiles, they must also be supplied using the methodology detailed in\nthe Ansible Server API, unless they are bundled with playbooks, example,\ngeneric templates.", + "description": "The xNF **MUST** utilize information from key value pairs that will be\nprovided by the Ansible Server as \"extra-vars\" during invocation to\nexecute the desired xNF action. The \"extra-vars\" attribute-value pairs\nare passed to the Ansible Server by an APPC/SDN-C as part of the\nRest API request. If the playbook requires files, they must also be\nsupplied using the methodology detailed in the Ansible Server API, unless\nthey are bundled with playbooks, example, generic templates. Any files\ncontaining instance specific info (attribute-value pairs), not obtainable\nfrom any ONAP inventory databases or other sources, referenced and used an\ninput by playbooks, shall be provisioned (and distributed) in advance of\nuse, e.g., xNF instantiation. Recommendation is to avoid these instance\nspecific, manually created in advance of instantiation, files.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-48698", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Playbook Requirements", "sections": [ "Ansible Playbook Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -32089,20 +58426,56 @@ "title": "", "title_from_content": "", "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-48761": { + "description": "The VNF **MUST** support ONAP Controller's Snapshot command.", + "docname": "Chapter4/Resiliency", + "full_title": "", + "hide_links": "", + "id": "R-48761", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Virtual Function - Container Recovery Requirements", + "sections": [ + "Virtual Function - Container Recovery Requirements", + "VNF Resiliency" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", "updated": "", "validated_by": "", "validation_mode": "" }, "R-48880": { - "description": "If a VNF's Port is attached to an external network and the port's\nIP addresses are assigned by ONAP's SDN-Controller,\nthe ``OS::Neutron::Port`` Resource's\n\n* property ``fixed_ips`` map property ``ip_address`` **MUST** be used\n* property ``fixed_ips`` map property ``subnet``/``subnet_id``\n **MUST NOT** be used", + "description": "If a VNF's Port is attached to an external network and the port's\nIP addresses are assigned by ONAP's SDN-Controller,\nthe ``OS::Neutron::Port`` Resource's\n\n* property ``fixed_ips`` map property ``ip_address`` **MUST** be used\n* property ``fixed_ips`` map property ``subnet``\n **MUST NOT** be used", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-48880", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Items to Note", "sections": [ "Items to Note", @@ -32124,14 +58497,18 @@ }, "R-48917": { "description": "The VNF **MUST** monitor for and alert on (both sender and\nreceiver) errant, running longer than expected and missing file transfers,\nso as to minimize the impact due to file transfer errors.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-48917", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Monitoring & Dashboard", "sections": [ "Monitoring & Dashboard", @@ -32152,14 +58529,18 @@ }, "R-48987": { "description": "If the VNF's OAM Management IP Address is cloud assigned and\nand the OAM IP Address is required to be inventoried in ONAP A&AI,\nthen the parameter **MUST** be obtained by the\nresource ``OS::Neutron::Port``\nattribute ``ip_address``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", "full_title": "", "hide_links": "", "id": "R-48987", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OAM Management IP Addresses", "sections": [ "OAM Management IP Addresses", @@ -32181,18 +58562,22 @@ }, "R-49036": { "description": "The xNF **SHOULD** conform its YANG model to RFC 7277,\n\"A YANG Data Model for IP Management\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-49036", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -32210,18 +58595,22 @@ "validation_mode": "" }, "R-49109": { - "description": "The VNF **MUST** encrypt TCP/IP--HTTPS (e.g., TLS v1.2)\ntransmission of data on internal and external networks.", + "description": "The VNF **MUST** support HTTP/S using TLS v1.2 or higher\nwith strong cryptographic ciphers.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-49109", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF Identity and Access Management Requirements", + "parts": {}, + "section_name": "VNF Cryptography Requirements", "sections": [ - "VNF Identity and Access Management Requirements", + "VNF Cryptography Requirements", "VNF Security" ], "status": null, @@ -32233,24 +58622,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-49145": { - "description": "The xNF **MUST** implement **:confirmed-commit** If\n**:candidate** is supported.", + "description": "The xNF **MUST** implement ``:confirmed-commit`` If\n``:candidate`` is supported.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-49145", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -32267,44 +58660,20 @@ "validated_by": "", "validation_mode": "" }, - "R-49177": { - "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\nmetadata map value parameter ``vf_module_name`` is passed into a Nested YAML\nfile, the parameter name ``vf_module_name`` **MUST NOT** change.", - "full_title": "", - "hide_links": "", - "id": "R-49177", - "impacts": "", - "introduced": "", - "keyword": "MUST", - "links": [], - "notes": "", - "section_name": "vf_module_name", - "sections": [ - "vf_module_name", - "Resource: OS::Nova::Server - Metadata Parameters" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "casablanca", - "validated_by": "", - "validation_mode": "static" - }, "R-49224": { "description": "The VNF **MUST** provide unique traceability of a transaction\nthrough its life cycle to ensure quick and efficient troubleshooting.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-49224", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Monitoring & Dashboard", "sections": [ "Monitoring & Dashboard", @@ -32325,14 +58694,18 @@ }, "R-49308": { "description": "The VNF **SHOULD** test for adherence to the defined resiliency\nrating recommendation at each layer, during each delivery cycle with\ndelivered results, so that the resiliency rating is measured and the\ncode is adjusted to meet software resiliency requirements.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-49308", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Deployment Optimization", "sections": [ "Deployment Optimization", @@ -32352,19 +58725,23 @@ "validation_mode": "" }, "R-49396": { - "description": "The xNF **MUST** support each ONAP (APPC) xNF action\nby invocation of **one** playbook [#7.3.4]_. The playbook will be responsible\nfor executing all necessary tasks (as well as calling other playbooks)\nto complete the request.", + "description": "The xNF **MUST** support each APPC/SDN-C xNF action\nby invocation of **one** playbook [#7.3.4]_. The playbook will be responsible\nfor executing all necessary tasks (as well as calling other playbooks)\nto complete the request.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-49396", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Playbook Requirements", "sections": [ "Ansible Playbook Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -32377,24 +58754,62 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-49466": { - "description": "The xNF **MUST** support ONAP Controller's **UpgradeSoftware** command.", + "description": "The xNF **MUST** support APPC/SDN-C ``UpgradeSoftware`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-49466", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "LifeCycle Management Related Commands", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", "sections": [ - "LifeCycle Management Related Commands", - "Controller Interactions With VNF", + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-49751": { + "description": "The xNF **MUST** support Ansible playbooks that are compatible with\nAnsible version 2.6 or later.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-49751", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", "Configuration Management" ], "status": null, @@ -32410,16 +58825,54 @@ "validated_by": "", "validation_mode": "" }, + "R-49911": { + "description": "The xNF provider **MUST** assign a new point release to the updated\nplaybook set. The functionality of a new playbook set must be tested before\nit is deployed to the production.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-49911", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Playbook Requirements", + "sections": [ + "Ansible Playbook Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, "R-50011": { "description": "A VNF's Heat Orchestration Template's ``OS::Heat::ResourceGroup``\nproperty ``count`` **MUST** be enumerated in the VNF's\nHeat Orchestration Template's Environment File and **MUST** be\nassigned a value.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", "full_title": "", "hide_links": "", "id": "R-50011", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Heat::ResourceGroup Property count", "sections": [ "OS::Heat::ResourceGroup Property count", @@ -32441,19 +58894,23 @@ "validation_mode": "static" }, "R-50252": { - "description": "The xNF **MUST** write to a specific one text files that\nwill be retrieved and made available by the Ansible Server if, as part\nof a xNF action (e.g., audit), a playbook is required to return any\nxNF information. The text files must be written in the same directory as\nthe one from which the playbook is being executed. A text file must be\ncreated for the xNF playbook run targets/affects, with the name\n'_results.txt' into which any desired output from each\nrespective VM/xNF must be written.", + "description": "The xNF **MUST** write to a response file in JSON format that will be\nretrieved and made available by the Ansible Server if, as part of a xNF\naction (e.g., audit), a playbook is required to return any xNF\ninformation/response. The text files must be written in the main playbook\nhome directory, in JSON format. The JSON file must be created for the xNF\nwith the name '_results.txt'. All playbook output results, for\nall xNF VMs, to be provided as a response to the request, must be written\nto this response file.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-50252", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Playbook Requirements", "sections": [ "Ansible Playbook Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -32466,20 +58923,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-50436": { "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``flavor`` parameter **MUST** be declared as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-50436", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: flavor", "sections": [ "Property: flavor", @@ -32500,14 +58961,18 @@ }, "R-50468": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::VirtualMachineInterface`` that is attaching to an internal network\nResource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_int_{network-role}_vmi_{vmi_index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port (i.e. virtual machine interface) is attached to\n* ``{vmi_index}`` is the instance of the the vmi on the vm-type\n attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-50468", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::VirtualMachineInterface", "sections": [ "OS::ContrailV2::VirtualMachineInterface", @@ -32528,19 +58993,23 @@ "validation_mode": "static" }, "R-50816": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server Resource`` **MAY**\ncontain the metadata map value parameter ``vf_module_index``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property ``metadata`` **MAY**\ncontain the key/value pair ``vf_module_index``\nand the value **MUST** be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-50816", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_index", "sections": [ "vf_module_index", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -32555,16 +59024,85 @@ "validated_by": "", "validation_mode": "" }, + "R-511776": { + "description": "When a VNF's Heat Orchestration Template is ready\nto be on-boarded to ONAP,\nall files composing the VNF Heat Orchestration Template\n**MUST** be placed in a flat (i.e., non-hierarchical) directory and\narchived using ZIP. The resulting ZIP file is uploaded into ONAP.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", + "full_title": "", + "hide_links": "", + "id": "R-511776", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP VNF On-Boarding", + "sections": [ + "ONAP VNF On-Boarding", + "ONAP Heat Orchestration Templates Overview" + ], + "status": null, + "tags": [], + "target": "", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-51347": { + "description": "The VNF package **MUST** be arranged as a CSAR archive as specified in\nTOSCA Simple Profile in YAML 1.2.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-51347", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Structure and Format", + "sections": [ + "VNF Package Structure and Format", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-51430": { "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``name`` parameter **MUST** be declared as either type ``string``\nor type ``comma_delimited_list``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-51430", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: Name", "sections": [ "Property: Name", @@ -32584,19 +59122,23 @@ "validation_mode": "static" }, "R-51442": { - "description": "The xNF **SHOULD** use playbooks that are designed to\nautomatically 'rollback' to the original state in case of any errors\nfor actions that change state of the xNF (e.g., configure).\n\n Note: In case rollback at the playbook level is not supported or\n possible, the xNF provider shall provide alternative locking\n mechanism (e.g., for a small xNF the rollback mechanism may rely\n on workflow to terminate and re-instantiate VNF VMs and then re-run\n playbook(s)). Backing up updated files also recommended to support\n rollback when soft rollback is feasible.", + "description": "The xNF **SHOULD** use playbooks that are designed to\nautomatically 'rollback' to the original state in case of any errors\nfor actions that change state of the xNF (e.g., configure).\n\n**Note**: In case rollback at the playbook level is not supported or\npossible, the xNF provider shall provide alternative rollback\nmechanism (e.g., for a small xNF the rollback mechanism may rely\non workflow to terminate and re-instantiate VNF VMs and then re-run\nplaybook(s)). Backing up updated files is also recommended to support\nrollback when soft rollback is feasible.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-51442", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Playbook Requirements", "sections": [ "Ansible Playbook Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -32609,77 +59151,88 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, - "R-51910": { - "description": "The xNF **MUST** provide all telemetry (e.g., fault event\nrecords, syslog records, performance records etc.) to ONAP using the\nmodel, format and mechanisms described in this section.", + "R-52060": { + "description": "The VNF **MUST** provide the capability to configure encryption\nalgorithms or devices so that they comply with the laws of the jurisdiction\nin which there are plans to use data encryption.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", - "id": "R-51910", + "id": "R-52060", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF telemetry via standardized interface", + "parts": {}, + "section_name": "VNF Cryptography Requirements", "sections": [ - "VNF telemetry via standardized interface", - "Monitoring & Management Requirements", - "Monitoring & Management" + "VNF Cryptography Requirements", + "VNF Security" ], "status": null, "tags": [], - "target": "XNF", + "target": "VNF", "test": "", "test_case": "", "test_file": "", "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, - "R-52060": { - "description": "The VNF **MUST** provide the capability to configure encryption\nalgorithms or devices so that they comply with the laws of the jurisdiction\nin which there are plans to use data encryption.", + "R-520802": { + "description": "The xNF provider **MUST** provide a YAML file formatted in adherence with\nthe :doc:`VES Event Registration specification<../../../../vnfsdk/module.git/files/VESEventRegistration_3_0>`\nthat defines the following information for each event produced by the VNF:\n\n* ``eventName``\n* Required fields\n* Optional fields\n* Any special handling to be performed for that event", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", - "id": "R-52060", - "impacts": "", - "introduced": "", + "id": "R-520802", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF Cryptography Requirements", + "parts": {}, + "section_name": "Data Structure Specification of the Event Record", "sections": [ - "VNF Cryptography Requirements", - "VNF Security" + "Data Structure Specification of the Event Record", + "Monitoring & Management" ], "status": null, "tags": [], - "target": "VNF", + "target": "XNF PROVIDER", "test": "", "test_case": "", "test_file": "", "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", - "validation_mode": "" + "validation_mode": "static" }, "R-52425": { "description": "A VNF's port connected to an internal network **MUST**\nuse the port for the purpose of reaching VMs in the same VNF.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", "id": "R-52425", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Internal Networks", "sections": [ "Internal Networks", @@ -32700,14 +59253,18 @@ }, "R-52499": { "description": "The VNF **MUST** meet their own resiliency goals and not rely\non the Network Cloud.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-52499", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "All Layer Redundancy", "sections": [ "All Layer Redundancy", @@ -32726,21 +59283,25 @@ "validated_by": "", "validation_mode": "" }, - "R-52530": { - "description": "A VNF's Heat Orchestration Template's Nested YAML file\n**MUST** be in the same directory hierarchy as the VNF's Heat\nOrchestration Templates.", + "R-52753": { + "description": "VNF's Heat Orchestration Template's Base Module's output parameter's\nname and type **MUST** match the VNF's Heat Orchestration Template's\nincremental Module's name and type.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", - "id": "R-52530", + "id": "R-52753", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Nested Heat Template Requirements", + "parts": {}, + "section_name": "ONAP Base Module Output Parameters", "sections": [ - "Nested Heat Template Requirements", - "Nested Heat Templates", - "ONAP Heat Heat Template Constructs" + "ONAP Base Module Output Parameters", + "Output Parameters", + "ONAP Heat Orchestration Templates Overview" ], "status": null, "tags": [], @@ -32751,25 +59312,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", "validation_mode": "static" }, - "R-52753": { - "description": "VNF's Heat Orchestration Template's Base Module's output parameter's\nname and type **MUST** match the VNF's Heat Orchestration Template's\nincremental Module's name and type unless the output parameter is of\ntype ``comma_delimited_list``, then the corresponding input parameter\n**MUST** be declared as type ``json``.", + "R-52870": { + "description": "The VNF **MUST** provide a method of metrics gathering\nand analysis to evaluate the resiliency of the software from both\na granular as well as a holistic standpoint. This includes, but is\nnot limited to thread utilization, errors, timeouts, and retries.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", - "id": "R-52753", + "id": "R-52870", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "ONAP Base Module Output Parameters", + "parts": {}, + "section_name": "Monitoring & Dashboard", "sections": [ - "ONAP Base Module Output Parameters", - "Output Parameters", - "ONAP Heat Orchestration Templates Overview" + "Monitoring & Dashboard", + "VNF Resiliency" ], "status": null, "tags": [], @@ -32782,22 +59346,27 @@ "type_name": "Requirement", "updated": "", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" }, - "R-52870": { - "description": "The VNF **MUST** provide a method of metrics gathering\nand analysis to evaluate the resiliency of the software from both\na granular as well as a holistic standpoint. This includes, but is\nnot limited to thread utilization, errors, timeouts, and retries.", + "R-528866": { + "description": "The VNF **MUST** produce VES events that include the following mandatory\nfields in the common event header.\n\n * ``domain`` - the event domain enumeration\n * ``eventId`` - the event key unique to the event source\n * ``eventName`` - the unique event name\n * ``lastEpochMicrosec`` - the latest unix time (aka epoch time) associated\n with the event\n * ``priority`` - the processing priority enumeration\n * ``reportingEntityName`` - name of the entity reporting the event or\n detecting a problem in another xNF\n * ``sequence`` - the ordering of events communicated by an event source\n * ``sourceName`` - name of the entity experiencing the event issue, which\n may be detected and reported by a separate reporting entity\n * ``startEpochMicrosec`` - the earliest unix time (aka epoch time)\n associated with the event\n * ``version`` - the version of the event header\n * ``vesEventListenerVersion`` - Version of the VES event listener API spec\n that this event is compliant with", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", - "id": "R-52870", - "impacts": "", - "introduced": "", + "id": "R-528866", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Monitoring & Dashboard", + "parts": {}, + "section_name": "Common Event Header", "sections": [ - "Monitoring & Dashboard", - "VNF Resiliency" + "Common Event Header", + "Event Records - Data Structure Description", + "Monitoring & Management" ], "status": null, "tags": [], @@ -32810,22 +59379,26 @@ "type_name": "Requirement", "updated": "", "validated_by": "", - "validation_mode": "" + "validation_mode": "in_service" }, "R-53015": { "description": "The xNF **MUST** apply locking based on the sequence of\nNETCONF operations, with the first configuration operation locking\nout all others until completed.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-53015", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -32844,14 +59417,18 @@ }, "R-53310": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``\nthat is configuring an IPv4 Address on a port attached to an external network\nResource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_{network-role}_vmi_{vmi_index}_IP_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the {vm-type}\n* ``{network-role}`` is the network-role of the network that the port is attached to\n* ``{vmi_index}`` is the instance of the the virtual machine interface\n (e.g., port) on the vm-type attached to the network of {network-role}\n* ``IP`` signifies that an IPv4 address is being configured\n* ``{index}`` is the index of the IPv4 address", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-53310", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::InstanceIp", "sections": [ "OS::ContrailV2::InstanceIp", @@ -32873,18 +59450,22 @@ }, "R-53317": { "description": "The xNF **MUST** conform its YANG model to RFC 6087,\n\"Guidelines for Authors and Reviewers of YANG Data Model Documents\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-53317", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -32903,14 +59484,18 @@ }, "R-53433": { "description": "A VNF's Cinder Volume Module **MUST** have a corresponding environment file", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-53433", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -32925,20 +59510,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-53598": { "description": "The xNF Package **MUST** include documentation to, when relevant,\nprovide a threshold crossing alert point for each KPI and describe the\nsignificance of the threshold crossing.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-53598", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -32959,14 +59548,18 @@ }, "R-53952": { "description": "A VNF's Heat Orchestration Template's Resource\n**MUST NOT** reference a HTTP-based resource definitions.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-53952", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "type", "sections": [ "type", @@ -32988,15 +59581,19 @@ "validation_mode": "static" }, "R-54171": { - "description": "When the VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``name`` parameter is defined as a ``string``,\nthe parameter name **MUST** follow the naming convention\n``{vm-type}_name_{index}``, where ``{index}`` is a numeric\nvalue that starts at\nzero and increments by one.", + "description": "When the VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``name`` parameter is defined as a ``string``,\nthe parameter name **MUST** follow the naming convention\n``{vm-type}_name_{index}``, where ``{index}`` is a numeric\nvalue that **MUST** start at\nzero in a VNF Orchestration Template and increments by one.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-54171", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: Name", "sections": [ "Property: Name", @@ -33017,18 +59614,22 @@ }, "R-54190": { "description": "The xNF **MUST** release locks to prevent permanent lock-outs\nwhen/if a session applying the lock is terminated (e.g., SSH session\nis terminated).", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-54190", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -33046,19 +59647,23 @@ "validation_mode": "" }, "R-54340": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vf_module_index`` **MUST**\nbe declared as type: ``number``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty\n``metadata`` key/value pair ``vf_module_index`` parameter **MUST**\nbe declared as ``vf_module_index`` and the parameter **MUST** be\ndefined as type: ``number``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-54340", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_index", "sections": [ "vf_module_index", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -33073,20 +59678,57 @@ "validated_by": "", "validation_mode": "static" }, + "R-54356": { + "description": "The below table includes the data types used by NFV node and is based\non TOSCA/YAML constructs specified in draft GS NFV-SOL 001. The node\ndata definitions/attributes used in VNFD **MUST** comply with the below\ntable.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-54356", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Data Types", + "sections": [ + "Data Types", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-54373": { "description": "The xNF **MUST** have Python >= 2.6 on the endpoint VM(s)\nof a xNF on which an Ansible playbook will be executed.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-54373", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Client Requirements", "sections": [ "Ansible Client Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -33105,14 +59747,18 @@ }, "R-54430": { "description": "The VNF **MUST** use the NCSP's supported library and compute\nflavor that supports DPDK to optimize network efficiency if using DPDK. [#4.1.1]_", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-54430", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -33132,14 +59778,18 @@ }, "R-54458": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::VirtualMachineInterface`` that is attaching to a sub-interface\nnetwork Resource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_subint_{network-role}_vmi_{vmi_index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port (i.e. virtual machine interface) is attached to\n* ``{vmi_index}`` is the instance of the the vmi on the vm-type\n attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-54458", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::VirtualMachineInterface", "sections": [ "OS::ContrailV2::VirtualMachineInterface", @@ -33161,14 +59811,18 @@ }, "R-54517": { "description": "When a VNF's Heat Orchestration Template's resource is associated with\na single ``{vm-type}``, the Resource ID **MUST** contain the\n``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-54517", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource IDs", "sections": [ "Resource IDs" @@ -33188,14 +59842,18 @@ }, "R-54520": { "description": "The VNF **MUST** log successful and unsuccessful authentication\nattempts, e.g., authentication associated with a transaction,\nauthentication to create a session, authentication to assume elevated\nprivilege.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-54520", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -33215,15 +59873,19 @@ "validation_mode": "" }, "R-54816": { - "description": "The VNF **MUST** support the storage of security audit logs\nfor agreed period of time for forensic analysis.", + "description": "The VNF **MUST** support the storage of security audit logs for a\nconfigurable period of time.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-54816", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -33238,20 +59900,57 @@ "title": "", "title_from_content": "", "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-54876": { + "description": "The below table describes the data types used for LCM configuration\nand is based on TOSCA constructs specified in draft GS NFV-SOL 001.\nThe LCM configuration data elements used in VNFD **MUST** comply\nwith the below table.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-54876", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Data Types", + "sections": [ + "Data Types", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", "updated": "", "validated_by": "", "validation_mode": "" }, "R-54930": { "description": "The VNF **MUST** implement the following input validation controls:\nDo not permit input that contains content or characters inappropriate\nto the input expected by the design. Inappropriate input, such as\nSQL expressions, may cause the system to execute undesirable and\nunauthorized transactions against the database or allow other\ninappropriate access to the internal network (injection attacks).", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-54930", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF API Security Requirements", "sections": [ "VNF API Security Requirements", @@ -33272,18 +59971,22 @@ }, "R-55218": { "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property\n``metadata`` key/value pair ``vnf_id`` parameter ``vnf_id`` **MUST NOT**\nhave parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-55218", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vnf_id", "sections": [ "vnf_id", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -33299,19 +60002,23 @@ "validation_mode": "static" }, "R-55306": { - "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vf_module_index`` **MUST NOT**\nbe used in a\nVNF's Volume Template; it is not supported.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vf_module_index`` **MUST NOT**\nbe used in a ``OS::Cinder::Volume`` resource and **MUST NOT** be\nused in VNF's Volume template;\nit is not supported.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-55306", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_index", "sections": [ "vf_module_index", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -33328,14 +60035,18 @@ }, "R-55345": { "description": "The VNF **SHOULD** use techniques such as \"lazy loading\" when\ninitialization includes loading catalogues and/or lists which can grow\nover time, so that the VNF startup time does not grow at a rate\nproportional to that of the list.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-55345", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "System Resource Optimization", "sections": [ "System Resource Optimization", @@ -33356,14 +60067,18 @@ }, "R-55478": { "description": "The VNF **MUST** log logoffs.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-55478", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -33384,14 +60099,18 @@ }, "R-55802": { "description": "The VNF Package **MUST** include VM requirements via a Heat\ntemplate that provides the necessary data for scaling/growth VM\nspecifications.\n\nNote: Must comply with the *Heat requirements in 5.b*.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-55802", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Compute, Network, and Storage Requirements", "sections": [ "Compute, Network, and Storage Requirements", @@ -33411,19 +60130,23 @@ "validation_mode": "" }, "R-56183": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``environment_context`` **MUST NOT**\nhave parameter constraints defined.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata``key/value pair ``environment_context``\nparameter ``environment_context`` **MUST NOT**\nhave parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-56183", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "environment_context", "sections": [ "environment_context", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -33440,19 +60163,22 @@ }, "R-56218": { "description": "The VNF **MUST** support ONAP Controller's Migrate command that\nmoves container (VM) from a live Physical Server / Compute Node to\nanother live Physical Server / Compute Node.\n\n Note: Container migrations MUST be transparent to the VNF and no more intrusive than a stop,\n followed by some down time for the migration to be performed from one Compute Node / Physical\n Server to another, followed by a start of the same VM with same configuration on the new\n Compute Node / Physical Server.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-56218", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Virtual Function - Container Recovery Requirements", "sections": [ "Virtual Function - Container Recovery Requirements", - "Controller Interactions With VNF", - "Configuration Management" + "VNF Resiliency" ], "status": null, "tags": [], @@ -33469,14 +60195,18 @@ }, "R-56287": { "description": "If the VNF's OAM Management IP Address is assigned by ONAP SDN-C and\nassigned in the VNF's Heat Orchestration Template's via a heat resource\n``OS::Neutron::Port`` property ``fixed_ips`` map property\n``ip_adress`` parameter (e.g., ``{vm-type}_{network-role}_ip_{index}``,\n``{vm-type}_{network-role}_v6_ip_{index}``)\nand the OAM IP Address is required to be inventoried in ONAP A&AI,\nthen the parameter **MUST** be echoed in an output statement.\n\n.. code-block:: yaml\n\n outputs:\n oam_management_v4_address:\n value: {get_param: {vm-type}_{network-role}_ip_{index} }\n oam_management_v6_address:\n value: {get_param: {vm-type}_{network-role}_v6_ip_{index} }", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", "full_title": "", "hide_links": "", "id": "R-56287", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OAM Management IP Addresses", "sections": [ "OAM Management IP Addresses", @@ -33497,19 +60227,23 @@ "validation_mode": "static" }, "R-56385": { - "description": "The xNF **MUST** support ONAP Controller's **Audit** command.", + "description": "The xNF **MUST** support APPC ``Audit`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-56385", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Commands", "sections": [ "Configuration Commands", - "Controller Interactions With VNF", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -33521,20 +60255,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-56438": { "description": "A VNF's Heat Orchestration Template's Nested YAML file extension **MUST**\nbe in the lower case format ``.yaml`` or ``.yml``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-56438", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP Heat Orchestration Template Filenames", "sections": [ "ONAP Heat Orchestration Template Filenames", @@ -33553,16 +60291,52 @@ "validated_by": "", "validation_mode": "static" }, + "R-56718": { + "description": "The PNF Vendor **MAY** provide software version(s) to be supported by PNF\nfor SDC Design Studio PNF Model. This is set in the PNF Model property\nsoftware_versions.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-56718", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-56721": { "description": "A VNF's Incremental Module **MAY** utilize nested heat.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-56721", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Nested Heat Orchestration Templates Overview", "sections": [ "Nested Heat Orchestration Templates Overview", @@ -33583,14 +60357,18 @@ }, "R-56793": { "description": "The VNF **MUST** test for adherence to the defined performance\nbudgets at each layer, during each delivery cycle with delivered\nresults, so that the performance budget is measured and the code\nis adjusted to meet performance budget.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-56793", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Deployment Optimization", "sections": [ "Deployment Optimization", @@ -33611,14 +60389,18 @@ }, "R-56815": { "description": "The xNF Package **MUST** include documentation describing\nsupported xNF scaling capabilities and capacity limits (e.g., number\nof users, bandwidth, throughput, concurrent calls).", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-56815", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -33639,14 +60421,18 @@ }, "R-56904": { "description": "The VNF **MUST** interoperate with the ONAP (SDN) Controller so that\nit can dynamically modify the firewall rules, ACL rules, QoS rules, virtual\nrouting and forwarding rules.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-56904", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -33667,14 +60453,18 @@ }, "R-56920": { "description": "The VNF **MUST** protect all security audit logs (including\nAPI, OS and application-generated logs), security audit software, data,\nand associated documentation from modification, or unauthorized viewing,\nby standard OS access control mechanisms, by sending to a remote system,\nor by encryption.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-56920", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -33693,24 +60483,28 @@ "validated_by": "", "validation_mode": "" }, - "R-57271": { - "description": "The VNF **MUST** provide the capability of generating security\naudit logs by interacting with the operating system (OS) as appropriate.", + "R-570134": { + "description": "The events produced by the xNF **MUST** must be compliant with the common\nevent format defined in the\n:doc:`VES Event Listener<../../../../vnfsdk/model.git/docs/files/VESEventListener_7_0_1>`\nspecification.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", - "id": "R-57271", - "impacts": "", - "introduced": "", + "id": "R-570134", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF Security Analytics Requirements", + "parts": {}, + "section_name": "Data Structure Specification of the Event Record", "sections": [ - "VNF Security Analytics Requirements", - "VNF Security" + "Data Structure Specification of the Event Record", + "Monitoring & Management" ], "status": null, "tags": [], - "target": "VNF", + "target": "XNF", "test": "", "test_case": "", "test_file": "", @@ -33719,18 +60513,22 @@ "type_name": "Requirement", "updated": "", "validated_by": "", - "validation_mode": "" + "validation_mode": "in_service" }, "R-57282": { "description": "Each VNF's Heat Orchestration Template's ``{vm-type}`` **MUST**\nhave a unique parameter name for the ``OS::Nova::Server`` property\n``image`` even if more than one ``{vm-type}`` shares the same image.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-57282", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: image", "sections": [ "Property: image", @@ -33751,14 +60549,18 @@ }, "R-57424": { "description": "A VNF's port connected to an external network **MUST**\nuse the port for the purpose of reaching\nVMs in another VNF and/or an external gateway and/or external router.\nA VNF's port connected to an external network **MAY**\nuse the port for the purpose of reaching VMs in the same VNF.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", "id": "R-57424", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "External Networks", "sections": [ "External Networks", @@ -33779,14 +60581,18 @@ }, "R-57617": { "description": "The VNF **MUST** include the field \"success/failure\" in the\nSecurity alarms (where applicable and technically feasible).", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-57617", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -33807,14 +60613,18 @@ }, "R-57855": { "description": "The VNF **MUST** support hitless staggered/rolling deployments\nbetween its redundant instances to allow \"soak-time/burn in/slow roll\"\nwhich can enable the support of low traffic loads to validate the\ndeployment prior to supporting full traffic loads.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-57855", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Deployment Optimization", "sections": [ "Deployment Optimization", @@ -33833,20 +60643,88 @@ "validated_by": "", "validation_mode": "" }, + "R-579051": { + "description": "The PNF **MAY** support a HTTP connection to the DCAE VES Event Listener.\n\nNote: HTTP is allowed but not recommended.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-579051", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-581188": { + "description": "A failed authentication attempt **MUST NOT** identify the reason for the\nfailure to the user, only that the authentication failed.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-581188", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-58301": { - "description": "The xNF **SHOULD NOT** use playbooks that make requests to\nCloud resources e.g. Openstack (nova, neutron, glance, heat, etc.);\ntherefore, there is no use for Cloud specific variables like Openstack\nUUIDs in Ansible Playbooks.\n\nRationale: Flows that require interactions with Cloud services e.g.\nOpenstack shall rely on workflows run by an Orchestrator\n(Change Management) or other capability (such as a control loop or\nOperations GUI) outside Ansible Server which can be executed by a\nController such as APPC. There are policies, as part of Control Loop\nmodels, that send remediation action requests to APPC; these are\ntriggered as a response to an event or correlated events published\nto Event Bus.", + "description": "The xNF **SHOULD NOT** use playbooks that make requests to\nCloud resources e.g. Openstack (nova, neutron, glance, heat, etc.);\ntherefore, there is no use for Cloud specific variables like Openstack\nUUIDs in Ansible Playbook related artifacts.\n\n**Rationale**: Flows that require interactions with Cloud services e.g.\nOpenstack shall rely on workflows run by an Orchestrator\n(Change Management) or other capability (such as a control loop or\nOperations GUI) outside Ansible Server which can be executed by a\nAPPC/SDN-C. There are policies, as part of Control Loop\nmodels, that send remediation action requests to an APPC/SDN-C; these\nare triggered as a response to an event or correlated events published\nto Event Bus.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-58301", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Playbook Requirements", "sections": [ "Ansible Playbook Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -33859,24 +60737,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-58358": { - "description": "The xNF **MUST** implement the **:with-defaults** capability\n[RFC6243].", + "description": "The xNF **MUST** implement the ``:with-defaults`` capability\n[RFC6243].", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-58358", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -33894,15 +60776,19 @@ "validation_mode": "" }, "R-58370": { - "description": "The VNF **MUST** operate with anti-virus software which produces\nalarms every time a virus is detected.", + "description": "The VNF **SHOULD** operate with anti-virus software which produces alarms\nevery time a virus is detected.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-58370", "impacts": "", "introduced": "", - "keyword": "MUST", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -33923,14 +60809,18 @@ }, "R-58421": { "description": "The VNF **SHOULD** be decomposed into granular re-usable VNFCs.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-58421", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -33950,14 +60840,18 @@ }, "R-58424": { "description": "A VNF's Heat Orchestration Template's use of ``{network-role}``\nin all Resource property parameter names **MUST** be the same case.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", "full_title": "", "hide_links": "", "id": "R-58424", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "{network-role}", "sections": [ "{network-role}" @@ -33977,14 +60871,18 @@ }, "R-58670": { "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``image`` parameter name **MUST** follow the naming convention\n``{vm-type}_image_name``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-58670", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: image", "sections": [ "Property: image", @@ -34005,14 +60903,18 @@ }, "R-58775": { "description": "The xNF provider **MUST** provide software components that\ncan be packaged with/near the xNF, if needed, to simulate any functions\nor systems that connect to the xNF system under test. This component is\nnecessary only if the existing testing environment does not have the\nnecessary simulators.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-58775", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Testing", "sections": [ "Testing", @@ -34033,14 +60935,18 @@ }, "R-58964": { "description": "The VNF **MUST** provide the capability to restrict read\nand write access to data handled by the VNF.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-58964", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Data Protection Requirements", "sections": [ "VNF Data Protection Requirements", @@ -34060,15 +60966,19 @@ "validation_mode": "" }, "R-59391": { - "description": "The VNF MUST NOT not allow the assumption of the permissions of\nanother account to mask individual accountability.", + "description": "The VNF **MUST NOT** allow the assumption of the permissions of another\naccount to mask individual accountability. For example, use SUDO when a\nuser requires elevated permissions such as root or admin.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-59391", "impacts": "", "introduced": "", - "keyword": "MUST", + "is_need": true, + "is_part": false, + "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -34089,14 +60999,18 @@ }, "R-59434": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Subnet``\nResource ID **SHOULD** use the naming convention\n\n* ``int_{network-role}_subnet_{index}``\n\nwhere\n\n* ``{network-role}`` is the network-role\n* ``{index}`` is the ``{index}`` of the subnet of the network", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-59434", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Neutron::Subnet", "sections": [ "OS::Neutron::Subnet", @@ -34118,14 +61032,18 @@ }, "R-59482": { "description": "A VNF's Heat Orchestration Template **MUST NOT** be VNF instance\nspecific or cloud site specific.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-59482", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Scope of a Heat Orchestration Template", "sections": [ "Scope of a Heat Orchestration Template", @@ -34146,14 +61064,18 @@ }, "R-59568": { "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``availability_zone`` parameter **MUST NOT** be enumerated in the Heat\nOrchestration\nTemplate's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-59568", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Property: availability_zone", "sections": [ "Property: availability_zone", @@ -34174,18 +61096,22 @@ }, "R-59610": { "description": "The xNF **MUST** implement the data model discovery and\ndownload as defined in [RFC6022].", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-59610", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -34204,14 +61130,18 @@ }, "R-59930": { "description": "A VNF's Heat Orchestration template's Environment File's\n**MAY** contain the ``parameter_defaults:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-59930", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Environment File Format", "sections": [ "Environment File Format", @@ -34230,16 +61160,51 @@ "validated_by": "", "validation_mode": "" }, + "R-599443": { + "description": "A parameter enumerated in a\nVNF's Heat Orchestration Template's environment file **MUST** be declared\nin the\ncorresponding VNF's Heat Orchestration Template's YAML file's\n``parameters:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Support of Environment Files", + "full_title": "", + "hide_links": "", + "id": "R-599443", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "ONAP Heat Support of Environment Files", + "sections": [ + "ONAP Heat Support of Environment Files" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "static" + }, "R-60011": { - "description": "A VNF's Heat Orchestration Template **MUST** have no more than\ntwo levels of nesting.", + "description": "A VNF's Heat Orchestration Template **MUST** have no more than two\nlevels of nesting.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", "full_title": "", "hide_links": "", "id": "R-60011", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Nested Heat Template Requirements", "sections": [ "Nested Heat Template Requirements", @@ -34248,7 +61213,7 @@ ], "status": null, "tags": [], - "target": "VNF", + "target": "", "test": "", "test_case": "", "test_file": "", @@ -34257,22 +61222,26 @@ "type_name": "Requirement", "updated": "casablanca", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" }, "R-60106": { - "description": "The xNF **MUST** implement the protocol operation:\n**get(filter)** - Retrieve (a filtered subset of) the running\nconfiguration and device state information. This should include\nthe list of xNF supported schemas.", + "description": "The xNF **MUST** implement the protocol operation:\n``get(filter)`` - Retrieve (a filtered subset of) the running\nconfiguration and device state information. This should include\nthe list of xNF supported schemas.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-60106", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -34291,18 +61260,22 @@ }, "R-60656": { "description": "The xNF **MUST** support sub tree filtering.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-60656", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -34320,15 +61293,19 @@ "validation_mode": "" }, "R-61001": { - "description": "A shared Heat Orchestration Template resource must be defined\nin the base module. A shared resource is a resource that that will\nbe referenced by another resource that is defined in the Base Module\nand/or one or more incremental modules. When the shared resource needs\nto be referenced by a resource in an incremental module, the UUID of\nthe shared resource **MUST** be exposed by declaring an ONAP Base\nModule Output Parameter.", + "description": "A shared Heat Orchestration Template resource is a resource that **MUST**\nbe defined in the base module and will be referenced by one or\nmore resources in one or more incremental modules.\n\nThe UUID of the shared resource (created in the base module) **MUST** be\nexposed by declaring a parameter in the\n``outputs`` section of the base module.\n\nFor ONAP to provided the UUID value of the shared resource to the\nincremental module, the parameter name defined in the ``outputs``\nsection of the base module **MUST** be defined as a parameter\nin the ``parameters`` section of the incremental module.\n\nONAP will capture the output parameter name and value in the base module\nand provide the value to the corresponding parameter(s) in the\nincremental module(s).", + "docname": "Chapter5/Heat/ONAP Heat VNF Modularity", "full_title": "", "hide_links": "", "id": "R-61001", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP Heat VNF Modularity", "sections": [ "ONAP Heat VNF Modularity" @@ -34348,14 +61325,18 @@ }, "R-61354": { "description": "The VNF **MUST** provide a mechanism (e.g., access control list) to\npermit and/or restrict access to services on the VNF by source,\ndestination, protocol, and/or port.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-61354", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -34374,48 +61355,24 @@ "validated_by": "", "validation_mode": "" }, - "R-61648": { - "description": "The VNF **MUST** support event logging, formats, and delivery\ntools to provide the required degree of event data to ONAP.", - "full_title": "", - "hide_links": "", - "id": "R-61648", - "impacts": "", - "introduced": "", - "keyword": "MUST", - "links": [], - "notes": "", - "section_name": "VNF Security Analytics Requirements", - "sections": [ - "VNF Security Analytics Requirements", - "VNF Security" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "", - "validated_by": "", - "validation_mode": "" - }, "R-62170": { "description": "The xNF **MUST** over-ride any default values for\nconfigurable parameters that can be set by ONAP in the roles,\ncookbooks and recipes.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-62170", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Roles/Requirements", "sections": [ "Chef Roles/Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -34432,44 +61389,20 @@ "validated_by": "", "validation_mode": "" }, - "R-62177": { - "description": "When using the intrinsic function get_file, the included files\n**MUST** have unique file names within the scope of the VNF.", - "full_title": "", - "hide_links": "", - "id": "R-62177", - "impacts": "", - "introduced": "", - "keyword": "MUST", - "links": [], - "notes": "", - "section_name": "Heat Files Support (get_file)", - "sections": [ - "Heat Files Support (get_file)", - "ONAP Heat Heat Template Constructs" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "casablanca", - "validated_by": "", - "validation_mode": "static" - }, "R-62187": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``\nthat is configuring an IPv4 Address on a port attached to an internal network\nResource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_int_{network-role}_vmi_{vmi_index}_IP_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{vmi_index}`` is the instance of the the virtual machine interface\n (e.g., port) on the vm-type\n attached to the network of ``{network-role}``\n* ``IP`` signifies that an IPv4 address is being configured\n* ``{index}`` is the index of the IPv4 address", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-62187", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::InstanceIp", "sections": [ "OS::ContrailV2::InstanceIp", @@ -34489,48 +61422,24 @@ "validated_by": "", "validation_mode": "static" }, - "R-62300": { - "description": "If a VNF has two or more ports that require a Virtual IP Address (VIP),\na VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``allowed_address_pairs``\nmap property ``ip_address`` parameter\n**MUST** be used.", - "full_title": "", - "hide_links": "", - "id": "R-62300", - "impacts": "", - "introduced": "", - "keyword": "MUST", - "links": [], - "notes": "", - "section_name": "Property: allowed_address_pairs, Map Property: ip_address", - "sections": [ - "Property: allowed_address_pairs, Map Property: ip_address", - "Resource: OS::Neutron::Port - Parameters" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "casablanca", - "validated_by": "", - "validation_mode": "static" - }, "R-62428": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vnf_name`` **MUST**\nbe declared as type: ``string``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vnf_name`` parameter **MUST**\nbe declared as ``vnf_name`` and the parameter **MUST** be defined as\ntype: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-62428", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "vnf_name", "sections": [ "vnf_name", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -34547,18 +61456,22 @@ }, "R-62468": { "description": "The xNF **MUST** allow all configuration data to be\nedited through a NETCONF operation. Proprietary\nNETCONF RPCs that make configuration changes are not sufficient.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-62468", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -34577,14 +61490,18 @@ }, "R-62498": { "description": "The VNF **MUST** support encrypted access protocols, e.g., TLS,\nSSH, SFTP.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-62498", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -34604,15 +61521,19 @@ "validation_mode": "" }, "R-62590": { - "description": "The VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nproperty ``fixed_ips``\nmap property ``ip_address``\nparameter associated with an external network, i.e.,\n\n * ``{vm-type}_{network-role}_ip_{index}``\n * ``{vm-type}_{network-role}_ip_v6_{index}``\n * ``{vm-type}_{network-role}_ips``\n * ``{vm-type}_{network-role}_v6_ips``\n\n\n**MUST NOT** be enumerated in the Heat Orchestration\nTemplate's Environment File. ONAP provides the IP address\nassignments at orchestration time.", + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nproperty ``fixed_ips``\nmap property ``ip_address``\nparameter associated with an external network, i.e.,\n\n * ``{vm-type}_{network-role}_ip_{index}``\n * ``{vm-type}_{network-role}_v6_ip_{index}``\n * ``{vm-type}_{network-role}_ips``\n * ``{vm-type}_{network-role}_v6_ips``\n\n\n**MUST NOT** be enumerated in the Heat Orchestration\nTemplate's Environment File. ONAP provides the IP address\nassignments at orchestration time.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-62590", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -34632,18 +61553,22 @@ "validation_mode": "static" }, "R-62802": { - "description": "When the VNF's Heat Orchestration Template's\nresource ``OS::Neutron::Port`` is attaching\nto an external network (per the ONAP definition, see\nRequirement R-57424),\nand an IPv4 address is being cloud assigned by OpenStack's DHCP Service\nand the external network IPv4 subnet is to be specified\nusing the property ``fixed_ips``\nmap property ``subnet``/``subnet_id``, the parameter\n**MUST** follow the naming convention\n\n * ``{network-role}_subnet_id``\n\nwhere\n\n * ``{network-role}`` is the network role of the network.", + "description": "When the VNF's Heat Orchestration Template's\nresource ``OS::Neutron::Port`` is attaching\nto an external network (per the ONAP definition, see\nRequirement R-57424),\nand an IPv4 address is being cloud assigned by OpenStack's DHCP Service\nand the external network IPv4 subnet is to be specified\nusing the property ``fixed_ips``\nmap property ``subnet``, the parameter\n**MUST** follow the naming convention\n\n * ``{network-role}_subnet_id``\n\nwhere\n\n * ``{network-role}`` is the network role of the network.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-62802", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Property: fixed_ips, Map Property: subnet_id", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", "sections": [ - "Property: fixed_ips, Map Property: subnet_id", + "Property: fixed_ips, Map Property: subnet", "Resource: OS::Neutron::Port - Parameters" ], "status": null, @@ -34659,20 +61584,24 @@ "validated_by": "", "validation_mode": "static" }, - "R-62954": { - "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server Resource``\n``metadata`` map value parameter ``environment_context`` is passed into a\nNested YAML\nfile, the parameter name ``environment_context`` **MUST NOT** change.", + "R-629534": { + "description": "The VNF **MUST** be capable of automatically synchronizing the system clock\ndaily with the Operator's trusted time source, to assure accurate time\nreporting in log files. It is recommended that Coordinated Universal Time\n(UTC) be used where possible, so as to eliminate ambiguity owing to daylight\nsavings time.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", - "id": "R-62954", + "id": "R-629534", "impacts": "", - "introduced": "", - "keyword": "MUST NOT", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", "links": [], "notes": "", - "section_name": "environment_context", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", "sections": [ - "environment_context", - "Resource: OS::Nova::Server - Metadata Parameters" + "VNF Security Analytics Requirements", + "VNF Security" ], "status": null, "tags": [], @@ -34683,20 +61612,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" }, "R-62983": { "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424), the\n``network`` parameter name **MUST**\n\n * follow the naming convention ``{network-role}_net_id`` if the Neutron\n network UUID value is used to reference the network\n * follow the naming convention ``{network-role}_net_name`` if the\n OpenStack network name is used to reference the network.\n\nwhere ``{network-role}`` is the network-role of the external network\nand a ``get_param`` **MUST** be used as the intrinsic function.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-62983", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: network", "sections": [ "Property: network", @@ -34717,14 +61650,18 @@ }, "R-63137": { "description": "VNF's Heat Orchestration Template's Resource **MAY** declare the\nattribute ``update_policy:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-63137", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "update_policy", "sections": [ "update_policy", @@ -34747,14 +61684,18 @@ }, "R-63229": { "description": "The xNF **MAY** use another option which is expected to include REST\nfor synchronous data, using RESTCONF (e.g., for xNF state polling).", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-63229", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Addressing and Delivery Protocol", "sections": [ "Addressing and Delivery Protocol", @@ -34776,14 +61717,18 @@ }, "R-63330": { "description": "The VNF **MUST** detect when its security audit log storage\nmedium is approaching capacity (configurable) and issue an alarm.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-63330", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -34804,14 +61749,18 @@ }, "R-63473": { "description": "The VNF **MUST** automatically advertise newly scaled\ncomponents so there is no manual intervention required.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-63473", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "System Resource Optimization", "sections": [ "System Resource Optimization", @@ -34830,20 +61779,88 @@ "validated_by": "", "validation_mode": "" }, + "R-638216": { + "description": "(Error Case) - The PNF **MUST** support a configurable timer to stop the\nperiodicity sending of the pnfRegistration VES event. If this timer expires\nduring a Service Configuration exchange between the PNF and ONAP, it\nMAY log a time-out error and notify an operator.\n\nNote: It is expected that each vendor will enforce and define a PNF\nservice configuration timeout period. This is because the PNF cannot\nwait indefinitely as there may also be a technician on-site trying to\ncomplete installation & commissioning. The management of the VES event\nexchange is also a requirement on the PNF to be developed by the PNF\nvendor.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-638216", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, + "R-638682": { + "description": "The VNF **MUST** log any security event required by the VNF Requirements to\nSyslog using LOG_AUTHPRIV for any event that would contain sensitive\ninformation and LOG_AUTH for all other relevant events.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-638682", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, "R-63935": { "description": "The xNF **MUST** release locks to prevent permanent lock-outs\nwhen a user configured timer has expired forcing the NETCONF SSH Session\ntermination (i.e., product must expose a configuration knob for a user\nsetting of a lock expiration timer).", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-63935", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -34862,18 +61879,22 @@ }, "R-63953": { "description": "The xNF **MUST** have the echo command return a zero value\notherwise the validation has failed.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-63953", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -34892,14 +61913,18 @@ }, "R-63956": { "description": "If the VNF's ports connected to a unique external network\nand the port's IP addresses are ONAP SDN-C assigned IP Addresses,\nthe IPv4 Addresses **MAY** be from different subnets and the IPv6\nAddresses **MAY** be from different subnets.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-63956", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Items to Note", "sections": [ "Items to Note", @@ -34921,14 +61946,18 @@ }, "R-64197": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Heat::ResourceGroup``\nResource ID that creates sub-interfaces **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_subint_{network-role}_port_{port-index}_subinterfaces``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the networks\n that the sub-interfaces attach to\n* ``{port-index}`` is the instance of the the port on the vm-type\n attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-64197", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Heat::ResourceGroup", "sections": [ "OS::Heat::ResourceGroup", @@ -34950,14 +61979,18 @@ }, "R-64445": { "description": "The VNF **MUST** support the ability of a requestor of the\nservice to determine the version (and therefore capabilities) of the\nservice so that Network Cloud Service Provider can understand the\ncapabilities of the service.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-64445", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Deployment Optimization", "sections": [ "Deployment Optimization", @@ -34976,20 +62009,23 @@ "validated_by": "", "validation_mode": "" }, - "R-64503": { - "description": "The VNF **MUST** provide minimum privileges for initial\nand default settings for new user accounts.", + "R-64713": { + "description": "The VNF **SHOULD** support a software promotion methodology\nfrom dev/test -> pre-prod -> production in software, development &\ntesting and operations.", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", - "id": "R-64503", + "id": "R-64713", "impacts": "", "introduced": "", - "keyword": "MUST", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", "links": [], "notes": "", - "section_name": "VNF Identity and Access Management Requirements", + "parts": {}, + "section_name": "VNF Devops", "sections": [ - "VNF Identity and Access Management Requirements", - "VNF Security" + "VNF Devops" ], "status": null, "tags": [], @@ -35004,19 +62040,23 @@ "validated_by": "", "validation_mode": "" }, - "R-64713": { - "description": "The VNF **SHOULD** support a software promotion methodology\nfrom dev/test -> pre-prod -> production in software, development &\ntesting and operations.", + "R-64768": { + "description": "The VNF **MUST** limit the size of application data packets\nto no larger than 9000 bytes for SDN network-based tunneling when\nguest data packets are transported between tunnel endpoints that\nsupport guest logical networks.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", - "id": "R-64713", + "id": "R-64768", "impacts": "", "introduced": "", - "keyword": "SHOULD", + "is_need": true, + "is_part": false, + "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF Devops", + "parts": {}, + "section_name": "VNF Design", "sections": [ - "VNF Devops" + "VNF Design" ], "status": null, "tags": [], @@ -35031,16 +62071,20 @@ "validated_by": "", "validation_mode": "" }, - "R-64768": { - "description": "The VNF **MUST** limit the size of application data packets\nto no larger than 9000 bytes for SDN network-based tunneling when\nguest data packets are transported between tunnel endpoints that\nsupport guest logical networks.", + "R-65134": { + "description": "The VNF **SHOULD** maintain state in a geographically\nredundant datastore that may, in fact, be its own VNFC.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", - "id": "R-64768", + "id": "R-65134", "impacts": "", "introduced": "", - "keyword": "MUST", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -35058,19 +62102,25 @@ "validated_by": "", "validation_mode": "" }, - "R-65134": { - "description": "The VNF **SHOULD** maintain state in a geographically\nredundant datastore that may, in fact, be its own VNFC.", + "R-65486": { + "description": "The VNFD **MUST** comply with ETSI GS NFV-SOL001 document endorsing\nthe above mentioned NFV Profile and maintaining the gaps with the\nrequirements specified in ETSI GS NFV-IFA011 standard.", + "docname": "Chapter5/Tosca", "full_title": "", "hide_links": "", - "id": "R-65134", + "id": "R-65486", "impacts": "", - "introduced": "", - "keyword": "SHOULD", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF Design", + "parts": {}, + "section_name": "General", "sections": [ - "VNF Design" + "General", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" ], "status": null, "tags": [], @@ -35087,14 +62137,18 @@ }, "R-65515": { "description": "The VNF **MUST** provide a mechanism and tool to start VNF\ncontainers (VMs) without impacting service or service quality assuming\nanother VNF in same or other geographical location is processing service\nrequests.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-65515", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Resilient Error Handling", "sections": [ "Application Resilient Error Handling", @@ -35115,14 +62169,18 @@ }, "R-65516": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Nova::Keypair`` applies to\nall Virtual Machines in the the VNF, the Resource ID **SHOULD** use the naming\nconvention\n\n* ``{vnf-type}_keypair``\n\nwhere\n\n* ``{vnf-type}`` describes the VNF", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-65516", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Nova::Keypair", "sections": [ "OS::Nova::Keypair", @@ -35144,14 +62202,18 @@ }, "R-65618": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::ServiceHealthCheck`` Resource ID **MAY** use the naming convention\n\n* ``{vm-type}_RSHC_{LEFT|RIGHT}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``RSHC`` signifies that it is the Resource Service Health Check\n* ``LEFT`` is used if the Service Health Check is on the left interface\n* ``RIGHT`` is used if the Service Health Check is on the right interface", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-65618", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::ServiceHealthCheck", "sections": [ "OS::ContrailV2::ServiceHealthCheck", @@ -35172,19 +62234,23 @@ "validation_mode": "" }, "R-65641": { - "description": "The xNF **MUST** support ONAP Controller's **UpgradeBackOut** command.", + "description": "The xNF **MUST** support APPC/SDN-C ``UpgradeBackOut`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-65641", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "LifeCycle Management Related Commands", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", "sections": [ - "LifeCycle Management Related Commands", - "Controller Interactions With VNF", + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -35196,24 +62262,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-65755": { "description": "The xNF **SHOULD** support callback URLs to return information\nto ONAP upon completion of the chef-client run for any chef-client run\nassociated with a xNF action.\n\n- As part of the push job, ONAP will provide two parameters in the\n environment of the push job JSON object:\n\n - \"RequestId\" a unique Id to be used to identify the request,\n - \"CallbackUrl\", the URL to post response back.\n\n- If the CallbackUrl field is empty or missing in the push job, then\n the chef-client run need not post the results back via callback.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-65755", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Roles/Requirements", "sections": [ "Chef Roles/Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -35230,16 +62300,53 @@ "validated_by": "", "validation_mode": "" }, + "R-659655": { + "description": "The xNF **SHOULD** leverage the JSON-driven model, as depicted in Figure 2,\nfor data delivery unless there are specific performance or operational\nconcerns agreed upon by the Service Provider that would warrant using an\nalternate model.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-659655", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "xNF Telemetry using VES/JSON Model", + "sections": [ + "xNF Telemetry using VES/JSON Model", + "Transports and Protocols Supporting Resource Interfaces", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, "R-66070": { "description": "The xNF Package **MUST** include xNF Identification Data to\nuniquely identify the resource for a given xNF provider. The identification\ndata must include: an identifier for the xNF, the name of the xNF as was\ngiven by the xNF provider, xNF description, xNF provider, and version.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-66070", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Description", "sections": [ "Resource Description", @@ -35258,19 +62365,24 @@ "validated_by": "", "validation_mode": "" }, - "R-66729": { - "description": "A VNF's Heat Orchestration Template's Resource that is associated with a\nunique Virtual Machine type **MUST** include ``{vm-type}`` as part of the\nresource ID.", + "R-663631": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``name`` value **MUST** be be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", - "id": "R-66729", + "id": "R-663631", "impacts": "", - "introduced": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "{vm-type}", + "parts": {}, + "section_name": "Property: Name", "sections": [ - "{vm-type}" + "Property: Name", + "Resource: OS::Nova::Server - Parameters" ], "status": null, "tags": [], @@ -35281,24 +62393,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", "validation_mode": "static" }, "R-66793": { "description": "The xNF **MUST** guarantee the xNF configuration integrity\nfor all simultaneous configuration operations (e.g., if a change is\nattempted to the BUM filter rate from multiple interfaces on the same\nEVC, then they need to be sequenced in the xNF without locking either\nconfiguration method out).", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-66793", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -35317,18 +62433,22 @@ }, "R-67114": { "description": "The xNF **MUST** be installed with Chef-Client >= 12.0 and Chef\npush jobs client >= 2.0.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-67114", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Client Requirements", "sections": [ "Chef Client Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -35345,16 +62465,54 @@ "validated_by": "", "validation_mode": "" }, + "R-67124": { + "description": "The xNF **MUST** provide Ansible playbooks that are designed to run using\nan inventory hosts file in a supported format; with group names matching\nVNFC 3-character string adding \"vip\" for groups with virtual IP addresses\nshared by multiple VMs as seen in examples provided in Appendix.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-67124", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-67231": { "description": "A VNF's Heat Orchestration template's Environment File's\n**MUST NOT** contain the ``resource_registry:`` section.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-67231", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Environment File Format", "sections": [ "Environment File Format", @@ -35375,14 +62533,18 @@ }, "R-67386": { "description": "A VNF's Heat Orchestration Template's Resource **MAY** declare the\nattribute ``metadata``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-67386", "impacts": "", - "introduced": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "metadata", "sections": [ "metadata", @@ -35404,19 +62566,23 @@ "validation_mode": "static" }, "R-67597": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vm_role`` **MUST NOT**\nhave parameter constraints defined.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vm_role`` parameter ``vm_role``\n**MUST NOT** have parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-67597", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vm_role", "sections": [ "vm_role", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -35433,14 +62599,18 @@ }, "R-67709": { "description": "The VNF **MUST** be designed, built and packaged to enable\ndeployment across multiple fault zones (e.g., VNFCs deployed in\ndifferent servers, racks, OpenStack regions, geographies) so that\nin the event of a planned/unplanned downtime of a fault zone, the\noverall operation/throughput of the VNF is maintained.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-67709", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "All Layer Redundancy", "sections": [ "All Layer Redundancy", @@ -35461,14 +62631,18 @@ }, "R-67793": { "description": "When a VNF's Heat Orchestration Template's resource is associated\nwith more than one ``{vm-type}`` and/or more than one internal and/or\nexternal network, the Resource ID **MUST** not contain the ``{vm-type}``\nand/or ``{network-role}``/``int_{network-role}``. It also should contain the\nterm ``shared`` and/or contain text that identifies the VNF.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-67793", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Resource IDs", "sections": [ "Resource IDs" @@ -35486,16 +62660,53 @@ "validated_by": "", "validation_mode": "static" }, + "R-67895": { + "description": "The VNFD provided by VNF vendor may use the below described TOSCA\ncapabilities. An on-boarding entity (ONAP SDC) **MUST** support them.\n\n **tosca.capabilities.nfv.VirtualBindable**\n\n A node type that includes the VirtualBindable capability indicates\n that it can be pointed by **tosca.relationships.nfv.VirtualBindsTo**\n relationship type.\n\n **tosca.capabilities.nfv.VirtualLinkable**\n\n A node type that includes the VirtualLinkable capability indicates\n that it can be pointed by **tosca.relationships.nfv.VirtualLinksTo**\n relationship.\n\n **tosca.capabilities.nfv.ExtVirtualLinkable**\n\n A node type that includes the ExtVirtualLinkable capability\n indicates that it can be pointed by\n **tosca.relationships.nfv.VirtualLinksTo** relationship.\n\n **Note**: This capability type is used in Casablanca how it does\n not exist in the last SOL001 draft\n\n **tosca.capabilities.nfv.VirtualCompute** and\n **tosca.capabilities.nfv.VirtualStorage** includes flavours of VDU", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-67895", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Capability Types", + "sections": [ + "Capability Types", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-67918": { "description": "The VNF **MUST** handle replication race conditions both locally\nand geo-located in the event of a data base instance failure to maintain\nservice continuity.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-67918", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Resilient Error Handling", "sections": [ "Application Resilient Error Handling", @@ -35515,19 +62726,23 @@ "validation_mode": "" }, "R-68023": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n**SHOULD**\ncontain the ``metadata`` map value parameter ``vf_module_name``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` **SHOULD**\ncontain the key/value pair ``vf_module_name`` and the value **MUST**\nbe obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-68023", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_name", "sections": [ "vf_module_name", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -35544,14 +62759,18 @@ }, "R-68122": { "description": "A VNF's incremental module **MAY** be deployed more than once,\neither during initial VNF deployment and/or scale out.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-68122", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -35572,14 +62791,18 @@ }, "R-68165": { "description": "The xNF **MUST** encrypt any content containing Sensitive Personal\nInformation (SPI) or certain proprietary data, in addition to applying the\nregular procedures for securing access and delivery.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-68165", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Security", "sections": [ "Security", @@ -35599,16 +62822,53 @@ "validated_by": "", "validation_mode": "" }, + "R-681859": { + "description": "A VNF's Heat Orchestration Template's ``OS::Neutron::Port`` resource's\n\n* Resource ID (defined in R-20453)\n* property ``network`` parameter name (defined in R-62983 and\n R-86182)\n* property ``fixed_ips``, map property ``ip_address`` parameter name\n (defined in R-40971, R-04697, R-71577, R-23503, R-78380, R-85235,\n R-27818, and R-29765)\n* property ``fixed_ips``, map property ``subnet`` parameter name\n (defined in R-62802, R-15287, R-84123, R-76160)\n* property ``allowed_address_pairs`` parameter name (defined in\n R-41492 and R-83418)\n\n**MUST** contain the identical ``{network-role}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", + "full_title": "", + "hide_links": "", + "id": "R-681859", + "impacts": "", + "introduced": "", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Items to Note", + "sections": [ + "Items to Note", + "Introduction", + "Resource: OS::Neutron::Port - Parameters" + ], + "status": null, + "tags": [], + "target": "", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-68198": { "description": "A VNF's Heat Orchestration template's Environment File's\n``parameters:`` section **MAY** (or **MAY NOT**) enumerate parameters.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-68198", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Environment File Format", "sections": [ "Environment File Format", @@ -35623,24 +62883,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-68200": { - "description": "The xNF **MUST** support the **:url** value to specify\nprotocol operation source and target parameters. The capability URI\nfor this feature will indicate which schemes (e.g., file, https, sftp)\nthat the server supports within a particular URL value. The 'file'\nscheme allows for editable local configuration databases. The other\nschemes allow for remote storage of configuration databases.", + "description": "The xNF **MUST** support the ``:url`` value to specify\nprotocol operation source and target parameters. The capability URI\nfor this feature will indicate which schemes (e.g., file, https, sftp)\nthat the server supports within a particular URL value. The 'file'\nscheme allows for editable local configuration databases. The other\nschemes allow for remote storage of configuration databases.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-68200", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -35659,14 +62923,18 @@ }, "R-68520": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nthat is creating a *Reserve Port* with an IPv6 address Resource ID **MUST**\nuse the naming convention\n\n* ``reserve_port_{vm-type}_{network-role}_floating_v6_ip_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{index}`` is the instance of the IPv6 *Reserve Port*\n for the vm-type attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-68520", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Neutron::Port", "sections": [ "OS::Neutron::Port", @@ -35686,48 +62954,56 @@ "validated_by": "", "validation_mode": "static" }, - "R-68936": { - "description": "When a VNF creates an internal network, a network role, referred to as\nthe ``{network-role}`` **MUST** be assigned to the internal network\nfor use in the VNF's Heat Orchestration Template.", + "R-686466": { + "description": "The PNF **MUST** support sending a pnfRegistration VES event.", + "docname": "Chapter7/PNF-Plug-and-Play", "full_title": "", "hide_links": "", - "id": "R-68936", + "id": "R-686466", "impacts": "", - "introduced": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Internal Networks", + "parts": {}, + "section_name": "PNF Plug and Play", "sections": [ - "Internal Networks", - "ONAP Heat Networking" + "PNF Plug and Play", + "PNF Plug and Play" ], "status": null, "tags": [], - "target": "VNF", + "target": "PNF", "test": "", "test_case": "", "test_file": "", "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" }, "R-68990": { - "description": "The xNF **MUST** support the **:startup** capability. It\nwill allow the running configuration to be copied to this special\ndatabase. It can also be locked and unlocked.", + "description": "The xNF **MUST** support the ``:startup`` capability. It\nwill allow the running configuration to be copied to this special\ndatabase. It can also be locked and unlocked.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-68990", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -35745,19 +63021,22 @@ "validation_mode": "" }, "R-69014": { - "description": "When a VNF connects to an external network, a network role, referred to\nas the ``{network-role}`` **MUST** be assigned to the external network for\nuse in the VNF's Heat Orchestration Template.", + "description": "When a VNF's port connects to an internal network or external network,\na network role, referred to\nas the ``{network-role}`` **MUST** be assigned to the network for\nuse in the VNF's Heat Orchestration Template. The ``{network-role}``\nis used in the VNF's Heat Orchestration Template resource IDs\nand resource property parameter names.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", "full_title": "", "hide_links": "", "id": "R-69014", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "External Networks", + "parts": {}, + "section_name": "{network-role}", "sections": [ - "External Networks", - "ONAP Heat Networking" + "{network-role}" ], "status": null, "tags": [], @@ -35774,14 +63053,18 @@ }, "R-69431": { "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``flavor`` parameter **MUST** be enumerated in the Heat Orchestration\nTemplate's Environment File and a value **MUST** be assigned.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-69431", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: flavor", "sections": [ "Property: flavor", @@ -35802,14 +63085,18 @@ }, "R-69565": { "description": "The xNF Package **MUST** include documentation describing xNF\nManagement APIs, which must include information and tools for ONAP to\ndeploy and configure (initially and ongoing) the xNF application(s)\n(e.g., NETCONF APIs) which includes a description of configurable\nparameters for the xNF and whether the parameters can be configured\nafter xNF instantiation.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-69565", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Description", "sections": [ "Resource Description", @@ -35830,14 +63117,18 @@ }, "R-69588": { "description": "When a VNF's Heat Orchestration Template's Virtual Machine\n(i.e., ``OS::Nova::Server`` Resource) boots from Cinder Volume, the\n``OS::Nova::Server`` resource property\n``block_device_mapping`` or ``block_device_mapping_v2``\n**MUST** be used.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-69588", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Boot Options", "sections": [ "Boot Options", @@ -35858,14 +63149,18 @@ }, "R-69610": { "description": "The VNF **MUST** provide the capability of using X.509 certificates\nissued by an external Certificate Authority.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-69610", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Data Protection Requirements", "sections": [ "VNF Data Protection Requirements", @@ -35885,18 +63180,22 @@ "validation_mode": "" }, "R-69634": { - "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet``/``subnet_id`` parameter\n``int_{network-role}_subnet_id``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet`` parameter\n``int_{network-role}_subnet_id``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-69634", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", - "section_name": "Property: fixed_ips, Map Property: subnet_id", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", "sections": [ - "Property: fixed_ips, Map Property: subnet_id", + "Property: fixed_ips, Map Property: subnet", "Resource: OS::Neutron::Port - Parameters" ], "status": null, @@ -35914,14 +63213,18 @@ }, "R-69649": { "description": "The VNF Provider **MUST** have patches available for vulnerabilities\nin the VNF as soon as possible. Patching shall be controlled via change\ncontrol process with vulnerabilities disclosed along with\nmitigation recommendations.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-69649", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -35942,14 +63245,18 @@ }, "R-69663": { "description": "A VNF **MAY** be composed from one or more Heat Orchestration\nTemplates, each of which represents a subset of the overall VNF.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-69663", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -35968,44 +63275,53 @@ "validated_by": "", "validation_mode": "" }, - "R-69874": { - "description": "A VNF's ``{network-role}`` assigned to an internal network **MUST**\nbe different than the ``{network-role}`` assigned to the VNF's external\nnetworks.", + "R-697654": { + "description": "The xNF **MAY** leverage the Google Protocol Buffers (GPB) delivery model\ndepicted in Figure 3 to support real-time performance management (PM) data.\nIn this model the VES events are streamed as binary-encoded GBPs over via\nTCP sockets.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", - "id": "R-69874", - "impacts": "", - "introduced": "", - "keyword": "MUST", + "id": "R-697654", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MAY", "links": [], "notes": "", - "section_name": "Internal Networks", + "parts": {}, + "section_name": "xNF Telemetry using Google Protocol Buffers", "sections": [ - "Internal Networks", - "ONAP Heat Networking" + "xNF Telemetry using Google Protocol Buffers", + "Transports and Protocols Supporting Resource Interfaces", + "Monitoring & Management" ], "status": null, "tags": [], - "target": "VNF", + "target": "XNF", "test": "", "test_case": "", "test_file": "", "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", - "validation_mode": "static" + "validation_mode": "in_service" }, "R-69877": { "description": "The xNF Package **MUST** include documentation for each KPI,\nidentify the suggested actions that need to be performed when a\nthreshold crossing alert event is recorded.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-69877", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -36026,14 +63342,18 @@ }, "R-70013": { "description": "The VNF **MUST NOT** require any manual steps to get it ready for\nservice after a container rebuild.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-70013", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Application Resilient Error Handling", "sections": [ "Application Resilient Error Handling", @@ -36052,45 +63372,20 @@ "validated_by": "", "validation_mode": "" }, - "R-70112": { - "description": "A VNF's Heat Orchestration Template **MUST** reference a Nested YAML\nfile by name. The use of ``resource_registry`` in the VNF's Heat\nOrchestration Templates Environment File **MUST NOT** be used.", - "full_title": "", - "hide_links": "", - "id": "R-70112", - "impacts": "", - "introduced": "casablanca", - "keyword": "MUST", - "links": [], - "notes": "", - "section_name": "Nested Heat Template Requirements", - "sections": [ - "Nested Heat Template Requirements", - "Nested Heat Templates", - "ONAP Heat Heat Template Constructs" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "", - "validated_by": "", - "validation_mode": "static" - }, "R-70266": { "description": "The xNF **MUST** respond to an ONAP request to deliver the\ncurrent data for any of the record types defined in\n`Event Records - Data Structure Description`_ by returning the requested\nrecord, populated with the current field values. (Currently the defined\nrecord types include fault fields, mobile flow fields, measurements for\nxNF scaling fields, and syslog fields. Other record types will be added\nin the future as they become standardized and are made available.)", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-70266", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Asynchronous and Synchronous Data Delivery", "sections": [ "Asynchronous and Synchronous Data Delivery", @@ -36112,14 +63407,18 @@ }, "R-70276": { "description": "A VNF HEAT's Orchestration Nested Template's YAML file name **MUST NOT**\nbe in the format ``{vm-type}.y[a]ml`` where ``{vm-type}`` is defined\nin the Heat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-70276", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Nested Heat file", "sections": [ "Nested Heat file", @@ -36139,20 +63438,56 @@ "validated_by": "", "validation_mode": "static" }, + "R-703767": { + "description": "The VNF **MUST** have the capability to securely transmit the security logs\nand security events to a remote system before they are purged from the\nsystem.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-703767", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", + "sections": [ + "VNF Security Analytics Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-70496": { - "description": "The xNF **MUST** implement the protocol operation:\n**commit(confirmed, confirm-timeout)** - Commit candidate\nconfiguration datastore to the running configuration.", + "description": "The xNF **MUST** implement the protocol operation:\n``commit(confirmed, confirm-timeout)`` - Commit candidate\nconfiguration data store to the running configuration.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-70496", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -36165,28 +63500,65 @@ "title": "", "title_from_content": "", "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-707977": { + "description": "When the PNF receives a Service configuration from ONAP, the PNF **MUST**\ncease sending the pnfRegistration VES Event.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-707977", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", "updated": "", "validated_by": "", "validation_mode": "" }, - "R-70757": { - "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vm_role`` is passed into a Nested YAML\nfile, the parameter name ``vm_role`` **MUST NOT** change.", + "R-708564": { + "description": "If a VNF's Heat Orchestration Template's resource invokes a nested\nYAML file, either statically or dynamically, the names of the parameters\npassed into the nested YAML file **MUST NOT** change.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", "full_title": "", "hide_links": "", - "id": "R-70757", + "id": "R-708564", "impacts": "", "introduced": "", - "keyword": "MUST NOT", + "is_need": true, + "is_part": false, + "keyword": "MUST", "links": [], "notes": "", - "section_name": "vm_role", + "parts": {}, + "section_name": "Nested Heat Template Requirements", "sections": [ - "vm_role", - "Resource: OS::Nova::Server - Metadata Parameters" + "Nested Heat Template Requirements", + "Nested Heat Templates", + "ONAP Heat Heat Template Constructs" ], "status": null, "tags": [], - "target": "VNF", + "target": "", "test": "", "test_case": "", "test_file": "", @@ -36195,18 +63567,22 @@ "type_name": "Requirement", "updated": "casablanca", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" }, "R-70933": { "description": "The VNF **MUST** provide the ability to migrate to newer\nversions of cryptographic algorithms and protocols with minimal impact.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-70933", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Data Protection Requirements", "sections": [ "VNF Data Protection Requirements", @@ -36226,15 +63602,19 @@ "validation_mode": "" }, "R-70964": { - "description": "If a VNF's Port is attached to an internal network and the port's\nIP addresses are statically assigned by the VNF's Heat Orchestration\\\nTemplate (i.e., enumerated in the Heat Orchestration Template's\nenvironment file), the ``OS::Neutron::Port`` Resource's\n\n* property ``fixed_ips`` map property ``ip_address`` **MUST** be used\n* property ``fixed_ips`` map property ``subnet``/``subnet_id``\n **MUST NOT** be used", + "description": "If a VNF's Port is attached to an internal network and the port's\nIP addresses are statically assigned by the VNF's Heat Orchestration\\\nTemplate (i.e., enumerated in the Heat Orchestration Template's\nenvironment file), the ``OS::Neutron::Port`` Resource's\n\n* property ``fixed_ips`` map property ``ip_address`` **MUST** be used\n* property ``fixed_ips`` map property ``subnet``\n **MUST NOT** be used", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-70964", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Items to Note", "sections": [ "Items to Note", @@ -36256,14 +63636,18 @@ }, "R-71152": { "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``image`` parameter **MUST** be declared as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-71152", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: image", "sections": [ "Property: image", @@ -36283,19 +63667,23 @@ "validation_mode": "static" }, "R-71493": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource **MUST**\ncontain the ``metadata`` map value parameter ``vf_module_id``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` **MUST**\ncontain the key/value pair ``vf_module_id``\nand the value MUST be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-71493", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_id", "sections": [ "vf_module_id", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -36311,15 +63699,19 @@ "validation_mode": "static" }, "R-71577": { - "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nONAP definition, see Requirement R-57424),\nand an IPv6 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a string,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_{network-role}_v6_ip_{index}``\n\n where\n\n * ``{vm-type}`` is the {vm-type} associated with the\n OS::Nova::Server\n * ``{network-role}`` is the {network-role} of the external\n network\n * the value for ``{index}`` must start at zero (0) and increment by one", + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an external network (per the\nECOMP definition, see Requirement R-57424),\nand an IPv6 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a string,\nthe parameter name **MUST** follow the\nnaming convention\n\n* ``{vm-type}_{network-role}_v6_ip_{index}``\n\nwhere\n\n* ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n* ``{network-role}`` is the {network-role} of the external network\n* ``{index}`` is a numeric value that **MUST** start at zero in a\n VNF's Heat Orchestration Template and **MUST** increment by one", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-71577", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -36340,14 +63732,18 @@ }, "R-71699": { "description": "A VNF's Heat Orchestration Template's Resource\n**MUST NOT** reference a HTTP-based Nested YAML file.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-71699", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "type", "sections": [ "type", @@ -36369,15 +63765,19 @@ "validation_mode": "static" }, "R-71787": { - "description": "Each layer of the VNF **MUST** support access restriction\nindependently of all other layers so that Segregation of Duties\ncan be implemented.", + "description": "Each architectural layer of the VNF (eg. operating system, network,\napplication) **MUST** support access restriction independently of all\nother layers so that Segregation of Duties can be implemented.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-71787", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -36398,14 +63798,18 @@ }, "R-71842": { "description": "The VNF **MUST** include the field \"service or program used for\naccess\" in the Security alarms (where applicable and technically feasible).", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-71842", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -36426,18 +63830,22 @@ }, "R-72184": { "description": "The xNF **MUST** have routable FQDNs for all the endpoints\n(VMs) of a xNF that contain chef-clients which are used to register\nwith the Chef Server. As part of invoking xNF actions, ONAP will\ntrigger push jobs against FQDNs of endpoints for a xNF, if required.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-72184", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Client Requirements", "sections": [ "Chef Client Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -36455,19 +63863,23 @@ "validation_mode": "" }, "R-72483": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource **MUST**\ncontain the ``metadata`` map value parameter ``vnf_name``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource property\n``metadata`` **MUST** contain the key/value pair ``vnf_name`` and the\nvalue **MUST** be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-72483", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "vnf_name", "sections": [ "vnf_name", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -36483,19 +63895,23 @@ "validation_mode": "static" }, "R-72871": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vf_module_id`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource property\n``metadata`` key/value pair ``vf_module_id`` parameter ``vf_module_id``\n**MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-72871", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_id", "sections": [ "vf_module_id", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -36512,14 +63928,18 @@ }, "R-73067": { "description": "The VNF **MUST** use NIST and industry standard cryptographic\nalgorithms and standard modes of operations when implementing\ncryptography.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-73067", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Data Protection Requirements", "sections": [ "VNF Data Protection Requirements", @@ -36540,14 +63960,18 @@ }, "R-73213": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::Neutron::SecurityGroup`` that\nis applicable to more than one ``{vm-type}`` and one internal network Resource ID\n**SHOULD** use the naming convention\n\n* ``int_{network-role}_security_group``\n\nwhere\n\n* ``{network-role}`` is the network-role", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-73213", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Neutron::SecurityGroup", "sections": [ "OS::Neutron::SecurityGroup", @@ -36569,14 +63993,18 @@ }, "R-73223": { "description": "The VNF **MUST** support proactive monitoring to detect and\nreport the attacks on resources so that the VNFs and associated VMs can\nbe isolated, such as detection techniques for resource exhaustion, namely\nOS resource attacks, CPU attacks, consumption of kernel memory, local\nstorage attacks.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-73223", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -36595,54 +64023,61 @@ "validated_by": "", "validation_mode": "" }, - "R-73228": { - "description": "A VNF's Heat Orchestration Template's parameter\n``{network-role}_net_fqdn``\n**MUST** be declared as type ``string``.", + "R-73285": { + "description": "The xNF **MUST** must encode, address and deliver the data\nas described in the previous paragraphs.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", - "id": "R-73228", + "id": "R-73285", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "External Networks", + "parts": {}, + "section_name": "Asynchronous and Synchronous Data Delivery", "sections": [ - "External Networks", - "Contrail Network Parameters", - "Contrail Resource Parameters" + "Asynchronous and Synchronous Data Delivery", + "Monitoring & Management Requirements", + "Monitoring & Management" ], "status": null, "tags": [], - "target": "VNF", + "target": "XNF", "test": "", "test_case": "", "test_file": "", "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" }, - "R-73285": { - "description": "The xNF **MUST** must encode, address and deliver the data\nas described in the previous paragraphs.", + "R-73364": { + "description": "The VNF **MUST** support at least two major versions of the\nVNF software and/or sub-components to co-exist within production\nenvironments at any time so that upgrades can be applied across\nmultiple systems in a staggered manner.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", - "id": "R-73285", + "id": "R-73364", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Asynchronous and Synchronous Data Delivery", + "parts": {}, + "section_name": "Deployment Optimization", "sections": [ - "Asynchronous and Synchronous Data Delivery", - "Monitoring & Management Requirements", - "Monitoring & Management" + "Deployment Optimization", + "VNF Resiliency" ], "status": null, "tags": [], - "target": "XNF", + "target": "VNF", "test": "", "test_case": "", "test_file": "", @@ -36653,24 +64088,30 @@ "validated_by": "", "validation_mode": "" }, - "R-73364": { - "description": "The VNF **MUST** support at least two major versions of the\nVNF software and/or sub-components to co-exist within production\nenvironments at any time so that upgrades can be applied across\nmultiple systems in a staggered manner.", + "R-73459": { + "description": "The xNF **MUST** provide the ability to include a \"from=\" clause in SSH\npublic keys associated with mechanized user IDs created for an Ansible\nServer cluster to use for xNF VM authentication.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", - "id": "R-73364", + "id": "R-73459", "impacts": "", - "introduced": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Deployment Optimization", + "parts": {}, + "section_name": "Ansible Client Requirements", "sections": [ - "Deployment Optimization", - "VNF Resiliency" + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" ], "status": null, "tags": [], - "target": "VNF", + "target": "XNF", "test": "", "test_case": "", "test_file": "", @@ -36683,18 +64124,22 @@ }, "R-73468": { "description": "The xNF **MUST** allow the NETCONF server connection\nparameters to be configurable during virtual machine instantiation\nthrough Heat templates where SSH keys, usernames, passwords, SSH\nservice and SSH port numbers are Heat template parameters.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-73468", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -36713,14 +64158,18 @@ }, "R-73560": { "description": "The xNF Package **MUST** include documentation about monitoring\nparameters/counters exposed for virtual resource management and xNF\napplication management.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-73560", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -36741,14 +64190,18 @@ }, "R-73583": { "description": "The VNF **MUST** allow changes of configuration parameters\nto be consumed by the VNF without requiring the VNF or its sub-components\nto be bounced so that the VNF availability is not effected.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-73583", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Configuration Management", "sections": [ "Application Configuration Management", @@ -36769,14 +64222,18 @@ }, "R-74304": { "description": "A VNF's Heat Orchestration Template's Environment file extension **MUST**\nbe in the lower case format ``.env``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-74304", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP Heat Orchestration Template Filenames", "sections": [ "ONAP Heat Orchestration Template Filenames", @@ -36797,14 +64254,18 @@ }, "R-74481": { "description": "The VNF **MUST NOT** require the use of a dynamic routing\nprotocol unless necessary to meet functional requirements.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-74481", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -36824,14 +64285,18 @@ }, "R-74712": { "description": "The VNF **MUST** utilize FQDNs (and not IP address) for\nboth Service Chaining and scaling.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-74712", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "System Resource Optimization", "sections": [ "System Resource Optimization", @@ -36852,14 +64317,18 @@ }, "R-74763": { "description": "The xNF provider **MUST** provide an artifact per xNF that contains\nall of the xNF Event Records supported. The artifact should include\nreference to the specific release of the xNF Event Stream Common Event\nData Model document it is based on. (e.g.,\n`VES Event Listener `__)", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-74763", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -36880,14 +64349,18 @@ }, "R-74958": { "description": "The VNF **MUST** activate security alarms automatically when\nit detects an unsuccessful attempt to gain permissions\nor assume the identity of another user.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-74958", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -36907,19 +64380,23 @@ "validation_mode": "" }, "R-74978": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``workload_context`` **MUST**\nbe declared as type: ``string``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``workload_context``\nparameter **MUST**\nbe declared as ``workload_context`` and the parameter **MUST**\nbe defined as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-74978", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "workload_context", "sections": [ "workload_context", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -36935,15 +64412,19 @@ "validation_mode": "static" }, "R-75041": { - "description": "The VNF **MUST**, if not integrated the Operator's Identity and Access\nManagement system, support configurable password expiration.", + "description": "The VNF **MUST**, if not integrated with the Operator's Identity and\nAccess Management system, support configurable password expiration.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-75041", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -36964,14 +64445,18 @@ }, "R-75141": { "description": "A VNF's Heat Orchestration Template's resource name\n(i.e., ) **MUST** only contain alphanumeric\ncharacters and underscores ('_').", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-75141", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "resource ID", "sections": [ "resource ID", @@ -36992,20 +64477,24 @@ "validated_by": "", "validation_mode": "static" }, - "R-75202": { - "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``workload_context`` is passed into a\nNested YAML\nfile, the parameter name ``workload_context`` **MUST NOT** change.", + "R-75343": { + "description": "The VNF **MUST** provide the capability of testing the\nvalidity of a digital certificate by recognizing the identity represented\nby the certificate - the \"distinguished name\".", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", - "id": "R-75202", + "id": "R-75343", "impacts": "", "introduced": "", - "keyword": "MUST NOT", + "is_need": true, + "is_part": false, + "keyword": "MUST", "links": [], "notes": "", - "section_name": "workload_context", + "parts": {}, + "section_name": "VNF Cryptography Requirements", "sections": [ - "workload_context", - "Resource: OS::Nova::Server - Metadata Parameters" + "VNF Cryptography Requirements", + "VNF Security" ], "status": null, "tags": [], @@ -37018,55 +64507,63 @@ "type_name": "Requirement", "updated": "casablanca", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" }, - "R-75343": { - "description": "The VNF **MUST** provide the capability of testing the\nvalidity of a digital certificate by recognizing the identity represented\nby the certificate - the \"distinguished name\".", + "R-75608": { + "description": "The xNF provider **MUST** provide playbooks to be loaded\non the appropriate Ansible Server.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", - "id": "R-75343", + "id": "R-75608", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF Cryptography Requirements", + "parts": {}, + "section_name": "Configuration Management via Ansible", "sections": [ - "VNF Cryptography Requirements", - "VNF Security" + "Configuration Management via Ansible", + "Resource Configuration", + "VNF On-boarding and package management" ], "status": null, "tags": [], - "target": "VNF", + "target": "XNF", "test": "", "test_case": "", "test_file": "", "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", "validation_mode": "" }, - "R-75608": { - "description": "The xNF provider **MUST** provide playbooks to be loaded\non the appropriate Ansible Server.", + "R-756950": { + "description": "The VNF **MUST** be operable without the use of Network File System (NFS).", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", - "id": "R-75608", + "id": "R-756950", "impacts": "", - "introduced": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Configuration Management via Ansible", + "parts": {}, + "section_name": "VNF General Security Requirements", "sections": [ - "Configuration Management via Ansible", - "Resource Configuration", - "VNF On-boarding and package management" + "VNF General Security Requirements", + "VNF Security" ], "status": null, "tags": [], - "target": "XNF", + "target": "VNF", "test": "", "test_case": "", "test_file": "", @@ -37079,14 +64576,18 @@ }, "R-75850": { "description": "The VNF **SHOULD** decouple persistent data from the VNFC\nand keep it in its own datastore that can be reached by all instances\nof the VNFC requiring the data.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-75850", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -37106,14 +64607,18 @@ }, "R-75943": { "description": "The xNF **SHOULD** support the data schema defined in 3GPP TS 32.435, when\nsupporting the event-driven bulk transfer of monitoring data.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-75943", "impacts": "dcae, dmaap", "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Bulk Performance Measurement", "sections": [ "Bulk Performance Measurement", @@ -37135,14 +64640,18 @@ }, "R-76014": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::ServiceHealthCheck``\nResource ID\n**MUST**\ncontain the ``{vm-type}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-76014", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::ServiceHealthCheck", "sections": [ "OS::ContrailV2::ServiceHealthCheck", @@ -37164,14 +64673,18 @@ }, "R-76057": { "description": "VNF Heat Orchestration Template's Nested YAML file name **MUST** contain\nonly alphanumeric characters and underscores '_' and\n**MUST NOT** contain the case insensitive word ``base``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-76057", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Nested Heat file", "sections": [ "Nested Heat file", @@ -37187,23 +64700,27 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-76160": { - "description": "When\n\n * the VNF's Heat Orchestration Template's\n resource ``OS::Neutron::Port`` in an Incremental Module is attaching\n to an internal network (per the ONAP definition, see Requirement TBD)\n that is created in the Base Module, AND\n * an IPv6 address is being cloud assigned by OpenStack's DHCP Service AND\n * the internal network IPv6 subnet is to be specified\n using the property ``fixed_ips`` map property ``subnet``/``subnet_id``,\n\nthe parameter **MUST** follow the naming convention\n``int_{network-role}_v6_subnet_id``,\nwhere ``{network-role}`` is the network role of the internal network.\n\nNote that the parameter **MUST** be defined as an ``output`` parameter in\nthe base module.", + "description": "When\n\n * the VNF's Heat Orchestration Template's\n resource ``OS::Neutron::Port`` in an Incremental Module is attaching\n to an internal network (per the ONAP definition, see Requirements\n R-52425 and R-46461)\n that is created in the Base Module, AND\n * an IPv6 address is being cloud assigned by OpenStack's DHCP Service AND\n * the internal network IPv6 subnet is to be specified\n using the property ``fixed_ips`` map property ``subnet``,\n\nthe parameter **MUST** follow the naming convention\n``int_{network-role}_v6_subnet_id``,\nwhere ``{network-role}`` is the network role of the internal network.\n\nNote that the parameter **MUST** be defined as an ``output`` parameter in\nthe base module.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-76160", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Property: fixed_ips, Map Property: subnet_id", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", "sections": [ - "Property: fixed_ips, Map Property: subnet_id", + "Property: fixed_ips, Map Property: subnet", "Resource: OS::Neutron::Port - Parameters" ], "status": null, @@ -37219,16 +64736,52 @@ "validated_by": "", "validation_mode": "static" }, + "R-763774": { + "description": "The PNF **MUST** support a HTTPS connection to the DCAE VES Event\nListener.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-763774", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-76449": { "description": "A VNF's Heat Orchestration Template's **MUST NOT**\ncontain the Resource ``OS::Neutron::FloatingIPAssociation``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-76449", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VIP Assignment, External Networks, Supported by Automation", "sections": [ "VIP Assignment, External Networks, Supported by Automation", @@ -37250,14 +64803,18 @@ }, "R-76682": { "description": "If a VNF's Heat Orchestration Template\n``OS::ContrailV2::InterfaceRouteTable`` resource\n``interface_route_table_routes`` property\n``interface_route_table_routes_route`` map property parameter\n``{vm-type}_{network-role}_route_prefixes``\n**MUST NOT** be enumerated in the VNF's Heat Orchestration Template's\nEnvironment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Contrail Resource Parameters", "full_title": "", "hide_links": "", "id": "R-76682", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Interface Route Table Prefixes for Contrail InterfaceRoute Table", "sections": [ "Interface Route Table Prefixes for Contrail InterfaceRoute Table", @@ -37278,14 +64835,18 @@ }, "R-76718": { "description": "If a VNF's Heat Orchestration Template uses the intrinsic function\n``get_file``, the ``get_file`` target **MUST** be referenced in\nthe Heat Orchestration Template by file name.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", "full_title": "", "hide_links": "", "id": "R-76718", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Heat Files Support (get_file)", "sections": [ "Heat Files Support (get_file)", @@ -37306,19 +64867,22 @@ }, "R-76901": { "description": "The VNF **MUST** support a container rebuild mechanism based on existing\nimage (e.g. Glance image in Openstack environment) or a snapshot.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-76901", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Virtual Function - Container Recovery Requirements", "sections": [ "Virtual Function - Container Recovery Requirements", - "Controller Interactions With VNF", - "Configuration Management" + "VNF Resiliency" ], "status": null, "tags": [], @@ -37335,14 +64899,18 @@ }, "R-77334": { "description": "The VNF **MUST** allow configurations and configuration parameters\nto be managed under version control to ensure consistent configuration\ndeployment, traceability and rollback.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-77334", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Configuration Management", "sections": [ "Application Configuration Management", @@ -37363,14 +64931,18 @@ }, "R-77667": { "description": "The VNF **MUST** test for adherence to the defined performance\nbudget at each layer, during each delivery cycle so that the performance\nbudget is measured and feedback is provided where the performance budget\nis not met.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-77667", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Deployment Optimization", "sections": [ "Deployment Optimization", @@ -37391,14 +64963,18 @@ }, "R-77707": { "description": "The xNF provider **MUST** include a Manifest File that\ncontains a list of all the components in the xNF package.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-77707", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Description", "sections": [ "Resource Description", @@ -37418,18 +64994,22 @@ "validation_mode": "" }, "R-78010": { - "description": "The VNF **MUST** use the NCSP's IDAM API for Identification,\nauthentication and access control of customer or VNF application users.", + "description": "The VNF **MUST** integrate with standard identity and access management\nprotocols such as LDAP, TACACS+, Windows Integrated Authentication\n(Kerberos), SAML federation, or OAuth 2.0.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-78010", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF General Security Requirements", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", "sections": [ - "VNF General Security Requirements", + "VNF Identity and Access Management Requirements", "VNF Security" ], "status": null, @@ -37441,24 +65021,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-78116": { "description": "The xNF **MUST** update status on the Chef Server\nappropriately (e.g., via a fail or raise an exception) if the\nchef-client run encounters any critical errors/failures when\nexecuting a xNF action.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-78116", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Roles/Requirements", "sections": [ "Chef Roles/Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -37477,18 +65061,22 @@ }, "R-78282": { "description": "The xNF **MUST** conform to the NETCONF RFC 6242,\n\"Using the Network Configuration Protocol over Secure Shell\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-78282", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -37506,15 +65094,19 @@ "validation_mode": "" }, "R-78380": { - "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see Requirements R-52425 and R-46461),\nand an IPv4 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is\ndefined as a ``string``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_int_{network-role}_ip_{index}``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n OS::Nova::Server\n * ``{network-role}`` is the {network-role} of the internal\n network\n * the value for ``{index`` must start at zero (0) and increment by one", + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nECOMP definition, see Requirements R-52425 and R-46461),\nand an IPv4 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is\ndefined as a ``string``,\nthe parameter name **MUST** follow the\nnaming convention\n\n* ``{vm-type}_int_{network-role}_ip_{index}``\n\nwhere\n\n* ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n* ``{network-role}`` is the {network-role} of the internal network\n* ``{index}`` is a numeric value that **MUST** start at zero in a\n VNF's Heat Orchestration Template and **MUST** increment by one", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-78380", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -37535,14 +65127,18 @@ }, "R-78569": { "description": "VNF's Heat Orchestration Template's Resource **MAY** declare the\nattribute ``external_id:``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-78569", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "external_id", "sections": [ "external_id", @@ -37559,20 +65155,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-79107": { "description": "The VNF **MUST**, if not integrated with the Operator's Identity\nand Access Management system, support the ability to disable the\nuserID after a configurable number of consecutive unsuccessful\nauthentication attempts using the same userID.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-79107", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -37593,18 +65193,22 @@ }, "R-79224": { "description": "The xNF **MUST** have the chef-client be preloaded with\nvalidator keys and configuration to register with the designated\nChef Server as part of the installation process.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-79224", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Client Requirements", "sections": [ "Chef Client Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -37621,25 +65225,28 @@ "validated_by": "", "validation_mode": "" }, - "R-79412": { - "description": "The xNF **MAY** use another option which is expected to include TCP\nfor high volume streaming asynchronous data sets and for other high volume\ndata sets. TCP delivery can be used for either JSON or binary encoded data\nsets.", + "R-793716": { + "description": "The PNF **MUST** have \"ONAP Aware\" software which is capable of performing\nPNF PnP registration with ONAP. The \"ONAP Aware\" software is capable of\nperforming the PNF PnP Registration with ONAP MUST either be loaded\nseparately or integrated into the PNF software upon physical delivery\nand installation of the PNF.\n\nNote: It is up to the specific vendor to design the software management\nfunctions.", + "docname": "Chapter7/PNF-Plug-and-Play", "full_title": "", "hide_links": "", - "id": "R-79412", + "id": "R-793716", "impacts": "", - "introduced": "", - "keyword": "MAY", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", "links": [], "notes": "", - "section_name": "Addressing and Delivery Protocol", + "parts": {}, + "section_name": "PNF Plug and Play", "sections": [ - "Addressing and Delivery Protocol", - "Monitoring & Management Requirements", - "Monitoring & Management" + "PNF Plug and Play", + "PNF Plug and Play" ], "status": null, "tags": [], - "target": "XNF", + "target": "PNF", "test": "", "test_case": "", "test_file": "", @@ -37650,23 +65257,29 @@ "validated_by": "", "validation_mode": "" }, - "R-79531": { - "description": "The VNF Heat Orchestration Template **MUST** define\n\"outputs\" in the volume template for each Cinder volume\nresource universally unique identifier (UUID) (i.e. ONAP\nVolume Template Output Parameters).", + "R-79412": { + "description": "The xNF **MAY** use another option which is expected to include TCP\nfor high volume streaming asynchronous data sets and for other high volume\ndata sets. TCP delivery can be used for either JSON or binary encoded data\nsets.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", - "id": "R-79531", + "id": "R-79412", "impacts": "", "introduced": "", - "keyword": "MUST", + "is_need": true, + "is_part": false, + "keyword": "MAY", "links": [], "notes": "", - "section_name": "ONAP Heat Cinder Volumes", + "parts": {}, + "section_name": "Addressing and Delivery Protocol", "sections": [ - "ONAP Heat Cinder Volumes" + "Addressing and Delivery Protocol", + "Monitoring & Management Requirements", + "Monitoring & Management" ], "status": null, "tags": [], - "target": "VNF", + "target": "XNF", "test": "", "test_case": "", "test_file": "", @@ -37679,14 +65292,18 @@ }, "R-79817": { "description": "A VNF's Heat Orchestration Template's parameter defined\nin a non-nested YAML file as\ntype ``comma_delimited_list`` **MAY** have a parameter constraint defined.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-79817", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "constraints", "sections": [ "constraints", @@ -37703,20 +65320,56 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, + "R-798933": { + "description": "The xNF **SHOULD** deliver event records that fall into the event domains\nsupported by VES.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-798933", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "SHOULD", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Transports and Protocols Supporting Resource Interfaces", + "sections": [ + "Transports and Protocols Supporting Resource Interfaces", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, "R-79952": { "description": "The VNF **SHOULD** support container snapshots if not for rebuild\nand evacuate for rollback or back out mechanism.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-79952", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "All Layer Redundancy", "sections": [ "All Layer Redundancy", @@ -37737,14 +65390,18 @@ }, "R-80070": { "description": "The VNF **MUST** handle errors and exceptions so that they do\nnot interrupt processing of incoming VNF requests to maintain service\ncontinuity (where the error is not directly impacting the software\nhandling the incoming request).", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-80070", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Resilient Error Handling", "sections": [ "Application Resilient Error Handling", @@ -37765,14 +65422,18 @@ }, "R-80335": { "description": "For all GUI and command-line interfaces, the VNF **MUST** provide the\nability to present a warning notice that is set by the Operator. A warning\nnotice is a formal statement of resource intent presented to everyone\nwho accesses the system.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-80335", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -37792,19 +65453,23 @@ "validation_mode": "" }, "R-80374": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vf_module_name`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vf_module_name``\nparameter ``vf_module_name`` **MUST NOT**\nbe enumerated in the Heat Orchestration Template's environment file.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-80374", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_name", "sections": [ "vf_module_name", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -37820,18 +65485,22 @@ "validation_mode": "static" }, "R-80829": { - "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet``/``subnet_id`` parameter\n``{network-role}_v6_subnet_id``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet`` parameter\n``{network-role}_v6_subnet_id``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-80829", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", - "section_name": "Property: fixed_ips, Map Property: subnet_id", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", "sections": [ - "Property: fixed_ips, Map Property: subnet_id", + "Property: fixed_ips, Map Property: subnet", "Resource: OS::Neutron::Port - Parameters" ], "status": null, @@ -37849,18 +65518,22 @@ }, "R-80898": { "description": "TThe xNF **MUST** support heartbeat via a with null filter.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-80898", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -37877,16 +65550,52 @@ "validated_by": "", "validation_mode": "" }, + "R-809261": { + "description": "The PNF **MUST** use a IP address to contact ONAP.\n\nNote: it is expected that an ONAP operator can ascertain the ONAP IP\naddress or the security gateway to reach ONAP on the VID or ONAP portal\nGUI.\n\nNote: The ONAP contact IP address has been previously configured and\nprovisioned prior to this step.\n\nNote: The ONAP IP address could be provisioned or resolved through\nFQDN & DNS.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-809261", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-81147": { - "description": "The VNF **MUST** have greater restrictions for access and\nexecution, such as up to 3 factors of authentication and restricted\nauthorization, for commands affecting network services, such as\ncommands relating to VNFs.", + "description": "The VNF **MUST** support strong authentication, also known as\nmultifactor authentication, on all protected interfaces exposed by the\nVNF for use by human users. Strong authentication uses at least two of the\nthree different types of authentication factors in order to prove the\nclaimed identity of a user.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-81147", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -37901,20 +65610,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-81214": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::InterfaceRouteTable``\nResource ID\n**MUST**\ncontain the ``{network-role}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-81214", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::InterfaceRouteTable", "sections": [ "OS::ContrailV2::InterfaceRouteTable", @@ -37936,14 +65649,18 @@ }, "R-81339": { "description": "A VNF Heat Orchestration Template's Base Module file name **MUST** include\ncase insensitive 'base' in the filename and\n**MUST** match one of the following four\nformats:\n\n 1.) ``base_.y[a]ml``\n\n 2.) ``_base.y[a]ml``\n\n 3.) ``base.y[a]ml``\n\n 4.) ``_base_``.y[a]ml\n\nwhere ```` **MUST** contain only alphanumeric characters and\nunderscores '_' and **MUST NOT** contain the case insensitive word ``base``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-81339", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Base Modules", "sections": [ "Base Modules", @@ -37959,20 +65676,56 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, + "R-814377": { + "description": "The VNF **MUST** have the capability of allowing the Operator to create,\nmanage, and automatically provision user accounts using an Operator\napproved identity lifecycle management tool using a standard protocol,\ne.g., NETCONF API.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-814377", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-81725": { "description": "A VNF's Incremental Module **MUST** have a corresponding Environment File", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-81725", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -37987,20 +65740,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-81777": { "description": "The xNF **MUST** be configured with initial address(es) to use\nat deployment time. Subsequently, address(es) may be changed through\nONAP-defined policies delivered from ONAP to the xNF using PUTs to a\nRESTful API, in the same manner that other controls over data reporting\nwill be controlled by policy.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-81777", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Addressing and Delivery Protocol", "sections": [ "Addressing and Delivery Protocol", @@ -38022,14 +65779,18 @@ }, "R-81979": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::NetworkIpam``\nResource ID **MAY** use the naming convention\n\n* ``{network-role}_RNI``\n\nwhere\n\n* ``{network-role}`` is the network-role\n* ``RNI`` signifies that it is the Resource Network IPAM", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-81979", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::NetworkIpam", "sections": [ "OS::ContrailV2::NetworkIpam", @@ -38050,19 +65811,23 @@ "validation_mode": "" }, "R-82018": { - "description": "The xNF **MUST** load the Ansible Server SSH public key onto xNF\nVM(s) as part of instantiation. This will allow the Ansible Server\nto authenticate to perform post-instantiation configuration without\nmanual intervention and without requiring specific xNF login IDs and\npasswords.\n\nCAUTION: For VNFs configured using Ansible, to eliminate the need\nfor manual steps, post-instantiation and pre-configuration, to\nupload of SSH public keys, SSH public keys loaded during (heat)\ninstantiation shall be preserved and not removed by (heat) embedded\n(userdata) scripts.", + "description": "The xNF **MUST** load the Ansible Server SSH public key onto xNF\nVM(s) /root/.ssh/authorized_keys as part of instantiation. Alternative,\nis for Ansible Server SSH public key to be loaded onto xNF VM(s) under\n/home//.ssh/authorized_keys as part of instantiation,\nwhen a Mechanized user ID is created during instantiation, and Configure\nand all playbooks are designed to use a mechanized user ID only for\nauthentication (never using root authentication during Configure playbook\nrun). This will allow the Ansible Server to authenticate to perform\npost-instantiation configuration without manual intervention and without\nrequiring specific xNF login IDs and passwords.\n\n*CAUTION*: For xNFs configured using Ansible, to eliminate the need\nfor manual steps, post-instantiation and pre-configuration, to\nupload of SSH public keys, SSH public keys loaded during (heat)\ninstantiation shall be preserved and not removed by (heat) embedded\n(userdata) scripts.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-82018", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Client Requirements", "sections": [ "Ansible Client Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -38075,20 +65840,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-82115": { "description": "When a VNF's Heat Orchestration Template's resource is associated with a\nsingle ``{vm-type}``\nand a single external network, the Resource ID text **MUST** contain both\nthe ``{vm-type}``\nand the ``{network-role}``\n\n- the ``{vm-type}`` **MUST** appear before the ``{network-role}`` and\n **MUST** be separated by an underscore '_'\n\n\n - e.g., ``{vm-type}_{network-role}``, ``{vm-type}_{index}_{network-role}``\n\n\n- note that an ``{index}`` value **MAY** separate the ``{vm-type}`` and the\n ``{network-role}`` and when this occurs underscores **MUST** separate the\n three values. (e.g., ``{vm-type}_{index}_{network-role}``).", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-82115", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource IDs", "sections": [ "Resource IDs" @@ -38107,19 +65876,23 @@ "validation_mode": "static" }, "R-82134": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vf_module_id`` **MUST**\nbe declared as type: ``string``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource property\n``metadata`` key/value pair ``vf_module_id`` parameter **MUST**\nbe declared as ``vf_module_id`` and the parameter **MUST**\nbe defined as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-82134", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_id", "sections": [ "vf_module_id", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -38134,16 +65907,85 @@ "validated_by": "", "validation_mode": "static" }, + "R-821473": { + "description": "The xNF MUST produce heartbeat indicators consisting of events containing\nthe common event header only per the VES Listener Specification.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-821473", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF telemetry via standardized interface", + "sections": [ + "VNF telemetry via standardized interface", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, + "R-821839": { + "description": "The xNF **MUST** deliver event records to ONAP using the common transport\nmechanisms and protocols defined in this document.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-821839", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Transports and Protocols Supporting Resource Interfaces", + "sections": [ + "Transports and Protocols Supporting Resource Interfaces", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, "R-82223": { "description": "The VNF **MUST** be decomposed if the functions have\nsignificantly different scaling characteristics (e.g., signaling\nversus media functions, control versus data plane functions).", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-82223", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -38163,14 +66005,18 @@ }, "R-82481": { "description": "A VNF's Heat Orchestration Template's Resource property parameter that is\nassociated with a unique Virtual Machine type **MUST** include\n``{vm-type}`` as part of the parameter name with two exceptions:\n\n 1.) The Resource ``OS::Nova::Server`` property ``availability_zone``\n parameter **MUST NOT** be prefixed with a common ``{vm-type}`` identifier,\n\n 2.) The Resource ``OS::Nova::Server`` eight mandatory and optional\n ``metadata``\n parameters (i.e., ``vnf_name``, ``vnf_id``, ``vf_module_id``,\n ``vf_module_name``, ``vm_role``,\n ``vf_module_index``, ``environment_context``, ``workload_context``)\n **MUST NOT** be prefixed with a common ``{vm-type}`` identifier.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", "full_title": "", "hide_links": "", "id": "R-82481", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "{vm-type}", "sections": [ "{vm-type}" @@ -38190,14 +66036,18 @@ }, "R-82551": { "description": "When a VNF's Heat Orchestration Template's resource is associated with a\nsingle ``{vm-type}`` and a single internal network, the Resource ID **MUST**\ncontain both the ``{vm-type}`` and the ``int_{network-role}`` and\n\n- the ``{vm-type}`` **MUST** appear before the ``int_{network-role}`` and\n **MUST** be separated by an underscore '_'\n\n - (e.g., ``{vm-type}_int_{network-role}``,\n ``{vm-type}_{index}_int_{network-role}``)\n\n- note that an ``{index}`` value **MAY** separate the\n ``{vm-type}`` and the ``int_{network-role}`` and when this occurs\n underscores **MUST** separate the three values.\n (e.g., ``{vm-type}_{index}_int_{network-role}``).", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-82551", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource IDs", "sections": [ "Resource IDs" @@ -38217,14 +66067,18 @@ }, "R-82732": { "description": "A VNF Heat Orchestration Template's Cinder Volume Module **MUST**\nbe named identical to the base or incremental module it is supporting with\n``_volume`` appended.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-82732", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Cinder Volume Modules", "sections": [ "Cinder Volume Modules", @@ -38240,24 +66094,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-82811": { - "description": "The xNF **MUST** support ONAP Controller's **StartApplication** command.", + "description": "The xNF **MUST** support APPC ``StartApplication`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-82811", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "LifeCycle Management Related Commands", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", "sections": [ - "LifeCycle Management Related Commands", - "Controller Interactions With VNF", + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -38269,52 +66127,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", - "validated_by": "", - "validation_mode": "" - }, - "R-83015": { - "description": "A VNF's ``{network-role}`` assigned to an external network **MUST**\nbe different than the ``{network-role}`` assigned to the VNF's\ninternal networks, if internal networks exist.", - "full_title": "", - "hide_links": "", - "id": "R-83015", - "impacts": "", - "introduced": "", - "keyword": "MUST", - "links": [], - "notes": "", - "section_name": "External Networks", - "sections": [ - "External Networks", - "ONAP Heat Networking" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", "updated": "casablanca", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" }, "R-83146": { - "description": "The xNF **MUST** support ONAP Controller's **StopApplication** command.", + "description": "The xNF **MUST** support APPC ``StopApplication`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-83146", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "LifeCycle Management Related Commands", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", "sections": [ - "LifeCycle Management Related Commands", - "Controller Interactions With VNF", + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -38326,20 +66160,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-83227": { "description": "The VNF **MUST** Provide the capability to encrypt data in\ntransit on a physical or virtual network.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-83227", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Data Protection Requirements", "sections": [ "VNF Data Protection Requirements", @@ -38360,14 +66198,18 @@ }, "R-83412": { "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``allowed_address_pairs``\nmap property ``ip_address`` parameter\n``{vm-type}_{network-role}_floating_ip``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-83412", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VIP Assignment, External Networks, Supported by Automation", "sections": [ "VIP Assignment, External Networks, Supported by Automation", @@ -38389,14 +66231,18 @@ }, "R-83418": { "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``allowed_address_pairs``\nmap property ``ip_address`` parameter\n``{vm-type}_{network-role}_floating_v6_ip``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-83418", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VIP Assignment, External Networks, Supported by Automation", "sections": [ "VIP Assignment, External Networks, Supported by Automation", @@ -38418,14 +66264,18 @@ }, "R-83500": { "description": "The VNF **MUST** provide the capability of allowing certificate\nrenewal and revocation.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-83500", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Cryptography Requirements", "sections": [ "VNF Cryptography Requirements", @@ -38445,18 +66295,22 @@ "validation_mode": "" }, "R-83677": { - "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet``/``subnet_id`` parameter\n``{network-role}_subnet_id``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``subnet`` parameter\n``{network-role}_subnet_id``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-83677", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", - "section_name": "Property: fixed_ips, Map Property: subnet_id", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", "sections": [ - "Property: fixed_ips, Map Property: subnet_id", + "Property: fixed_ips, Map Property: subnet", "Resource: OS::Neutron::Port - Parameters" ], "status": null, @@ -38474,14 +66328,18 @@ }, "R-83706": { "description": "When a VNF's Heat Orchestration Template's Virtual Machine\n(i.e., ``OS::Nova::Server`` resource) boots from an image, the\n``OS::Nova::Server`` resource property ``image`` **MUST** be used.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-83706", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Boot Options", "sections": [ "Boot Options", @@ -38501,19 +66359,23 @@ "validation_mode": "static" }, "R-83790": { - "description": "The xNF **MUST** implement the **:validate** capability.", + "description": "The xNF **MUST** implement the ``:validate`` capability.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-83790", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -38531,19 +66393,23 @@ "validation_mode": "" }, "R-83873": { - "description": "The xNF **MUST** support **:rollback-on-error** value for\nthe parameter to the operation. If any\nerror occurs during the requested edit operation, then the target\ndatabase (usually the running configuration) will be left unaffected.\nThis provides an 'all-or-nothing' edit mode for a single \nrequest.", + "description": "The xNF **MUST** support ``:rollback-on-error`` value for\nthe parameter to the operation. If any\nerror occurs during the requested edit operation, then the target\ndatabase (usually the running configuration) will be left unaffected.\nThis provides an 'all-or-nothing' edit mode for a single \nrequest.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-83873", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -38561,18 +66427,22 @@ "validation_mode": "" }, "R-84123": { - "description": "When\n\n * the VNF's Heat Orchestration Template's\n resource ``OS::Neutron::Port`` in an Incremental Module is attaching\n to an internal network (per the ONAP definition, see\n Requirements R-52425 and R-46461)\n that is created in the Base Module, AND\n * an IPv4 address is being cloud assigned by OpenStack's DHCP Service AND\n * the internal network IPv4 subnet is to be specified\n using the property ``fixed_ips`` map property ``subnet``/``subnet_id``,\n\nthe parameter **MUST** follow the naming convention\n\n * ``int_{network-role}_subnet_id``\n\nwhere\n\n * ``{network-role}`` is the network role of the internal network\n\nNote that the parameter **MUST** be defined as an ``output`` parameter in\nthe base module.", + "description": "When\n\n * the VNF's Heat Orchestration Template's\n resource ``OS::Neutron::Port`` in an Incremental Module is attaching\n to an internal network (per the ONAP definition, see\n Requirements R-52425 and R-46461)\n that is created in the Base Module, AND\n * an IPv4 address is being cloud assigned by OpenStack's DHCP Service AND\n * the internal network IPv4 subnet is to be specified\n using the property ``fixed_ips`` map property ``subnet``,\n\nthe parameter **MUST** follow the naming convention\n\n * ``int_{network-role}_subnet_id``\n\nwhere\n\n * ``{network-role}`` is the network role of the internal network\n\nNote that the parameter **MUST** be defined as an ``output`` parameter in\nthe base module.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-84123", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Property: fixed_ips, Map Property: subnet_id", + "parts": {}, + "section_name": "Property: fixed_ips, Map Property: subnet", "sections": [ - "Property: fixed_ips, Map Property: subnet_id", + "Property: fixed_ips, Map Property: subnet", "Resource: OS::Neutron::Port - Parameters" ], "status": null, @@ -38590,14 +66460,18 @@ }, "R-84160": { "description": "The VNF **MUST** have security logging for VNFs and their\nOSs be active from initialization. Audit logging includes automatic\nroutines to maintain activity records and cleanup programs to ensure\nthe integrity of the audit/logging systems.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-84160", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -38618,14 +66492,18 @@ }, "R-841740": { "description": "The xNF **SHOULD** support FileReady VES event for event-driven bulk transfer\nof monitoring data.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-841740", "impacts": "dcae, dmaap", "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Bulk Performance Measurement", "sections": [ "Bulk Performance Measurement", @@ -38645,16 +66523,52 @@ "validated_by": "", "validation_mode": "" }, + "R-842258": { + "description": "The VNF **MUST** include a configuration, e.g., a heat template or CSAR\npackage, that specifies the targetted parameters, e.g. a limited set of\nports, over which the VNF will communicate (including internal, external\nand management communication).", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-842258", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-84322": { "description": "A VNF's Heat Orchestration Template's Resource property parameter that\nis associated with an internal network **MUST** include\n``int_{network-role}`` as part of the parameter name,\nwhere ``int_`` is a hard coded string.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", "full_title": "", "hide_links": "", "id": "R-84322", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "{network-role}", "sections": [ "{network-role}" @@ -38674,14 +66588,18 @@ }, "R-84366": { "description": "The xNF Package **MUST** include documentation describing\nxNF Functional APIs that are utilized to build network and\napplication services. This document describes the externally exposed\nfunctional inputs and outputs for the xNF, including interface\nformat and protocols supported.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-84366", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Description", "sections": [ "Resource Description", @@ -38700,16 +66618,52 @@ "validated_by": "", "validation_mode": "" }, + "R-844011": { + "description": "The VNF MUST not store authentication credentials to itself in clear\ntext or any reversible form and must use salting.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-844011", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-84457": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::PortTuple``\nResource ID **MAY** use the naming convention\n\n* ``{vm-type}_RPT``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``RPT`` signifies that it is the Resource Port Tuple", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-84457", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::PortTuple", "sections": [ "OS::ContrailV2::PortTuple", @@ -38731,14 +66685,18 @@ }, "R-84473": { "description": "The VNF **MUST** enable DPDK in the guest OS for VNF's requiring\nhigh packets/sec performance. High packet throughput is defined as greater\nthan 500K packets/sec.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-84473", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -38758,14 +66716,18 @@ }, "R-84517": { "description": "The Contrail GUI has a limitation displaying special characters.\nThe issue is documented in\nhttps://bugs.launchpad.net/juniperopenstack/+bug/1590710.\nIt is recommended that special **SHOULD** characters be avoided.\nHowever, if special characters must be used, note that for\nthe following resources:\n\n* Virtual Machine\n* Virtual Network\n* Port\n* Security Group\n* Policies\n* IPAM Creation\n\nthe only special characters supported\nare - \\\" ! $\\ \\ ' ( ) = ~ ^ | @ ` { } [ ] > , . _\"", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property", "full_title": "", "hide_links": "", "id": "R-84517", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Contrail Issue with Values for the Property Name", "sections": [ "Contrail Issue with Values for the Property Name", @@ -38786,14 +66748,18 @@ }, "R-84879": { "description": "The xNF **MUST** have the capability of maintaining a primary\nand backup DNS name (URL) for connecting to ONAP collectors, with the\nability to switch between addresses based on conditions defined by policy\nsuch as time-outs, and buffering to store messages until they can be\ndelivered. At its discretion, the service provider may choose to populate\nonly one collector address for a xNF. In this case, the network will\npromptly resolve connectivity problems caused by a collector or network\nfailure transparently to the xNF.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-84879", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Addressing and Delivery Protocol", "sections": [ "Addressing and Delivery Protocol", @@ -38814,15 +66780,19 @@ "validation_mode": "" }, "R-85235": { - "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see Requirement Requirements R-52425 and R-46461),\nand an IPv4 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``comma_delimited_list``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_int_{network-role}_ips``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n * ``{network-role}`` is the {network-role} of the internal\n network", + "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see Requirements R-52425 and R-46461),\nand an IPv4 address is assigned\nusing the property ``fixed_ips``\nmap property ``ip_address`` and the parameter type is defined as a\n``comma_delimited_list``,\nthe parameter name **MUST** follow the\nnaming convention\n\n * ``{vm-type}_int_{network-role}_ips``\n\nwhere\n\n * ``{vm-type}`` is the {vm-type} associated with the\n ``OS::Nova::Server``\n * ``{network-role}`` is the {network-role} of the internal\n network", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-85235", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -38842,19 +66812,23 @@ "validation_mode": "static" }, "R-85328": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource **MAY**\ncontain the ``metadata`` map value parameter ``vm_role``.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource property\n``metadata`` **MAY**\ncontain the key/value pair ``vm_role`` and the value **MUST** be\nobtained either via\n\n- ``get_param``\n- hard coded in the key/value pair ``vm_role``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-85328", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "vm_role", "sections": [ "vm_role", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -38871,14 +66845,18 @@ }, "R-85419": { "description": "The VNF **SHOULD** support OAuth 2.0 authorization using an external\nAuthorization Server.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-85419", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -38899,14 +66877,18 @@ }, "R-85653": { "description": "The xNF **MUST** provide metrics (e.g., number of sessions,\nnumber of subscribers, number of seats, etc.) to ONAP for tracking\nevery license.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-85653", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Licensing Requirements", "sections": [ "Licensing Requirements", @@ -38926,15 +66908,19 @@ "validation_mode": "" }, "R-85734": { - "description": "If a VNF's Heat Orchestration Template contains the property ``name``\nfor a non ``OS::Nova::Server`` resource, the intrinsic function\n``str_replace`` **MUST** be used in conjunction with the ONAP\nsupplied metadata parameter ``vnf_name`` to generate a unique value.", + "description": "If a VNF's Heat Orchestration Template contains the property ``name``\nfor a non ``OS::Nova::Server`` resource, the intrinsic function\n``str_replace`` **MUST** be used in conjunction with the ONAP\nsupplied metadata parameter ``vnf_name`` to generate a unique value.\nAdditional data **MAY** be used in the ``str_replace`` construct\nto generate a unique value.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property", "full_title": "", "hide_links": "", "id": "R-85734", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Property \u201cname\u201d", "sections": [ "Resource Property \u201cname\u201d" @@ -38952,20 +66938,24 @@ "validated_by": "", "validation_mode": "static" }, - "R-85800": { - "description": "When the VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``name`` parameter is defined as a ``comma_delimited_list``,\na parameter **MUST** be delcared once for all ``OS::Nova::Server`` resources\nassociated with the ``{vm-type}``.", + "R-859208": { + "description": "The VNF **MUST** log automated remote activities performed with\nelevated privileges.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", - "id": "R-85800", + "id": "R-859208", "impacts": "", - "introduced": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "Property: Name", + "parts": {}, + "section_name": "VNF Security Analytics Requirements", "sections": [ - "Property: Name", - "Resource: OS::Nova::Server - Parameters" + "VNF Security Analytics Requirements", + "VNF Security" ], "status": null, "tags": [], @@ -38976,20 +66966,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", - "validation_mode": "static" + "validation_mode": "" }, "R-85959": { "description": "The VNF **SHOULD** automatically enable/disable added/removed\nsub-components or component so there is no manual intervention required.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-85959", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "System Resource Optimization", "sections": [ "System Resource Optimization", @@ -39010,14 +67004,18 @@ }, "R-85991": { "description": "The xNF provider **MUST** provide a universal license key\nper xNF to be used as needed by services (i.e., not tied to a VM\ninstance) as the recommended solution. The xNF provider may provide\npools of Unique xNF License Keys, where there is a unique key for\neach xNF instance as an alternate solution. Licensing issues should\nbe resolved without interrupting in-service xNFs.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-85991", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Licensing Requirements", "sections": [ "Licensing Requirements", @@ -39038,14 +67036,18 @@ }, "R-86182": { "description": "When the VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see Requirements R-52425 and R-46461),\nand the internal network is created in a\ndifferent Heat Orchestration Template than the ``OS::Neutron::Port``,\nthe ``network`` parameter name **MUST**\n\n * follow the naming convention ``int_{network-role}_net_id`` if the Neutron\n network UUID value is used to reference the network\n * follow the naming convention ``int_{network-role}_net_name`` if the\n OpenStack network name in is used to reference the network.\n\nwhere ``{network-role}`` is the network-role of the internal network and\na ``get_param`` **MUST** be used as the intrinsic function.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-86182", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: network", "sections": [ "Property: network", @@ -39066,14 +67068,18 @@ }, "R-86235": { "description": "The xNF Package **MUST** include documentation about the monitoring\nparameters that must include latencies, success rates, retry rates, load\nand quality (e.g., DPM) for the key transactions/functions supported by\nthe xNF and those that must be exercised by the xNF in order to perform\nits function.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-86235", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -39092,47 +67098,23 @@ "validated_by": "", "validation_mode": "" }, - "R-86237": { - "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vf_module_id`` is passed into a\nNested YAML\nfile, the parameter name ``vf_module_id`` **MUST NOT** change.", - "full_title": "", - "hide_links": "", - "id": "R-86237", - "impacts": "", - "introduced": "", - "keyword": "MUST NOT", - "links": [], - "notes": "", - "section_name": "vf_module_id", - "sections": [ - "vf_module_id", - "Resource: OS::Nova::Server - Metadata Parameters" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "casablanca", - "validated_by": "", - "validation_mode": "static" - }, "R-86261": { - "description": "The VNF **MUST NOT** allow vendor access to VNFs remotely.", + "description": "The VNF **MUST** support the ability to prohibit remote access to the VNF\nvia a host based security mechanism.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-86261", "impacts": "", "introduced": "", - "keyword": "MUST NOT", + "is_need": true, + "is_part": false, + "keyword": "MUST", "links": [], "notes": "", - "section_name": "VNF Identity and Access Management Requirements", + "parts": {}, + "section_name": "VNF General Security Requirements", "sections": [ - "VNF Identity and Access Management Requirements", + "VNF General Security Requirements", "VNF Security" ], "status": null, @@ -39144,20 +67126,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-86285": { "description": "A VNF's Heat Orchestration template **MUST** have a\ncorresponding environment file.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-86285", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Environment File Format", "sections": [ "Environment File Format", @@ -39172,24 +67158,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-86476": { - "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vm_role`` value **MUST**\nonly contain alphanumeric characters and underscores '_'.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource\nproperty ``metadata`` key/value pair ``vm_role`` value **MUST**\nonly contain alphanumeric characters and underscores (i.e., '_').", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-86476", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "vm_role", "sections": [ "vm_role", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -39206,14 +67196,18 @@ }, "R-86497": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::Cinder::VolumeAttachment``\nResource ID\n**SHOULD**\nuse the naming convention\n\n* ``{vm-type}_volume_attachment_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{index}`` starts at zero and increments by one", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-86497", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Cinder::VolumeAttachment", "sections": [ "OS::Cinder::VolumeAttachment", @@ -39235,14 +67229,18 @@ }, "R-86585": { "description": "The VNFC **SHOULD** minimize the use of state within\na VNFC to facilitate the movement of traffic from one instance\nto another.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-86585", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -39262,14 +67260,18 @@ }, "R-86586": { "description": "The xNF **MUST** use the YANG configuration models and RESTCONF\n[RFC8040] (https://tools.ietf.org/html/rfc8040).", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-86586", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Asynchronous and Synchronous Data Delivery", "sections": [ "Asynchronous and Synchronous Data Delivery", @@ -39291,14 +67293,18 @@ }, "R-86588": { "description": "A VNF's Heat Orchestration Template's ``{network-role}`` case in Resource\nproperty parameter names **SHOULD** match the case of ``{network-role}``\nin Resource IDs and vice versa.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", "full_title": "", "hide_links": "", "id": "R-86588", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "{network-role}", "sections": [ "{network-role}" @@ -39318,14 +67324,18 @@ }, "R-86758": { "description": "The VNF **SHOULD** provide an automated test suite to validate\nevery new version of the software on the target environment(s). The tests\nshould be of sufficient granularity to independently test various\nrepresentative VNF use cases throughout its lifecycle. Operations might\nchoose to invoke these tests either on a scheduled basis or on demand to\nsupport various operations functions including test, turn-up and\ntroubleshooting.", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", "id": "R-86758", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Devops", "sections": [ "VNF Devops" @@ -39344,15 +67354,19 @@ "validation_mode": "" }, "R-86835": { - "description": "The VNF **MUST** set the default settings for user access\nto sensitive commands and data to deny authorization.", + "description": "The VNF **MUST** set the default settings for user access\nto deny authorization, except for a super user type of account.\nWhen a VNF is added to the network, nothing should be able to use\nit until the super user configures the VNF to allow other users\n(human and application) have access.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-86835", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -39367,20 +67381,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-86926": { "description": "A VNF's incremental module **MAY** be used for scale out only.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-86926", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -39401,14 +67419,18 @@ }, "R-86972": { "description": "A VNF **SHOULD** create the internal network in the VNF's Heat\nOrchestration Template Base Module.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", "id": "R-86972", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Internal Networks", "sections": [ "Internal Networks", @@ -39429,14 +67451,18 @@ }, "R-87004": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::Cinder::Volume``\nResource ID\n**SHOULD**\nuse the naming convention\n\n* ``{vm-type}_volume_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{index}`` starts at zero and increments by one", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-87004", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "OS::Cinder::Volume", "sections": [ "OS::Cinder::Volume", @@ -39457,15 +67483,19 @@ "validation_mode": "" }, "R-87096": { - "description": "A VNF **MAY** contain zero, one or more than one internal networks.", + "description": "A VNF **MAY** contain zero, one or more than one internal network.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", "id": "R-87096", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Internal Networks", "sections": [ "Internal Networks", @@ -39486,14 +67516,18 @@ }, "R-87123": { "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_{network-role}_v6_ip_{index}``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-87123", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -39512,16 +67546,53 @@ "validated_by": "", "validation_mode": "static" }, + "R-87234": { + "description": "The VNF package provided by a VNF vendor **MAY** be either with\nTOSCA-Metadata directory (CSAR Option 1) or without TOSCA-Metadata\ndirectory (CSAR Option 2) as specified in ETSI GS NFV-SOL004. On-boarding\nentity (ONAP SDC) must support both options.\n\n**Note:** SDC supports only the CSAR Option 1 in Casablanca. The Option 2\nwill be considered in future ONAP releases,", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-87234", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Package Structure and Format", + "sections": [ + "VNF Package Structure and Format", + "VNF CSAR Package", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-87247": { "description": "VNF Heat Orchestration Template's Incremental Module file name\n**MUST** contain only alphanumeric characters and underscores\n'_' and **MUST NOT** contain the case insensitive word ``base``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-87247", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Incremental Modules", "sections": [ "Incremental Modules", @@ -39537,20 +67608,56 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, + "R-872986": { + "description": "The VNF **MUST** store Authentication Credentials used to authenticate to\nother systems encrypted except where there is a technical need to store\nthe password unencrypted in which case it must be protected using other\nsecurity techniques that include the use of file and directory permissions.\nIdeally, credentials SHOULD rely on a HW Root of Trust, such as a\nTPM or HSM.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-872986", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF General Security Requirements", + "sections": [ + "VNF General Security Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-87352": { "description": "The VNF **SHOULD** utilize Cloud health checks, when available\nfrom the Network Cloud, from inside the application through APIs to check\nthe network connectivity, dropped packets rate, injection, and auto failover\nto alternate sites if needed.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-87352", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Monitoring & Dashboard", "sections": [ "Monitoring & Dashboard", @@ -39571,14 +67678,18 @@ }, "R-87485": { "description": "A VNF's Heat Orchestration Template's file extension **MUST**\nbe in the lower case format ``.yaml`` or ``.yml``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-87485", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP Heat Orchestration Template Filenames", "sections": [ "ONAP Heat Orchestration Template Filenames", @@ -39599,14 +67710,18 @@ }, "R-87563": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``\nthat is configuring an IPv6 Address on a port attached to an internal network\nResource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_int_{network-role}_vmi_{vmi_index}_v6_IP_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{vmi_index}`` is the instance of the the virtual machine interface\n (e.g., port) on the vm-type\n attached to the network of ``{network-role}``\n* ``v6_IP`` signifies that an IPv6 address is being configured\n* ``{index}`` is the index of the IPv6 address", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-87563", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::InstanceIp", "sections": [ "OS::ContrailV2::InstanceIp", @@ -39628,18 +67743,22 @@ }, "R-87564": { "description": "The xNF **SHOULD** conform its YANG model to RFC 7317,\n\"A YANG Data Model for System Management\".", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-87564", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -39658,14 +67777,18 @@ }, "R-87817": { "description": "When the VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``name`` parameter is defined as a ``comma_delimited_list``,\nthe parameter name **MUST** follow the naming convention\n``{vm-type}_names``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-87817", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: Name", "sections": [ "Property: Name", @@ -39684,48 +67807,24 @@ "validated_by": "", "validation_mode": "static" }, - "R-87848": { - "description": "When using the intrinsic function get_file, ONAP does not support\na directory hierarchy for included files. All files must be in a\nsingle, flat directory per VNF. A VNF's Heat Orchestration\nTemplate's ``get_file`` target files **MUST** be in the same\ndirectory hierarchy as the VNF's Heat Orchestration Templates.", - "full_title": "", - "hide_links": "", - "id": "R-87848", - "impacts": "", - "introduced": "", - "keyword": "MUST", - "links": [], - "notes": "", - "section_name": "Heat Files Support (get_file)", - "sections": [ - "Heat Files Support (get_file)", - "ONAP Heat Heat Template Constructs" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "casablanca", - "validated_by": "", - "validation_mode": "static" - }, "R-88026": { "description": "The xNF **MUST** include a NETCONF server enabling\nruntime configuration and lifecycle management capabilities.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-88026", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Management", "sections": [ "Configuration Management", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -39743,19 +67842,23 @@ "validation_mode": "" }, "R-88031": { - "description": "The xNF **SHOULD** implement the protocol operation:\n**delete-config(target) -** Delete the named configuration\ndatastore target.", + "description": "The xNF **SHOULD** implement the protocol operation:\n``delete-config(target)`` - Delete the named configuration\ndata store target.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-88031", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -39768,20 +67871,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-88199": { "description": "The VNF **MUST** utilize a persistent datastore service that\ncan meet the data performance/latency requirements. (For example:\nDatastore service could be a VNFC in VNF or a DBaaS in the Cloud\nexecution environment)", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-88199", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -39801,14 +67908,18 @@ }, "R-88482": { "description": "The xNF **SHOULD** use REST using HTTPS delivery of plain\ntext JSON for moderate sized asynchronous data sets, and for high\nvolume data sets when feasible.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-88482", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Addressing and Delivery Protocol", "sections": [ "Addressing and Delivery Protocol", @@ -39830,14 +67941,18 @@ }, "R-88524": { "description": "A VNF's Heat Orchestration Template's Volume Template\nOutput Parameter names\n**MUST** contain ``{vm-type}`` when appropriate.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", "full_title": "", "hide_links": "", "id": "R-88524", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP Volume Template Output Parameters:", "sections": [ "ONAP Volume Template Output Parameters:", @@ -39858,18 +67973,22 @@ }, "R-88536": { "description": "A VNF's Heat Orchestration Template's OS::Nova::Server\nResource **SHOULD** contain the metadata map value parameter\n'environment_context'.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-88536", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "environment_context", "sections": [ "environment_context", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -39886,14 +68005,18 @@ }, "R-88540": { "description": "A VNF's Heat Orchestration Template's Resource ``OS::ContrailV2::InstanceIp``\nthat is configuring an IPv6 Address on a sub-interface port attached to a\nsub-interface network Resource ID **MUST**\nuse the naming convention\n\n* ``{vm-type}_{vm-type_index}_subint_{network-role}_vmi_{vmi_index}_v6_IP_{index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port is attached to\n* ``{vmi_index}`` is the instance of the the virtual machine interface\n (e.g., port) on the vm-type\n attached to the network of ``{network-role}``\n* ``v6_IP`` signifies that an IPv6 address is being configured\n* ``{index}`` is the index of the IPv6 address", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-88540", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::InstanceIp", "sections": [ "OS::ContrailV2::InstanceIp", @@ -39915,14 +68038,18 @@ }, "R-88863": { "description": "A VNF's Heat Orchestration Template's parameter defined\nin a non-nested YAML file as type\n``number`` **MUST** have a parameter constraint of ``range`` or\n``allowed_values`` defined.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-88863", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "constraints", "sections": [ "constraints", @@ -39939,24 +68066,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-88899": { "description": "The xNF **MUST** support simultaneous operations\nwithin the context of this locking requirements framework.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-88899", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -39975,14 +68106,18 @@ }, "R-89010": { "description": "The VNF **MUST** survive any single points of software failure\ninternal to the VNF (e.g., in memory structures, JMS message queues).", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-89010", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "All Layer Redundancy", "sections": [ "All Layer Redundancy", @@ -40001,16 +68136,53 @@ "validated_by": "", "validation_mode": "" }, + "R-894004": { + "description": "When the xNF sets up a HTTP or HTTPS connection to the collector, it **MUST**\nprovide a username and password to the DCAE VES Collector for HTTP Basic\nAuthentication.\n\nNote: HTTP Basic Authentication has 4 steps: Request, Authenticate,\nAuthorization with Username/Password Credentials, and Authentication Status\nas per RFC7617 and RFC 2617.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-894004", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Security", + "sections": [ + "Security", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "dublin", + "validated_by": "", + "validation_mode": "" + }, "R-89474": { "description": "The VNF **MUST** log the field \"Login ID\" in the security audit logs.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-89474", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -40031,14 +68203,18 @@ }, "R-89571": { "description": "The xNF **MUST** support and provide artifacts for configuration\nmanagement using at least one of the following technologies;\na) Netconf/YANG, b) Chef, or c) Ansible.\n\nNote: The requirements for Netconf/YANG, Chef, and Ansible protocols\nare provided separately and must be supported only if the corresponding\nprotocol option is provided by the xNF providor.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-89571", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Configuration", "sections": [ "Resource Configuration", @@ -40059,14 +68235,18 @@ }, "R-89800": { "description": "The VNF **MUST NOT** require Hypervisor-level customization\nfrom the cloud provider.", + "docname": "Chapter4/Devops", "full_title": "", "hide_links": "", "id": "R-89800", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Devops", "sections": [ "VNF Devops" @@ -40086,14 +68266,18 @@ }, "R-89913": { "description": "A VNF's Heat Orchestration Template's Cinder Volume Module Output\nParameter(s)\n**MUST** include the\nUUID(s) of the Cinder Volumes created in template,\nwhile others **MAY** be included.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-89913", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP Volume Module Output Parameters", "sections": [ "ONAP Volume Module Output Parameters", @@ -40109,24 +68293,28 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-90007": { - "description": "The xNF **MUST** implement the protocol operation:\n**close-session()**- Gracefully close the current session.", + "description": "The xNF **MUST** implement the protocol operation:\n``close-session()`` - Gracefully close the current session.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-90007", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -40139,20 +68327,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-90022": { - "description": "A VNF's Nested YAML file **MAY** be invoked more than\nonce by a VNF's Heat Orchestration Template.", + "description": "A VNF's Nested YAML file **MAY** be invoked more than once by\na VNF's Heat Orchestration Template.", + "docname": "Chapter5/Heat/ONAP Heat Template Constructs", "full_title": "", "hide_links": "", "id": "R-90022", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Nested Heat Template Requirements", "sections": [ "Nested Heat Template Requirements", @@ -40161,6 +68353,38 @@ ], "status": null, "tags": [], + "target": "", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-901331": { + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``image`` value **MUST** be be obtained via a ``get_param``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", + "full_title": "", + "hide_links": "", + "id": "R-901331", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Property: image", + "sections": [ + "Property: image", + "Resource: OS::Nova::Server - Parameters" + ], + "status": null, + "tags": [], "target": "VNF", "test": "", "test_case": "", @@ -40170,18 +68394,22 @@ "type_name": "Requirement", "updated": "", "validated_by": "", - "validation_mode": "" + "validation_mode": "static" }, "R-90152": { "description": "A VNF's Heat Orchestration Template's\n``resources:`` section **MUST** contain the declaration of at\nleast one resource.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-90152", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "resources", "sections": [ "resources", @@ -40203,14 +68431,18 @@ }, "R-90206": { "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_int_{network-role}_int_ips``\n**MUST** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-90206", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -40231,14 +68463,18 @@ }, "R-90279": { "description": "A VNF Heat Orchestration's template's parameter **MUST** be used\nin a resource with the exception of the parameters for the\n``OS::Nova::Server`` resource property ``availability_zone``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-90279", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "parameters", "sections": [ "parameters", @@ -40254,20 +68490,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "static" }, "R-90526": { "description": "A VNF Heat Orchestration Template parameter declaration **MUST NOT**\ncontain the ``default`` attribute.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-90526", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "default", "sections": [ "default", @@ -40290,14 +68530,18 @@ }, "R-90632": { "description": "The xNF Package **MUST** include documentation about KPIs and\nmetrics that need to be collected at each VM for capacity planning\nand performance management purposes.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-90632", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Control Loop", "sections": [ "Resource Control Loop", @@ -40318,14 +68562,18 @@ }, "R-90748": { "description": "A VNF's Heat Orchestration Template's Resource OS::Heat::CinderVolume\n**MAY** be defined in an Incremental Module.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-90748", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -40344,16 +68592,53 @@ "validated_by": "", "validation_mode": "" }, + "R-908291": { + "description": "The XNF **MAY** leverage bulk xNF telemetry transmission mechanism, as\ndepicted in Figure 4, in instances where other transmission methods are not\npractical or advisable.", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-908291", + "impacts": "dcae, dmaap", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MAY", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Bulk Telemetry Transmission", + "sections": [ + "Bulk Telemetry Transmission", + "Transports and Protocols Supporting Resource Interfaces", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "in_service" + }, "R-91125": { "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``image`` parameter **MUST** be enumerated in the Heat Orchestration\nTemplate's Environment File and a value **MUST** be assigned.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-91125", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: image", "sections": [ "Property: image", @@ -40374,14 +68659,18 @@ }, "R-91273": { "description": "A VNF Heat Orchestration's template's parameter for the\n``OS::Nova::Server`` resource property ``availability_zone``\n**MAY NOT** be used in any ``OS::Nova::Server``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-91273", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY NOT", "links": [], "notes": "", + "parts": {}, "section_name": "parameters", "sections": [ "parameters", @@ -40397,20 +68686,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-91342": { "description": "A VNF Heat Orchestration Template's Base Module's Environment File\n**MUST** be named identical to the VNF Heat Orchestration Template's\nBase Module with ``.y[a]ml`` replaced with ``.env``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-91342", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Base Modules", "sections": [ "Base Modules", @@ -40432,14 +68725,18 @@ }, "R-91497": { "description": "A VNF's incremental module **MAY** be used for both deployment and\nscale out.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-91497", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP VNF Modularity Overview", "sections": [ "ONAP VNF Modularity Overview", @@ -40459,19 +68756,23 @@ "validation_mode": "" }, "R-91745": { - "description": "The xNF **MUST** update the Ansible Server and other entities\nstoring and using the SSH keys for authentication when the SSH\nkeys used by Ansible are regenerated/updated.\n\nNote: Ansible Server itself may be used to upload new SSH public\nkeys onto supported VNFs.", + "description": "The xNF **MUST** update the Ansible Server and other entities\nstoring and using the SSH keys for authentication when the SSH\nkeys used by Ansible are regenerated/updated.\n\n**Note**: Ansible Server itself may be used to upload new SSH public\nkeys onto supported xNFs.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-91745", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Client Requirements", "sections": [ "Ansible Client Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -40484,20 +68785,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-91810": { "description": "If a VNF requires ONAP to assign a Virtual IP (VIP) Address to\nports connected an external network, the port\n**MUST NOT** have more than one IPv4 VIP address.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-91810", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "VIP Assignment, External Networks, Supported by Automation", "sections": [ "VIP Assignment, External Networks, Supported by Automation", @@ -40519,14 +68824,18 @@ }, "R-92193": { "description": "A VNF's Heat Orchestration Template's parameter\n``{network-role}_net_fqdn``\n**MUST NOT** be enumerated in the VNF's Heat Orchestration Template's\nEnvironment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Contrail Resource Parameters", "full_title": "", "hide_links": "", "id": "R-92193", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "External Networks", "sections": [ "External Networks", @@ -40547,15 +68856,19 @@ "validation_mode": "static" }, "R-92207": { - "description": "The VNF **SHOULD** implement a mechanism for automated and\nfrequent \"system configuration (automated provisioning / closed loop)\"\nauditing.", + "description": "The VNF **SHOULD** provide a mechanism that enables the operators to\nperform automated system configuration auditing at configurable time\nintervals.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-92207", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -40570,20 +68883,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-92571": { "description": "The VNF **MUST** provide operational instrumentation such as\nlogging, so as to facilitate quick resolution of issues with the VNF to\nprovide service continuity.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-92571", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Monitoring & Dashboard", "sections": [ "Monitoring & Dashboard", @@ -40604,14 +68921,18 @@ }, "R-92635": { "description": "A VNF's Heat Orchestration Template **MUST** be compliant with the\nOpenStack Template Guide.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-92635", "impacts": "", - "introduced": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP Heat Orchestration Template Format", "sections": [ "ONAP Heat Orchestration Template Format" @@ -40630,19 +68951,23 @@ "validation_mode": "static" }, "R-92866": { - "description": "The xNF **MUST** include as part of post-instantiation configuration\ndone by Ansible Playbooks the removal/update of the SSH public key from\n/root/.ssh/authorized_keys, and update of SSH keys loaded through\ninstantiation to support Ansible. This may include download and install of\nnew SSH keys and new mechanized IDs.", + "description": "The xNF **MUST** include as part of post-instantiation configuration\ndone by Ansible Playbooks the removal/update of the SSH public key from\n/root/.ssh/authorized_keys, and update of SSH keys loaded through\ninstantiation to support Ansible. This may include creating Mechanized user\nID(s) used by the Ansible Server(s) on VNF VM(s) and uploading and\ninstalling new SSH keys used by the mechanized use ID(s).", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-92866", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Ansible Client Requirements", "sections": [ "Ansible Client Requirements", - "VNF Configuration via Ansible Requirements", + "xNF Configuration via Ansible Requirements", "Ansible Standards and Capabilities", "Configuration Management" ], @@ -40655,20 +68980,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-92935": { "description": "The VNF **SHOULD** minimize the propagation of state information\nacross multiple data centers to avoid cross data center traffic.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-92935", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "Minimize Cross Data-Center Traffic", "sections": [ "Minimize Cross Data-Center Traffic", @@ -40689,14 +69018,18 @@ }, "R-93030": { "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_{network-role}_v6_ips``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-93030", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -40715,16 +69048,52 @@ "validated_by": "", "validation_mode": "static" }, + "R-931076": { + "description": "The VNF **MUST** support account names that contain at least A-Z, a-z,\n0-9 character sets and be at least 6 characters in length.", + "docname": "Chapter4/Security", + "full_title": "", + "hide_links": "", + "id": "R-931076", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "VNF Identity and Access Management Requirements", + "sections": [ + "VNF Identity and Access Management Requirements", + "VNF Security" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-93177": { "description": "When the VNF's Heat Orchestration Template's resource\n``OS::Neutron::Port`` is attaching to an internal network (per the\nONAP definition, see Requirements R-52425 and R-46461),\nand the internal network is created in the\nsame Heat Orchestration Template as the ``OS::Neutron::Port``,\nthe ``network`` property value **MUST** obtain the UUID\nof the internal network by using the intrinsic function\n``get_resource``\nand referencing the Resource ID of the internal network.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-93177", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: network", "sections": [ "Property: network", @@ -40743,49 +69112,56 @@ "validated_by": "", "validation_mode": "static" }, - "R-93272": { - "description": "A VNF **MAY** have one or more ports connected to a unique\nexternal network. All VNF ports connected to the unique external\nnetwork **MUST** have Cloud Assigned IP Addresses\nor **MUST** have ONAP SDN-C assigned IP addresses.", + "R-932071": { + "description": "The xNF provider **MUST** reach agreement with the Service Provider on\nthe selected methods for encoding, serialization and data delivery\nprior to the on-boarding of the xNF into ONAP SDC Design Studio.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", - "id": "R-93272", - "impacts": "", - "introduced": "", - "keyword": "MAY", + "id": "R-932071", + "impacts": "dcae", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", "links": [], "notes": "", - "section_name": "Items to Note", + "parts": {}, + "section_name": "Transports and Protocols Supporting Resource Interfaces", "sections": [ - "Items to Note", - "Introduction", - "Resource: OS::Neutron::Port - Parameters" + "Transports and Protocols Supporting Resource Interfaces", + "Monitoring & Management" ], "status": null, "tags": [], - "target": "VNF", + "target": "XNF", "test": "", "test_case": "", "test_file": "", "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "casablanca", + "updated": "", "validated_by": "", - "validation_mode": "" + "validation_mode": "none" }, "R-93443": { "description": "The xNF **MUST** define all data models in YANG [RFC6020],\nand the mapping to NETCONF shall follow the rules defined in this RFC.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-93443", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -40803,15 +69179,19 @@ "validation_mode": "" }, "R-93496": { - "description": "The VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nproperty ``fixed_ips``\nmap property ``ip_address``\nparameter associated with an internal network, i.e.,\n\n * ``{vm-type}_int_{network-role}_ip_{index}``\n * ``{vm-type}_int_{network-role}_ip_v6_{index}``\n * ``{vm-type}_int_{network-role}_ips``\n * ``{vm-type}_int_{network-role}_v6_ips``\n\n\n**MUST** be enumerated in the Heat Orchestration\nTemplate's Environment File and IP addresses **MUST** be\nassigned.", + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Neutron::Port``\nproperty ``fixed_ips``\nmap property ``ip_address``\nparameter associated with an internal network, i.e.,\n\n * ``{vm-type}_int_{network-role}_ip_{index}``\n * ``{vm-type}_int_{network-role}_v6_ip_{index}``\n * ``{vm-type}_int_{network-role}_ips``\n * ``{vm-type}_int_{network-role}_v6_ips``\n\n\n**MUST** be enumerated in the Heat Orchestration\nTemplate's Environment File and IP addresses **MUST** be\nassigned.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-93496", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -40832,14 +69212,18 @@ }, "R-93860": { "description": "The VNF **SHOULD** provide the capability to integrate with an\nexternal encryption service.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-93860", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Cryptography Requirements", "sections": [ "VNF Cryptography Requirements", @@ -40859,19 +69243,23 @@ "validation_mode": "" }, "R-94084": { - "description": "The xNF **MUST** support ONAP Controller's **ConfigScaleOut** command.", + "description": "The xNF **MUST** support APPC/SDN-C ``ConfigScaleOut`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-94084", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Commands", "sections": [ "Configuration Commands", - "Controller Interactions With VNF", + "Controller Interactions With xNF", "Configuration Management" ], "status": null, @@ -40883,20 +69271,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-94509": { "description": "A VNF Heat Orchestration Template's Incremental Module's Environment File\n**MUST** be named identical to the VNF Heat Orchestration Template's\nIncremental Module with ``.y[a]ml`` replaced with ``.env``.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-94509", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Incremental Modules", "sections": [ "Incremental Modules", @@ -40918,14 +69310,18 @@ }, "R-94525": { "description": "The VNF **MUST** log connections to the network listeners of the\nresource.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-94525", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -40944,16 +69340,54 @@ "validated_by": "", "validation_mode": "" }, + "R-94567": { + "description": "The xNF **MUST** provide Ansible playbooks that are designed to run using\nan inventory hosts file in a supported format with only IP addresses or\nIP addresses and VM/xNF names.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-94567", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-94669": { "description": "If a VNF has one IPv6 OAM Management IP Address and the\nIP Address needs to be inventoried in ONAP's A&AI\ndatabase, an output parameter **MUST** be declared in only one of the\nVNF's Heat Orchestration Templates and the parameter **MUST** be named\n``oam_management_v6_address``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", "full_title": "", "hide_links": "", "id": "R-94669", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OAM Management IP Addresses", "sections": [ "OAM Management IP Addresses", @@ -40975,14 +69409,18 @@ }, "R-94978": { "description": "The VNF **MUST** provide a mechanism and tool to perform a graceful\nshutdown of all the containers (VMs) in the VNF without impacting service\nor service quality assuming another VNF in same or other geographical\nlocation can take over traffic and process service requests.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-94978", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Resilient Error Handling", "sections": [ "Application Resilient Error Handling", @@ -41001,16 +69439,52 @@ "validated_by": "", "validation_mode": "" }, + "R-952314": { + "description": "If the PNF set up a TLS connection and mutual (two-way) authentication is\nbeing used, then the PNF **MUST** provide its own X.509v3 Certificate to\nthe DCAE VES Collector for authentication.\n\nNote: This allows TLS authentication by DCAE VES Collector.\n\nNote: The PNF got its X.509 certificate through Enrollment with an\noperator certificate authority or a X.509 vendor certificate from the\nvendor factory CA.\n\nNote: In R3 three authentication options are supported:\n\n(1) HTTP with Username & Password and no TLS.\n\n(2) HTTP with Username & Password & TLS with two-way certificate\n authentication.\n\n(3) HTTP with Username & Password & TLS with server-side\n certificate authentication.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-952314", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-95303": { "description": "A VNF's Heat Orchestration Template **MUST** be defined using valid YAML.", + "docname": "Chapter5/Heat/General Guidelines for Heat", "full_title": "", "hide_links": "", "id": "R-95303", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "YAML Format", "sections": [ "YAML Format", @@ -41029,20 +69503,57 @@ "validated_by": "", "validation_mode": "static" }, + "R-95321": { + "description": "The VNFD provided by VNF vendor may use the below described TOSCA\nrelationships. An on-boarding entity (ONAP SDC) **MUST** support them.\n\n **tosca.relationships.nfv.VirtualBindsTo**\n\n This relationship type represents an association relationship between\n VDU and CP node types.\n\n **tosca.relationships.nfv.VirtualLinksTo**\n\n This relationship type represents an association relationship between\n the VduCpd's and VirtualLinkDesc node types.", + "docname": "Chapter5/Tosca", + "full_title": "", + "hide_links": "", + "id": "R-95321", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Relationship Types", + "sections": [ + "Relationship Types", + "TOSCA VNF Descriptor", + "ONAP TOSCA VNFD Requirements" + ], + "status": null, + "tags": [], + "target": "VNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-95430": { - "description": "A VNF's Heat Orchestration Template's OS::Nova::Server Resource\n``metadata`` map value parameter ``vm_role`` **MUST**\nbe declared as type: ``string``.", + "description": "If a VNF's Heat Orchestration Template's ``OS::Nova::Server``\nresource property\n``metadata`` key/value pair ``vm_role`` value is obtained via\n``get_param``, the parameter **MUST** be declared as ``vm_role``\nand the parameter **MUST** be defined as type: ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-95430", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "vm_role", "sections": [ "vm_role", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -41059,14 +69570,18 @@ }, "R-95864": { "description": "The VNF **MUST** support digital certificates that comply with X.509\nstandards.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-95864", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Data Protection Requirements", "sections": [ "VNF Data Protection Requirements", @@ -41087,18 +69602,22 @@ }, "R-95950": { "description": "The xNF **MUST** provide a NETCONF interface fully defined\nby supplied YANG models for the embedded NETCONF server.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-95950", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Configuration Management", "sections": [ "Configuration Management", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -41117,14 +69636,18 @@ }, "R-96227": { "description": "A VNF's Heat Orchestration Template's parameter defined\nin a non-nested YAML file as type\n``json`` **MAY** have a parameter constraint defined.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Template Format", "full_title": "", "hide_links": "", "id": "R-96227", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "constraints", "sections": [ "constraints", @@ -41141,20 +69664,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-96253": { "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::VirtualMachineInterface`` that is attaching to an external network\nResource ID **MUST** use the naming convention\n\n* ``{vm-type}_{vm-type_index}_{network-role}_vmi_{vmi_index}``\n\nwhere\n\n* ``{vm-type}`` is the vm-type\n* ``{vm-type_index}`` is the instance of the ``{vm-type}``\n* ``{network-role}`` is the network-role of the network\n that the port (i.e. virtual machine interface) is attached to\n* ``{vmi_index}`` is the instance of the the vmi on the vm-type\n attached to the network of ``{network-role}``", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-96253", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::VirtualMachineInterface", "sections": [ "OS::ContrailV2::VirtualMachineInterface", @@ -41175,15 +69702,19 @@ "validation_mode": "static" }, "R-96482": { - "description": "When a VNF's Heat Orchestration Template's resource is associated\nwith a single external network, the Resource ID **MUST** contain the text\n'{network-role}'.", + "description": "When a VNF's Heat Orchestration Template's resource is associated\nwith a single external network, the Resource ID **MUST** contain the text\n``{network-role}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-96482", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource IDs", "sections": [ "Resource IDs" @@ -41202,19 +69733,23 @@ "validation_mode": "static" }, "R-96554": { - "description": "The xNF **MUST** implement the protocol operation:\n**unlock(target)** - Unlock the configuration datastore target.", + "description": "The xNF **MUST** implement the protocol operation:\n``unlock(target)`` - Unlock the configuration data store target.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-96554", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -41227,20 +69762,24 @@ "title": "", "title_from_content": "", "type_name": "Requirement", - "updated": "", + "updated": "casablanca", "validated_by": "", "validation_mode": "" }, "R-96634": { "description": "The xNF provider **MUST** describe scaling capabilities\nto manage scaling characteristics of the xNF.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-96634", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Compute, Network, and Storage Requirements", "sections": [ "Compute, Network, and Storage Requirements", @@ -41261,14 +69800,18 @@ }, "R-96983": { "description": "A VNF's Heat Orchestration Template's Resource ID that is associated\nwith an internal network **MUST** include ``int_{network-role}`` as part\nof the Resource ID, where ``int_`` is a hard coded string.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{network-role}", "full_title": "", "hide_links": "", "id": "R-96983", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "{network-role}", "sections": [ "{network-role}" @@ -41288,14 +69831,18 @@ }, "R-97102": { "description": "The VNF Package **MUST** include VM requirements via a Heat\ntemplate that provides the necessary data for VM specifications\nfor all VNF components - for hypervisor, CPU, memory, storage.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-97102", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Compute, Network, and Storage Requirements", "sections": [ "Compute, Network, and Storage Requirements", @@ -41314,46 +69861,20 @@ "validated_by": "", "validation_mode": "" }, - "R-97199": { - "description": "A VNF's Heat Orchestration Template's OS::Nova::Server\nresource **MUST** contain the attribute \"metadata\".", - "full_title": "", - "hide_links": "", - "id": "R-97199", - "impacts": "", - "introduced": "", - "keyword": "MUST", - "links": [], - "notes": "", - "section_name": "metadata", - "sections": [ - "metadata", - "resources", - "Heat Orchestration Template Structure", - "ONAP Heat Orchestration Template Format" - ], - "status": null, - "tags": [], - "target": "VNF", - "test": "", - "test_case": "", - "test_file": "", - "title": "", - "title_from_content": "", - "type_name": "Requirement", - "updated": "", - "validated_by": "", - "validation_mode": "" - }, "R-97201": { "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_int_{network-role}_v6_ip_{index}``\n**MUST** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-97201", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -41374,14 +69895,18 @@ }, "R-97293": { "description": "The xNF provider **MUST NOT** require audits\nof Service Provider's business.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-97293", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Licensing Requirements", "sections": [ "Licensing Requirements", @@ -41401,19 +69926,57 @@ "validation_mode": "" }, "R-97343": { - "description": "The xNF **MUST** support ONAP Controller's **UpgradeBackup** command.", + "description": "The xNF **MUST** support APPC/SDN-C ``UpgradeBackup`` command.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-97343", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", - "section_name": "LifeCycle Management Related Commands", + "parts": {}, + "section_name": "Lifecycle Management Related Commands", "sections": [ - "LifeCycle Management Related Commands", - "Controller Interactions With VNF", + "Lifecycle Management Related Commands", + "Controller Interactions With xNF", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "casablanca", + "validated_by": "", + "validation_mode": "" + }, + "R-97345": { + "description": "The xNF **MUST** permit authentication, using root account, only right\nafter instantiation and until post-instantiation configuration is\ncompleted.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-97345", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", "Configuration Management" ], "status": null, @@ -41431,14 +69994,18 @@ }, "R-97445": { "description": "The VNF **MUST** log the field \"date/time\" in the security audit\nlogs.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-97445", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -41457,20 +70024,58 @@ "validated_by": "", "validation_mode": "" }, + "R-97451": { + "description": "The xNF **MUST** provide the ability to remove root access once\npost-instantiation configuration (Configure) is completed.", + "docname": "Chapter7/Configuration-Management", + "full_title": "", + "hide_links": "", + "id": "R-97451", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Ansible Client Requirements", + "sections": [ + "Ansible Client Requirements", + "xNF Configuration via Ansible Requirements", + "Ansible Standards and Capabilities", + "Configuration Management" + ], + "status": null, + "tags": [], + "target": "XNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-97529": { - "description": "The xNF **SHOULD** implement the protocol operation:\n**get-schema(identifier, version, format) -** Retrieve the YANG schema.", + "description": "The xNF **SHOULD** implement the protocol operation:\n``get-schema(identifier, version, format)`` - Retrieve the YANG schema.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-97529", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "NETCONF Server Requirements", "sections": [ "NETCONF Server Requirements", - "VNF Configuration via NETCONF Requirements", + "xNF Configuration via NETCONF Requirements", "NETCONF Standards and Capabilities", "Configuration Management" ], @@ -41489,14 +70094,18 @@ }, "R-97726": { "description": "A VNF's Heat Orchestration Template's Base Module Output Parameter names\n**MUST** contain ``{vm-type}`` and/or ``{network-role}`` when appropriate.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/ONAP Output Parameter Names", "full_title": "", "hide_links": "", "id": "R-97726", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP Base Module Output Parameters:", "sections": [ "ONAP Base Module Output Parameters:", @@ -41515,16 +70124,85 @@ "validated_by": "", "validation_mode": "static" }, + "R-978752": { + "description": "The xNF providers **MUST** provide the Service Provider the following\nartifacts to support the delivery of high-volume xNF telemetry to\nDCAE via GPB over TLS/TCP:\n\n * A valid VES Event .proto definition file, to be used validate and\n decode an event\n * A valid high volume measurement .proto definition file, to be used for\n processing high volume events\n * A supporting PM content metadata file to be used by analytics\n applications to process high volume measurement events", + "docname": "Chapter7/Monitoring-And-Management", + "full_title": "", + "hide_links": "", + "id": "R-978752", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "Google Protocol Buffers (GPB)", + "sections": [ + "Google Protocol Buffers (GPB)", + "Monitoring & Management Requirements", + "Monitoring & Management" + ], + "status": null, + "tags": [], + "target": "XNF PROVIDER", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "static" + }, + "R-980039": { + "description": "The PNF **MUST** send the pnfRegistration VES event periodically.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-980039", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-98138": { "description": "When a VNF's Heat Orchestration Template's resource is associated with a\nsingle internal network, the Resource ID **MUST** contain the text\n``int_{network-role}``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-98138", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource IDs", "sections": [ "Resource IDs" @@ -41542,16 +70220,52 @@ "validated_by": "", "validation_mode": "static" }, + "R-981585": { + "description": "The pnfRegistration VES event periodicity **MUST** be configurable.\n\nNote: The PNF uses the service configuration request as a semaphore to\nstop sending the pnfRegistration sent. See the requirement PNP-5360\nrequirement.", + "docname": "Chapter7/PNF-Plug-and-Play", + "full_title": "", + "hide_links": "", + "id": "R-981585", + "impacts": "", + "introduced": "casablanca", + "is_need": true, + "is_part": false, + "keyword": "MUST", + "links": [], + "notes": "", + "parts": {}, + "section_name": "PNF Plug and Play", + "sections": [ + "PNF Plug and Play", + "PNF Plug and Play" + ], + "status": null, + "tags": [], + "target": "PNF", + "test": "", + "test_case": "", + "test_file": "", + "title": "", + "title_from_content": "", + "type_name": "Requirement", + "updated": "", + "validated_by": "", + "validation_mode": "" + }, "R-98191": { "description": "The xNF **MUST** vary the frequency that asynchronous data\nis delivered based on the content and how data may be aggregated or\ngrouped together.\n\n Note:\n\n - For example, alarms and alerts are expected to be delivered as\n soon as they appear. In contrast, other content, such as performance\n measurements, KPIs or reported network signaling may have various\n ways of packaging and delivering content. Some content should be\n streamed immediately; or content may be monitored over a time\n interval, then packaged as collection of records and delivered\n as block; or data may be collected until a package of a certain\n size has been collected; or content may be summarized statistically\n over a time interval, or computed as a KPI, with the summary or KPI\n being delivered.\n - We expect the reporting frequency to be configurable depending on\n the virtual network functions needs for management. For example,\n Service Provider may choose to vary the frequency of collection\n between normal and trouble-shooting scenarios.\n - Decisions about the frequency of data reporting will affect\n the size of delivered data sets, recommended delivery method,\n and how the data will be interpreted by ONAP. These considerations\n should not affect deserialization and decoding of the data, which\n will be guided by the accompanying JSON schema or GPB definition\n files.", + "docname": "Chapter7/Monitoring-And-Management", "full_title": "", "hide_links": "", "id": "R-98191", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Reporting Frequency", "sections": [ "Reporting Frequency", @@ -41572,19 +70286,23 @@ "validation_mode": "" }, "R-98374": { - "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` Resource\n``metadata`` map value parameter ``vf_module_id`` **MUST NOT**\nhave parameter constraints defined.", + "description": "A VNF's Heat Orchestration Template's ``OS::Nova::Server`` resource property\n``metadata`` key/value pair ``vf_module_id`` parameter ``vf_module_id``\n**MUST NOT**\nhave parameter constraints defined.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Metadata Parameters", "full_title": "", "hide_links": "", "id": "R-98374", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "vf_module_id", "sections": [ "vf_module_id", - "Resource: OS::Nova::Server - Metadata Parameters" + "Resource: OS::Nova::Server Metadata Parameters" ], "status": null, "tags": [], @@ -41601,14 +70319,18 @@ }, "R-98391": { "description": "The VNF **MUST**, if not integrated with the Operator's Identity and\nAccess Management system, support Role-Based Access Control to enforce\nleast privilege.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-98391", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -41629,14 +70351,18 @@ }, "R-98407": { "description": "A VNF's Heat Orchestration Template's ``{vm-type}`` **MUST** contain only\nalphanumeric characters and/or underscores '_' and **MUST NOT**\ncontain any of the following strings:\n``_int`` or ``int_`` or ``_int_``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/{vm-type}", "full_title": "", "hide_links": "", "id": "R-98407", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "{vm-type}", "sections": [ "{vm-type}" @@ -41655,15 +70381,19 @@ "validation_mode": "static" }, "R-98450": { - "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty\n``availability_zone`` parameter name **MUST** follow the naming convention\n``availability_zone_{index}`` where the ``{index}``\n**MUST** start at zero and\nincrement by one.", + "description": "The VNF's Heat Orchestration Template's Resource ``OS::Nova::Server``\nproperty ``availability_zone`` parameter name\n**MUST** follow the naming convention\n\n* ``availability_zone_{index}``\n\nwhere ``{index}`` is a numeric value that **MUST** start at zero\nin a VNF's Heat Orchestration Templates and **MUST**\nincrement by one.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-98450", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: availability_zone", "sections": [ "Property: availability_zone", @@ -41684,14 +70414,18 @@ }, "R-98569": { "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_int_{network-role}_v6_ips``\n**MUST** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-98569", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -41712,14 +70446,18 @@ }, "R-98617": { "description": "The xNF provider **MUST** provide information regarding any\ndependency (e.g., affinity, anti-affinity) with other xNFs and resources.", + "docname": "Chapter7/VNF-On-boarding-and-package-management", "full_title": "", "hide_links": "", "id": "R-98617", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Description", "sections": [ "Resource Description", @@ -41740,14 +70478,18 @@ }, "R-98748": { "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``allowed_address_pairs``\nmap property ``ip_address`` parameter\n**MUST** be declared as type ``string``.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-98748", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VIP Assignment, External Networks, Supported by Automation", "sections": [ "VIP Assignment, External Networks, Supported by Automation", @@ -41769,14 +70511,18 @@ }, "R-98905": { "description": "The VNF's Heat Orchestration Template's Resource\n``OS::Neutron::Port`` property ``fixed_ips``\nmap property ``ip_address`` parameter\n``{vm-type}_{network-role}_ips``\n**MUST NOT** be enumerated in the\nVNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Neutron Parameters", "full_title": "", "hide_links": "", "id": "R-98905", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Property: fixed_ips, Map Property: ip_address", "sections": [ "Property: fixed_ips, Map Property: ip_address", @@ -41797,18 +70543,22 @@ }, "R-98911": { "description": "The xNF **MUST NOT** use any instance specific parameters\nfor the xNF in roles/cookbooks/recipes invoked for a xNF action.", + "docname": "Chapter7/Configuration-Management", "full_title": "", "hide_links": "", "id": "R-98911", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Chef Roles/Requirements", "sections": [ "Chef Roles/Requirements", - "VNF Configuration via Chef Requirements", + "xNF Configuration via Chef Requirements", "Chef Standards and Capabilities", "Configuration Management" ], @@ -41827,14 +70577,18 @@ }, "R-98989": { "description": "The VNF **SHOULD** utilize resource pooling (threads,\nconnections, etc.) within the VNF application so that resources\nare not being created and destroyed resulting in resource management\noverhead.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-98989", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "SHOULD", "links": [], "notes": "", + "parts": {}, "section_name": "System Resource Optimization", "sections": [ "System Resource Optimization", @@ -41854,15 +70608,19 @@ "validation_mode": "" }, "R-99110": { - "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::VirtualNetwork`` Resource ID **MUST** use the naming convention\n\n1) ``int_{network-role}_network``\n\nor\n\n2) ``int_{network-role}_RVN`` where RVN represents Resource Virtual\n Network\n\nVNF Heat Orchestration Templates can only create internal networks.\nThere is no ``{index}`` after ``{network-role}`` because ``{network-role}``\n**MUST** be unique in the scope of the VNF's\nHeat Orchestration Template.", + "description": "A VNF's Heat Orchestration Template's Resource\n``OS::ContrailV2::VirtualNetwork`` Resource ID **MUST** use the naming convention\n\n1) ``int_{network-role}_network``\n\nor\n\n2) ``int_{network-role}_RVN`` where RVN represents Resource Virtual\n Network\n\nVNF Heat Orchestration Templates can only create internal networks.\nThere is no ``{index}`` after ``{network-role}`` because ``{network-role}``\n**MUST** be unique in the scope of the VNF's\nHeat Orchestration Template.\n\nNote that option 1 is preferred.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource IDs", "full_title": "", "hide_links": "", "id": "R-99110", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "OS::ContrailV2::VirtualNetwork", "sections": [ "OS::ContrailV2::VirtualNetwork", @@ -41883,15 +70641,19 @@ "validation_mode": "static" }, "R-99174": { - "description": "The VNF **MUST** allow the creation of multiple IDs so that\nindividual accountability can be supported.", + "description": "The VNF **MUST**, if not integrated with the Operator's Identity and\nAccess Management system, support the creation of multiple IDs so that\nindividual accountability can be supported.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-99174", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Identity and Access Management Requirements", "sections": [ "VNF Identity and Access Management Requirements", @@ -41912,14 +70674,18 @@ }, "R-99646": { "description": "A VNF's YAML files (i.e, Heat Orchestration Template files and\nNested files) **MUST** have a unique name in the scope of the VNF.", + "docname": "Chapter5/Heat/ONAP Heat Orchestration Templates Overview", "full_title": "", "hide_links": "", "id": "R-99646", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "ONAP Heat Orchestration Template Filenames", "sections": [ "ONAP Heat Orchestration Template Filenames", @@ -41940,14 +70706,18 @@ }, "R-99656": { "description": "The VNF **MUST** NOT terminate stable sessions if a VNFC\ninstance fails.", + "docname": "Chapter4/Design", "full_title": "", "hide_links": "", "id": "R-99656", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Design", "sections": [ "VNF Design" @@ -41967,14 +70737,18 @@ }, "R-99730": { "description": "The VNF **MUST** include the field \"Login ID\" in the Security\nalarms (where applicable and technically feasible).", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-99730", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF Security Analytics Requirements", "sections": [ "VNF Security Analytics Requirements", @@ -41995,14 +70769,18 @@ }, "R-99766": { "description": "The VNF **MUST** allow configurations and configuration parameters\nto be managed under version control to ensure the ability to rollback to\na known valid configuration.", + "docname": "Chapter4/Resiliency", "full_title": "", "hide_links": "", "id": "R-99766", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "Application Configuration Management", "sections": [ "Application Configuration Management", @@ -42023,14 +70801,18 @@ }, "R-99771": { "description": "The VNF **MUST** have all code (e.g., QCOW2) and configuration files\n(e.g., HEAT template, Ansible playbook, script) hardened, or with\ndocumented recommended configurations for hardening and interfaces that\nallow the Operator to harden the VNF. Actions taken to harden a system\ninclude disabling all unnecessary services, and changing default values\nsuch as default credentials and community strings.", + "docname": "Chapter4/Security", "full_title": "", "hide_links": "", "id": "R-99771", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "VNF General Security Requirements", "sections": [ "VNF General Security Requirements", @@ -42051,14 +70833,18 @@ }, "R-99794": { "description": "An external network **MUST** have one subnet. An external network\n**MAY** have more than one subnet.", + "docname": "Chapter5/Heat/ONAP Heat Networking", "full_title": "", "hide_links": "", "id": "R-99794", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST", "links": [], "notes": "", + "parts": {}, "section_name": "External Networks", "sections": [ "External Networks", @@ -42079,14 +70865,18 @@ }, "R-99798": { "description": "A VNF's Heat Orchestration Template's Virtual Machine\n(i.e., ``OS::Nova::Server`` resource) **MAY** boot from an image or\n**MAY** boot from a Cinder Volume.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Nova Parameters", "full_title": "", "hide_links": "", "id": "R-99798", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MAY", "links": [], "notes": "", + "parts": {}, "section_name": "Boot Options", "sections": [ "Boot Options", @@ -42107,14 +70897,18 @@ }, "R-99812": { "description": "A value for VNF's Heat Orchestration Template's property ``name``\nfor a non ``OS::Nova::Server`` resource **MUST NOT** be declared\nin the VNF's Heat Orchestration Template's Environment File.", + "docname": "Chapter5/Heat/ONAP Heat Resource ID and Parameter Naming Convention/Resource Property", "full_title": "", "hide_links": "", "id": "R-99812", "impacts": "", "introduced": "", + "is_need": true, + "is_part": false, "keyword": "MUST NOT", "links": [], "notes": "", + "parts": {}, "section_name": "Resource Property \u201cname\u201d", "sections": [ "Resource Property \u201cname\u201d" @@ -42133,7 +70927,7 @@ "validation_mode": "static" } }, - "needs_amount": 712 + "needs_amount": 770 } } } \ No newline at end of file diff --git a/ice_validator/tests/cached_yaml.py b/ice_validator/tests/cached_yaml.py index 99fbd2c..1b977a6 100644 --- a/ice_validator/tests/cached_yaml.py +++ b/ice_validator/tests/cached_yaml.py @@ -46,10 +46,7 @@ constructor = yaml.constructor def add_constructor(tag, constructor): - yaml.add_constructor( - tag, - constructor, - ) + yaml.add_constructor(tag, constructor) def load(fp): diff --git a/ice_validator/tests/conftest.py b/ice_validator/tests/conftest.py index 54015d0..95b1289 100644 --- a/ice_validator/tests/conftest.py +++ b/ice_validator/tests/conftest.py @@ -593,7 +593,7 @@ def hash_directory(path): def load_current_requirements(): """Loads dict of current requirements or empty dict if file doesn't exist""" - url = 'https://onap.readthedocs.io/en/latest/_downloads/needs.json' + url = 'https://onap.readthedocs.io/en/latest/_downloads/789ac64d223325488fb3f120f959d985/needs.json' try: r = requests.get(url) diff --git a/ice_validator/tests/fixtures/test_all_parameters_used_in_template/fail/fail.yaml b/ice_validator/tests/fixtures/test_all_parameters_used_in_template/fail/fail.yaml new file mode 100644 index 0000000..6064c91 --- /dev/null +++ b/ice_validator/tests/fixtures/test_all_parameters_used_in_template/fail/fail.yaml @@ -0,0 +1,15 @@ +heat_template_version: 2015-04-30 + +description: fdsafsfsa + +parameters: + + test_paramassd: + type: string + +resources: + + test_resource: + type: test::resource + properties: + test_param: { get_param: test_param } diff --git a/ice_validator/tests/fixtures/test_all_parameters_used_in_template/pass/pass.yaml b/ice_validator/tests/fixtures/test_all_parameters_used_in_template/pass/pass.yaml new file mode 100644 index 0000000..ee9311f --- /dev/null +++ b/ice_validator/tests/fixtures/test_all_parameters_used_in_template/pass/pass.yaml @@ -0,0 +1,19 @@ +heat_template_version: 2015-04-30 + +description: fdsafsfsa + +parameters: + + test_param: + type: string + + availability_zone_1: + type: string + description: najsf + +resources: + + test_resource: + type: test::resource + properties: + test_param: { get_param: test_param } diff --git a/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/fail.yaml b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/fail.yaml new file mode 100644 index 0000000..a6c00c3 --- /dev/null +++ b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/fail.yaml @@ -0,0 +1,55 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + availability_zone_0: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + availability_zone_3: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + +resources: + vm1_server_0: + type: nested.yaml \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/nested.yaml b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/nested.yaml new file mode 100644 index 0000000..910cdf3 --- /dev/null +++ b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/fail/nested.yaml @@ -0,0 +1,46 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + availability_zone_9: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance diff --git a/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/nested.yaml b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/nested.yaml new file mode 100644 index 0000000..910cdf3 --- /dev/null +++ b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/nested.yaml @@ -0,0 +1,46 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + availability_zone_9: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance diff --git a/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/pass.yaml b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/pass.yaml new file mode 100644 index 0000000..100376b --- /dev/null +++ b/ice_validator/tests/fixtures/test_availability_zone_params_start_at_0/pass/pass.yaml @@ -0,0 +1,55 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + availability_zone_0: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + availability_zone_1: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + +resources: + vm1_server_0: + type: nested.yaml \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail0.yaml b/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail0.yaml new file mode 100644 index 0000000..6d410e9 --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail0.yaml @@ -0,0 +1,51 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: [] + diff --git a/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail1.yaml b/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail1.yaml new file mode 100644 index 0000000..8e1aa10 --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail1.yaml @@ -0,0 +1,54 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_param: huey + - get_param: dewey + - get_param: bialy_net_fqdn + diff --git a/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail2.yaml b/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail2.yaml new file mode 100644 index 0000000..7254540 --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_fqdn/fail/fail2.yaml @@ -0,0 +1,56 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + bialy_net_fqdn: + type: String + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_param: huey + - get_param: dewey + - get_param: bialy_net_fqdn + diff --git a/ice_validator/tests/fixtures/test_contrail_fqdn/pass/pass0.yaml b/ice_validator/tests/fixtures/test_contrail_fqdn/pass/pass0.yaml new file mode 100644 index 0000000..311fb21 --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_fqdn/pass/pass0.yaml @@ -0,0 +1,56 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + bialy_net_fqdn: + type: string + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_param: huey + - get_param: dewey + - get_param: bialy_net_fqdn + diff --git a/ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/fail/fail0.yaml b/ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/fail/fail0.yaml new file mode 100644 index 0000000..0df9a0b --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/fail/fail0.yaml @@ -0,0 +1,75 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- + +resources: + + vm_typeS_0_bialy_port_0: + type: OS::ContrailV2::InstanceIp + properties: + virtual_network_refs: + - get_param: huey_int_hooey + + vm_typeX_0_bialy_port_0: + type: OS::ContrailV2::InstanceIp + properties: + virtual_network_refs: + - get_param: huey_int_hooey + + vm_typeX_0_bialy_port_1: + type: OS::ContrailV2::InstanceIp + properties: + virtual_network_refs: + - get_param: x_subint_dewey + + vm_typeX_0_bialy_port_2: + type: OS::ContrailV2::InstanceIp + properties: + virtual_network_refs: + - get_resource: dewey + + vm_typeX_0_bialy_port_3: + type: OS::ContrailV2::InstanceIp + properties: + virtual_network_refs: + - get_param: dewey + diff --git a/ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/pass/pass0.yaml b/ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/pass/pass0.yaml new file mode 100644 index 0000000..b0f10b0 --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_instance_ip_resource_id/pass/pass0.yaml @@ -0,0 +1,78 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +# +#(?P.+)_(?P\\d+)_int_(?P.+)_vmi_(?P\\d+)_v6_IP_(?P\\d+)$ +# + +resources: + + vm_typeS_0_int_bialy_vmi_0_IP_0: + type: OS::ContrailV2::InstanceIp + properties: + virtual_network_refs: + - get_param: huey_int_hooey + + vm_typeS_0_int_bialy_vmi_0_v6_IP_0: + type: OS::ContrailV2::InstanceIp + properties: + virtual_network_refs: + - get_param: huey_int_hooey + + vm_typeS_0_subint_bialy_vmi_0_IP_1: + type: OS::ContrailV2::InstanceIp + properties: + virtual_network_refs: + - get_param: x_subint_dewey + + vm_typeS_0_int_bialy_vmi_0_IP_2: + type: OS::ContrailV2::InstanceIp + properties: + virtual_network_refs: + - get_resource: dewey + + vm_typeS_0_bialy_vmi_0_IP_2: + type: OS::ContrailV2::InstanceIp + properties: + virtual_network_refs: + - get_param: dewey + diff --git a/ice_validator/tests/fixtures/test_contrail_irt_routes/fail/fail0.yaml b/ice_validator/tests/fixtures/test_contrail_irt_routes/fail/fail0.yaml new file mode 100644 index 0000000..2145f3c --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_irt_routes/fail/fail0.yaml @@ -0,0 +1,55 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + bialy_net_fqdn: + type: string + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::ContrailV2::InterfaceRouteTable + properties: + interface_route_table_routes: + interface_route_table_routes_route: + get_param: bialy_net_fqdn + diff --git a/ice_validator/tests/fixtures/test_contrail_irt_routes/pass/pass0.yaml b/ice_validator/tests/fixtures/test_contrail_irt_routes/pass/pass0.yaml new file mode 100644 index 0000000..34569f5 --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_irt_routes/pass/pass0.yaml @@ -0,0 +1,55 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + big_bialy_route_prefixes: + type: json + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::ContrailV2::InterfaceRouteTable + properties: + interface_route_table_routes: + interface_route_table_routes_route: + get_param: big_bialy_route_prefixes + diff --git a/ice_validator/tests/fixtures/test_contrail_resource_id/fail/fail0.yaml b/ice_validator/tests/fixtures/test_contrail_resource_id/fail/fail0.yaml new file mode 100644 index 0000000..2bee0c5 --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_resource_id/fail/fail0.yaml @@ -0,0 +1,70 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +resources: + vm_typeX_b_server_0: + type: OS::Nova::Server + properties: + availability_zone: { get_param: availability_zone_0 } + name: { get_param: vm_typex_name_0 } + + vm_typeX_0_bialy_port_0: + type: OS::Neutron::Port + properties: + network: + get_param: int_Bialy_net_name + + vm_typeX_0_bialy_port_1: + type: OS::ContrailV2::InterfaceRouteTable + + vm_typeX_0_bialy_port_2: + type: OS::ContrailV2::NetworkIpam + + vm_typeX_0_bialy_port_3: + type: OS::ContrailV2::PortTuple + + vm_typeX_0_bialy_port_4: + type: OS::ContrailV2::ServiceHealthCheck + + vm_typeX_0_bialy_port_5: + type: OS::ContrailV2::ServiceTemplate + diff --git a/ice_validator/tests/fixtures/test_contrail_resource_id/pass/pass0.yaml b/ice_validator/tests/fixtures/test_contrail_resource_id/pass/pass0.yaml new file mode 100644 index 0000000..c6d6324 --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_resource_id/pass/pass0.yaml @@ -0,0 +1,70 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +resources: + vm_typeX_b_server_0: + type: OS::Nova::Server + properties: + availability_zone: { get_param: availability_zone_0 } + name: { get_param: vm_typeX_name_0 } + + vm_typeX_0_bialy_port_0: + type: OS::Neutron::Port + properties: + network: + get_param: int_bialy_net_name + + vm_typeX_0_bialy_port_1: + type: OS::ContrailV2::InterfaceRouteTable + + vm_typeX_0_bialy_port_2: + type: OS::ContrailV2::NetworkIpam + + vm_typeX_0_bialy_port_3: + type: OS::ContrailV2::PortTuple + + vm_typeX_0_bialy_port_4: + type: OS::ContrailV2::ServiceHealthCheck + + vm_typeX_0_bialy_port_5: + type: OS::ContrailV2::ServiceTemplate + diff --git a/ice_validator/tests/fixtures/test_contrail_vmi_resource_id/fail/fail0.yaml b/ice_validator/tests/fixtures/test_contrail_vmi_resource_id/fail/fail0.yaml new file mode 100644 index 0000000..7ee0ec6 --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_vmi_resource_id/fail/fail0.yaml @@ -0,0 +1,75 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- + +resources: + + vm_typeS_0_int_bialy_vmi_0_IP_0: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_param: huey_int_hooey + + vm_typeS_0_int_bialy_vmi_0_v6_IP_0: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_param: huey_int_hooey + + vm_typeS_0_subint_bialy_vmi_0_IP_1: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_param: x_subint_dewey + + vm_typeS_0_int_bialy_vmi_0_IP_2: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_resource: dewey + + vm_typeS_0_bialy_vmi_0_IP_2: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_param: dewey + diff --git a/ice_validator/tests/fixtures/test_contrail_vmi_resource_id/pass/pass0.yaml b/ice_validator/tests/fixtures/test_contrail_vmi_resource_id/pass/pass0.yaml new file mode 100644 index 0000000..b8346cb --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_vmi_resource_id/pass/pass0.yaml @@ -0,0 +1,75 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- + +resources: + + vm_typeS_0_int_bialy_vmi_0: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_param: huey_int_hooey + + vm_typeS_0_int_bialy_vmi_1: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_param: huey_int_hooey + + vm_typeS_0_subint_bialy_vmi_0: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_param: x_subint_dewey + + vm_typeS_0_int_bialy_vmi_2: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_resource: dewey + + vm_typeS_0_bialy_vmi_0: + type: OS::ContrailV2::VirtualMachineInterface + properties: + virtual_network_refs: + - get_param: dewey + diff --git a/ice_validator/tests/fixtures/test_contrail_vn_resource_id/fail/fail0.yaml b/ice_validator/tests/fixtures/test_contrail_vn_resource_id/fail/fail0.yaml new file mode 100644 index 0000000..0eabf87 --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_vn_resource_id/fail/fail0.yaml @@ -0,0 +1,56 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +resources: + vm_type_a_server_0: + type: OS::ContrailV2::VirtualNetwork + + int_0_romeo_network: + type: OS::ContrailV2::VirtualNetwork + + int_0_romeo_RVN: + type: OS::ContrailV2::VirtualNetwork + + int_0_romeo_rvn: + type: OS::ContrailV2::VirtualNetwork + diff --git a/ice_validator/tests/fixtures/test_contrail_vn_resource_id/pass/pass0.yaml b/ice_validator/tests/fixtures/test_contrail_vn_resource_id/pass/pass0.yaml new file mode 100644 index 0000000..5d6c06e --- /dev/null +++ b/ice_validator/tests/fixtures/test_contrail_vn_resource_id/pass/pass0.yaml @@ -0,0 +1,50 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +resources: + int_0_romeo_network: + type: OS::ContrailV2::VirtualNetwork + + int_0_romeo_RVN: + type: OS::ContrailV2::VirtualNetwork + diff --git a/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.env b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.env new file mode 100644 index 0000000..4ea6ee3 --- /dev/null +++ b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.env @@ -0,0 +1,3 @@ +parameters: + test123: nsdafjk + bad: ndfaskl \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.yaml b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.yaml new file mode 100644 index 0000000..90d0f3c --- /dev/null +++ b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/fail/fail.yaml @@ -0,0 +1,4 @@ +parameters: + test123: + type: string + description: ndasfjlansl \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.env b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.env new file mode 100644 index 0000000..de8d3e0 --- /dev/null +++ b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.env @@ -0,0 +1,2 @@ +parameters: + test123: nsdafjk \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.yaml b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.yaml new file mode 100644 index 0000000..90d0f3c --- /dev/null +++ b/ice_validator/tests/fixtures/test_env_parameters_defined_in_template/pass/pass.yaml @@ -0,0 +1,4 @@ +parameters: + test123: + type: string + description: ndasfjlansl \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.env b/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.env index 1ce6cc4..9187b10 100644 --- a/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.env +++ b/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.env @@ -22,6 +22,7 @@ parameters: TESTDB_name: bghbhjb + TESTDB_valet_hosts: test #TESTDB_image_name: sadfadf @@ -43,7 +44,7 @@ parameters: availability_zone_0: sadnfjk - STARKDB_private_v6_ips: ansdfj + #STARKDB_int_private_v6_ips: ansdfj int_priv_subnet_name: safbdjk @@ -58,3 +59,5 @@ parameters: STARKDB_crazy_ip_1: fsad TESTDB_name2: asnjkv + + vf_module_index: nalfs diff --git a/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.yaml b/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.yaml index 23f4e1a..d84cc1f 100644 --- a/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.yaml +++ b/ice_validator/tests/fixtures/test_environment_file_parameters/fail/fail.yaml @@ -12,7 +12,11 @@ parameters: type: string description: nasfln - STARKDB_private_v6_ips: + TESTDB_valet_hosts: + type: string + description: nsfadl + + STARKDB_int_private_v6_ips: type: comma_delimited_list description: ndsajlfn @@ -144,6 +148,7 @@ resources: #int_network_id: { get_resource: int_priv_network } workload_context: { get_param: workload_context } environment_context: { get_param: environment_context } + #valet_groups: "safnkl, sdaflksanl" networks: - port: { get_resource: STARKDB_0_int_priv_port_0 } - port: { get_resource: STARKDB_0_PRIV_port_1} @@ -165,6 +170,7 @@ resources: #int_network_id: { get_resource: int_priv_network } workload_context: { get_param: workload_context } environment_context: { get_param: environment_context } + #valet_groups: "safnkl, sdaflksanl" networks: - port: {get_resource: STARKDB_1_int_priv_port_0} - port: {get_resource: STARKDB_1_crazy_port_0} @@ -183,6 +189,7 @@ resources: #int_network_id: { get_resource: int_priv_network } workload_context: { get_param: workload_context } environment_context: { get_param: environment_context } + #valet_groups: "safnkl, sdaflksanl" networks: - port: {get_resource: TESTDB_0_int_priv_port_0} - network: { get_param: int_priv_net_id } @@ -203,10 +210,19 @@ resources: #int_network_id: { get_resource: int_priv_network } workload_context: { get_param: workload_context } environment_context: { get_param: environment_context } + #valet_groups: "safnkl, sdaflksanl" networks: - port: {get_resource: TESTDB_0_int_priv_port_0} - network: { get_param: int_priv_net_id } + availability_zone: + str_replace: + template: $AZ$VALET_HOST_ASSIGNMENT + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: [ TESTDB_valet_hosts, 0 ] } + + vol_attachment: type: OS::Cinder::VolumeAttachment properties: @@ -239,8 +255,8 @@ resources: properties: network: { get_resource: int_private_net_id } fixed_ips: - - subnet_id: { get_resource: int_priv_subnet } - - ip_address: { get_param: STARKDB_private_v6_ips } + - subnet: { get_resource: int_priv_subnet } + - ip_address: { get_param: STARKDB_int_private_v6_ips } STARKDB_0_crazy_port_0: @@ -248,7 +264,7 @@ resources: properties: network: { get_param: crazy_net_id } fixed_ips: - - subnet_id: { get_param: crazy_subnet_id } + - subnet: { get_param: crazy_subnet_id } - ip_address: { get_param: STARKDB_crazy_ip_0 } allowed_address_pairs: [ { "ip_address": {get_param: STARKDB_crazy_floating_ip}}] @@ -259,7 +275,7 @@ resources: properties: network: { get_param: crazy_net_id } fixed_ips: - - subnet_id: { get_param: crazy_subnet_id } + - subnet: { get_param: crazy_subnet_id } - ip_address: { get_param: STARKDB_crazy_ip_1 } allowed_address_pairs: [ { "ip_address": {get_param: STARKDB_crazy_floating_ip}}] diff --git a/ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/fail/testvm.yaml b/ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/fail/testvm.yaml new file mode 100644 index 0000000..87c54e2 --- /dev/null +++ b/ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/fail/testvm.yaml @@ -0,0 +1,51 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +resources: + testvm_server_0: + type: OS::Nova::Server + properties: + name: { get_param: testvm_name_0 } + flavor: { get_param: testvm_flavor_name} + image: { get_param: testvm_image_name} + diff --git a/ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/pass/test_vm.yaml b/ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/pass/test_vm.yaml new file mode 100644 index 0000000..87c54e2 --- /dev/null +++ b/ice_validator/tests/fixtures/test_filename_is_vmtype_dot_yaml/pass/test_vm.yaml @@ -0,0 +1,51 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +resources: + testvm_server_0: + type: OS::Nova::Server + properties: + name: { get_param: testvm_name_0 } + flavor: { get_param: testvm_flavor_name} + image: { get_param: testvm_image_name} + diff --git a/ice_validator/tests/fixtures/test_files_in_flat_dir/fail/nested/test2.yaml b/ice_validator/tests/fixtures/test_files_in_flat_dir/fail/nested/test2.yaml new file mode 100644 index 0000000..330069b --- /dev/null +++ b/ice_validator/tests/fixtures/test_files_in_flat_dir/fail/nested/test2.yaml @@ -0,0 +1,36 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ diff --git a/ice_validator/tests/fixtures/test_files_in_flat_dir/fail/test.yaml b/ice_validator/tests/fixtures/test_files_in_flat_dir/fail/test.yaml new file mode 100644 index 0000000..330069b --- /dev/null +++ b/ice_validator/tests/fixtures/test_files_in_flat_dir/fail/test.yaml @@ -0,0 +1,36 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ diff --git a/ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test.yaml b/ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test.yaml new file mode 100644 index 0000000..330069b --- /dev/null +++ b/ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test.yaml @@ -0,0 +1,36 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ diff --git a/ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test2.yaml b/ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test2.yaml new file mode 100644 index 0000000..330069b --- /dev/null +++ b/ice_validator/tests/fixtures/test_files_in_flat_dir/pass/test2.yaml @@ -0,0 +1,36 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ diff --git a/ice_validator/tests/fixtures/test_forbidden_resources/fail/fail1.yaml b/ice_validator/tests/fixtures/test_forbidden_resources/fail/fail1.yaml new file mode 100644 index 0000000..7ae4c65 --- /dev/null +++ b/ice_validator/tests/fixtures/test_forbidden_resources/fail/fail1.yaml @@ -0,0 +1,49 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +resources: + + vm_typeX_0_bialy_port_1: + type: OS::Neutron::FloatingIPAssociation + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::FloatingIP diff --git a/ice_validator/tests/fixtures/test_forbidden_resources/pass/pass0.yaml b/ice_validator/tests/fixtures/test_forbidden_resources/pass/pass0.yaml new file mode 100644 index 0000000..a73de94 --- /dev/null +++ b/ice_validator/tests/fixtures/test_forbidden_resources/pass/pass0.yaml @@ -0,0 +1,49 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Net + diff --git a/ice_validator/tests/fixtures/test_get_attr_usage/fail/fail_get_attr.yaml b/ice_validator/tests/fixtures/test_get_attr_usage/fail/fail_get_attr.yaml new file mode 100644 index 0000000..3bbf508 --- /dev/null +++ b/ice_validator/tests/fixtures/test_get_attr_usage/fail/fail_get_attr.yaml @@ -0,0 +1,60 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +resources: + my_instance: + type: OS::Nova::Server + properties: + key_name: { get_param: d } + image: { get_param: b } + flavor: { get_param: c } + + nested_instance: + type: nested.yaml + +outputs: + my_instance_ip: + description: The IP address of the deployed instance + value: { get_attr: [my_instance, first_address] } + + nested_instance_ip: + description: The IP address of the deployed instance + value: { get_attr: [nested_instance, nested_instance_ip2] } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_get_attr_usage/fail/nested.yaml b/ice_validator/tests/fixtures/test_get_attr_usage/fail/nested.yaml new file mode 100644 index 0000000..9de7aab --- /dev/null +++ b/ice_validator/tests/fixtures/test_get_attr_usage/fail/nested.yaml @@ -0,0 +1,54 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +resources: + nested_instance: + type: OS::Nova::Server + properties: + key_name: { get_param: d } + image: { get_param: b } + flavor: { get_param: c } + +outputs: + + nested_instance_ip: + description: The IP address of the deployed instance + value: { get_attr: [nested_instance2, first_address] } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_get_attr_usage/pass/nested.yaml b/ice_validator/tests/fixtures/test_get_attr_usage/pass/nested.yaml new file mode 100644 index 0000000..cbd9234 --- /dev/null +++ b/ice_validator/tests/fixtures/test_get_attr_usage/pass/nested.yaml @@ -0,0 +1,54 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +resources: + nested_instance: + type: OS::Nova::Server + properties: + key_name: { get_param: d } + image: { get_param: b } + flavor: { get_param: c } + +outputs: + + nested_instance_ip: + description: The IP address of the deployed instance + value: { get_attr: [nested_instance, first_address] } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_get_attr_usage/pass/pass_get_attr.yaml b/ice_validator/tests/fixtures/test_get_attr_usage/pass/pass_get_attr.yaml new file mode 100644 index 0000000..ac26e2b --- /dev/null +++ b/ice_validator/tests/fixtures/test_get_attr_usage/pass/pass_get_attr.yaml @@ -0,0 +1,60 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +resources: + my_instance: + type: OS::Nova::Server + properties: + key_name: { get_param: d } + image: { get_param: b } + flavor: { get_param: c } + + nested_instance: + type: nested.yaml + +outputs: + my_instance_ip: + description: The IP address of the deployed instance + value: { get_attr: [my_instance, first_address] } + + nested_instance_ip: + description: The IP address of the deployed instance + value: { get_attr: [nested_instance, nested_instance_ip] } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/new.txt b/ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/new.txt new file mode 100644 index 0000000..e69de29 diff --git a/ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/user_data.sh b/ice_validator/tests/fixtures/test_get_file_only_reference_local_files/pass/user_data.sh new file mode 100644 index 0000000..e69de29 diff --git a/ice_validator/tests/fixtures/test_initial_configuration/pass/good_yaml_eg.yaml b/ice_validator/tests/fixtures/test_initial_configuration/pass/good_yaml_eg.yaml index 559c598..25ec0b3 100644 --- a/ice_validator/tests/fixtures/test_initial_configuration/pass/good_yaml_eg.yaml +++ b/ice_validator/tests/fixtures/test_initial_configuration/pass/good_yaml_eg.yaml @@ -37,16 +37,40 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # ---- - a: 1 - b: - c: 3 - d: 4 - e: - f: 4 - g: - h: - test: test - k: g +heat_template_version: 2015-04-30 - test: out \ No newline at end of file +description: Simple template to deploy a single compute instance + +parameter_groups: + - label: human-readable label of parameter group + description: description of the parameter group + parameters: + - pga + - pgb + +parameters: + b: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + c: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + d: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + +resources: + my_instance: + type: OS::Nova::Server + properties: + key_name: { get_param: d } + image: { get_param: b } + flavor: { get_param: c } + +outputs: + instance_ip: + description: The IP address of the deployed instance + value: { get_attr: [my_instance, first_address] } diff --git a/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail.yaml b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail.yaml new file mode 100644 index 0000000..762b9b6 --- /dev/null +++ b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail.yaml @@ -0,0 +1,61 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + vm1_nr1_ip_1: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + vm1_nr1_ip_2: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + vm1_nr1_v6_ip_0: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + vm1_nr1_v6_ip_2: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail2.yaml b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail2.yaml new file mode 100644 index 0000000..582aa5d --- /dev/null +++ b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/fail2.yaml @@ -0,0 +1,55 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + vm1_nr1_ip_1: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + vm1_nr1_v6_ip_3: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + +resources: + vm1_server_0: + type: nested.yaml diff --git a/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/nested.yaml b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/nested.yaml new file mode 100644 index 0000000..9283663 --- /dev/null +++ b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/fail/nested.yaml @@ -0,0 +1,46 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + vm1_nr1_ip_4: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance diff --git a/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/nested.yaml b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/nested.yaml new file mode 100644 index 0000000..9283663 --- /dev/null +++ b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/nested.yaml @@ -0,0 +1,46 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + vm1_nr1_ip_4: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance diff --git a/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass.yaml b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass.yaml new file mode 100644 index 0000000..b03162b --- /dev/null +++ b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass.yaml @@ -0,0 +1,61 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + vm1_nr1_ip_0: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + vm1_nr1_ip_1: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + vm1_nr1_v6_ip_0: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + vm1_nr1_v6_ip_1: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass2.yaml b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass2.yaml new file mode 100644 index 0000000..fdeeb7b --- /dev/null +++ b/ice_validator/tests/fixtures/test_ip_parameters_start_at_0/pass/pass2.yaml @@ -0,0 +1,55 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + vm1_nr1_ip_0: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + vm1_nr1_v6_ip_0: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + +resources: + vm1_server_0: + type: nested.yaml diff --git a/ice_validator/tests/fixtures/test_nested_parameter_args/fail/fail0.yaml b/ice_validator/tests/fixtures/test_nested_parameter_args/fail/fail0.yaml new file mode 100644 index 0000000..7f9c76c --- /dev/null +++ b/ice_validator/tests/fixtures/test_nested_parameter_args/fail/fail0.yaml @@ -0,0 +1,59 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + cdl: + type: comma_delimited_list + num: + type: number +resources: + ex1_nova_server_0: + type: OS::Nova::Server + properties: + name: { get_param: [ ex1_vm_names, 0 ] } + metadata: + vnf_id: { get_param: vnf_id } + vf_module_id1: + get_param: [ cdl, { get_param: xnum }] + vf_module_id2: + get_param: [ xcdl, { get_param: num }] + diff --git a/ice_validator/tests/fixtures/test_nested_parameter_args/pass/pass0.yaml b/ice_validator/tests/fixtures/test_nested_parameter_args/pass/pass0.yaml new file mode 100644 index 0000000..3a27e99 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nested_parameter_args/pass/pass0.yaml @@ -0,0 +1,59 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + cdl: + type: comma_delimited_list + num: + type: number +resources: + ex1_nova_server_0: + type: OS::Nova::Server + properties: + name: { get_param: [ ex1_vm_names, 0 ] } + metadata: + vnf_id: { get_param: vnf_id } + vf_module_id1: + get_param: [ cdl, { get_param: num }] + vf_module_id2: + get_param: [ cdl, { get_param: num }] + diff --git a/ice_validator/tests/fixtures/test_nested_parameters/fail/heat_template.yaml b/ice_validator/tests/fixtures/test_nested_parameters/fail/heat_template.yaml index a6a8a0e..3785474 100644 --- a/ice_validator/tests/fixtures/test_nested_parameters/fail/heat_template.yaml +++ b/ice_validator/tests/fixtures/test_nested_parameters/fail/heat_template.yaml @@ -48,12 +48,37 @@ parameters: type: string vm_type_volume_size_0: type: number + vm_role: + type: string + vnf_id: + type: string + vf_module_id: + type: string + vnf_name: + type: string + vf_module_name: + type: string + vf_module_index: + type: string + environment_context: + type: string + workload_context: + type: string resources: server_0: type: nested_template_1.yaml properties: name: { get_param: server_name_0 } + vm_1role: { get_param: vm_role } + vnf_1id: { get_param: vnf_id } + vf_module_1id: { get_param: vf_module_id } + vnf_1name: { get_param: vnf_name } + vf_module_1name: { get_param: vf_module_name } + vf_module_1index: { get_param: vf_module_index } + environment_cont1ext: { get_param: environment_context } + workload_cont1ext: { get_param: workload_context } + my_resource_group_1: type: OS::Heat::ResourceGroup properties: diff --git a/ice_validator/tests/fixtures/test_nested_parameters/fail/nested_template_1.yaml b/ice_validator/tests/fixtures/test_nested_parameters/fail/nested_template_1.yaml deleted file mode 100644 index 5f2732f..0000000 --- a/ice_validator/tests/fixtures/test_nested_parameters/fail/nested_template_1.yaml +++ /dev/null @@ -1,62 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START==================================================== -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -# VERSION = '1.0.0' - ---- -heat_template_version: 2013-05-23 - -resources: - volume: - type: OS::Cinder::Volume - properties: - size: 1 - - volume_attachment: - type: OS::Cinder::VolumeAttachment - properties: - volume_id: { get_resource: volume } - instance_uuid: { get_resource: instance } - - instance: - type: OS::Nova::Server - properties: - image: myimage - flavor: m1.small diff --git a/ice_validator/tests/fixtures/test_nested_template_parameters/fail/bad-heat_template.yaml b/ice_validator/tests/fixtures/test_nested_template_parameters/fail/bad-heat_template.yaml new file mode 100644 index 0000000..e948fb0 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nested_template_parameters/fail/bad-heat_template.yaml @@ -0,0 +1,59 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.1' + +--- + +resources: + server_0: + type: nested_template_1.yaml + properties: + para1: 'what me worry' + para2: 'what me worry' + + server_1: + type: OS::Heat::ResourceGroup + properties: + resource_def: + type: nested_template_1.yaml + para2: 'what me worry' + para3: 'what me worry' + diff --git a/ice_validator/tests/fixtures/test_nested_template_parameters/pass/heat_template.yaml b/ice_validator/tests/fixtures/test_nested_template_parameters/pass/heat_template.yaml new file mode 100644 index 0000000..315eec4 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nested_template_parameters/pass/heat_template.yaml @@ -0,0 +1,62 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.2' + +--- + +resources: + server_0: + type: nested_template_1.yaml + properties: + para1: 'what me worry' + para2: 'what me worry' + para3: 'what me worry' + + server_1: + type: OS::Heat::ResourceGroup + properties: + resource_def: + type: nested_template_1.yaml + properties: + para1: 'what me worry' + para2: 'what me worry' + para3: 'what me worry' + diff --git a/ice_validator/tests/fixtures/test_nested_template_parameters/pass/nested_template_1.yaml b/ice_validator/tests/fixtures/test_nested_template_parameters/pass/nested_template_1.yaml new file mode 100644 index 0000000..87b03a0 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nested_template_parameters/pass/nested_template_1.yaml @@ -0,0 +1,68 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +parameters: + para1: + type: string + para2: + type: string + para3: + type: string + +resources: + volume: + type: OS::Cinder::Volume + properties: + size: 1 + + volume_attachment: + type: OS::Cinder::VolumeAttachment + properties: + volume_id: { get_resource: volume } + instance_uuid: { get_resource: instance } + + instance: + type: OS::Nova::Server + properties: + image: myimage + flavor: m1.small diff --git a/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level0.yaml b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level0.yaml new file mode 100644 index 0000000..42971ee --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level0.yaml @@ -0,0 +1,51 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' +--- +resources: + server_0: + type: bad-level1.yaml + properties: + name: { get_param: server_name_0 } + my_resource_group_1: + type: OS::Heat::ResourceGroup + properties: + count: 5 + resource_def: { type: bad-level2.yaml } diff --git a/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level1.yaml b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level1.yaml new file mode 100644 index 0000000..9bd513d --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level1.yaml @@ -0,0 +1,63 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' +--- +nested_template_description: base + +parameters: + vm_type_volume_name_0: + type: string + vm_type_volume_size_0: + type: number + +resources: + server_0: + type: bad-level2.yaml + properties: + name: {get_param: server_name_0} + my_resource_group_1: + type: OS::Nova::Server + properties: + count: 5 + resource_def: { type: bad-level3.yaml } + +outputs: + vm_type_volume_id_0: + value: {get_resource: vm_type_volume_0} diff --git a/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level2.yaml b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level2.yaml new file mode 100644 index 0000000..242a0d7 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level2.yaml @@ -0,0 +1,63 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' +--- +nested_template_description: base + +parameters: + vm_type_volume_name_0: + type: string + vm_type_volume_size_0: + type: number + +resources: + server_0: + type: not_a_template_file + properties: + name: {get_param: server_name_0} + my_resource_group_1: + type: OS::Heat::ResourceGroup + properties: + count: 5 + resource_def: { type: bad-level3.yaml } + +outputs: + vm_type_volume_id_0: + value: {get_resource: vm_type_volume_0} diff --git a/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level3.yaml b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level3.yaml new file mode 100644 index 0000000..bc762d7 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_level/fail/bad-level3.yaml @@ -0,0 +1,60 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' +--- +heat_template_version: '2013-05-23' + +resources: + volume: + type: OS::Cinder::Volume + properties: + size: 1 + + volume_attachment: + type: OS::Cinder::VolumeAttachment + properties: + volume_id: { get_resource: volume } + instance_uuid: { get_resource: instance } + + instance: + type: OS::Nova::Server + properties: + image: myimage + flavor: m1.small diff --git a/ice_validator/tests/fixtures/test_nesting_level/pass/level0.yaml b/ice_validator/tests/fixtures/test_nesting_level/pass/level0.yaml new file mode 100644 index 0000000..da8815c --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_level/pass/level0.yaml @@ -0,0 +1,51 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' +--- +resources: + server_0: + type: level1.yaml + properties: + name: { get_param: server_name_0 } + my_resource_group_1: + type: OS::Heat::ResourceGroup + properties: + count: 5 + resource_def: { type: level2.yaml } diff --git a/ice_validator/tests/fixtures/test_nesting_level/pass/level1.yaml b/ice_validator/tests/fixtures/test_nesting_level/pass/level1.yaml new file mode 100644 index 0000000..f51772f --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_level/pass/level1.yaml @@ -0,0 +1,63 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.1' +--- +nested_template_description: base + +parameters: + vm_type_volume_name_0: + type: string + vm_type_volume_size_0: + type: number + +resources: + server_0: + type: level3.yaml + properties: + name: {get_param: server_name_0} + my_resource_group_1: + type: OS::Nova::Server + properties: + count: 5 + resource_def: { type: level2.yaml } + +outputs: + vm_type_volume_id_0: + value: {get_resource: vm_type_volume_0} diff --git a/ice_validator/tests/fixtures/test_nesting_level/pass/level2.yaml b/ice_validator/tests/fixtures/test_nesting_level/pass/level2.yaml new file mode 100644 index 0000000..5d21ad8 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_level/pass/level2.yaml @@ -0,0 +1,63 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.1' +--- +nested_template_description: base + +parameters: + vm_type_volume_name_0: + type: string + vm_type_volume_size_0: + type: number + +resources: + server_0: + type: not_a_template_file + properties: + name: {get_param: server_name_0} + my_resource_group_1: + type: OS::Heat::ResourceGroup + properties: + count: 5 + resource_def: { type: level3.yaml } + +outputs: + vm_type_volume_id_0: + value: {get_resource: vm_type_volume_0} diff --git a/ice_validator/tests/fixtures/test_nesting_level/pass/level3.yaml b/ice_validator/tests/fixtures/test_nesting_level/pass/level3.yaml new file mode 100644 index 0000000..bc762d7 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_level/pass/level3.yaml @@ -0,0 +1,60 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' +--- +heat_template_version: '2013-05-23' + +resources: + volume: + type: OS::Cinder::Volume + properties: + size: 1 + + volume_attachment: + type: OS::Cinder::VolumeAttachment + properties: + volume_id: { get_resource: volume } + instance_uuid: { get_resource: instance } + + instance: + type: OS::Nova::Server + properties: + image: myimage + flavor: m1.small diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_0.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_0.yaml new file mode 100644 index 0000000..7485297 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_0.yaml @@ -0,0 +1,50 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' +--- +resources: + server_0: + type: bad-17528_1.yaml + properties: + name: { get_param: server_name_0 } + my_resource_group_1: + type: OS::Heat::ResourceGroup + properties: + count: 5 diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_1.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_1.yaml new file mode 100644 index 0000000..4e79ff3 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_1.yaml @@ -0,0 +1,65 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.1' +--- +nested_template_description: base + +parameters: + vm_type_volume_name_0: + type: string + vm_type_volume_size_0: + type: number + +resources: + server_0: + type: not_a_template_file + properties: + name: {get_param: server_name_0} + my_resource_group_1: + type: OS::Nova::Server + properties: + count: 5 + resource_def: { type: bad-17528_2.yaml } + my_resource_group_2: + type: OS::Nova::Server + +outputs: + vm_type_volume_id_0: + value: {get_resource: vm_type_volume_0} diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_2.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_2.yaml new file mode 100644 index 0000000..172bb2c --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_nova_server/fail/bad-17528_2.yaml @@ -0,0 +1,60 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.1' +--- +heat_template_version: '2013-05-23' + +resources: + volume: + type: OS::Cinder::Volume + properties: + size: 1 + + volume_attachment: + type: OS::Cinder::VolumeAttachment + properties: + volume_id: { get_resource: volume } + instance_uuid: { get_resource: instance } + + instance: + type: OS::Nova::NotServer + properties: + image: myimage + flavor: m1.small diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_0.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_0.yaml new file mode 100644 index 0000000..4483411 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_0.yaml @@ -0,0 +1,50 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' +--- +resources: + server_0: + type: 17528_1.yaml + properties: + name: { get_param: server_name_0 } + my_resource_group_1: + type: OS::Heat::ResourceGroup + properties: + count: 5 diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_1.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_1.yaml new file mode 100644 index 0000000..66e9c04 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_1.yaml @@ -0,0 +1,64 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' +--- +nested_template_description: base + +parameters: + vm_type_volume_name_0: + type: string + vm_type_volume_size_0: + type: number + +resources: + server_0: + type: not_a_template_file + properties: + name: {get_param: server_name_0} + my_resource_group_1: + type: OS::Nova::Server + properties: + count: 5 + #resource_def: { type: 17528_3.yaml } + resource_def: { type: 17528_2.yaml } + +outputs: + vm_type_volume_id_0: + value: {get_resource: vm_type_volume_0} diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_2.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_2.yaml new file mode 100644 index 0000000..00ab275 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_2.yaml @@ -0,0 +1,60 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' +--- +heat_template_version: '2013-05-23' + +resources: + volume: + type: OS::Cinder::Volume + properties: + size: 1 + + volume_attachment: + type: OS::Cinder::VolumeAttachment + properties: + volume_id: { get_resource: volume } + instance_uuid: { get_resource: instance } + + instance: + type: OS::Nova::NotServer + properties: + image: myimage + flavor: m1.small diff --git a/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_3.yaml b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_3.yaml new file mode 100644 index 0000000..5e7dd2d --- /dev/null +++ b/ice_validator/tests/fixtures/test_nesting_nova_server/pass/17528_3.yaml @@ -0,0 +1,63 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' +--- +nested_template_description: base + +parameters: + vm_type_volume_name_0: + type: string + vm_type_volume_size_0: + type: number + +resources: + server_0: + type: not_a_template_file + properties: + name: {get_param: server_name_0} + my_resource_group_1: + type: OS::Nova::Server + properties: + count: 5 + resource_def: { type: 17528_2.yaml } + +outputs: + vm_type_volume_id_0: + value: {get_resource: vm_type_volume_0} diff --git a/ice_validator/tests/fixtures/test_network_format/fail/invalid_naming_used_for_network.yaml b/ice_validator/tests/fixtures/test_network_format/fail/invalid_naming_used_for_network.yaml index 3a60812..7351826 100644 --- a/ice_validator/tests/fixtures/test_network_format/fail/invalid_naming_used_for_network.yaml +++ b/ice_validator/tests/fixtures/test_network_format/fail/invalid_naming_used_for_network.yaml @@ -47,14 +47,24 @@ resources: vm_type_1_int_vpnnet_0_port: type: OS::Neutron::Port properties: - network: { get_param: int_vpnnet_net } + network: { get_param: int_vpnnet_net_id } vm_type_1_extnet_net_0_port: type: OS::Neutron::Port properties: - network: { get_param: extnet_net } + network: { get_param: extnet_net_name } vm_type_1_extnet_0_port: type: OS::Neutron::Port properties: network: { get_param: extnet_net_id } + + int_oam_netork: + type: OS::Neutron::Net + properties: + name: { get_param: int_oam_net_name } + + vm_type_1_int_oam_1_port: + type: OS::Neutron::Port + properties: + gbgdfjk: { get_resource: int_oam_net } diff --git a/ice_validator/tests/fixtures/test_network_format/pass/valid_heat_template.yaml b/ice_validator/tests/fixtures/test_network_format/pass/valid_heat_template.yaml index 83358b2..136e27b 100644 --- a/ice_validator/tests/fixtures/test_network_format/pass/valid_heat_template.yaml +++ b/ice_validator/tests/fixtures/test_network_format/pass/valid_heat_template.yaml @@ -59,10 +59,16 @@ resources: properties: network: { get_param: extnet_net_id } - int_oam_net: + int_oam_network: type: OS::Neutron::Net properties: name: { get_param: int_oam_net_name } + + int_oam_subnet: + type: OS::Neutron::Subnet + properties: + network: { get_resource: int_oam_network } + vm_type_1_int_oam_1_port: type: OS::Neutron::Port properties: diff --git a/ice_validator/tests/fixtures/test_neutron_net_resource_id/fail/fail.yaml b/ice_validator/tests/fixtures/test_neutron_net_resource_id/fail/fail.yaml new file mode 100644 index 0000000..b95e5d6 --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_net_resource_id/fail/fail.yaml @@ -0,0 +1,53 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + + int_0_romeo_networK: + type: OS::Neutron::Net + + ant_0_romeo_network: + type: OS::Neutron::Net + diff --git a/ice_validator/tests/fixtures/test_neutron_net_resource_id/pass/pass.yaml b/ice_validator/tests/fixtures/test_neutron_net_resource_id/pass/pass.yaml new file mode 100644 index 0000000..2b0049a --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_net_resource_id/pass/pass.yaml @@ -0,0 +1,53 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + + int_0_romeo_network: + type: OS::Neutron::Net + + int_0_romeo_network: + type: OS::Neutron::Net + diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail0.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail0.yaml new file mode 100644 index 0000000..3237293 --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail0.yaml @@ -0,0 +1,86 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 0 + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 1 + + vm_typeX_1_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 0 + - ip_address: { get_param: my_ip_1 } + v6_ip_address: { get_param: my_v6_ip_1 } + mac_and_cheese: 1 + + vm_typeX_2_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address: { get_parm: my_ip } + v6_ip_address: { get_parm: my_v6_ip } + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address + + vm_typeX_4_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail1.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail1.yaml new file mode 100644 index 0000000..de3c46f --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail1.yaml @@ -0,0 +1,86 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 0 + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 1 + + vm_typeX_1_bialy_port_2: + type: OS::Neutron::Port + properties: + xallowed_address_pairs: + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 0 + - ip_address: { get_param: my_ip_1 } + v6_ip_address: { get_param: my_v6_ip_1 } + mac_and_cheese: 1 + + vm_typeX_2_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address: { get_parm: my_ip } + v6_ip_address: { get_parm: my_v6_ip } + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address + + vm_typeX_4_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail2.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail2.yaml new file mode 100644 index 0000000..6d3cc82 --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail2.yaml @@ -0,0 +1,86 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 0 + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 1 + + vm_typeX_1_bialy_port_2: + type: OS::Neutron::Port + properties: + xallowed_address_pairs: + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 0 + - ip_address: { get_param: my_ip_1 } + v6_ip_address: { get_param: my_v6_ip_1 } + mac_and_cheese: 1 + + vm_typeX_2_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address: { get_parm: my_ip } + v6_ip_address: { get_parm: my_v6_ip } + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + xallowed_address_pairs: + - ip_address + + vm_typeX_4_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail3.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail3.yaml new file mode 100644 index 0000000..521136a --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/fail3.yaml @@ -0,0 +1,86 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 0 + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 1 + + vm_typeX_1_bialy_port_2: + type: OS::Neutron::Port + properties: + xallowed_address_pairs: + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 0 + - ip_address: { get_param: my_ip_1 } + v6_ip_address: { get_param: my_v6_ip_1 } + mac_and_cheese: 1 + + vm_typeX_2_bialy_port_2: + type: OS::Neutron::Port + properties: + xallowed_address_pairs: + - ip_address: { get_parm: my_ip } + v6_ip_address: { get_parm: my_v6_ip } + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + xallowed_address_pairs: + - ip_address + + vm_typeX_4_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/other0.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/other0.yaml new file mode 100644 index 0000000..e690ea3 --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/fail/other0.yaml @@ -0,0 +1,53 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +resources: + + other_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address: { get_param: my_ip } + - ip_address: { get_param: my_v6_ip } + - ip_address: { get_param: my2_ip } + - ip_address: { get_param: my2_v6_ip } + diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/pass/other0.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/pass/other0.yaml new file mode 100644 index 0000000..cc9d315 --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/pass/other0.yaml @@ -0,0 +1,55 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +resources: + + other_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address: { get_param: my_ip_1 } + v6_ip_address: { get_param: my_v6_ip_1 } + mac_and_cheese: 0 + - ip_address: { get_param: my_ip_1 } + v6_ip_address: { get_param: my_v6_ip_1 } + mac_and_cheese: 1 + diff --git a/ice_validator/tests/fixtures/test_neutron_port_addresses/pass/pass0.yaml b/ice_validator/tests/fixtures/test_neutron_port_addresses/pass/pass0.yaml new file mode 100644 index 0000000..07711cd --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_addresses/pass/pass0.yaml @@ -0,0 +1,86 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 0 + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 1 + + vm_typeX_1_bialy_port_2: + type: OS::Neutron::Port + properties: + allowed_address_pairs: + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 0 + - ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + mac_and_cheese: 1 + + vm_typeX_2_bialy_port_2: + type: OS::Neutron::Port + properties: + xallowed_address_pairs: + - ip_address: { get_parm: my_ip } + v6_ip_address: { get_parm: my_v6_ip } + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + xallowed_address_pairs: + - ip_address + + vm_typeX_4_bialy_port_2: + type: OS::Neutron::Port + properties: + xallowed_address_pairs: + ip_address: { get_param: my_ip } + v6_ip_address: { get_param: my_v6_ip } + diff --git a/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail0.yaml b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail0.yaml new file mode 100644 index 0000000..d5756f3 --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail0.yaml @@ -0,0 +1,97 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + + vm_typeX_bialy_vlan_filter: + type: comma_delimited_list + vm_typeX_bialy_public_vlans: + type: comma_delimited_list + vm_typeX_bialy_private_vlans: + type: comma_delimited_list + vm_typeX_bialy_guest_vlans: + type: comma_delimited_list + subnet_param: + type: string + subnet_id_param: + type: comma_delimited_list + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: int_intranet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_int_intranet_floating_ip } + subnet: { get_param: subnet_param } + subnet_id: { get_param: subnet_id_param } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Trunk + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_extnet_floating_v6_ip } + subnet: { get_param: subnet_param } + subnet_id: { get_param: subnet_id_param } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Mirrored_Trunk + diff --git a/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail1.yaml b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail1.yaml new file mode 100644 index 0000000..29b20fe --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/fail/fail1.yaml @@ -0,0 +1,97 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + + vm_typeX_bialy_vlan_filter: + type: comma_delimited_list + vm_typeX_bialy_public_vlans: + type: comma_delimited_list + vm_typeX_bialy_private_vlans: + type: comma_delimited_list + vm_typeX_bialy_guest_vlans: + type: comma_delimited_list + bialy_subnet: + type: string + bialy_subnet_id: + type: string + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: int_intranet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_int_intranet_floating_ip } + subnet: { get_param: bialy_subnet } + subnet_id: { get_param: bialy_subnet_id } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Trunk + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_extnet_floating_v6_ip } + subnet: { get_param: bialy_subnet } + subnet_id: { get_param: bialy_subnet_id } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Mirrored_Trunk + diff --git a/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0.yaml b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0.yaml new file mode 100644 index 0000000..c26c0a8 --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0.yaml @@ -0,0 +1,95 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + + vm_typeX_bialy_vlan_filter: + type: comma_delimited_list + vm_typeX_bialy_public_vlans: + type: comma_delimited_list + vm_typeX_bialy_private_vlans: + type: comma_delimited_list + vm_typeX_bialy_guest_vlans: + type: comma_delimited_list + bialy_subnet: + type: string + bialy_subnet_id: + type: string + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: int_intranet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_int_intranet_floating_ip } + subnet: { get_param: bialy_subnet_id } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Trunk + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_extnet_floating_v6_ip } + subnet_id: { get_param: bialy_subnet_id } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Mirrored_Trunk + diff --git a/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0_base.yaml b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0_base.yaml new file mode 100644 index 0000000..a73de94 --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_fixed_ips/pass/pass0_base.yaml @@ -0,0 +1,49 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Net + diff --git a/ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0.yaml b/ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0.yaml new file mode 100644 index 0000000..85d0524 --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0.yaml @@ -0,0 +1,100 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + + vm_typeX_bialy_vlan_filter: + type: comma_delimited_list + vm_typeX_bialy_public_vlans: + type: comma_delimited_list + vm_typeX_bialy_private_vlans: + type: comma_delimited_list + vm_typeX_bialy_guest_vlans: + type: comma_delimited_list + subnet_param: + type: string + subnet_id_param: + type: string + int_extnet_net_id: + type: string + int_intranet_net_name: + type: string +resources: + + vm_typeX_0_intranet_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: int_intranet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_int_intranet_floating_ip } + subnet: { get_param: subnet_param } + subnet_id: { get_param: subnet_id_param } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Trunk + + vm_typeX_3_extnet_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: int_extnet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_extnet_floating_v6_ip } + subnet: { get_param: subnet_param } + subnet_id: { get_param: subnet_id_param } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Mirrored_Trunk + diff --git a/ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0_base.yaml b/ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0_base.yaml new file mode 100644 index 0000000..4fa9c0b --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_internal_network/fail/fail0_base.yaml @@ -0,0 +1,63 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +outputs: + + #int_extnet_net_id: + # value: { get_resource: int_extnet_net_id } + #int_intranet_net_name: + # value: { get_param: int_intranet_net_name } + + +resources: + + int_intranet_net_name: + type: OS::Neutron::Net + properties: + name: { get_param: int_intranet_net_name } + + int_extnet_net_id: + type: OS::Neutron::Net + +parameters: + int_intranet_net_name: + type: string diff --git a/ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0.yaml b/ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0.yaml new file mode 100644 index 0000000..85d0524 --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0.yaml @@ -0,0 +1,100 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + + vm_typeX_bialy_vlan_filter: + type: comma_delimited_list + vm_typeX_bialy_public_vlans: + type: comma_delimited_list + vm_typeX_bialy_private_vlans: + type: comma_delimited_list + vm_typeX_bialy_guest_vlans: + type: comma_delimited_list + subnet_param: + type: string + subnet_id_param: + type: string + int_extnet_net_id: + type: string + int_intranet_net_name: + type: string +resources: + + vm_typeX_0_intranet_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: int_intranet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_int_intranet_floating_ip } + subnet: { get_param: subnet_param } + subnet_id: { get_param: subnet_id_param } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Trunk + + vm_typeX_3_extnet_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: int_extnet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_extnet_floating_v6_ip } + subnet: { get_param: subnet_param } + subnet_id: { get_param: subnet_id_param } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Mirrored_Trunk + diff --git a/ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0_base.yaml b/ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0_base.yaml new file mode 100644 index 0000000..464ea71 --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_internal_network/pass/pass0_base.yaml @@ -0,0 +1,63 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +outputs: + + int_extnet_net_id: + value: { get_resource: int_extnet_net_id } + int_intranet_net_name: + value: { get_param: int_intranet_net_name } + + +resources: + + int_intranet_network: + type: OS::Neutron::Net + properties: + name: { get_param: int_intranet_net_name } + + int_extnet_network: + type: OS::Neutron::Net + +parameters: + int_intranet_net_name: + type: string diff --git a/ice_validator/tests/fixtures/test_neutron_port_network_parameter/fail/fail.yaml b/ice_validator/tests/fixtures/test_neutron_port_network_parameter/fail/fail.yaml new file mode 100644 index 0000000..8beb00a --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_network_parameter/fail/fail.yaml @@ -0,0 +1,16 @@ +heat_template_version: 2015-04-30 + +description: fdsafsfsa + +parameters: + + # network cloud + testnetwork: + type: snafjsa + +resources: + + testport: + type: OS::Neutron::Port + properties: + network: { get_param: testnetwork } diff --git a/ice_validator/tests/fixtures/test_neutron_port_network_parameter/pass/pass.yaml b/ice_validator/tests/fixtures/test_neutron_port_network_parameter/pass/pass.yaml new file mode 100644 index 0000000..86da04e --- /dev/null +++ b/ice_validator/tests/fixtures/test_neutron_port_network_parameter/pass/pass.yaml @@ -0,0 +1,16 @@ +heat_template_version: 2015-04-30 + +description: fdsafsfsa + +parameters: + + # network cloud + testnetwork: + type: string + +resources: + + testport: + type: OS::Neutron::Port + properties: + network: { get_param: testnetwork } diff --git a/ice_validator/tests/fixtures/test_no_http_resources/fail/fail.yaml b/ice_validator/tests/fixtures/test_no_http_resources/fail/fail.yaml new file mode 100644 index 0000000..7bf50af --- /dev/null +++ b/ice_validator/tests/fixtures/test_no_http_resources/fail/fail.yaml @@ -0,0 +1,94 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +--- +resources: + + admin_server_0: + type: OS::Nova::Server + properties: + availability_zone: { get_param: availability_zone_0 } + name: { get_param: [admin_names, 0] } + flavor: { get_param: admin_flavor_name} + networks: + - port: { get_resource: admin_0_exnet_0_port } + - port: { get_resource: admin_0_int_vpnnet_0_port } + metadata: + vnf_name: { get_param: vnf_name } + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + user_data: + get_file: http://server.example.com/files/user_data.sh + + admin_server_1: + type: OS::Nova::Server + properties: + availability_zone: { get_param: availability_zone_0 } + name: { get_param: [admin_names, 1] } + flavor: { get_param: admin_flavor_name} + networks: + - port: { get_resource: admin_1_extnet_0_port } + - port: { get_resource: admin_1_extnet_1_port } + metadata: + vnf_name: { get_param: vnf_name } + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + personality: {"/opt/new.txt": { get_file: "new.txt" } } + + admin_server_2: + type: OS::Nova::Server + properties: + availability_zone: { get_param: availability_zone_0 } + name: { get_param: [admin_names, 2] } + flavor: { get_param: admin_flavor_name} + metadata: + vnf_name: { get_param: vnf_name } + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + + lb_server_0: + type: http://www.google.com.yaml + properties: + availability_zone: { get_param: availability_zone_0 } + name: { get_param: [lb_names, 0] } + flavor: { get_param: lb_flavor_name} + metadata: + vnf_name: { get_param: vnf_name } + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_no_http_resources/pass/valid_template.yaml b/ice_validator/tests/fixtures/test_no_http_resources/pass/valid_template.yaml new file mode 100644 index 0000000..0f5dcb6 --- /dev/null +++ b/ice_validator/tests/fixtures/test_no_http_resources/pass/valid_template.yaml @@ -0,0 +1,94 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +--- +resources: + + admin_server_0: + type: OS::Nova::Server + properties: + availability_zone: { get_param: availability_zone_0 } + name: { get_param: [admin_names, 0] } + flavor: { get_param: admin_flavor_name} + networks: + - port: { get_resource: admin_0_exnet_0_port } + - port: { get_resource: admin_0_int_vpnnet_0_port } + metadata: + vnf_name: { get_param: vnf_name } + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + user_data: + get_file: user_data.sh + + admin_server_1: + type: OS::Nova::Server + properties: + availability_zone: { get_param: availability_zone_0 } + name: { get_param: [admin_names, 1] } + flavor: { get_param: admin_flavor_name} + networks: + - port: { get_resource: admin_1_extnet_0_port } + - port: { get_resource: admin_1_extnet_1_port } + metadata: + vnf_name: { get_param: vnf_name } + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + personality: {"/opt/new.txt": { get_file: "new.txt"} } + + admin_server_2: + type: OS::Nova::Server + properties: + availability_zone: { get_param: availability_zone_0 } + name: { get_param: [admin_names, 2] } + flavor: { get_param: admin_flavor_name} + metadata: + vnf_name: { get_param: vnf_name } + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + + lb_server_0: + type: OS::Nova::Server + properties: + availability_zone: { get_param: availability_zone_0 } + name: { get_param: [lb_names, 0] } + flavor: { get_param: lb_flavor_name} + metadata: + vnf_name: { get_param: vnf_name } + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_no_image_files/fail/image.ami b/ice_validator/tests/fixtures/test_no_image_files/fail/image.ami new file mode 100644 index 0000000..e69de29 diff --git a/ice_validator/tests/fixtures/test_no_image_files/fail/image2.ISO b/ice_validator/tests/fixtures/test_no_image_files/fail/image2.ISO new file mode 100644 index 0000000..e69de29 diff --git a/ice_validator/tests/fixtures/test_no_image_files/fail/pass.sh b/ice_validator/tests/fixtures/test_no_image_files/fail/pass.sh new file mode 100644 index 0000000..739dc11 --- /dev/null +++ b/ice_validator/tests/fixtures/test_no_image_files/fail/pass.sh @@ -0,0 +1 @@ +echo "test" \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_no_image_files/fail/pass.yaml b/ice_validator/tests/fixtures/test_no_image_files/fail/pass.yaml new file mode 100644 index 0000000..86da04e --- /dev/null +++ b/ice_validator/tests/fixtures/test_no_image_files/fail/pass.yaml @@ -0,0 +1,16 @@ +heat_template_version: 2015-04-30 + +description: fdsafsfsa + +parameters: + + # network cloud + testnetwork: + type: string + +resources: + + testport: + type: OS::Neutron::Port + properties: + network: { get_param: testnetwork } diff --git a/ice_validator/tests/fixtures/test_no_image_files/fail/settings b/ice_validator/tests/fixtures/test_no_image_files/fail/settings new file mode 100644 index 0000000..ad78c6f --- /dev/null +++ b/ice_validator/tests/fixtures/test_no_image_files/fail/settings @@ -0,0 +1 @@ +test=one \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_no_image_files/pass/pass.sh b/ice_validator/tests/fixtures/test_no_image_files/pass/pass.sh new file mode 100644 index 0000000..739dc11 --- /dev/null +++ b/ice_validator/tests/fixtures/test_no_image_files/pass/pass.sh @@ -0,0 +1 @@ +echo "test" \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_no_image_files/pass/pass.yaml b/ice_validator/tests/fixtures/test_no_image_files/pass/pass.yaml new file mode 100644 index 0000000..86da04e --- /dev/null +++ b/ice_validator/tests/fixtures/test_no_image_files/pass/pass.yaml @@ -0,0 +1,16 @@ +heat_template_version: 2015-04-30 + +description: fdsafsfsa + +parameters: + + # network cloud + testnetwork: + type: string + +resources: + + testport: + type: OS::Neutron::Port + properties: + network: { get_param: testnetwork } diff --git a/ice_validator/tests/fixtures/test_no_image_files/pass/settings b/ice_validator/tests/fixtures/test_no_image_files/pass/settings new file mode 100644 index 0000000..ad78c6f --- /dev/null +++ b/ice_validator/tests/fixtures/test_no_image_files/pass/settings @@ -0,0 +1 @@ +test=one \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_non_server_name/fail/fail0.yaml b/ice_validator/tests/fixtures/test_non_server_name/fail/fail0.yaml new file mode 100644 index 0000000..50acd30 --- /dev/null +++ b/ice_validator/tests/fixtures/test_non_server_name/fail/fail0.yaml @@ -0,0 +1,126 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + + vm_typeX_bialy_vlan_filter: + type: comma_delimited_list + vm_typeX_bialy_public_vlans: + type: comma_delimited_list + vm_typeX_bialy_private_vlans: + type: comma_delimited_list + vm_typeX_bialy_guest_vlans: + type: comma_delimited_list + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + name: mynameistrouble + network: { get_param: int_intranet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_int_intranet_floating_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Trunk + + vm_typeX_1_bialy_port_2: + type: OS::Neutron::Port + properties: + name: + str_replace: mynameisstilltrouble + network: { get_param: int_intranet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Non_Trunk + + vm_typeX_2_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_extnet_floating_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: OVS + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_extnet_floating_v6_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Mirrored_Trunk + diff --git a/ice_validator/tests/fixtures/test_non_server_name/fail/fail1.yaml b/ice_validator/tests/fixtures/test_non_server_name/fail/fail1.yaml new file mode 100644 index 0000000..daa2045 --- /dev/null +++ b/ice_validator/tests/fixtures/test_non_server_name/fail/fail1.yaml @@ -0,0 +1,129 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + + vm_typeX_bialy_vlan_filter: + type: comma_delimited_list + vm_typeX_bialy_public_vlans: + type: comma_delimited_list + vm_typeX_bialy_private_vlans: + type: comma_delimited_list + vm_typeX_bialy_guest_vlans: + type: comma_delimited_list + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + name: + str_replace: + template: + params: mynameisstilltrouble + network: { get_param: int_intranet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_int_intranet_floating_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Trunk + + vm_typeX_1_bialy_port_2: + type: OS::Neutron::Port + properties: + name: + str_replace: {} + network: { get_param: int_intranet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Non_Trunk + + vm_typeX_2_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_extnet_floating_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: OVS + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_extnet_floating_v6_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Mirrored_Trunk + diff --git a/ice_validator/tests/fixtures/test_non_server_name/fail/fail2.yaml b/ice_validator/tests/fixtures/test_non_server_name/fail/fail2.yaml new file mode 100644 index 0000000..64a519b --- /dev/null +++ b/ice_validator/tests/fixtures/test_non_server_name/fail/fail2.yaml @@ -0,0 +1,133 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + + vm_typeX_bialy_vlan_filter: + type: comma_delimited_list + vm_typeX_bialy_public_vlans: + type: comma_delimited_list + vm_typeX_bialy_private_vlans: + type: comma_delimited_list + vm_typeX_bialy_guest_vlans: + type: comma_delimited_list + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + name: + str_replace: + template: + params: + mynameisstillbad: foozle + network: { get_param: int_intranet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_int_intranet_floating_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Trunk + + vm_typeX_1_bialy_port_2: + type: OS::Neutron::Port + properties: + name: + str_replace: + template: + params: + mynameisstilltrouble: + network: { get_param: int_intranet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Non_Trunk + + vm_typeX_2_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_extnet_floating_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: OVS + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_extnet_floating_v6_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Mirrored_Trunk + diff --git a/ice_validator/tests/fixtures/test_non_server_name/fail/fail3.yaml b/ice_validator/tests/fixtures/test_non_server_name/fail/fail3.yaml new file mode 100644 index 0000000..2def749 --- /dev/null +++ b/ice_validator/tests/fixtures/test_non_server_name/fail/fail3.yaml @@ -0,0 +1,135 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + + vm_typeX_bialy_vlan_filter: + type: comma_delimited_list + vm_typeX_bialy_public_vlans: + type: comma_delimited_list + vm_typeX_bialy_private_vlans: + type: comma_delimited_list + vm_typeX_bialy_guest_vlans: + type: comma_delimited_list + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + name: + str_replace: + template: + params: + mynameisstillbad: + get_param: foozle + network: { get_param: int_intranet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_int_intranet_floating_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Trunk + + vm_typeX_1_bialy_port_2: + type: OS::Neutron::Port + properties: + name: + str_replace: + template: + params: + mynameisstilltrouble: + get_param: + network: { get_param: int_intranet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Non_Trunk + + vm_typeX_2_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_extnet_floating_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: OVS + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_extnet_floating_v6_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Mirrored_Trunk + diff --git a/ice_validator/tests/fixtures/test_non_server_name/pass/pass0.yaml b/ice_validator/tests/fixtures/test_non_server_name/pass/pass0.yaml new file mode 100644 index 0000000..ff96331 --- /dev/null +++ b/ice_validator/tests/fixtures/test_non_server_name/pass/pass0.yaml @@ -0,0 +1,135 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +# VERSION: '1.0.0' + +--- +parameters: + + vm_typeX_bialy_vlan_filter: + type: comma_delimited_list + vm_typeX_bialy_public_vlans: + type: comma_delimited_list + vm_typeX_bialy_private_vlans: + type: comma_delimited_list + vm_typeX_bialy_guest_vlans: + type: comma_delimited_list + +resources: + + vm_typeX_0_bialy_port_2: + type: OS::Neutron::Port + properties: + name: + str_replace: + template: mynameisok_port2 + params: + mynameisok: + get_param: vnf_name + network: { get_param: int_intranet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_int_intranet_floating_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Trunk + + vm_typeX_1_bialy_port_2: + type: OS::Neutron::Port + properties: + name: + str_replace: + template: mynameisok_port2 + params: + mynameisok: + get_param: vnf_name + network: { get_param: int_intranet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Non_Trunk + + vm_typeX_2_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_name } + fixed_ips: + - ip_address: { get_param: lb_1_extnet_floating_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: OVS + + vm_typeX_3_bialy_port_2: + type: OS::Neutron::Port + properties: + network: { get_param: extnet_net_id } + fixed_ips: + - ip_address: { get_param: lb_2_extnet_floating_v6_ip } + binding:vnic_type: direct + value_specs: + vlan_filter: {get_param: vm_typeX_bialy_vlan_filter} + public_vlans: {get_param: vm_typeX_bialy_public_vlans} + private_vlans: {get_param: vm_typeX_bialy_private_vlans} + guest_vlans: {get_param: vm_typeX_bialy_guest_vlans} + vlan_mirror: + ATT_FABRIC_CONFIGURATION_REQUIRED: true + metadata: + port_type: SR-IOV_Mirrored_Trunk + diff --git a/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail.yaml b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail.yaml new file mode 100644 index 0000000..e0a7b60 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail.yaml @@ -0,0 +1,56 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + vm1_name_1: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + vm2_name_0: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + vm2_name_2: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail2.yaml b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail2.yaml new file mode 100644 index 0000000..77b388e --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/fail2.yaml @@ -0,0 +1,55 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + vm3_name_0: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + vm3_name_2: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + +resources: + vm1_server_0: + type: nested.yaml diff --git a/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/nested.yaml b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/nested.yaml new file mode 100644 index 0000000..207d8f6 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/fail/nested.yaml @@ -0,0 +1,46 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + vm2_name_16: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance diff --git a/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/nested.yaml b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/nested.yaml new file mode 100644 index 0000000..71d5419 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/nested.yaml @@ -0,0 +1,46 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + vm1_name_16: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance diff --git a/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass.yaml b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass.yaml new file mode 100644 index 0000000..4a3a81f --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass.yaml @@ -0,0 +1,51 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + vm1_name_0: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + + vm1_name_1: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance diff --git a/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass2.yaml b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass2.yaml new file mode 100644 index 0000000..6f16fb2 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_server_name_parameters_start_at_0/pass/pass2.yaml @@ -0,0 +1,54 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +heat_template_version: 2015-04-30 + +description: Simple template to deploy a single compute instance + +parameters: + vm2_name_0: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + vm2_name_1: + type: string + label: Key Name + description: Name of key-pair to be used for compute instance + +resources: + vm1_server_0: + type: nested.yaml diff --git a/ice_validator/tests/fixtures/test_nova_server_resource_id/fail/fail.yaml b/ice_validator/tests/fixtures/test_nova_server_resource_id/fail/fail.yaml new file mode 100644 index 0000000..a587025 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_server_resource_id/fail/fail.yaml @@ -0,0 +1,56 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +resources: + dont_mind_me: + type: not-a-nova-server + server_0: + type: OS::Nova::Server + _server_1: + type: OS::Nova::Server + _server_: + type: OS::Nova::Server + foo_server_: + type: OS::Nova::Server + diff --git a/ice_validator/tests/fixtures/test_nova_server_resource_id/pass/pass.yaml b/ice_validator/tests/fixtures/test_nova_server_resource_id/pass/pass.yaml new file mode 100644 index 0000000..7f19679 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_server_resource_id/pass/pass.yaml @@ -0,0 +1,56 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +resources: + dont_mind_me: + type: not-a-nova-server + ok_server_0: + type: OS::Nova::Server + ok_server_1: + type: OS::Nova::Server + ok_server_2: + type: OS::Nova::Server + foo_server_0: + type: OS::Nova::Server + diff --git a/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail0.yaml b/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail0.yaml deleted file mode 100644 index b75f58c..0000000 --- a/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail0.yaml +++ /dev/null @@ -1,72 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START==================================================== -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -# VERSION = '1.0.0' - ---- -resources: - vm_type_a_server_0: - type: OS::Nova::Server - properties: - name: { get_param: [vm_type_a_names, 0] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - - vm_type_a_server_2: - type: OS::Nova::Server - properties: - name: { get_param: [vm_type_a_names, 1] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - - vm_type_b_server_0: - type: OS::Nova::Server - properties: - name: { get_param: vm_type_b_name_0 } - flavor: { get_param: vm_type_b_flavor_name} - image: { get_param: vm_type_b_image_name} - - vm_type_b_server_1: - type: OS::Nova::Server - properties: - name: { get_param: vm_type_b_name_1 } - flavor: { get_param: vm_type_b_flavor_name} - image: { get_param: vm_type_b_image_name} - diff --git a/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail1.yaml b/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail1.yaml deleted file mode 100644 index 4ee1d8b..0000000 --- a/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail1.yaml +++ /dev/null @@ -1,72 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START==================================================== -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -# VERSION = '1.0.0' - ---- -resources: - vm_type_a_server_2: - type: OS::Nova::Server - properties: - name: { get_param: [vm_type_a_names, 0] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - - vm_type_a_server_1: - type: OS::Nova::Server - properties: - name: { get_param: [vm_type_a_names, 1] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - - vm_type_b_server_0: - type: OS::Nova::Server - properties: - name: { get_param: vm_type_b_name_0 } - flavor: { get_param: vm_type_b_flavor_name} - image: { get_param: vm_type_b_image_name} - - vm_type_b_server_1: - type: OS::Nova::Server - properties: - name: { get_param: vm_type_b_name_1 } - flavor: { get_param: vm_type_b_flavor_name} - image: { get_param: vm_type_b_image_name} - diff --git a/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail2.yaml b/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail2.yaml deleted file mode 100644 index 3d02a12..0000000 --- a/ice_validator/tests/fixtures/test_nova_servers_index/fail/fail2.yaml +++ /dev/null @@ -1,79 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START==================================================== -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -# VERSION = '1.0.0' - ---- -resources: - vm_type_a_server_0: - type: OS::Nova::Server - properties: - name: { get_param: [vm_type_a_names, 0] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - - vm_type_a_sErver_0: - type: OS::Nova::Server - properties: - name: { get_param: [vm_type_a_names, 0] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - - vm_type_a_server_1: - type: OS::Nova::Server - properties: - name: { get_param: [vm_type_a_names, 1] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - - vm_type_b_server_0: - type: OS::Nova::Server - properties: - name: { get_param: vm_type_b_name_0 } - flavor: { get_param: vm_type_b_flavor_name} - image: { get_param: vm_type_b_image_name} - - vm_type_b_server_1: - type: OS::Nova::Server - properties: - name: { get_param: vm_type_b_name_1 } - flavor: { get_param: vm_type_b_flavor_name} - image: { get_param: vm_type_b_image_name} - diff --git a/ice_validator/tests/fixtures/test_nova_servers_index/pass/pass0.yaml b/ice_validator/tests/fixtures/test_nova_servers_index/pass/pass0.yaml deleted file mode 100644 index 5f4a931..0000000 --- a/ice_validator/tests/fixtures/test_nova_servers_index/pass/pass0.yaml +++ /dev/null @@ -1,72 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START==================================================== -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -# VERSION = '1.0.0' - ---- -resources: - vm_type_a_server_0: - type: OS::Nova::Server - properties: - name: { get_param: [vm_type_a_names, 0] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - - vm_type_a_server_1: - type: OS::Nova::Server - properties: - name: { get_param: [vm_type_a_names, 1] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - - vm_type_b_server_0: - type: OS::Nova::Server - properties: - name: { get_param: vm_type_b_name_0 } - flavor: { get_param: vm_type_b_flavor_name} - image: { get_param: vm_type_b_image_name} - - vm_type_b_server_1: - type: OS::Nova::Server - properties: - name: { get_param: vm_type_b_name_1 } - flavor: { get_param: vm_type_b_flavor_name} - image: { get_param: vm_type_b_image_name} - diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet/fail/fail0.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet/fail/fail0.yaml new file mode 100644 index 0000000..2a31b23 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet/fail/fail0.yaml @@ -0,0 +1,55 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.1' + +# resource of type "OS::Nova::Server" has metadata "valet_groups" +# FAIL: invalid format +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 0] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + metadata: + valet_groups: 'Valet_Rule, has embedded-space' + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet/pass/pass.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet/pass/pass.yaml new file mode 100644 index 0000000..bba5ffd --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet/pass/pass.yaml @@ -0,0 +1,74 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.1' + +# resource of type "OS::Nova::Server" has metadata +# which references parameter "workload_context" of type "string". + +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 0] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + metadata: + valet_groups: 'rule1' + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 1] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + metadata: + valet_groups: 'rule1, rule2, rule3' + + vm_type_a_server_2: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 2] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + metadata: + valet_groups: 'rule1 , rule2, rule3 ' + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail0.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail0.yaml new file mode 100644 index 0000000..755a397 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail0.yaml @@ -0,0 +1,69 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +# If resource of type "OS::Nova::Server" has metadata.valet_groups +# then every "OS::Nova::Server" must have a valid +# properties.availability_zone. +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + xavailability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + metadata: + valet_groups: 'rule1' + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail1.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail1.yaml new file mode 100644 index 0000000..29b5706 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail1.yaml @@ -0,0 +1,69 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +# If resource of type "OS::Nova::Server" has metadata.valet_groups +# then every "OS::Nova::Server" must have a valid +# properties.availability_zone. +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + availability_zone: + xstr_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + metadata: + valet_groups: 'rule1' + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail2.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail2.yaml new file mode 100644 index 0000000..1ae0e30 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail2.yaml @@ -0,0 +1,69 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +# If resource of type "OS::Nova::Server" has metadata.valet_groups +# then every "OS::Nova::Server" must have a valid +# properties.availability_zone. +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + xtemplate: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + metadata: + valet_groups: 'rule1' + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail3.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail3.yaml new file mode 100644 index 0000000..4d3ab2b --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail3.yaml @@ -0,0 +1,69 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +# If resource of type "OS::Nova::Server" has metadata.valet_groups +# then every "OS::Nova::Server" must have a valid +# properties.availability_zone. +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + xparams: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + metadata: + valet_groups: 'rule1' + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail4.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail4.yaml new file mode 100644 index 0000000..5be8642 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail4.yaml @@ -0,0 +1,69 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +# If resource of type "OS::Nova::Server" has metadata.valet_groups +# then every "OS::Nova::Server" must have a valid +# properties.availability_zone. +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + x$AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + metadata: + valet_groups: 'rule1' + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail5.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail5.yaml new file mode 100644 index 0000000..a95304d --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail5.yaml @@ -0,0 +1,69 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +# If resource of type "OS::Nova::Server" has metadata.valet_groups +# then every "OS::Nova::Server" must have a valid +# properties.availability_zone. +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'xget_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + metadata: + valet_groups: 'rule1' + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail6.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail6.yaml new file mode 100644 index 0000000..410fc36 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/fail/fail6.yaml @@ -0,0 +1,64 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +# If resource of type "OS::Nova::Server" has metadata.valet_groups +# then every "OS::Nova::Server" must have a valid +# properties.availability_zone. +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + availability_zone: "bogus value here" + metadata: + valet_groups: 'rule1' + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass0.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass0.yaml new file mode 100644 index 0000000..96e733d --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass0.yaml @@ -0,0 +1,69 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +# If resource of type "OS::Nova::Server" has metadata.valet_groups +# then every "OS::Nova::Server" must have a valid +# properties.availability_zone. +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + metadata: + valet_groups: 'rule1' + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass1.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass1.yaml new file mode 100644 index 0000000..00e4a92 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_availability_zone/pass/pass1.yaml @@ -0,0 +1,66 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +# If resource of type "OS::Nova::Server" has metadata.valet_groups +# then every "OS::Nova::Server" must have a valid +# properties.availability_zone. +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: {'get_param': xxxx} + $VALET_HOST_ASSIGNMENT: {'get_param': xxxx} + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0.yaml new file mode 100644 index 0000000..6759d45 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0.yaml @@ -0,0 +1,93 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +parameters: + vm_type_a_name_0: + type: string + description: VM Name for vm_type_a VM 0 + availability_zone_0: + type: string + description: availability zone 0 name + vm_type_a_valet_host_0: + type: string + description: Compute Name that vm_type_a VM 0 will be deployed on + vm_type_a_name_1: + type: string + description: VM Name for vm_type_a VM 1 + availability_zone_1: + type: string + description: availability zone 1 name + vm_type_a_valet_host_1: + type: string + description: Compute Name that vm_type_a VM 1 will be deployed on + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_0} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 } + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_1} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_X_valet_host_1 } + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0c.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0c.yaml new file mode 100644 index 0000000..07d438d --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail0c.yaml @@ -0,0 +1,91 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.1.0' + +--- + +parameters: + vm_type_a_names: + type: string + description: VM Names for vm_type_a + vm_type_a_valet_hosts: + type: comma_delimited_list + description: Compute Names that vm_type_a will be deployed on + availability_zone_0: + type: string + description: availability zone 0 name + availability_zone_1: + type: string + description: availability zone 1 name + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: [vm_type_a_names, 0]} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: [ + vm_type_a_valet_hosts, + get_param: index]} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: [vm_type_a_names, 1]} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: [ + vm_type_a_valet_hosts, + get_param: index]} + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1.yaml new file mode 100644 index 0000000..4dab3eb --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1.yaml @@ -0,0 +1,93 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +parameters: + vm_type_a_name_0: + type: string + description: VM Name for vm_type_a VM 0 + availability_zone_0: + type: string + description: availability zone 0 name + vm_type_a_valet_host_0: + type: string + description: Compute Name that vm_type_a VM 0 will be deployed on + vm_type_a_name_1: + type: string + description: VM Name for vm_type_a VM 1 + availability_zone_1: + type: string + description: availability zone 1 name + vm_type_a_valet_host_1: + type: string + description: Compute Name that vm_type_a VM 1 will be deployed on + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_0} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 } + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_1} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VaLET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 } + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1c.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1c.yaml new file mode 100644 index 0000000..997a06d --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail1c.yaml @@ -0,0 +1,91 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.1.0' + +--- + +parameters: + vm_type_a_names: + type: comma_delimited_list + description: VM Names for vm_type_a + vm_type_a_valet_hosts: + type: comma_delimited_list + description: Compute Names that vm_type_a will be deployed on + availability_zone_0: + type: string + description: availability zone 0 name + availability_zone_2: + type: string + description: availability zone 2 name + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: [vm_type_a_names, 0]} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: [ + vm_type_a_valet_hosts, + get_param: index]} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: [vm_type_a_names, 1]} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: [ + vm_type_a_valet_hosts, + get_param: index]} + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2.yaml new file mode 100644 index 0000000..0643d99 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2.yaml @@ -0,0 +1,93 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +parameters: + vm_type_a_name_0: + type: string + description: VM Name for vm_type_a VM 0 + availability_zone_0: + type: string + description: availability zone 0 name + vm_type_a_valet_host_0: + type: string + description: Compute Name that vm_type_a VM 0 will be deployed on + vm_type_a_name_1: + type: string + description: VM Name for vm_type_a VM 1 + availability_zone_1: + type: string + description: availability zone 1 name + vm_type_a_valet_host_1: + type: string + description: Compute Name that vm_type_a VM 1 will be deployed on + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_0} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 } + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_1} + flavor: ... + image: ... + availability_zone: + str_replace: + Xtemplate: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 } + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2c.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2c.yaml new file mode 100644 index 0000000..7eefac6 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail2c.yaml @@ -0,0 +1,91 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.1.0' + +--- + +parameters: + vm_type_a_names: + type: comma_delimited_list + description: VM Names for vm_type_a + vm_type_a_valet_hosts: + type: comma_delimited_list + description: Compute Names that vm_type_a will be deployed on + availability_zone_0: + type: string + description: availability zone 0 name + availability_zone_1: + type: string + description: availability zone 1 name + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: [vm_type_a_names, 0]} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: [ + vm_type_a_valet_hosts, + get_param: index]} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: [vm_type_a_names, 1]} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: [ + vm_type_a_valet_hosts, + get_param: index]} + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail3.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail3.yaml new file mode 100644 index 0000000..9d6827b --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail3.yaml @@ -0,0 +1,93 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +parameters: + vm_type_a_name_0: + type: string + description: VM Name for vm_type_a VM 0 + availability_zone_0: + type: string + description: availability zone 0 name + vm_type_a_valet_host_0: + type: string + description: Compute Name that vm_type_a VM 0 will be deployed on + vm_type_a_name_1: + type: string + description: VM Name for vm_type_a VM 1 + availability_zone_1: + type: string + description: availability zone 1 name + vm_type_a_valet_host_1: + type: string + description: Compute Name that vm_type_a VM 1 will be deployed on + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_0} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 } + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_1} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + Xparams: + $AZ: { get_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 } + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail4.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail4.yaml new file mode 100644 index 0000000..b9174eb --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail4.yaml @@ -0,0 +1,93 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +parameters: + vm_type_a_name_0: + type: string + description: VM Name for vm_type_a VM 0 + availability_zone_0: + type: string + description: availability zone 0 name + vm_type_a_valet_host_0: + type: string + description: Compute Name that vm_type_a VM 0 will be deployed on + vm_type_a_name_1: + type: string + description: VM Name for vm_type_a VM 1 + availability_zone_1: + type: string + description: availability zone 1 name + vm_type_a_valet_host_1: + type: string + description: Compute Name that vm_type_a VM 1 will be deployed on + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_0} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 } + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_1} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + X$AZ: { get_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 } + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail5.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail5.yaml new file mode 100644 index 0000000..dff47d6 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail5.yaml @@ -0,0 +1,93 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +parameters: + vm_type_a_name_0: + type: string + description: VM Name for vm_type_a VM 0 + availability_zone_0: + type: string + description: availability zone 0 name + vm_type_a_valet_host_0: + type: string + description: Compute Name that vm_type_a VM 0 will be deployed on + vm_type_a_name_1: + type: string + description: VM Name for vm_type_a VM 1 + availability_zone_1: + type: string + description: availability zone 1 name + vm_type_a_valet_host_1: + type: string + description: Compute Name that vm_type_a VM 1 will be deployed on + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_0} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 } + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_1} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { Xget_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 } + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail6.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail6.yaml new file mode 100644 index 0000000..46bc241 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail6.yaml @@ -0,0 +1,93 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +parameters: + vm_type_a_name_0: + type: string + description: VM Name for vm_type_a VM 0 + availability_zone_0: + type: string + description: availability zone 0 name + vm_type_a_valet_host_0: + type: string + description: Compute Name that vm_type_a VM 0 will be deployed on + vm_type_a_name_1: + type: string + description: VM Name for vm_type_a VM 1 + availability_zone_1: + type: string + description: availability zone 1 name + vm_type_a_valet_host_1: + type: string + description: Compute Name that vm_type_a VM 1 will be deployed on + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_0} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 } + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_1} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: Xavailability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 } + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail8.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail8.yaml new file mode 100644 index 0000000..98df513 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail8.yaml @@ -0,0 +1,93 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +parameters: + vm_type_a_name_0: + type: string + description: VM Name for vm_type_a VM 0 + availability_zone_0: + type: string + description: availability zone 0 name + vm_type_a_valet_host_0: + type: string + description: Compute Name that vm_type_a VM 0 will be deployed on + vm_type_a_name_1: + type: string + description: VM Name for vm_type_a VM 1 + Xavailability_zone_1: + type: string + description: availability zone 1 name + vm_type_a_valet_host_1: + type: string + description: Compute Name that vm_type_a VM 1 will be deployed on + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_0} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 } + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_1} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 } + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail9.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail9.yaml new file mode 100644 index 0000000..c30b387 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/fail/fail9.yaml @@ -0,0 +1,93 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +parameters: + vm_type_a_name_0: + type: string + description: VM Name for vm_type_a VM 0 + availability_zone_0: + type: string + description: availability zone 0 name + vm_type_a_valet_host_0: + type: string + description: Compute Name that vm_type_a VM 0 will be deployed on + vm_type_a_name_1: + type: string + description: VM Name for vm_type_a VM 1 + availability_zone_1: + type: string + description: availability zone 1 name + vm_type_a_valet_host_1: + type: string + description: Compute Name that vm_type_a VM 1 will be deployed on + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_0} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 } + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: Xvm_type_a_name_1} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 } + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass0.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass0.yaml new file mode 100644 index 0000000..beca864 --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass0.yaml @@ -0,0 +1,93 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +parameters: + vm_type_a_name_0: + type: string + description: VM Name for vm_type_a VM 0 + availability_zone_0: + type: string + description: availability zone 0 name + vm_type_a_valet_host_0: + type: string + description: Compute Name that vm_type_a VM 0 will be deployed on + vm_type_a_name_1: + type: string + description: VM Name for vm_type_a VM 1 + availability_zone_1: + type: string + description: availability zone 1 name + vm_type_a_valet_host_1: + type: string + description: Compute Name that vm_type_a VM 1 will be deployed on + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_0} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_0 } + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: vm_type_a_name_1} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: vm_type_a_valet_host_1 } + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass1.yaml b/ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass1.yaml new file mode 100644 index 0000000..a00446b --- /dev/null +++ b/ice_validator/tests/fixtures/test_nova_servers_valet_host/pass/pass1.yaml @@ -0,0 +1,91 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- + +parameters: + vm_type_a_names: + type: comma_delimited_list + description: VM Names for vm_type_a + vm_type_a_valet_hosts: + type: comma_delimited_list + description: Compute Names that vm_type_a will be deployed on + availability_zone_0: + type: string + description: availability zone 0 name + availability_zone_1: + type: string + description: availability zone 1 name + +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: {get_param: [vm_type_a_names, 0]} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_0 } + $VALET_HOST_ASSIGNMENT: { get_param: [ + vm_type_a_valet_hosts, + 0]} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: {get_param: [vm_type_a_names, 1]} + flavor: ... + image: ... + availability_zone: + str_replace: + template: '$AZ$VALET_HOST_ASSIGNMENT' + params: + $AZ: { get_param: availability_zone_1 } + $VALET_HOST_ASSIGNMENT: { get_param: [ + vm_type_a_valet_hosts, + 1]} + metadata: + valet_groups: "Valet_Rule_Name_01, Valet_Rule_Name_02" + diff --git a/ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/fail/base_mod.yaml b/ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/fail/base_mod.yaml new file mode 100644 index 0000000..0dc304e --- /dev/null +++ b/ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/fail/base_mod.yaml @@ -0,0 +1,21 @@ +heat_template_version: 2014-10-16 + +resources: + + vmtype_0_nr_port_0: + type: OS::Neutron::Port + + vmtype_0_nr_port_1: + type: OS::Neutron::Port + + vmtype_server_0: + type: OS::Nova::Server + properties: + networks: + - port: { get_resource: vmtype_0_nr_port_0} + + vmtype_server_1: + type: OS::Nova::Server + properties: + networks: + - port: { get_resource: vmtype_0_nr_port_0} diff --git a/ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/pass/base_mod.yaml b/ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/pass/base_mod.yaml new file mode 100644 index 0000000..36d3f6e --- /dev/null +++ b/ice_validator/tests/fixtures/test_port_connected_to_multiple_servers/pass/base_mod.yaml @@ -0,0 +1,21 @@ +heat_template_version: 2014-10-16 + +resources: + + vmtype_0_nr_port_0: + type: OS::Neutron::Port + + vmtype_0_nr_port_1: + type: OS::Neutron::Port + + vmtype_server_0: + type: OS::Nova::Server + properties: + networks: + - port: { get_resource: vmtype_0_nr_port_0} + + vmtype_server_1: + type: OS::Nova::Server + properties: + networks: + - port: { get_resource: vmtype_0_nr_port_1} diff --git a/ice_validator/tests/fixtures/test_port_resource_ids/pass/valid_template.yaml b/ice_validator/tests/fixtures/test_port_resource_ids/pass/valid_template.yaml index 504fbdc..6471a84 100644 --- a/ice_validator/tests/fixtures/test_port_resource_ids/pass/valid_template.yaml +++ b/ice_validator/tests/fixtures/test_port_resource_ids/pass/valid_template.yaml @@ -136,7 +136,7 @@ resources: name: { get_param: [admin_names, 2] } flavor: { get_param: admin_flavor_name} networks: - - port: { get_resource: admin_2_int_vpnnet_port_0 } + - port: { get_resource: admin_2_int_oam_port_0 } metadata: vnf_name: { get_param: vnf_name } vnf_id: { get_param: vnf_id } @@ -172,15 +172,14 @@ resources: properties: network: { get_param: extnet_net_id } - int_oam_net: + int_oam_network: type: OS::Neutron::Net properties: name: { get_param: int_oam_net_name } - admin_2_int_vpnnet_port_0: + admin_2_int_oam_port_0: type: OS::Neutron::Port properties: - network: { get_resource: int_oam_net } + network: { get_resource: int_oam_network } fixed_ips: - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] } - - ip_address: { get_param: [db_1_int_vpnnet_ips, 1] } diff --git a/ice_validator/tests/fixtures/test_required_parameters_no_constraints/fail/heat_template_required_parameters_with_constraints.yaml b/ice_validator/tests/fixtures/test_required_parameters_no_constraints/fail/heat_template_required_parameters_with_constraints.yaml index 1a49f68..f3507cd 100644 --- a/ice_validator/tests/fixtures/test_required_parameters_no_constraints/fail/heat_template_required_parameters_with_constraints.yaml +++ b/ice_validator/tests/fixtures/test_required_parameters_no_constraints/fail/heat_template_required_parameters_with_constraints.yaml @@ -70,6 +70,46 @@ parameters: - 5 - 10 vf_module_id: + type: string + description: Unique ID for this VNF Module instance + constraints: + - range: { min: 0, max: 10 } + description: allowed range of values + - allowed_values: + - 0 + - 5 + - 10 + environment_context: + type: string + description: Unique ID for this VNF Module instance + constraints: + - range: { min: 0, max: 10 } + description: allowed range of values + - allowed_values: + - 0 + - 5 + - 10 + workload_context: + type: string + description: Unique ID for this VNF Module instance + constraints: + - range: { min: 0, max: 10 } + description: allowed range of values + - allowed_values: + - 0 + - 5 + - 10 + vf_module_index: + type: string + description: Unique ID for this VNF Module instance + constraints: + - range: { min: 0, max: 10 } + description: allowed range of values + - allowed_values: + - 0 + - 5 + - 10 + vm_role: type: string description: Unique ID for this VNF Module instance constraints: diff --git a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/fail/invalid_base_naming_for_fixed_ips.yaml b/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/fail/invalid_base_naming_for_fixed_ips.yaml deleted file mode 100644 index d686e65..0000000 --- a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/fail/invalid_base_naming_for_fixed_ips.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - - reserve_port_lb_1_int_intranet_floating_ip_0: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_int_intranet_floating_ips } - - reserve_port_lb_2_int_intranet_floating_v6_ip_0: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_int_intranet_v6_ip } - - reserve_port_lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - reserve_port_lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/pass/valid_base_heat_template.yaml b/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/pass/valid_base_heat_template.yaml deleted file mode 100644 index 2efaa5d..0000000 --- a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_format/pass/valid_base_heat_template.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - - reserve_port_lb_1_int_intranet_floating_ip_0: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_int_intranet_floating_ip } - - reserve_port_lb_2_int_intranet_floating_v6_ip_0: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip } - - reserve_port_lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - reserve_port_lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_1.yaml b/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_1.yaml deleted file mode 100644 index 1fd21a2..0000000 --- a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_1.yaml +++ /dev/null @@ -1,90 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - - reserve_port_lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - reserve_port_lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } - - reserve_port_lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - reserve_port_lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } - - lb_3_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_3_extnet_floating_v6_ip } - -outputs: - - lb_1_int_intranet_vip: - description: "vip for lb_1_int_intranet_floating_ip" - value: { get_param: lb_1_int_intranet_floating_ip } - - lb_2_int_intranet_v6_vip: - description: "vip for lb_2_int_intranet_v6_vip" - value: { get_param: lb_2_int_intranet_floating_v6_ip } - - lb_1_extnet_vip: - description: "vip for lb_1_extnet_floating_ip" - value: { get_param: lb_1_extnet_floating_ip } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_2.yaml b/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_2.yaml deleted file mode 100644 index d4e38e6..0000000 --- a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/fail/invalid_base_heat_template_2.yaml +++ /dev/null @@ -1,95 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - - reserve_port_lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - reserve_port_lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } - - reserve_port_lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - reserve_port_lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } - - lb_3_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_3_extnet_floating_v6_ip } - -outputs: - - - lb_1_int_intranet_vip: - description: "vip for lb_1_int_intranet_floating_ip" - value: { get_param: lb_1_int_intranet_floating_ip } - - lb_2_int_intranet_v6_vip: - description: "vip for lb_2_int_intranet_v6_vip" - value: { get_param: lb_2_int_intranet_floating_v6_ip } - - lb_1_extnet_vip: - description: "vip for lb_1_extnet_floating_ip" - value: { get_param: lb_1_extnet_floating_ip } - - lb_2_extnet_v6_vip: - description: "vip for lb_2_extnet_floating_v6_ip" - value: { get_param: lb_2_extnet_floating_v6_ips } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_1.yaml b/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_1.yaml deleted file mode 100644 index 9d52e98..0000000 --- a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_1.yaml +++ /dev/null @@ -1,94 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - - reserve_port_lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - reserve_port_lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } - - reserve_port_lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - reserve_port_lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } - - lb_3_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_3_extnet_floating_v6_ip } - -outputs: - - lb_1_int_intranet_vip: - description: "vip for lb_1_int_intranet_floating_ip" - value: { get_param: lb_1_int_intranet_floating_ip } - - lb_2_int_intranet_v6_vip: - description: "vip for lb_2_int_intranet_v6_vip" - value: { get_param: lb_2_int_intranet_floating_v6_ip } - - lb_1_extnet_vip: - description: "vip for lb_1_extnet_floating_ip" - value: { get_param: lb_1_extnet_floating_ip } - - lb_2_extnet_v6_vip: - description: "vip for lb_2_extnet_floating_v6_ip" - value: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_2.yaml b/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_2.yaml deleted file mode 100644 index ebec57b..0000000 --- a/ice_validator/tests/fixtures/test_reserve_port_fixed_ips_has_base_outputs/pass/valid_base_heat_template_2.yaml +++ /dev/null @@ -1,76 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - - lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } - - lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } - - lb_3_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_3_extnet_floating_v6_ip } diff --git a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/fail/invalid_base_naming_for_fixed_ips.yaml b/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/fail/invalid_base_naming_for_fixed_ips.yaml deleted file mode 100644 index 9d9be46..0000000 --- a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/fail/invalid_base_naming_for_fixed_ips.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - - lb_1_int_intranet_port: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_int_intranet_ip } - - lb_2_int_intranet_port: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_int_intranet_floating_v6_ips } - - lb_1_extnet_port: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - lb_2_extnet_port: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_1.yaml b/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_1.yaml deleted file mode 100644 index 2efaa5d..0000000 --- a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_1.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - - reserve_port_lb_1_int_intranet_floating_ip_0: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_int_intranet_floating_ip } - - reserve_port_lb_2_int_intranet_floating_v6_ip_0: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip } - - reserve_port_lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - reserve_port_lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_2.yaml b/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_2.yaml deleted file mode 100644 index 90d46c3..0000000 --- a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_2.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - - lb_1_int_intranet_floating_ip_0: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_int_intranet_floating_ip } - - lb_2_int_intranet_floating_v6_ip_0: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip } - - lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_3.yaml b/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_3.yaml deleted file mode 100644 index 6cb3fb4..0000000 --- a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_base_heat_template_3.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - - reserve_port_lb_1_int_intranet_floating_ip_0: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_int_intranet_floating_ip } - - lb_2_int_intranet_floating_v6_ip_0: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip } - - lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_module_heat_template.yaml b/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_module_heat_template.yaml deleted file mode 100644 index 90d46c3..0000000 --- a/ice_validator/tests/fixtures/test_reserve_port_only_in_base_template/pass/valid_module_heat_template.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - - lb_1_int_intranet_floating_ip_0: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_int_intranet_floating_ip } - - lb_2_int_intranet_floating_v6_ip_0: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip } - - lb_1_extnet_floating_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_floating_ip } - - lb_2_extnet_floating_v6_ip_1: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - ip_address: { get_param: lb_2_extnet_floating_v6_ip } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_resource_indices/fail/fail0.yaml b/ice_validator/tests/fixtures/test_resource_indices/fail/fail0.yaml new file mode 100644 index 0000000..18c78b5 --- /dev/null +++ b/ice_validator/tests/fixtures/test_resource_indices/fail/fail0.yaml @@ -0,0 +1,84 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +resources: + + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 0] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + + vm_type_a_server_2: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 1] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + + vm_type_b_server_0: + type: OS::Nova::Server + properties: + name: { get_param: vm_type_b_name_0 } + flavor: { get_param: vm_type_b_flavor_name} + image: { get_param: vm_type_b_image_name} + + vm_type_b_server_1: + type: OS::Nova::Server + properties: + name: { get_param: vm_type_b_name_1 } + flavor: { get_param: vm_type_b_flavor_name} + image: { get_param: vm_type_b_image_name} + + vm_type_b_0_port_0: + type: OS::Neutron::Port + + vm_type_b_0_port_1: + type: OS::Neutron::Port + + vm_type_b_1_port_2: + type: OS::Neutron::Port + + vm_type_b_1_port_3: + type: nested.yaml diff --git a/ice_validator/tests/fixtures/test_resource_indices/fail/nested.yaml b/ice_validator/tests/fixtures/test_resource_indices/fail/nested.yaml new file mode 100644 index 0000000..a30cef9 --- /dev/null +++ b/ice_validator/tests/fixtures/test_resource_indices/fail/nested.yaml @@ -0,0 +1,55 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# + +resources: + vm_type_c_server_1: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 0] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + + vm_type_b_server_3: + type: OS::Nova::Server + properties: + name: { get_param: vm_type_b_name_0 } + flavor: { get_param: vm_type_b_flavor_name} + image: { get_param: vm_type_b_image_name} + + + diff --git a/ice_validator/tests/fixtures/test_resource_indices/pass/nested.yaml b/ice_validator/tests/fixtures/test_resource_indices/pass/nested.yaml new file mode 100644 index 0000000..034d1ad --- /dev/null +++ b/ice_validator/tests/fixtures/test_resource_indices/pass/nested.yaml @@ -0,0 +1,62 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# + +resources: + vm_type_c_server_0: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 0] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + + vm_type_c_server_1: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 1] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + + vm_type_b_server_2: + type: OS::Nova::Server + properties: + name: { get_param: vm_type_b_name_0 } + flavor: { get_param: vm_type_b_flavor_name} + image: { get_param: vm_type_b_image_name} + + + diff --git a/ice_validator/tests/fixtures/test_resource_indices/pass/pass0.yaml b/ice_validator/tests/fixtures/test_resource_indices/pass/pass0.yaml new file mode 100644 index 0000000..76ab92f --- /dev/null +++ b/ice_validator/tests/fixtures/test_resource_indices/pass/pass0.yaml @@ -0,0 +1,85 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 0] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + + vm_type_a_server_1: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 1] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + + vm_type_b_server_0: + type: OS::Nova::Server + properties: + name: { get_param: vm_type_b_name_0 } + flavor: { get_param: vm_type_b_flavor_name} + image: { get_param: vm_type_b_image_name} + + vm_type_b_server_1: + type: OS::Nova::Server + properties: + name: { get_param: vm_type_b_name_1 } + flavor: { get_param: vm_type_b_flavor_name} + image: { get_param: vm_type_b_image_name} + + vm_type_b_0_port_0: + type: OS::Neutron::Port + + vm_type_b_0_port_1: + type: OS::Neutron::Port + + vm_type_b_1_port_0: + type: OS::Neutron::Port + + nested_yaml: + type: nested.yaml + + diff --git a/ice_validator/tests/fixtures/test_server_parameters/fail/fail.yaml b/ice_validator/tests/fixtures/test_server_parameters/fail/fail.yaml new file mode 100644 index 0000000..d103a86 --- /dev/null +++ b/ice_validator/tests/fixtures/test_server_parameters/fail/fail.yaml @@ -0,0 +1,72 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +description: base + +parameters: + vm_role: + type: number + vnf_id: + type: number + vf_module_id: + type: number + vnf_name: + type: number + vf_module_name: + type: number + vf_module_index: + type: string + availability_zone_0: + type: number + +resources: + server_0: + type: OS::Nova::Server + properties: + metadata: + vm_role: { get_param: vm_role } + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + vnf_name: { get_param: vnf_name } + vf_module_name: { get_param: vf_module_name } + vf_module_index: { get_param: vf_module_index } diff --git a/ice_validator/tests/fixtures/test_server_parameters/pass/pass.yaml b/ice_validator/tests/fixtures/test_server_parameters/pass/pass.yaml new file mode 100644 index 0000000..0998152 --- /dev/null +++ b/ice_validator/tests/fixtures/test_server_parameters/pass/pass.yaml @@ -0,0 +1,72 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +description: base + +parameters: + vm_role: + type: string + vnf_id: + type: string + vf_module_id: + type: string + vnf_name: + type: string + vf_module_name: + type: string + vf_module_index: + type: number + availability_zone_0: + type: string + +resources: + server_0: + type: OS::Nova::Server + properties: + metadata: + vm_role: { get_param: vm_role } + vnf_id: { get_param: vnf_id } + vf_module_id: { get_param: vf_module_id } + vnf_name: { get_param: vnf_name } + vf_module_name: { get_param: vf_module_name } + vf_module_index: { get_param: vf_module_index } diff --git a/ice_validator/tests/fixtures/test_servers_metadata_use_get_param/fail/not_using_get_param.yaml b/ice_validator/tests/fixtures/test_servers_metadata_use_get_param/fail/not_using_get_param.yaml index cad3301..4e38fb5 100644 --- a/ice_validator/tests/fixtures/test_servers_metadata_use_get_param/fail/not_using_get_param.yaml +++ b/ice_validator/tests/fixtures/test_servers_metadata_use_get_param/fail/not_using_get_param.yaml @@ -44,9 +44,13 @@ resources: properties: name: {get_param: server_name_0} metadata: - vf_module_id: - - vf_module_id - vnf_id: - - vnf_id - vnf_name: - - vnf_name + #vf_module_id: { get_param: vf_module_id } + #vnf_id: { get_param: vnf_id } + #vnf_name: { get_param: vnf_name } + #vf_module_name: { get_param: vf_module_name } + #vf_module_index: { get_param: vf_module_index } + vf_module_id: fadsfdsa + vnf_id: dasfasd + vnf_name: dsafasdf + vf_module_name: dfadsf + vf_module_index: dsafsadf diff --git a/ice_validator/tests/fixtures/test_software_config_resource_id/fail/fail.yaml b/ice_validator/tests/fixtures/test_software_config_resource_id/fail/fail.yaml new file mode 100644 index 0000000..9fa9f18 --- /dev/null +++ b/ice_validator/tests/fixtures/test_software_config_resource_id/fail/fail.yaml @@ -0,0 +1,56 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + + vm_type_b_0_romeo_port_0: + type: OS::Neutron::Port + + vm_type_c_0_int_romeo_port_0: + type: OS::Heat::SoftwareConfig + + say_what_vm_type_c_0_port_0: + type: OS::Heat::SoftwareConfig + diff --git a/ice_validator/tests/fixtures/test_software_config_resource_id/pass/pass.yaml b/ice_validator/tests/fixtures/test_software_config_resource_id/pass/pass.yaml new file mode 100644 index 0000000..fd14e55 --- /dev/null +++ b/ice_validator/tests/fixtures/test_software_config_resource_id/pass/pass.yaml @@ -0,0 +1,56 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + + vm_type_b_0_romeo_port_0: + type: OS::Neutron::Port + + vm_type_a_0_int_romeo_port_0: + type: OS::Heat::SoftwareConfig + + say_what_vm_type_a_0_port_0: + type: OS::Heat::SoftwareConfig + diff --git a/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_param_not_used_for_subnet.yaml b/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_param_not_used_for_subnet.yaml deleted file mode 100644 index 81908c2..0000000 --- a/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_param_not_used_for_subnet.yaml +++ /dev/null @@ -1,86 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - vm_type_1_int_intranet_0_port: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_name } - fixed_ips: - - subnet_id: { get_param: int_intranet_subnet_id } - - subnet_id: { get_param: int_intranet_v6_subnet_id } - - vm_type_1_int_vpnnet_1_port: - type: OS::Neutron::Port - properties: - network: { get_param: int_vpnnet_net_id } - fixed_ips: - - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] } - - subnet_id: { get_param1: int_vpnnet_subnet_id } - - vm_type_1_int_vpnnet_2_port: - type: OS::Neutron::Port - properties: - network: { get_param: int_vpnnet_net_id } - fixed_ips: - - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] } - - subnet_id: { int_vpnnet_subnet_id } - - vm_type_1_extnet_net_3_port: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_ip_0 } - - subnet_id: { get_param: extnet_subnet_id } - - vm_type_1_extnet_4_port: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - subnet_id: { get_param: extnet_subnet_id } - - subnet_id: { get_param: extnet_v6_subnet_id } - - vm_type_1_extnet_5_port: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - diff --git a/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_resource_used_for_external_network.yaml b/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_resource_used_for_external_network.yaml deleted file mode 100644 index e2ad5f4..0000000 --- a/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/fail/get_resource_used_for_external_network.yaml +++ /dev/null @@ -1,86 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - vm_type_1_int_intranet_0_port: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_name } - fixed_ips: - - subnet_id: { get_param: int_intranet_subnet_id } - - subnet_id: { get_param: int_intranet_v6_subnet_id } - - vm_type_1_int_vpnnet_1_port: - type: OS::Neutron::Port - properties: - network: { get_param: int_vpnnet_net_id } - fixed_ips: - - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] } - - subnet_id: { get_param: int_vpnnet_subnet_id } - - vm_type_1_int_vpnnet_2_port: - type: OS::Neutron::Port - properties: - network: { get_param: int_vpnnet_net_id } - fixed_ips: - - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] } - - subnet_id: { get_resource: int_vpnnet_subnet_id } - - vm_type_1_extnet_net_3_port: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_ip_0 } - - subnet_id: { get_param: extnet_subnet_id } - - vm_type_1_extnet_4_port: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - subnet_id: { get_param: extnet_subnet_id } - - subnet_id: { get_resource: extnet_v6_subnet_id } - - vm_type_1_extnet_5_port: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - diff --git a/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/pass/valid_heat_template.yaml b/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/pass/valid_heat_template.yaml deleted file mode 100644 index d6bf4bf..0000000 --- a/ice_validator/tests/fixtures/test_subnet_format_use_get_param_or_get_resource/pass/valid_heat_template.yaml +++ /dev/null @@ -1,86 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - vm_type_1_int_intranet_0_port: - type: OS::Neutron::Port - properties: - network: { get_param: int_intranet_net_name } - fixed_ips: - - subnet_id: { get_param: int_intranet_subnet_id } - - subnet_id: { get_param: int_intranet_v6_subnet_id } - - vm_type_1_int_vpnnet_1_port: - type: OS::Neutron::Port - properties: - network: { get_param: int_vpnnet_net_id } - fixed_ips: - - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] } - - subnet_id: { get_param: int_vpnnet_subnet_id } - - vm_type_1_int_vpnnet_2_port: - type: OS::Neutron::Port - properties: - network: { get_param: int_vpnnet_net_id } - fixed_ips: - - ip_address: { get_param: [db_1_int_vpnnet_ips, 0] } - - subnet_id: { get_resource: int_vpnnet_subnet_id } - - vm_type_1_extnet_net_3_port: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_name } - fixed_ips: - - ip_address: { get_param: lb_1_extnet_ip_0 } - - subnet_id: { get_param: extnet_subnet_id } - - vm_type_1_extnet_4_port: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - fixed_ips: - - subnet_id: { get_param: extnet_subnet_id } - - subnet_id: { get_param: extnet_v6_subnet_id } - - vm_type_1_extnet_5_port: - type: OS::Neutron::Port - properties: - network: { get_param: extnet_net_id } - diff --git a/ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_1.yaml b/ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_1.yaml deleted file mode 100644 index 22c73de..0000000 --- a/ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_1.yaml +++ /dev/null @@ -1,108 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - lb_server_0: - type: OS::Nova::Server - properties: - availability_zone: { get_param: availability_zone_0 } - name: { get_param: [vm_type_a_names, 0] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }] - metadata: - vnf_name: { get_param: vnf_name } - vnf_id: { get_param: vnf_id } - vf_module_id: { get_param: vf_module_id } - - lb_server_3: - type: OS::Nova::Server - properties: - availability_zone: { get_param: availability_zone_0 } - name: { get_param: [vm_type_a_names, { get_param: lb_server_index }] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }] - metadata: - vnf_name: { get_param: vnf_name } - vnf_id: { get_param: vnf_id } - vf_module_id: { get_param: vf_module_id } - - lb_volume_0: - type: OS::Cinder::Volume - properties: - name: - str_replace: - template: VNF_NAME_STACK_NAME_oam_volume - params: - VNF_NAME: { get_param: vnf_name } - STACK_NAME: { get_param: 'OS::stack_name' } - - lb_volume_0: - type: OS::Cinder::Volume - properties: - name: - str_replace: - template: MODULE_ID_STACK_NAME_oam_volume - params: - STACK_NAME: { get_param: 'OS::stack_name' } - MODULE_ID: { get_param: vnf_module_id } - - lb_volume_1: - type: OS::Cinder::Volume - properties: - name: - str_replace: - template: VNF_NAME_STACK_NAME_MODULE_ID_oam_volume - params: - VNF_NAME: { get_param: vnf_name } - STACK_NAME: { get_param: 'OS::stack_name' } - MODULE_ID: { get_param: vnf_module_id } - - my_keypair: - type: OS::Nova::Keypair - properties: - name: - str_replace: - template: VNF_NAME_key_pair - params: - VNF_NAME: { get_param: vnf_name } - public_key: {get_param: ssh_public_key} - save_private_key: false diff --git a/ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_2_identical_to_heat_template_2.yaml b/ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_2_identical_to_heat_template_2.yaml deleted file mode 100644 index 22c73de..0000000 --- a/ice_validator/tests/fixtures/test_unique_name_resources/fail/heat_template_2_identical_to_heat_template_2.yaml +++ /dev/null @@ -1,108 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - lb_server_0: - type: OS::Nova::Server - properties: - availability_zone: { get_param: availability_zone_0 } - name: { get_param: [vm_type_a_names, 0] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }] - metadata: - vnf_name: { get_param: vnf_name } - vnf_id: { get_param: vnf_id } - vf_module_id: { get_param: vf_module_id } - - lb_server_3: - type: OS::Nova::Server - properties: - availability_zone: { get_param: availability_zone_0 } - name: { get_param: [vm_type_a_names, { get_param: lb_server_index }] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }] - metadata: - vnf_name: { get_param: vnf_name } - vnf_id: { get_param: vnf_id } - vf_module_id: { get_param: vf_module_id } - - lb_volume_0: - type: OS::Cinder::Volume - properties: - name: - str_replace: - template: VNF_NAME_STACK_NAME_oam_volume - params: - VNF_NAME: { get_param: vnf_name } - STACK_NAME: { get_param: 'OS::stack_name' } - - lb_volume_0: - type: OS::Cinder::Volume - properties: - name: - str_replace: - template: MODULE_ID_STACK_NAME_oam_volume - params: - STACK_NAME: { get_param: 'OS::stack_name' } - MODULE_ID: { get_param: vnf_module_id } - - lb_volume_1: - type: OS::Cinder::Volume - properties: - name: - str_replace: - template: VNF_NAME_STACK_NAME_MODULE_ID_oam_volume - params: - VNF_NAME: { get_param: vnf_name } - STACK_NAME: { get_param: 'OS::stack_name' } - MODULE_ID: { get_param: vnf_module_id } - - my_keypair: - type: OS::Nova::Keypair - properties: - name: - str_replace: - template: VNF_NAME_key_pair - params: - VNF_NAME: { get_param: vnf_name } - public_key: {get_param: ssh_public_key} - save_private_key: false diff --git a/ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_1.yml b/ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_1.yml deleted file mode 100644 index 22c73de..0000000 --- a/ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_1.yml +++ /dev/null @@ -1,108 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - lb_server_0: - type: OS::Nova::Server - properties: - availability_zone: { get_param: availability_zone_0 } - name: { get_param: [vm_type_a_names, 0] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }] - metadata: - vnf_name: { get_param: vnf_name } - vnf_id: { get_param: vnf_id } - vf_module_id: { get_param: vf_module_id } - - lb_server_3: - type: OS::Nova::Server - properties: - availability_zone: { get_param: availability_zone_0 } - name: { get_param: [vm_type_a_names, { get_param: lb_server_index }] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }] - metadata: - vnf_name: { get_param: vnf_name } - vnf_id: { get_param: vnf_id } - vf_module_id: { get_param: vf_module_id } - - lb_volume_0: - type: OS::Cinder::Volume - properties: - name: - str_replace: - template: VNF_NAME_STACK_NAME_oam_volume - params: - VNF_NAME: { get_param: vnf_name } - STACK_NAME: { get_param: 'OS::stack_name' } - - lb_volume_0: - type: OS::Cinder::Volume - properties: - name: - str_replace: - template: MODULE_ID_STACK_NAME_oam_volume - params: - STACK_NAME: { get_param: 'OS::stack_name' } - MODULE_ID: { get_param: vnf_module_id } - - lb_volume_1: - type: OS::Cinder::Volume - properties: - name: - str_replace: - template: VNF_NAME_STACK_NAME_MODULE_ID_oam_volume - params: - VNF_NAME: { get_param: vnf_name } - STACK_NAME: { get_param: 'OS::stack_name' } - MODULE_ID: { get_param: vnf_module_id } - - my_keypair: - type: OS::Nova::Keypair - properties: - name: - str_replace: - template: VNF_NAME_key_pair - params: - VNF_NAME: { get_param: vnf_name } - public_key: {get_param: ssh_public_key} - save_private_key: false diff --git a/ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_2.yml b/ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_2.yml deleted file mode 100644 index ec01c0b..0000000 --- a/ice_validator/tests/fixtures/test_unique_name_resources/pass/unique_resource_template_2.yml +++ /dev/null @@ -1,108 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - lb_server_1: - type: OS::Nova::Server - properties: - availability_zone: { get_param: availability_zone_0 } - name: { get_param: [vm_type_a_names, 1] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }] - metadata: - vnf_name: { get_param: vnf_name } - vnf_id: { get_param: vnf_id } - vf_module_id: { get_param: vf_module_id } - - lb_server_4: - type: OS::Nova::Server - properties: - availability_zone: { get_param: availability_zone_0 } - name: { get_param: [vm_type_a_names, { get_param: lb_server_index }] } - flavor: { get_param: vm_type_a_flavor_name} - image: { get_param: vm_type_a_image_name} - block_device_mapping: [{ device_name: "vda", volume_id : { get_param : vm_type_a_cinder_volume_id_0 }, delete_on_termination : "false" }] - metadata: - vnf_name: { get_param: vnf_name } - vnf_id: { get_param: vnf_id } - vf_module_id: { get_param: vf_module_id } - - lb_volume_2: - type: OS::Cinder::Volume - properties: - name: - str_replace: - template: VNF_NAME_STACK_NAME_oam_volume - params: - VNF_NAME: { get_param: vnf_name } - STACK_NAME: { get_param: 'OS::stack_name' } - - lb_volume_3: - type: OS::Cinder::Volume - properties: - name: - str_replace: - template: MODULE_ID_STACK_NAME_oam_volume - params: - STACK_NAME: { get_param: 'OS::stack_name' } - MODULE_ID: { get_param: vnf_module_id } - - lb_volume_2: - type: OS::Cinder::Volume - properties: - name: - str_replace: - template: VNF_NAME_STACK_NAME_MODULE_ID_oam_volume - params: - VNF_NAME: { get_param: vnf_name } - STACK_NAME: { get_param: 'OS::stack_name' } - MODULE_ID: { get_param: vnf_module_id } - - my_keypair: - type: OS::Nova::Keypair - properties: - name: - str_replace: - template: VNF_NAME_key_pair - params: - VNF_NAME: { get_param: vnf_name } - public_key: {get_param: ssh_public_key} - save_private_key: false diff --git a/ice_validator/tests/fixtures/test_vm_type_case/fail/fail.yaml b/ice_validator/tests/fixtures/test_vm_type_case/fail/fail.yaml new file mode 100644 index 0000000..16b740a --- /dev/null +++ b/ice_validator/tests/fixtures/test_vm_type_case/fail/fail.yaml @@ -0,0 +1,70 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +# resource of type "OS::Nova::Server" has metadata +# which references parameter "environment_context" of type "string". + +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 0] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_Type_a_image_name} + metadata: + my_attribute: {get_param: environment_context} + + vm_type_a_0_romeo_port_0: + type: OS::Neutron::Port + properties: + name: { get_param: [vm_type_a_names, 0] } + flavor: { get_param: vm_Type_a_flavor_name} + image: { get_param: vm_Type_a_image_name} + + vm_type_a_0_int_romeo_port_0: + type: OS::Neutron::Port + properties: + name: { get_param: [vm_Type_a_names, 0] } + flavor: { get_param: vm_Type_a_flavor_name} + image: { get_param: vm_Type_a_image_name} + diff --git a/ice_validator/tests/fixtures/test_vm_type_case/pass/pass.yaml b/ice_validator/tests/fixtures/test_vm_type_case/pass/pass.yaml new file mode 100644 index 0000000..e3caa72 --- /dev/null +++ b/ice_validator/tests/fixtures/test_vm_type_case/pass/pass.yaml @@ -0,0 +1,70 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +# VERSION = '1.0.0' + +# resource of type "OS::Nova::Server" has metadata +# which references parameter "environment_context" of type "string". + +--- +resources: + vm_type_a_server_0: + type: OS::Nova::Server + properties: + name: { get_param: [vm_type_a_names, 0] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + metadata: + my_attribute: {get_param: environment_context} + + vm_type_a_0_romeo_port_0: + type: OS::Neutron::Port + properties: + name: { get_param: [vm_type_a_names, 0] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + + vm_type_a_0_int_romeo_port_0: + type: OS::Neutron::Port + properties: + name: { get_param: [vm_type_a_names, 0] } + flavor: { get_param: vm_type_a_flavor_name} + image: { get_param: vm_type_a_image_name} + diff --git a/ice_validator/tests/fixtures/test_volume_format_outputs/fail/no_value_volume.yaml b/ice_validator/tests/fixtures/test_volume_format_outputs/fail/no_value_volume.yaml deleted file mode 100644 index eec1fbd..0000000 --- a/ice_validator/tests/fixtures/test_volume_format_outputs/fail/no_value_volume.yaml +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - vm_type_volume_id_0: - type: OS::Cinder::Volume - properties: - size: { get_param: vm_type_volume_size_0 } - - vm_type_volume_id_1: - type: OS::Cinder::Volume - properties: - size: { get_param: vm_type_volume_size_0 } - - vm_type_volume_0_RSG: - type: OS::Heat::ResourceGroup - count: { get_param: vm_type_volume_count_0_RSG } - resource_def: - type: OS::Cinder::Volume - properties: - size: { get_param: vm_type_volume_size_0 } - -outputs: - - vm_type_volume_id_0: - value: { get_resource: vm_type_volume_id_0 } - - vm_type_volume_id_1: - resource: { get_resource: vm_type_volume_id_1 } - - vm_type_volume_ids_0: - value: { get_attr: [vm_type_volume_0_RSG, refs] } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_volume_format_outputs/fail/use_get_param_volume.yml b/ice_validator/tests/fixtures/test_volume_format_outputs/fail/use_get_param_volume.yml deleted file mode 100644 index 90ba1ca..0000000 --- a/ice_validator/tests/fixtures/test_volume_format_outputs/fail/use_get_param_volume.yml +++ /dev/null @@ -1,61 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - vm_type_volume_id_0: - type: OS::Cinder::Volume - properties: - size: { get_param: vm_type_volume_size_0 } - - vm_type_volume_id_1: - type: OS::Cinder::Volume - properties: - size: { get_param: vm_type_volume_size_0 } - -outputs: - - vm_type_volume_id_0: - value: { get_param: vm_type_volume_id_0 } - - vm_type_volume_id_1: - value: { get_resource: vm_type_volume_id_1 } - - vm_type_volume_ids_0: - value: { get_attr: [vm_type_volume_0_RSG, refs] } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_volume_format_outputs/pass/valid_template_volume.yml b/ice_validator/tests/fixtures/test_volume_format_outputs/pass/valid_template_volume.yml deleted file mode 100644 index fa016a2..0000000 --- a/ice_validator/tests/fixtures/test_volume_format_outputs/pass/valid_template_volume.yml +++ /dev/null @@ -1,70 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# ---- -resources: - - vm_type_volume_0: - type: OS::Cinder::Volume - properties: - size: { get_param: vm_type_volume_size_0 } - - vm_type_volume_1: - type: OS::Cinder::Volume - properties: - size: { get_param: vm_type_volume_size_0 } - - vm_type_volume_0_RSG: - type: OS::Heat::ResourceGroup - count: { get_param: vm_type_volume_count_0_RSG } - resource_def: - type: OS::Cinder::Volume - properties: - size: { get_param: vm_type_volume_size_0 } - -outputs: - - vm_type_volume_id_0: - value: { get_resource: vm_type_volume_0 } - - vm_type_volume_id_1: - value: { get_resource: vm_type_volume_1 } - - vm_type_volume_ids_0: - value: { get_attr: [vm_type_volume_0_RSG, refs] } \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/fail/module_volumes.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/fail/module_volumes.yaml new file mode 100644 index 0000000..ea21f22 --- /dev/null +++ b/ice_validator/tests/fixtures/test_volume_module_naming/fail/module_volumes.yaml @@ -0,0 +1,52 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +resources: + + vm_type_volume_0: + type: OS::Cinder::Volume + + vm_type_volume_1: + type: OS::Cinder::Volume + + vm_type_volume_0_RSG: + type: OS::Heat::ResourceGroup + properties: + resource_def: + type: nested_volume1.yaml + + vm_type_volume_0_nested: + type: nested_volume2.yaml \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume1.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume1.yaml new file mode 100644 index 0000000..888aa75 --- /dev/null +++ b/ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume1.yaml @@ -0,0 +1,40 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +resources: + + vm_type_volume_2: + type: OS::Cinder::Volume \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume2.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume2.yaml new file mode 100644 index 0000000..6bce356 --- /dev/null +++ b/ice_validator/tests/fixtures/test_volume_module_naming/fail/nested_volume2.yaml @@ -0,0 +1,40 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +resources: + + vm_type_volume_3: + type: OS::Cinder::Volume \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/pass/module2_base.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/pass/module2_base.yaml new file mode 100644 index 0000000..1c80888 --- /dev/null +++ b/ice_validator/tests/fixtures/test_volume_module_naming/pass/module2_base.yaml @@ -0,0 +1,55 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +resources: + + vm_type_volume_0: + type: OS::Cinder::Volume + + vm_type_volume_1: + type: OS::Cinder::Volume + + vm_type_volume_0_RSG: + type: OS::Heat::ResourceGroup + properties: + resource_def: + type: nested_volume1.yaml + + vm_type_volume_0_nested: + type: nested_volume2.yaml + + vmtype_server_0: + type: OS::Nova::Server \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/pass/module_volume.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/pass/module_volume.yaml new file mode 100644 index 0000000..ea21f22 --- /dev/null +++ b/ice_validator/tests/fixtures/test_volume_module_naming/pass/module_volume.yaml @@ -0,0 +1,52 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +resources: + + vm_type_volume_0: + type: OS::Cinder::Volume + + vm_type_volume_1: + type: OS::Cinder::Volume + + vm_type_volume_0_RSG: + type: OS::Heat::ResourceGroup + properties: + resource_def: + type: nested_volume1.yaml + + vm_type_volume_0_nested: + type: nested_volume2.yaml \ No newline at end of file diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume1.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume1.yaml new file mode 100644 index 0000000..e96fd82 --- /dev/null +++ b/ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume1.yaml @@ -0,0 +1,40 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +resources: + + vm_type_volume_2: + type: OS::Cinder::Volume diff --git a/ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume2.yaml b/ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume2.yaml new file mode 100644 index 0000000..6bce356 --- /dev/null +++ b/ice_validator/tests/fixtures/test_volume_module_naming/pass/nested_volume2.yaml @@ -0,0 +1,40 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +resources: + + vm_type_volume_3: + type: OS::Cinder::Volume \ No newline at end of file diff --git a/ice_validator/tests/helpers.py b/ice_validator/tests/helpers.py index 502d3aa..fa106c3 100644 --- a/ice_validator/tests/helpers.py +++ b/ice_validator/tests/helpers.py @@ -42,29 +42,31 @@ """ import os +from collections import defaultdict + from boltons import funcutils from tests import cached_yaml as yaml -VERSION = '1.1.0' +VERSION = "1.1.0" def check_basename_ending(template_type, basename): - ''' + """ return True/False if the template type is matching the filename - ''' + """ if not template_type: return True - elif template_type == 'volume': - return basename.endswith('_volume') + elif template_type == "volume": + return basename.endswith("_volume") else: - return not basename.endswith('_volume') + return not basename.endswith("_volume") def get_parsed_yml_for_yaml_files(yaml_files, sections=None): - ''' + """ get the parsed yaml for a list of yaml files - ''' + """ sections = [] if sections is None else sections parsed_yml_list = [] for yaml_file in yaml_files: @@ -73,7 +75,7 @@ def get_parsed_yml_for_yaml_files(yaml_files, sections=None): yml = yaml.load(fh) except yaml.YAMLError as e: # pylint: disable=superfluous-parens - print('Error in %s: %s' % (yaml_file, e)) + print("Error in %s: %s" % (yaml_file, e)) continue if yml: if sections: @@ -103,8 +105,10 @@ def validates(*requirement_ids): @funcutils.wraps(func) def wrapper(*args, **kw): return func(*args, **kw) + wrapper.requirement_ids = requirement_ids return wrapper + decorator.requirement_ids = requirement_ids return decorator @@ -124,3 +128,81 @@ def get_environment_pair(heat_template): return environment_pair return None + + +def load_yaml(yaml_file): + """ + Load the YAML file at the given path. If the file has previously been + loaded, then a cached version will be returned. + + :param yaml_file: path to the YAML file + :return: data structure loaded from the YAML file + """ + with open(yaml_file) as fh: + return yaml.load(fh) + + +def traverse(data, search_key, func, path=None): + """ + Traverse the data structure provided via ``data`` looking for occurences + of ``search_key``. When ``search_key`` is found, the value associated + with that key is passed to ``func`` + + :param data: arbitrary data structure of dicts and lists + :param search_key: key field to search for + :param func: Callable object that takes two parameters: + * A list representing the path of keys to search_key + * The value associated with the search_key + """ + path = [] if path is None else path + if isinstance(data, dict): + for key, value in data.items(): + curr_path = path + [key] + if key == search_key: + func(curr_path, value) + traverse(value, search_key, func, curr_path) + elif isinstance(data, list): + for value in data: + curr_path = path + [value] + if isinstance(value, dict): + traverse(value, search_key, func, curr_path) + elif value == search_key: + func(curr_path, value) + + +def check_indices(pattern, values, value_type): + """ + Checks that indices associated with the matched prefix start at 0 and + increment by 1. It returns a list of messages for any prefixes that + violate the rules. + + :param pattern: Compiled regex that whose first group matches the prefix and + second group matches the index + :param values: sequence of string names that may or may not match the pattern + :param name: Type of value being checked (ex: IP Parameters). This will + be included in the error messages. + :return: List of error messages, empty list if no violations found + """ + if not hasattr(pattern, "match"): + raise RuntimeError("Pattern must be a compiled regex") + + prefix_indices = defaultdict(set) + for value in values: + m = pattern.match(value) + if m: + prefix_indices[m.group(1)].add(int(m.group(2))) + + invalid_params = [] + for prefix, indices in prefix_indices.items(): + indices = sorted(indices) + if indices[0] != 0: + invalid_params.append( + "{} with prefix {} do not start at 0".format(value_type, prefix) + ) + elif len(indices) - 1 != indices[-1]: + invalid_params.append( + ( + "Index values of {} with prefix {} do not " + "increment by 1: {}" + ).format(value_type, prefix, indices) + ) + return invalid_params diff --git a/ice_validator/tests/parametrizers.py b/ice_validator/tests/parametrizers.py index 641d53a..e44c6a6 100644 --- a/ice_validator/tests/parametrizers.py +++ b/ice_validator/tests/parametrizers.py @@ -48,365 +48,362 @@ import pytest from .helpers import get_parsed_yml_for_yaml_files, check_basename_ending from .utils.nested_files import get_list_of_nested_files -VERSION = '1.0.0' +VERSION = "1.0.0" # pylint: disable=invalid-name def get_template_dir(metafunc): - ''' + """ returns template_dir, either as its passed in on CLI or, during --self-test, the directory whos name matches the current tests module name - ''' - if metafunc.config.getoption('template_dir') is None: + """ + if metafunc.config.getoption("template_dir") is None: return path.join( - path.dirname(path.realpath(__file__)), - 'fixtures', - metafunc.function.__module__.split('.')[-1]) + path.dirname(metafunc.module.__file__), + "fixtures", + metafunc.function.__module__.split(".")[-1], + ) else: - return metafunc.config.getoption('template_dir')[0] + return metafunc.config.getoption("template_dir")[0] + + +def file_is_a_nested_template(file): + directory = path.dirname(file) + nested_files = [] + for filename in listdir(directory): + if filename.endswith(".yaml") or filename.endswith(".yml"): + filename = "{}/{}".format(directory, filename) + try: + with open(filename) as fh: + yml = yaml.load(fh) + if "resources" not in yml: + continue + nested_files.extend( + get_list_of_nested_files(yml["resources"], path.dirname(filename)) + ) + except yaml.YAMLError as e: + print(e) # pylint: disable=superfluous-parens + continue + return file in nested_files def get_nested_files(filenames): - ''' + """ returns all the nested files for a set of filenames - ''' + """ nested_files = [] for filename in filenames: - try: - with open(filename) as fh: - yml = yaml.load(fh) - if "resources" not in yml: - continue - nested_files.extend(get_list_of_nested_files( - yml["resources"], - path.dirname(filename))) - except yaml.YAMLError as e: - print(e) # pylint: disable=superfluous-parens - continue + if file_is_a_nested_template(filename): + nested_files.append(filename) return nested_files -def list_filenames_in_template_dir(metafunc, - extensions, - template_type='', - sub_dirs=None): - ''' +def list_filenames_in_template_dir( + metafunc, extensions, template_type="", sub_dirs=None +): + """ returns the filenames in a template_dir, either as its passed in on CLI or, during --self-test, the directory whos name matches the current tests module name - ''' + """ sub_dirs = [] if sub_dirs is None else sub_dirs template_dir = get_template_dir(metafunc) filenames = [] - if metafunc.config.getoption('self_test'): - filenames = [path.join(template_dir, s, f) - for s in sub_dirs - for f in listdir(path.join(template_dir, s)) - if path.isfile(path.join(template_dir, s, f)) - and path.splitext(f)[-1] in extensions - and check_basename_ending(template_type, - path.splitext(f)[0])] + if metafunc.config.getoption("self_test"): + filenames = [ + path.join(template_dir, s, f) + for s in sub_dirs + for f in listdir(path.join(template_dir, s)) + if path.isfile(path.join(template_dir, s, f)) + and path.splitext(f)[-1] in extensions + and check_basename_ending(template_type, path.splitext(f)[0]) + ] else: - filenames = [path.join(template_dir, f) - for f in listdir(template_dir) - if path.isfile(path.join(template_dir, f)) - and path.splitext(f)[-1] in extensions - and check_basename_ending(template_type, - path.splitext(f)[0])] + filenames = [ + path.join(template_dir, f) + for f in listdir(template_dir) + if path.isfile(path.join(template_dir, f)) + and path.splitext(f)[-1] in extensions + and check_basename_ending(template_type, path.splitext(f)[0]) + ] return filenames -def list_template_dir(metafunc, - extensions, - exclude_nested=True, - template_type='', - sub_dirs=None): - ''' +def list_template_dir( + metafunc, extensions, exclude_nested=True, template_type="", sub_dirs=None +): + """ returns the filenames excluding the nested files for a template_dir, either as its passed in on CLI or, during --self-test, the directory whos name matches the current tests module name - ''' + """ sub_dirs = [] if sub_dirs is None else sub_dirs filenames = [] nested_files = [] - filenames = list_filenames_in_template_dir(metafunc, - extensions, - template_type, - sub_dirs) + filenames = list_filenames_in_template_dir( + metafunc, extensions, template_type, sub_dirs + ) if exclude_nested: nested_files = get_nested_files(filenames) return list(set(filenames) - set(nested_files)) -def get_filenames_list(metafunc, - extensions=None, - exclude_nested=False, - template_type=''): - ''' +def get_filenames_list( + metafunc, extensions=None, exclude_nested=False, template_type="" +): + """ returns the filename fixtures for the template dir, either as by how its passed in on CLI or, during --self-test, the directory whos name matches the current tests module name - ''' - extensions = [".yaml", - ".yml", - ".env"] if extensions is None else extensions - if metafunc.config.getoption('self_test'): - filenames_list = list_template_dir(metafunc, - extensions, - exclude_nested, - template_type, - ['pass']) - filenames_list += [pytest.mark.xfail(f, strict=True) - for f in list_template_dir(metafunc, - extensions, - exclude_nested, - template_type, - ['fail'])] + """ + extensions = [".yaml", ".yml", ".env"] if extensions is None else extensions + if metafunc.config.getoption("self_test"): + filenames_list = list_template_dir( + metafunc, extensions, exclude_nested, template_type, ["pass"] + ) + filenames_list += [ + pytest.mark.xfail(f, strict=True) + for f in list_template_dir( + metafunc, extensions, exclude_nested, template_type, ["fail"] + ) + ] else: - filenames_list = list_template_dir(metafunc, - extensions, - exclude_nested, - template_type) + filenames_list = list_template_dir( + metafunc, extensions, exclude_nested, template_type + ) return filenames_list -def get_filenames_lists(metafunc, - extensions=None, - exclude_nested=False, - template_type=''): - ''' +def get_filenames_lists( + metafunc, extensions=None, exclude_nested=False, template_type="" +): + """ returns the list of files in the template dir, either as by how its passed in on CLI or, during --self-test, the directory whos name matches the current tests module name - ''' - extensions = [".yaml", - ".yml", - ".env"] if extensions is None else extensions + """ + extensions = [".yaml", ".yml", ".env"] if extensions is None else extensions filenames_lists = [] - if metafunc.config.getoption('self_test'): - filenames_lists.append(list_template_dir(metafunc, - extensions, - exclude_nested, - template_type, - ['pass'])) - filenames_lists.append(pytest.mark.xfail( - list_template_dir(metafunc, - extensions, - exclude_nested, - template_type, - ['fail']), strict=True)) + if metafunc.config.getoption("self_test"): + filenames_lists.append( + list_template_dir( + metafunc, extensions, exclude_nested, template_type, ["pass"] + ) + ) + filenames_lists.append( + pytest.mark.xfail( + list_template_dir( + metafunc, extensions, exclude_nested, template_type, ["fail"] + ), + strict=True, + ) + ) else: - filenames_lists.append(list_template_dir(metafunc, - extensions, - exclude_nested, - template_type)) + filenames_lists.append( + list_template_dir(metafunc, extensions, exclude_nested, template_type) + ) return filenames_lists -def get_parsed_yaml_files(metafunc, - extensions, - exclude_nested=True, - template_type='', - sections=None): - ''' +def get_parsed_yaml_files( + metafunc, extensions, exclude_nested=True, template_type="", sections=None +): + """ returns the list of parsed yaml files in the specified template dir, either as by how its passed in on CLI or, during --self-test, the directory whos name matches the current tests module name - ''' + """ sections = [] if sections is None else sections extensions = [".yaml", ".yml"] - if metafunc.config.getoption('self_test'): - yaml_files = list_template_dir(metafunc, extensions, exclude_nested, - template_type, ['pass']) - parsed_yml_list = get_parsed_yml_for_yaml_files(yaml_files, - sections) - - yaml_files = list_template_dir(metafunc, extensions, exclude_nested, - template_type, ['fail']) - parsed_yml_list = get_parsed_yml_for_yaml_files(yaml_files, - sections) - parsed_yml_list += [pytest.mark.xfail(parsed_yml, strict=True) - for parsed_yml in parsed_yml_list] + if metafunc.config.getoption("self_test"): + yaml_files = list_template_dir( + metafunc, extensions, exclude_nested, template_type, ["pass"] + ) + parsed_yml_list = get_parsed_yml_for_yaml_files(yaml_files, sections) + + yaml_files = list_template_dir( + metafunc, extensions, exclude_nested, template_type, ["fail"] + ) + parsed_yml_list = get_parsed_yml_for_yaml_files(yaml_files, sections) + parsed_yml_list += [ + pytest.mark.xfail(parsed_yml, strict=True) for parsed_yml in parsed_yml_list + ] else: yaml_files = list_template_dir(metafunc, extensions) - parsed_yml_list = get_parsed_yml_for_yaml_files(yaml_files, - sections) + parsed_yml_list = get_parsed_yml_for_yaml_files(yaml_files, sections) return parsed_yml_list def parametrize_filenames(metafunc): - ''' + """ This param runs tests all files in the template dir - ''' + """ filenames = get_filenames_lists(metafunc) - metafunc.parametrize('filenames', filenames) + metafunc.parametrize("filenames", filenames) def parametrize_filename(metafunc): - ''' + """ This param runs tests once for every file in the template dir - ''' + """ filenames = get_filenames_list(metafunc) - metafunc.parametrize('filename', filenames) + metafunc.parametrize("filename", filenames) def parametrize_yaml_files(metafunc): - ''' + """ This param runs tests for the yaml files in the template dir - ''' - yaml_files = get_filenames_lists(metafunc, ['.yaml', '.yml'], False) + """ + yaml_files = get_filenames_lists(metafunc, [".yaml", ".yml"], False) metafunc.parametrize("yaml_files", yaml_files) def parametrize_yaml_file(metafunc): - ''' + """ This param runs tests for every yaml file in the template dir - ''' - yaml_files = get_filenames_list(metafunc, ['.yaml', '.yml'], False) - metafunc.parametrize('yaml_file', yaml_files) + """ + yaml_files = get_filenames_list(metafunc, [".yaml", ".yml"], False) + metafunc.parametrize("yaml_file", yaml_files) def parametrize_templates(metafunc): - ''' + """ This param runs tests for the template in the template dir - ''' - templates = get_filenames_lists(metafunc, ['.yaml', '.yml'], True) + """ + templates = get_filenames_lists(metafunc, [".yaml", ".yml"], True) metafunc.parametrize("templates", templates) def parametrize_template(metafunc): - ''' + """ This param runs tests for every template in the template dir - ''' - templates = get_filenames_list(metafunc, ['.yaml', '.yml'], True) - metafunc.parametrize('template', templates) + """ + templates = get_filenames_list(metafunc, [".yaml", ".yml"], True) + metafunc.parametrize("template", templates) def parametrize_parsed_yaml_file(metafunc): - ''' + """ This param runs tests for a parsed version of each yaml file in the template dir - ''' - parsed_yaml_files = get_parsed_yaml_files(metafunc, ['.yaml', '.yml'], - False) - metafunc.parametrize('parsed_yaml_file', parsed_yaml_files) + """ + parsed_yaml_files = get_parsed_yaml_files(metafunc, [".yaml", ".yml"], False) + metafunc.parametrize("parsed_yaml_file", parsed_yaml_files) def parametrize_heat_templates(metafunc): - ''' + """ This param runs tests for all heat templates in the template dir - ''' - heat_templates = get_filenames_lists(metafunc, ['.yaml', '.yml'], - True, 'heat') - metafunc.parametrize('heat_templates', heat_templates) + """ + heat_templates = get_filenames_lists(metafunc, [".yaml", ".yml"], True, "heat") + metafunc.parametrize("heat_templates", heat_templates) def parametrize_heat_template(metafunc): - ''' + """ This param runs tests for every heat template in the template dir - ''' - heat_templates = get_filenames_list(metafunc, ['.yaml', '.yml'], - True, 'heat') - metafunc.parametrize('heat_template', heat_templates) + """ + heat_templates = get_filenames_list(metafunc, [".yaml", ".yml"], True, "heat") + metafunc.parametrize("heat_template", heat_templates) def parametrize_volume_templates(metafunc): - ''' + """ This param runs tests for all volume templates in the template dir - ''' - volume_templates = get_filenames_lists(metafunc, ['.yaml', '.yml'], - True, 'volume') - metafunc.parametrize('volume_templates', volume_templates) + """ + volume_templates = get_filenames_lists(metafunc, [".yaml", ".yml"], True, "volume") + metafunc.parametrize("volume_templates", volume_templates) def parametrize_volume_template(metafunc): - ''' + """ This param runs tests for every volume template in the template dir - ''' - volume_templates = get_filenames_list(metafunc, ['.yaml', '.yml'], - True, 'volume') - metafunc.parametrize('volume_template', volume_templates) + """ + volume_templates = get_filenames_list(metafunc, [".yaml", ".yml"], True, "volume") + metafunc.parametrize("volume_template", volume_templates) def parametrize_environment_files(metafunc): - ''' + """ This param runs tests for all environment files in the template dir - ''' - env_files = get_filenames_lists(metafunc, ['.env']) - metafunc.parametrize('env_files', env_files) + """ + env_files = get_filenames_lists(metafunc, [".env"]) + metafunc.parametrize("env_files", env_files) def parametrize_environment_file(metafunc): - ''' + """ This param runs tests for every environment file in the template dir - ''' - env_files = get_filenames_list(metafunc, ['.env']) - metafunc.parametrize('env_file', env_files) + """ + env_files = get_filenames_list(metafunc, [".env"]) + metafunc.parametrize("env_file", env_files) def parametrize_parsed_environment_file(metafunc): - ''' + """ This param runs tests for every parsed environment file in the template dir - ''' - parsed_env_files = get_parsed_yaml_files(metafunc, ['.env']) - metafunc.parametrize('parsed_env_file', parsed_env_files) + """ + parsed_env_files = get_parsed_yaml_files(metafunc, [".env"]) + metafunc.parametrize("parsed_env_file", parsed_env_files) def parametrize_template_dir(metafunc): - ''' + """ This param passes a the template_dir as passed in on CLI or, during --self-test, passes in the sub directories of template_dir/pass/ and template_dir/fail template_dir = get_template_dir(metafunc) - ''' + """ template_dir = get_template_dir(metafunc) - if metafunc.config.getoption('self_test'): - dirs = [path.join(template_dir, s, t) - for s in ['pass'] - for t in listdir(path.join(template_dir, s)) - if path.isdir(path.join(template_dir, s, t))] - - dirs += [pytest.mark.xfail(path.join(template_dir, s, t)) - for s in ['fail'] - for t in listdir(path.join(template_dir, s)) - if path.isdir(path.join(template_dir, s, t))] + if metafunc.config.getoption("self_test"): + dirs = [ + path.join(template_dir, s, t) + for s in ["pass"] + for t in listdir(path.join(template_dir, s)) + if path.isdir(path.join(template_dir, s, t)) + ] + + dirs += [ + pytest.mark.xfail(path.join(template_dir, s, t)) + for s in ["fail"] + for t in listdir(path.join(template_dir, s)) + if path.isdir(path.join(template_dir, s, t)) + ] else: dirs = [template_dir] - metafunc.parametrize('template_dir', dirs) + metafunc.parametrize("template_dir", dirs) -def parametrize_environment_pair(metafunc, template_type=''): - ''' +def parametrize_environment_pair(metafunc, template_type=""): + """ Define a list of pairs of parsed yaml from the heat templates and environment files - ''' + """ pairs = [] - if metafunc.config.getoption('self_test'): - sub_dirs = ['pass', 'fail'] - env_files = list_template_dir(metafunc, ['.env'], True, - template_type, sub_dirs) - yaml_files = list_template_dir(metafunc, ['.yaml', '.yml'], True, - template_type, sub_dirs) + if metafunc.config.getoption("self_test"): + sub_dirs = ["pass", "fail"] + env_files = list_template_dir(metafunc, [".env"], True, template_type, sub_dirs) + yaml_files = list_template_dir( + metafunc, [".yaml", ".yml"], True, template_type, sub_dirs + ) else: - env_files = list_template_dir(metafunc, ['.env'], True, - template_type) - yaml_files = list_template_dir(metafunc, ['.yaml', '.yml'], - True, template_type) + env_files = list_template_dir(metafunc, [".env"], True, template_type) + yaml_files = list_template_dir(metafunc, [".yaml", ".yml"], True, template_type) for filename in env_files: basename = path.splitext(filename)[0] - if basename + '.yml' in yaml_files: - yfilename = basename + '.yml' + if basename + ".yml" in yaml_files: + yfilename = basename + ".yml" else: - yfilename = basename + '.yaml' + yfilename = basename + ".yaml" try: with open(filename) as fh: @@ -414,44 +411,44 @@ def parametrize_environment_pair(metafunc, template_type=''): with open(yfilename) as fh: yyml = yaml.load(fh) - if 'fail' in filename: - pairs.append(pytest.mark.xfail({"name": basename, - "yyml": yyml, - "eyml": eyml}, - strict=True)) + if "fail" in filename: + pairs.append( + pytest.mark.xfail( + {"name": basename, "yyml": yyml, "eyml": eyml}, strict=True + ) + ) else: pairs.append({"name": basename, "yyml": yyml, "eyml": eyml}) except yaml.YAMLError as e: print(e) # pylint: disable=superfluous-parens - metafunc.parametrize('environment_pair', pairs) + metafunc.parametrize("environment_pair", pairs) def parametrize_heat_volume_pair(metafunc): - ''' + """ Define a list of pairs of parsed yaml from the a heat and volume template - ''' + """ pairs = [] - if metafunc.config.getoption('self_test'): - sub_dirs = ['pass', 'fail'] - volume_files = list_template_dir(metafunc, ['.yaml', '.yml'], - True, 'volume', sub_dirs) - yaml_files = list_template_dir(metafunc, ['.yaml', '.yml'], - True, '', sub_dirs) + if metafunc.config.getoption("self_test"): + sub_dirs = ["pass", "fail"] + volume_files = list_template_dir( + metafunc, [".yaml", ".yml"], True, "volume", sub_dirs + ) + yaml_files = list_template_dir(metafunc, [".yaml", ".yml"], True, "", sub_dirs) else: - volume_files = list_template_dir(metafunc, ['.yaml', '.yml'], - True, 'volume') - yaml_files = list_template_dir(metafunc, ['.yaml', '.yml'], True) + volume_files = list_template_dir(metafunc, [".yaml", ".yml"], True, "volume") + yaml_files = list_template_dir(metafunc, [".yaml", ".yml"], True) - pattern = re.compile(r'\_volume$') + pattern = re.compile(r"\_volume$") for vfilename in volume_files: - basename = pattern.sub('', path.splitext(vfilename)[0]) - if basename + '.yml' in yaml_files: - yfilename = basename + '.yml' + basename = pattern.sub("", path.splitext(vfilename)[0]) + if basename + ".yml" in yaml_files: + yfilename = basename + ".yml" else: - yfilename = basename + '.yaml' + yfilename = basename + ".yaml" try: with open(vfilename) as fh: @@ -459,15 +456,16 @@ def parametrize_heat_volume_pair(metafunc): with open(yfilename) as fh: yyml = yaml.load(fh) - if 'fail' in vfilename: - pairs.append(pytest.mark.xfail({"name": basename, - "yyml": yyml, - "vyml": vyml}, - strict=True)) + if "fail" in vfilename: + pairs.append( + pytest.mark.xfail( + {"name": basename, "yyml": yyml, "vyml": vyml}, strict=True + ) + ) else: pairs.append({"name": basename, "yyml": yyml, "vyml": vyml}) except yaml.YAMLError as e: print(e) # pylint: disable=superfluous-parens - metafunc.parametrize('heat_volume_pair', pairs) + metafunc.parametrize("heat_volume_pair", pairs) diff --git a/ice_validator/tests/report.html.jinja2 b/ice_validator/tests/report.html.jinja2 index 5bc59e5..5856c5d 100644 --- a/ice_validator/tests/report.html.jinja2 +++ b/ice_validator/tests/report.html.jinja2 @@ -97,6 +97,7 @@

Validation Report

  • Profile: {{ profile_name }}
  • +
  • Tool Version: {{ version }}
  • Directory Validated: {{ template_dir }}
  • Checksum: {{ checksum }}
  • Generated: {{ timestamp }}
  • @@ -197,7 +198,6 @@ dom: 'Bfrtip', buttons: [ 'csv', - 'excel', { extend: 'pdfHtml5', orientation: 'landscape', diff --git a/ice_validator/tests/structures.py b/ice_validator/tests/structures.py index 8d66220..3f48422 100644 --- a/ice_validator/tests/structures.py +++ b/ice_validator/tests/structures.py @@ -35,19 +35,429 @@ # # ============LICENSE_END============================================ # -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# -'''structures -''' +"""structures +""" +import sys + +import collections +import inspect import os +import re from tests import cached_yaml as yaml +from tests.helpers import load_yaml from .utils import nested_dict -VERSION = '1.4.0' +VERSION = "3.5.0" + +# key = pattern, value = regex compiled from pattern +_REGEX_CACHE = {} + + +def _get_regex(pattern): + """Return a compiled version of pattern. + Keep result in _REGEX_CACHE to avoid re-compiling. + """ + regex = _REGEX_CACHE.get(pattern, None) + if regex is None: + regex = re.compile(pattern) + _REGEX_CACHE[pattern] = regex + return regex + + +class HeatObject(object): + """base class for xxxx::xxxx::xxxx objects + """ + + resource_type = None + + def __init__(self): + self.re_rids = self.get_re_rids() + + @staticmethod + def get_re_rids(): + """Return OrderedDict of name: regex + Each regex parses the proper format for a given rid + (resource id). + """ + return collections.OrderedDict() + + def get_rid_match_tuple(self, rid): + """find the first regex matching `rid` and return the tuple + (name, match object) or ('', None) if no match. + """ + for name, regex in self.re_rids.items(): + match = regex.match(rid) + if match: + return name, match + return "", None + + def get_rid_patterns(self): + """Return OrderedDict of name: friendly regex.pattern + "friendly" means the group notation is replaced with + braces, and the trailing "$" is removed. + + NOTE + nested parentheses in any rid_pattern will break this parser. + The final character is ASSUMED to be a dollar sign. + """ + friendly_pattern = _get_regex(r"\(\?P<(.*?)>.*?\)") + rid_patterns = collections.OrderedDict() + for name, regex in self.re_rids.items(): + rid_patterns[name] = friendly_pattern.sub( + r"{\1}", regex.pattern # replace groups with braces + )[ + :-1 + ] # remove trailing $ + return rid_patterns + + +class ContrailV2NetworkHeatObject(HeatObject): + """ContrailV2 objects which have network_flavor + """ + + network_flavor_external = "external" + network_flavor_internal = "internal" + network_flavor_subint = "subint" + + def get_network_flavor(self, resource): + """Return the network flavor of resource, one of + "internal" - get_resource, or get_param contains _int_ + "subint" - get_param contains _subint_ + "external" - otherwise + None - no parameters found to decide the flavor. + + resource.properties.virtual_network_refs should be a list. + All the parameters in the list should have the same "flavor" + so the flavor is determined from the first item. + """ + network_flavor = None + network_refs = nested_dict.get(resource, "properties", "virtual_network_refs") + if network_refs and isinstance(network_refs, list): + param = network_refs[0] + if isinstance(param, dict): + if "get_resource" in param: + network_flavor = self.network_flavor_internal + else: + p = param.get("get_param") + if isinstance(p, str): + if "_int_" in p or p.startswith("int_"): + network_flavor = self.network_flavor_internal + elif "_subint_" in p: + network_flavor = self.network_flavor_subint + else: + network_flavor = self.network_flavor_external + return network_flavor + + +class ContrailV2InstanceIp(ContrailV2NetworkHeatObject): + """ ContrailV2 InstanceIp + """ + + resource_type = "OS::ContrailV2::InstanceIp" + + def get_re_rids(self): + """Return OrderedDict of name: regex + """ + return collections.OrderedDict( + [ + ( + "int_ip", + _get_regex( + r"(?P.+)" + r"_(?P\d+)" + r"_int" + r"_(?P.+)" + r"_vmi" + r"_(?P\d+)" + r"_IP" + r"_(?P\d+)" + r"$" + ), + ), + ( + "int_v6_ip", + _get_regex( + r"(?P.+)" + r"_(?P\d+)" + r"_int" + r"_(?P.+)" + r"_vmi" + r"_(?P\d+)" + r"_v6_IP" + r"_(?P\d+)" + r"$" + ), + ), + ( + "subint_ip", + _get_regex( + r"(?P.+)" + r"_(?P\d+)" + r"_subint" + r"_(?P.+)" + r"_vmi" + r"_(?P\d+)" + r"_IP" + r"_(?P\d+)" + r"$" + ), + ), + ( + "subint_v6_ip", + _get_regex( + r"(?P.+)" + r"_(?P\d+)" + r"_subint" + r"_(?P.+)" + r"_vmi" + r"_(?P\d+)" + r"_v6_IP" + r"_(?P\d+)" + r"$" + ), + ), + ( + "ip", + _get_regex( + r"(?P.+)" + r"_(?P\d+)" + r"_(?P.+)" + r"_vmi" + r"_(?P\d+)" + r"_IP" + r"_(?P\d+)" + r"$" + ), + ), + ( + "v6_ip", + _get_regex( + r"(?P.+)" + r"_(?P\d+)" + r"_(?P.+)" + r"_vmi" + r"_(?P\d+)" + r"_v6_IP" + r"_(?P\d+)" + r"$" + ), + ), + ] + ) + + +class ContrailV2InterfaceRouteTable(HeatObject): + """ ContrailV2 InterfaceRouteTable + """ + + resource_type = "OS::ContrailV2::InterfaceRouteTable" + + +class ContrailV2NetworkIpam(HeatObject): + """ ContrailV2 NetworkIpam + """ + + resource_type = "OS::ContrailV2::NetworkIpam" + + +class ContrailV2PortTuple(HeatObject): + """ ContrailV2 PortTuple + """ + + resource_type = "OS::ContrailV2::PortTuple" + + +class ContrailV2ServiceHealthCheck(HeatObject): + """ ContrailV2 ServiceHealthCheck + """ + + resource_type = "OS::ContrailV2::ServiceHealthCheck" + + +class ContrailV2ServiceInstance(HeatObject): + """ ContrailV2 ServiceInstance + """ + + resource_type = "OS::ContrailV2::ServiceInstance" + + +class ContrailV2ServiceInstanceIp(HeatObject): + """ ContrailV2 ServiceInstanceIp + """ + + resource_type = "OS::ContrailV2::ServiceInstanceIp" + + +class ContrailV2ServiceTemplate(HeatObject): + """ ContrailV2 ServiceTemplate + """ + + resource_type = "OS::ContrailV2::ServiceTemplate" + + +class ContrailV2VirtualMachineInterface(ContrailV2NetworkHeatObject): + """ ContrailV2 Virtual Machine Interface resource + """ + + resource_type = "OS::ContrailV2::VirtualMachineInterface" + + def get_re_rids(self): + """Return OrderedDict of name: regex + """ + return collections.OrderedDict( + [ + ( + "vmi_internal", + _get_regex( + r"(?P.+)" + r"_(?P\d+)" + r"_int" + r"_(?P.+)" + r"_vmi" + r"_(?P\d+)" + r"$" + ), + ), + ( + "vmi_subint", + _get_regex( + r"(?P.+)" + r"_(?P\d+)" + r"_subint" + r"_(?P.+)" + r"_vmi" + r"_(?P\d+)" + r"$" + ), + ), + ( + "vmi_external", + _get_regex( + r"(?P.+)" + r"_(?P\d+)" + r"_(?P.+)" + r"_vmi" + r"_(?P\d+)" + r"$" + ), + ), + ] + ) + + +class ContrailV2VirtualNetwork(HeatObject): + """ ContrailV2 VirtualNetwork + """ + + resource_type = "OS::ContrailV2::VirtualNetwork" + + def get_re_rids(self): + """Return OrderedDict of name: regex + """ + return collections.OrderedDict( + [ + ( + "network", + _get_regex(r"int" r"_(?P.+)" r"_network" r"$"), + ), + ("rvn", _get_regex(r"int" r"_(?P.+)" r"_RVN" r"$")), + ] + ) + + +class NeutronNet(HeatObject): + """ Neutron Net resource + """ + + resource_type = "OS::Neutron::Net" + + def get_re_rids(self): + """Return OrderedDict of name: regex + """ + return collections.OrderedDict( + [("network", _get_regex(r"int" r"_(?P.+)" r"_network" r"$"))] + ) + + +class NeutronPort(HeatObject): + """ Neutron Port resource + """ + + resource_type = "OS::Neutron::Port" + + def get_re_rids(self): + """Return OrderedDict of name: regex + """ + return collections.OrderedDict( + [ + ( + "internal_port", + _get_regex( + r"(?P.+)" + r"_(?P\d+)" + r"_int" + r"_(?P.+)" + r"_port_(?P\d+)" + r"$" + ), + ), + ( + "port", + _get_regex( + r"(?P.+)" + r"_(?P\d+)" + r"_(?P.+)" + r"_port_(?P\d+)" + r"$" + ), + ), + ( + "floating_ip", + _get_regex( + r"reserve_port" + r"_(?P.+)" + r"_(?P.+)" + r"_floating_ip_(?P\d+)" + r"$" + ), + ), + ( + "floating_v6_ip", + _get_regex( + r"reserve_port" + r"_(?P.+)" + r"_(?P.+)" + r"_floating_v6_ip_(?P\d+)" + r"$" + ), + ), + ] + ) + + +class NovaServer(HeatObject): + """ Nova Server resource + """ + + resource_type = "OS::Nova::Server" + + def get_re_rids(self): + """Return OrderedDict of name: regex + """ + return collections.OrderedDict( + [ + ( + "server", + _get_regex( + r"(?P.+)" r"_server_(?P\d+)" r"$" + ), + ) + ] + ) class Heat(object): @@ -55,6 +465,11 @@ class Heat(object): filepath - absolute path to template file. envpath - absolute path to environmnt file. """ + + type_cdl = "comma_delimited_list" + type_num = "number" + type_str = "string" + def __init__(self, filepath=None, envpath=None): self.filepath = None self.basename = None @@ -72,6 +487,49 @@ class Heat(object): self.env = None if envpath: self.load_env(envpath) + self.heat_objects = self.get_heat_objects() + + @property + def contrail_resources(self): + """This attribute is a dict of Contrail resources. + """ + return self.get_resource_by_type( + resource_type=ContrailV2VirtualMachineInterface.resource_type + ) + + @staticmethod + def get_heat_objects(): + """Return a dict, key is resource_type, value is the + HeatObject subclass whose resource_type is the key. + """ + return _HEAT_OBJECTS + + def get_resource_by_type(self, resource_type): + """Return dict of resources whose type is `resource_type`. + key is resource_id, value is resource. + """ + return { + rid: resource + for rid, resource in self.resources.items() + if self.nested_get(resource, "type") == resource_type + } + + def get_rid_match_tuple(self, rid, resource_type): + """return get_rid_match_tuple(rid) called on the class + corresponding to the given resource_type. + """ + hoc = self.heat_objects.get(resource_type, HeatObject) + return hoc().get_rid_match_tuple(rid) + + def get_vm_type(self, rid, resource=None): + """return the vm_type + """ + if resource is None: + resource = self + resource_type = self.nested_get(resource, "type") + match = self.get_rid_match_tuple(rid, resource_type)[1] + vm_type = match.groupdict().get("vm_type") if match else None + return vm_type def load(self, filepath): """Load the Heat template given a filepath. @@ -81,45 +539,161 @@ class Heat(object): self.dirname = os.path.dirname(self.filepath) with open(self.filepath) as fi: self.yml = yaml.load(fi) - self.heat_template_version = self.yml.get('heat_template_version', None) - self.description = self.yml.get('description', '') - self.parameter_groups = self.yml.get('parameter_groups', {}) - self.parameters = self.yml.get('parameters', {}) - self.resources = self.yml.get('resources', {}) - self.outputs = self.yml.get('outputs', {}) - self.conditions = self.yml.get('conditions', {}) + self.heat_template_version = self.yml.get("heat_template_version", None) + self.description = self.yml.get("description", "") + self.parameter_groups = self.yml.get("parameter_groups", {}) + self.parameters = self.yml.get("parameters") or {} + self.resources = self.yml.get("resources", {}) + self.outputs = self.yml.get("outputs", {}) + self.conditions = self.yml.get("conditions", {}) + + def get_all_resources(self, base_dir): + """ + Like ``resources``, but this returns all the resources definitions + defined in the template, resource groups, and nested YAML files. + """ + resources = {} + for r_id, r_data in self.resources.items(): + resources[r_id] = r_data + resource = Resource(r_id, r_data) + if resource.is_nested(): + nested = Heat(os.path.join(base_dir, resource.get_nested_filename())) + resources.update(nested.get_all_resources(base_dir)) + return resources def load_env(self, envpath): - """Load the Environment template given a envpath. + """ + Load the Environment template given a envpath. """ self.env = Env(filepath=envpath) @staticmethod - def nested_get(dic, *keys): + def nested_get(dic, *keys, **kwargs): """make utils.nested_dict.get available as a class method. """ - return nested_dict.get(dic, *keys) + return nested_dict.get(dic, *keys, **kwargs) + + @property + def neutron_port_resources(self): + """This attribute is a dict of Neutron Ports + """ + return self.get_resource_by_type(resource_type=NeutronPort.resource_type) + + @property + def nova_server_resources(self): + """This attribute is a dict of Nova Servers + """ + return self.get_resource_by_type(resource_type=NovaServer.resource_type) + + @staticmethod + def part_is_in_name(part, name): + """ + Return True if any of + - name starts with part + '_' + - name contains '_' + part + '_' + - name ends with '_' + part + False otherwise + """ + return bool( + re.search("(^(%(x)s)_)|(_(%(x)s)_)|(_(%(x)s)$)" % dict(x=part), name) + ) class Env(Heat): """An Environment file """ + pass class Resource(object): """A Resource """ + def __init__(self, resource_id=None, resource=None): - self.resource_id = resource_id or '' + self.resource_id = resource_id or "" self.resource = resource or {} + self.properties = self.resource.get("properties", {}) + self.resource_type = resource.get("type", "") @staticmethod def get_index_var(resource): """Return the index_var for this resource. """ - index_var = nested_dict.get(resource, - 'properties', - 'index_var') or 'index' + index_var = nested_dict.get(resource, "properties", "index_var") or "index" return index_var + def get_nested_filename(self): + """Returns the filename of the nested YAML file if the + resource is a nested YAML or ResourceDef, returns '' otherwise.""" + typ = self.resource.get("type", "") + if typ == "OS::Heat::ResourceGroup": + rd = nested_dict.get(self.resource, "properties", "resource_def") + typ = rd.get("type", "") if rd else "" + ext = os.path.splitext(typ)[1] + ext = ext.lower() + if ext == ".yml" or ext == ".yaml": + return typ + else: + return "" + + def get_nested_properties(self): + """ + Returns {} if not nested + Returns resource: properties if nested + Returns resource: properties: resource_def: properties if RG + """ + if not bool(self.get_nested_filename()): + return {} + elif self.resource_type == "OS::Heat::ResourceGroup": + return nested_dict.get( + self.properties, "resource_def", "properties", default={} + ) + else: + return self.properties + + @property + def depends_on(self): + """ + Returns the list of resources this resource depends on. Always + returns a list. + + :return: list of all resource IDs this resource depends on. If none, + then returns an empty list + """ + parents = self.resource.get("depends_on", []) + return parents if isinstance(parents, list) else [parents] + + def is_nested(self): + """Returns True if the resource represents a Nested YAML resource + using either type: {filename} or ResourceGroup -> resource_def""" + return bool(self.get_nested_filename()) + + def get_nested_yaml(self, base_dir): + """If the resource represents a Nested YAML resource, then it + returns the loaded YAML. If the resource is not nested or the + file cannot be found, then an empty dict is returned""" + filename = self.get_nested_filename() + if filename: + file_path = os.path.join(base_dir, filename) + return load_yaml(file_path) if os.path.exists(file_path) else {} + else: + return {} + + +def _get_heat_objects(): + """ + Introspect this module and return a dict of all HeatObject sub-classes with + a (True) resource_type. Key is the resource_type, value is the + corresponding class. + """ + mod_classes = inspect.getmembers(sys.modules[__name__], inspect.isclass) + heat_objects = { + c.resource_type: c + for _, c in mod_classes + if issubclass(c, HeatObject) and c.resource_type + } + return heat_objects + + +_HEAT_OBJECTS = _get_heat_objects() diff --git a/ice_validator/tests/test_all_parameters_used_in_template.py b/ice_validator/tests/test_all_parameters_used_in_template.py new file mode 100644 index 0000000..41356d4 --- /dev/null +++ b/ice_validator/tests/test_all_parameters_used_in_template.py @@ -0,0 +1,80 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +import pytest +from tests import cached_yaml as yaml + +from .helpers import validates +from .utils.nested_iterables import find_all_get_param_in_yml + +VERSION = "1.0.0" + +# pylint: disable=invalid-name + + +@validates("R-90279") +def test_all_parameters_used_in_template(yaml_file): + + invalid_params = [] + get_params = [] + skip_params = ["availability_zone"] + + with open(yaml_file, "r") as f: + yml = yaml.load(f) + + template_parameters = yml.get("parameters") + if not template_parameters: + pytest.skip("no parameters found in template") + + get_params = find_all_get_param_in_yml(yml) + if not get_params: + pytest.skip("no get_params found in template") + + template_parameters = list(template_parameters.keys()) + for param in template_parameters: + for sparam in skip_params: + if param.find(sparam) != -1: + template_parameters.remove(param) + + invalid_params = set(template_parameters) - set(get_params) + + assert not invalid_params, "Unused parameters detected in template {}".format( + invalid_params + ) diff --git a/ice_validator/tests/test_allowed_address_pairs_include_vm_type_network_role.py b/ice_validator/tests/test_allowed_address_pairs_include_vm_type_network_role.py index 0d4bbdf..fe002e3 100644 --- a/ice_validator/tests/test_allowed_address_pairs_include_vm_type_network_role.py +++ b/ice_validator/tests/test_allowed_address_pairs_include_vm_type_network_role.py @@ -38,9 +38,9 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -''' +""" test_allowed_address_pairs_include_vm_type_network_role -''' +""" import pytest from tests import cached_yaml as yaml @@ -48,20 +48,18 @@ from tests import cached_yaml as yaml from .helpers import validates from .utils.ports import get_invalid_ip_addresses -VERSION = '1.0.0' +VERSION = "1.0.0" # pylint: disable=invalid-name -@validates('R-41492', - 'R-35735', - 'R-98748') +@validates("R-41492", "R-35735", "R-98748") def test_allowed_address_pairs_include_vm_type_network_role(heat_template): - ''' + """ Check that all allowed_address_pairs include the {vm_type} of the nova server it is associated to and also contains the {network_role} of the network it is associated with - ''' + """ with open(heat_template) as fh: yml = yaml.load(fh) @@ -72,11 +70,10 @@ def test_allowed_address_pairs_include_vm_type_network_role(heat_template): if "parameters" not in yml: pytest.skip("No parameters specified in the heat template") - invalid_ip_addresses = get_invalid_ip_addresses(yml['resources'], - "allowed_address_pairs", - yml["parameters"]) - - assert not set(invalid_ip_addresses), ( - 'invalid ip addresses allowed address pairs %s' % list( - set(invalid_ip_addresses))) + invalid_ip_addresses = get_invalid_ip_addresses( + yml["resources"], "allowed_address_pairs", yml["parameters"] + ) + assert not set( + invalid_ip_addresses + ), "invalid ip addresses allowed address pairs %s" % list(set(invalid_ip_addresses)) diff --git a/ice_validator/tests/test_availability_zone.py b/ice_validator/tests/test_availability_zone.py index 33d07e1..bbd8d99 100644 --- a/ice_validator/tests/test_availability_zone.py +++ b/ice_validator/tests/test_availability_zone.py @@ -47,14 +47,14 @@ from tests import cached_yaml as yaml from .helpers import validates -VERSION = '1.1.0' +VERSION = "1.1.0" -@validates('R-98450') +@validates("R-98450") def test_availability_zone_naming(heat_template): - ''' + """ Make sure all availability zones are properly formatted - ''' + """ with open(heat_template) as fh: yml = yaml.load(fh) @@ -75,16 +75,15 @@ def test_availability_zone_naming(heat_template): if v1["type"] == "OS::Nova::Server": for k2, v2 in v1["properties"].items(): - if k2 != 'availability_zone': + if k2 != "availability_zone": continue - if 'str_replace' in v2: + if "str_replace" in v2: continue if "get_param" not in v2: invalid_availability_zones.add(k1) - elif not re.match(r'availability_zone_\d+', v2["get_param"]): + elif not re.match(r"availability_zone_\d+", v2["get_param"]): invalid_availability_zones.add(v2["get_param"]) - assert not invalid_availability_zones, ( - 'invalid availability zones %s' % list( - invalid_availability_zones)) - + assert not invalid_availability_zones, "invalid availability zones %s" % list( + invalid_availability_zones + ) diff --git a/ice_validator/tests/test_availability_zone_params_start_at_0.py b/ice_validator/tests/test_availability_zone_params_start_at_0.py new file mode 100644 index 0000000..32a7484 --- /dev/null +++ b/ice_validator/tests/test_availability_zone_params_start_at_0.py @@ -0,0 +1,50 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +import re + +from tests.helpers import validates, check_indices +from tests.structures import Heat + + +AZ_PATTERN = re.compile(r"^(availability_zone_)(\d+)$") + + +@validates("R-98450") +def test_availability_zones_start_at_0(heat_template): + params = Heat(heat_template).parameters + invalid_params = check_indices(AZ_PATTERN, params, "Availability Zone Parameters") + assert not invalid_params, ". ".join(invalid_params) diff --git a/ice_validator/tests/test_base_template_names.py b/ice_validator/tests/test_base_template_names.py index dbc8815..5dce061 100644 --- a/ice_validator/tests/test_base_template_names.py +++ b/ice_validator/tests/test_base_template_names.py @@ -48,32 +48,34 @@ import re from .helpers import check_basename_ending from .helpers import validates -VERSION = '1.2.0' +VERSION = "1.2.0" # is 'base', starts with 'base_', contains '_base_', ends with '_base' -RE_BASE = re.compile(r'(^base$)|(^base_)|(_base_)|(_base$)') +RE_BASE = re.compile(r"(^base$)|(^base_)|(_base_)|(_base$)") -@validates('R-37028', 'R-87485', 'R-81339', 'R-87247', 'R-76057') +@validates("R-37028", "R-87485", "R-81339", "R-87247", "R-76057") def test_base_template_names(template_dir): - ''' + """ Check all base templates have a filename that includes "_base_". - ''' + """ base_template_count = 0 - filenames = [f for f in listdir(template_dir) - if path.isfile(path.join(template_dir, f)) and - path.splitext(f)[-1] in ['.yaml', '.yml']] + filenames = [ + f + for f in listdir(template_dir) + if path.isfile(path.join(template_dir, f)) + and path.splitext(f)[-1] in [".yaml", ".yml"] + ] for filename in filenames: filename = path.splitext(filename)[0] # volume templates are tied to their parent naming wise - if check_basename_ending('volume', filename): + if check_basename_ending("volume", filename): continue if RE_BASE.search(filename.lower()): base_template_count += 1 - assert base_template_count == 1, ( - 'must be 1 "*_base_*" in %s not %d' % ( - filenames, - base_template_count)) - + assert base_template_count == 1, 'must be 1 "*_base_*" in %s not %d' % ( + filenames, + base_template_count, + ) diff --git a/ice_validator/tests/test_cloud_config_resource_id.py b/ice_validator/tests/test_cloud_config_resource_id.py index 2adf860..de82fe4 100644 --- a/ice_validator/tests/test_cloud_config_resource_id.py +++ b/ice_validator/tests/test_cloud_config_resource_id.py @@ -38,10 +38,10 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -''' +""" A VNF's Heat Orchestration Template's Resource ``OS::Heat::CloudConfig`` Resource ID **MUST** contain the ``{vm-type}``. -''' +""" import pytest @@ -49,24 +49,24 @@ from .structures import Heat from .helpers import validates from .utils import vm_types -VERSION = '1.0.0' +VERSION = "1.0.0" -@validates('R-04747') +@validates("R-04747") def test_cloud_config(heat_template): - '''validate resource ids - ''' + """validate resource ids + """ h = Heat(filepath=heat_template) if not h.resources: - pytest.skip('No resources in this template') + pytest.skip("No resources in this template") cloud_configs = get_cloud_configs(h) if not cloud_configs: - pytest.skip('No CloudConfig resources in this template') + pytest.skip("No CloudConfig resources in this template") resource_vm_types = vm_types.get_vm_types(h.resources) if not resource_vm_types: - pytest.skip('No resources with {vm-type} in this template') + pytest.skip("No resources with {vm-type} in this template") bad = set() for rid in cloud_configs: @@ -75,14 +75,17 @@ def test_cloud_config(heat_template): break else: bad.add(rid) - assert not bad, 'CloudConfigs %s have {vm-type} not in %s' % ( + assert not bad, "CloudConfigs %s have {vm-type} not in %s" % ( list(bad), - list(resource_vm_types)) + list(resource_vm_types), + ) def get_cloud_configs(heat): """Return list of resource_id whose type is OS::Heat::CloudConfig. """ - return [rid for rid, resource in heat.resources.items() - if heat.nested_get(resource, 'type') == 'OS::Heat::CloudConfig'] - + return [ + rid + for rid, resource in heat.resources.items() + if heat.nested_get(resource, "type") == "OS::Heat::CloudConfig" + ] diff --git a/ice_validator/tests/test_contrail_fqdn.py b/ice_validator/tests/test_contrail_fqdn.py new file mode 100644 index 0000000..ec5f58a --- /dev/null +++ b/ice_validator/tests/test_contrail_fqdn.py @@ -0,0 +1,138 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +contrail fqdn +""" + +import re + +import pytest + +from .structures import Heat +from .helpers import validates + +VERSION = "1.1.0" + +RE_NETWORK_ROLE = re.compile( + r".+_" r"\d+_" r"(int_)?" r"(subint_)?" r"(?P.+)" r"_vmi_" r"\d$" +) + + +def get_network_role(rid): + """return the network_role parsed from the rid. + """ + match = RE_NETWORK_ROLE.match(rid) + return match.groupdict()["network_role"] if match else None + + +def run_test(heat_template, validate): + """call validate for each fixed_ips + """ + heat = Heat(filepath=heat_template) + if not heat.resources: + pytest.skip("No resources found") + + contrail_resources = heat.contrail_resources + if not contrail_resources: + pytest.skip("No Contrail resources found") + + skip = True + bad = {} + for rid, resource in contrail_resources.items(): + network_role = get_network_role(rid) + if network_role is None: + continue + virtual_network_refs = heat.nested_get( + resource, "properties", "virtual_network_refs" + ) + if virtual_network_refs is None: + continue + if not isinstance(virtual_network_refs, list): + bad[rid] = "properties.virtual_network_refs must be a list." + continue + error = validate(heat, virtual_network_refs, network_role) + if error: + bad[rid] = error + continue + skip = False + if bad: + raise AssertionError( + "Bad OS::ContrailV2::VirtualMachineInterface: %s" + % (", ".join("%s: %s" % (rid, error) for rid, error in bad.items())) + ) + if skip: + pytest.skip("No Contrail virtual_network_refs found") + + +def validate_virtual_network_refs(heat, virtual_network_refs, network_role): + """ensure there is a matching virtual_network_ref in the list. + Returns error message string or None. + """ + expect = "%s_net_fqdn" % network_role + for vn_ref in virtual_network_refs: + param = heat.nested_get(vn_ref, "get_param") + if param == expect: + param_type = heat.nested_get(heat.parameters, param, "type") + if param_type != "string": + return ( + 'virtual_network_ref parameter "%s" ' + 'type "%s" must be "string"' % (param, param_type) + ) + else: + return None + return "virtual_network_refs must include {get_param: %s}" % expect + + +# pylint: disable=invalid-name + + +@validates("R-02164") +def test_contrail_fqdn(heat_template): + """ + When a VNF's Heat Orchestration Template's Contrail resource + has a property that + references an external network that requires the network's + Fully Qualified Domain Name (FQDN), the property parameter + + * **MUST** follow the format ``{network-role}_net_fqdn`` + * **MUST** be declared as type ``string`` + """ + run_test(heat_template, validate_virtual_network_refs) diff --git a/ice_validator/tests/test_contrail_instance_ip_resource_id.py b/ice_validator/tests/test_contrail_instance_ip_resource_id.py new file mode 100644 index 0000000..c7c8c57 --- /dev/null +++ b/ice_validator/tests/test_contrail_instance_ip_resource_id.py @@ -0,0 +1,141 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +resources: +{vm-type}_server_{vm-type_index} +""" +import pytest + +from .structures import Heat +from .structures import ContrailV2InstanceIp +from .helpers import validates + +VERSION = "1.1.0" + + +def run_test(heat_template, regex_names, network_flavor): + """run test + """ + heat = Heat(filepath=heat_template) + heat_object_class = ContrailV2InstanceIp + resource_type = heat_object_class.resource_type + resources = heat.get_resource_by_type(resource_type=resource_type) + if not resources: + pytest.skip("No %s resources found" % resource_type) + bad = [] + heat_object = heat_object_class() + rid_patterns = heat_object.get_rid_patterns() + for rid, resource in resources.items(): + flavor = heat_object.get_network_flavor(resource) + if flavor != network_flavor: + continue + regex_name = heat_object.get_rid_match_tuple(rid)[0] + if regex_name in regex_names: + continue + bad.append(rid) + assert not bad, "%s resource ids %s must match one of %s" % ( + network_flavor, + bad, + [v for k, v in rid_patterns.items() if k in regex_names], + ) + + +# pylint: disable=invalid-name + + +@validates("R-53310", "R-46128") +def test_contrail_instance_ip_resource_id_external(heat_template): + """ + A VNF's Heat Orchestration Template's Resource OS::ContrailV2::InstanceIp + that is configuring an IPv4 Address on a port attached to an external + network + Resource ID **MUST** use the naming convention + + {vm-type}_{vm-type_index}_{network-role}_vmi_{vmi_index} + _IP_{index} + + A VNF's Heat Orchestration Template's Resource OS::ContrailV2::InstanceIp + that is configuring an IPv6 Address on a port attached to an external + network + Resource ID **MUST** use the naming convention + + {vm-type}_{vm-type_index}_{network-role}_vmi_{vmi_index} + _v6_IP_{index} + + """ + + run_test( + heat_template, + regex_names=("ip", "v6_ip"), + network_flavor=ContrailV2InstanceIp.network_flavor_external, + ) + + +@validates("R-62187", "R-87563") +def test_contrail_instance_ip_resource_id_internal(heat_template): + """ + internal + {vm-type}_{vm-type_index}_int_{network-role}_vmi_{vmi_index} + _IP_{index} + {vm-type}_{vm-type_index}_int_{network-role}_vmi_{vmi_index} + _v6_IP_{index} + """ + run_test( + heat_template, + regex_names=("int_ip", "int_v6_ip"), + network_flavor=ContrailV2InstanceIp.network_flavor_internal, + ) + + +@validates("R-20947", "R-88540") +def test_contrail_instance_ip_resource_id_subint(heat_template): + """ + subint + {vm-type}_{vm-type_index}_subint_{network-role}_vmi_{vmi_index} + _IP_{index} + {vm-type}_{vm-type_index}_subint_{network-role}_vmi_{vmi_index} + _v6_IP_{index} + """ + run_test( + heat_template, + regex_names=("subint_ip", "subint_v6_ip"), + network_flavor=ContrailV2InstanceIp.network_flavor_subint, + ) diff --git a/ice_validator/tests/test_contrail_irt_routes.py b/ice_validator/tests/test_contrail_irt_routes.py new file mode 100644 index 0000000..3d614bf --- /dev/null +++ b/ice_validator/tests/test_contrail_irt_routes.py @@ -0,0 +1,167 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +contrail interface route table routes + +resources: +: + type: OS::ContrailV2::InterfaceRouteTable + depends_on: [resource name of OS::ContrailV2::ServiceInstance] + properties: + name: + str_replace: + template: VNF_NAME_interface_route_table + params: + VNF_NAME: { get_param: vnf_name } + interface_route_table_routes: + interface_route_table_routes_route: { get_param: fw_oam_route_prefixes } + service_instance_refs: + - get_resource: + service_instance_refs_data: + - service_instance_refs_data_interface_type: + { get_param: oam_interface_type } +""" + +import re + +import pytest + +from .structures import Heat +from .helpers import validates + +VERSION = "1.1.0" + +RE_ROUTE_ROUTE_PARAM = re.compile( + r"(?P.+)" r"_(?P.+)" r"_route_prefixes" r"$" +) + + +def run_test(heat_template, validate): + """call validate for each routes route + """ + heat = Heat(filepath=heat_template) + if not heat.resources: + pytest.skip("No resources found") + + irts = heat.get_resource_by_type( + resource_type="OS::ContrailV2::InterfaceRouteTable" + ) + if not irts: + pytest.skip("No Contrail InterfaceRouteTable found") + + skip = True + bad = {} + for rid, resource in irts.items(): + routes_route = heat.nested_get( + resource, + "properties", + "interface_route_table_routes", + "interface_route_table_routes_route", + ) + if routes_route is None: + continue + error = validate(heat, routes_route) + if error: + bad[rid] = error + continue + skip = False + if bad: + raise AssertionError( + "Bad OS::ContrailV2::InterfaceRouteTable: %s" + % (", ".join("%s: %s" % (rid, error) for rid, error in bad.items())) + ) + if skip: + pytest.skip("No Contrail routes_route found") + + +def validate_irt_route_param_format(heat, routes_route): + """ensure routes_route has proper format. + Returns error message string or None. + """ + param = heat.nested_get(routes_route, "get_param") + if param is None: + return "missing routes_route get_param" + match = RE_ROUTE_ROUTE_PARAM.match(param) + if match is None: + return 'routes_route get_param "%s" must match "%s"' % ( + param, + RE_ROUTE_ROUTE_PARAM.pattern, + ) + return None + + +def validate_irt_route_param_type(heat, routes_route): + """ensure routes_route has proper type. + Returns error message string or None. + """ + param = heat.nested_get(routes_route, "get_param") + if param is None: + return None + if heat.nested_get(heat.parameters, param, "type") != "json": + return ( + 'routes_route get_param "%s" ' + 'must have a parameter of type "json"' % param + ) + return None + + +# pylint: disable=invalid-name + + +@validates("R-28222") +def test_contrail_irt_route_param_format(heat_template): + """ + If a VNF's Heat Orchestration Template + ``OS::ContrailV2::InterfaceRouteTable`` resource + ``interface_route_table_routes`` property + ``interface_route_table_routes_route`` map property parameter name + **MUST** follow the format + """ + run_test(heat_template, validate_irt_route_param_format) + + +@validates("R-19756") +def test_contrail_irt_route_param_type(heat_template): + """ + * ``{vm-type}_{network-role}_route_prefixes`` + **MUST** be defined as type ``json``. + """ + run_test(heat_template, validate_irt_route_param_type) diff --git a/ice_validator/tests/test_contrail_resource_id.py b/ice_validator/tests/test_contrail_resource_id.py new file mode 100644 index 0000000..7667600 --- /dev/null +++ b/ice_validator/tests/test_contrail_resource_id.py @@ -0,0 +1,150 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +contrail +""" + +import pytest +from .structures import ContrailV2InterfaceRouteTable +from .structures import ContrailV2NetworkIpam +from .structures import ContrailV2PortTuple +from .structures import ContrailV2ServiceHealthCheck +from .structures import ContrailV2ServiceTemplate +from .utils.network_roles import get_network_roles +from .utils.vm_types import get_vm_types +from .structures import Heat +from .helpers import validates + +VERSION = "1.0.1" + + +def run_test(heat_template, contrail_class, get_parts, part_name): + """ + run test + """ + heat = Heat(filepath=heat_template) + if not heat.resources: + pytest.skip("No resources found") + parts = get_parts(heat.resources) + if not parts: + pytest.skip("No %s found" % part_name) + + contrail_resources = heat.get_resource_by_type( + resource_type=contrail_class.resource_type + ) + if not contrail_resources: + pytest.skip("No %s resources found" % contrail_class.resource_type) + + bad = [] + for rid in contrail_resources: + if not any(heat.part_is_in_name(part, rid) for part in parts): + bad.append(rid) + if bad: + raise AssertionError( + "%s: %s" + " must have %s in %s" + % (contrail_class.resource_type, bad, part_name, list(parts)) + ) + + +# pylint: disable=invalid-name + + +@validates("R-81214") +def test_contrail_interfaceroutetable_resource_id(heat_template): + """ + A VNF's Heat Orchestration Template's Resource + ``OS::ContrailV2::InterfaceRouteTable`` + Resource ID + **MUST** + contain the ``{network-role}``. + """ + run_test( + heat_template, ContrailV2InterfaceRouteTable, get_network_roles, "network_role" + ) + + +@validates("R-30753") +def test_contrail_networkipam_resource_id(heat_template): + """ + A VNF's Heat Orchestration Template's Resource + ``OS::ContrailV2::NetworkIpam`` + Resource ID + **MUST** + contain the ``{network-role}``. + """ + run_test(heat_template, ContrailV2NetworkIpam, get_network_roles, "network_role") + + +@validates("R-20065") +def test_contrail_porttuple_resource_id(heat_template): + """ + A VNF's Heat Orchestration Template's Resource + ``OS::ContrailV2::PortTuple`` + Resource ID + **MUST** + contain the ``{vm-type}``. + """ + run_test(heat_template, ContrailV2PortTuple, get_vm_types, "vm_type") + + +@validates("R-76014") +def test_contrail_servicehealthcheck_resource_id(heat_template): + """ + A VNF's Heat Orchestration Template's Resource + ``OS::ContrailV2::ServiceHealthCheck`` + Resource ID + **MUST** + contain the ``{vm-type}``. + """ + run_test(heat_template, ContrailV2ServiceHealthCheck, get_vm_types, "vm_type") + + +@validates("R-16437") +def test_contrail_servicetemplate_resource_id(heat_template): + """ + A VNF's Heat Orchestration Template's Resource + ``OS::ContrailV2::ServiceTemplate`` + Resource ID + **MUST** + contain the ``{vm-type}``. + """ + run_test(heat_template, ContrailV2ServiceTemplate, get_vm_types, "vm_type") diff --git a/ice_validator/tests/test_contrail_vmi_resource_id.py b/ice_validator/tests/test_contrail_vmi_resource_id.py new file mode 100644 index 0000000..35f16e6 --- /dev/null +++ b/ice_validator/tests/test_contrail_vmi_resource_id.py @@ -0,0 +1,132 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +import pytest + +from .structures import Heat +from .structures import ContrailV2VirtualMachineInterface +from .helpers import validates + +""" +resources: +{vm-type}_server_{vm-type_index} +""" + +VERSION = "1.0.0" + + +def run_test(heat_template, regex_name, network_flavor): + """run test + """ + heat = Heat(filepath=heat_template) + heat_object_class = ContrailV2VirtualMachineInterface + resource_type = heat_object_class.resource_type + resources = heat.get_resource_by_type(resource_type=resource_type) + if not resources: + pytest.skip("No %s resources found" % resource_type) + bad = [] + heat_object = heat_object_class() + rid_pattern = heat_object.get_rid_patterns()[regex_name] + for rid, resource in resources.items(): + flavor = heat_object.get_network_flavor(resource) + if flavor != network_flavor: + continue + name = heat_object.get_rid_match_tuple(rid)[0] + if name == regex_name: + continue + bad.append(rid) + assert not bad, "%s resource ids %s must match %s" % ( + network_flavor, + bad, + [rid_pattern], + ) + + +# pylint: disable=invalid-name + + +@validates("R-96253") +def test_contrail_instance_ip_resource_id_external(heat_template): + """ + A VNF's Heat Orchestration Template's Resource + OS::ContrailV2::VirtualMachineInterface that is attaching to an + external network + Resource ID **MUST** use the naming convention + + {vm-type}_{vm-type_index}_{network-role}_vmi_{vmi_index} + """ + run_test( + heat_template, + regex_name="vmi_external", + network_flavor=ContrailV2VirtualMachineInterface.network_flavor_external, + ) + + +@validates("R-50468") +def test_contrail_instance_ip_resource_id_internal(heat_template): + """ + A VNF's Heat Orchestration Template's Resource + OS::ContrailV2::VirtualMachineInterface that is attaching to an + internal network + Resource ID **MUST** use the naming convention + + {vm-type}_{vm-type_index}_int_{network-role}_vmi_{vmi_index} + """ + run_test( + heat_template, + regex_name="vmi_internal", + network_flavor=ContrailV2VirtualMachineInterface.network_flavor_internal, + ) + + +@validates("R-54458") +def test_contrail_instance_ip_resource_id_subint(heat_template): + """ + A VNF's Heat Orchestration Template's Resource + OS::ContrailV2::VirtualMachineInterface that is attaching to an + sub-interface network + Resource ID **MUST** use the naming convention + + {vm-type}_{vm-type_index}_subint_{network-role}_vmi_{vmi_index} + """ + run_test( + heat_template, + regex_name="vmi_subint", + network_flavor=ContrailV2VirtualMachineInterface.network_flavor_subint, + ) diff --git a/ice_validator/tests/test_contrail_vn_resource_id.py b/ice_validator/tests/test_contrail_vn_resource_id.py new file mode 100644 index 0000000..4045eee --- /dev/null +++ b/ice_validator/tests/test_contrail_vn_resource_id.py @@ -0,0 +1,82 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +neutron net resource id +""" + +import pytest + +from .helpers import validates +from .structures import Heat +from .structures import ContrailV2VirtualNetwork + +VERSION = "1.0.0" + +# pylint: disable=invalid-name + + +@validates("R-99110") +def test_neutron_net_resource_id(heat_template): + """ + A VNF's Heat Orchestration Template's Resource + OS::ContrailV2::VirtualNetwork Resource ID + **MUST** use the naming convention + + 1) int_{network-role}_network + or + 2) int_{network-role}_RVN`` where RVN represents Resource Virtual + """ + heat = Heat(filepath=heat_template) + heat_object_class = ContrailV2VirtualNetwork + resource_type = heat_object_class.resource_type + resources = heat.get_resource_by_type(resource_type) + if not resources: + pytest.skip("No %s resources found" % resource_type) + heat_object = heat_object_class() + bad = [] + for rid in resources: + if not heat_object.get_rid_match_tuple(rid)[0]: + bad.append(rid) + assert not bad, "%s resource ids %s do not match %s" % ( + resource_type, + bad, + heat_object.get_rid_patterns().values(), + ) diff --git a/ice_validator/tests/test_env_and_yaml_same_name.py b/ice_validator/tests/test_env_and_yaml_same_name.py index 46a0917..cbfb1fb 100644 --- a/ice_validator/tests/test_env_and_yaml_same_name.py +++ b/ice_validator/tests/test_env_and_yaml_same_name.py @@ -39,32 +39,27 @@ # from .helpers import validates -'''test_env_and_yaml_same_name -''' +"""test_env_and_yaml_same_name +""" from os import listdir from os import path -VERSION = '1.0.0' +VERSION = "1.0.0" -@validates('R-38474', 'R-81725', 'R-53433') +@validates("R-38474", "R-81725", "R-53433") def test_env_and_yaml_same_name(template_dir): - ''' + """ Check that all environment template filenames are identical to an associated Heat template filenames. Log the result of the check and add the filename of any environment file that is badly named. - ''' + """ files = listdir(template_dir) - env_files = [f for f in files - if path.splitext(f)[-1] == ".env"] - yaml_files = [f for f in files - if path.splitext(f)[-1] in ['.yml', '.yaml']] + env_files = [f for f in files if path.splitext(f)[-1] == ".env"] + yaml_files = [f for f in files if path.splitext(f)[-1] in [".yml", ".yaml"]] unmatched = [] for filename in env_files: basename = path.splitext(filename)[0] - if (basename + '.yaml' not in yaml_files - and basename + '.yml' not in yaml_files): + if basename + ".yaml" not in yaml_files and basename + ".yml" not in yaml_files: unmatched.append(filename) - assert not unmatched, ( - 'files with no corresponding .y[a]ml %s' % unmatched) - + assert not unmatched, "files with no corresponding .y[a]ml %s" % unmatched diff --git a/ice_validator/tests/test_env_no_resource_registry.py b/ice_validator/tests/test_env_no_resource_registry.py index 227f0bf..4b00103 100644 --- a/ice_validator/tests/test_env_no_resource_registry.py +++ b/ice_validator/tests/test_env_no_resource_registry.py @@ -2,7 +2,7 @@ # ============LICENSE_START==================================================== # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -38,25 +38,25 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -'''test env file has no resource_registry -''' +"""test env file has no resource_registry +""" from tests import cached_yaml as yaml from .helpers import validates -VERSION = '1.0.0' +VERSION = "1.0.0" -@validates('R-67231') +@validates("R-67231") def test_env_no_resource_registry(env_files): - ''' + """ A VNF's Heat Orchestration template's Environment File's **MUST NOT** contain the "resource_registry:" section. - ''' + """ for filename in env_files: with open(filename) as fi: yml = yaml.load(fi) - assert 'resource_registry' not in yml, ( - '%s contains "resource_registry"' % filename) - + assert "resource_registry" not in yml, ( + '%s contains "resource_registry"' % filename + ) diff --git a/ice_validator/tests/test_env_parameters_defined_in_template.py b/ice_validator/tests/test_env_parameters_defined_in_template.py new file mode 100644 index 0000000..9bdd56e --- /dev/null +++ b/ice_validator/tests/test_env_parameters_defined_in_template.py @@ -0,0 +1,79 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +import pytest + +from .helpers import validates, get_environment_pair + + +@validates("R-599443") +def test_env_params_are_defined_in_template(heat_template): + """Test that each paraemter defined in an environment file + is also defined in the paired heat template""" + + bad = [] + template_pair = get_environment_pair(heat_template) + + if not template_pair: + pytest.skip("No yaml/env pair could be determined") + + template = template_pair.get("yyml").get("parameters", {}) + environment = template_pair.get("eyml").get("parameters", {}) + + if not isinstance(template, dict) or not isinstance(environment, dict): + pytest.skip("No parameters defined in environment or template") + + template = template.keys() + environment = environment.keys() + + for parameter in environment: + if parameter not in template: + bad.append( + ( + "{} is defined in the environment file but not in " + + "the template file " + ).format(parameter) + ) + msg = ( + "All parameters defined in an environment file must " + + "be defined in the template file. " + + ". ".join(bad) + ) + + assert not bad, msg diff --git a/ice_validator/tests/test_environment_file_parameters.py b/ice_validator/tests/test_environment_file_parameters.py index 547ab5b..031f898 100644 --- a/ice_validator/tests/test_environment_file_parameters.py +++ b/ice_validator/tests/test_environment_file_parameters.py @@ -46,7 +46,7 @@ import pytest from .helpers import validates, get_environment_pair -VERSION = '1.0.0' +VERSION = "1.0.0" # pylint: disable=invalid-name @@ -62,21 +62,25 @@ def check_parameter_exists(pattern, parameters): return False -def check_param_in_env_file(environment_pair, param, DESIRED): +def check_param_in_env_file(environment_pair, param, DESIRED, exclude_parameter=None): + + # workaround for internal/external parameters + if exclude_parameter and re.match(exclude_parameter, param): + return False if not environment_pair: pytest.skip("No heat/env pair could be identified") env_file = environment_pair.get("eyml") - pattern = re.compile(r'^{}$'.format(param)) + pattern = re.compile(r"^{}$".format(param)) if "parameters" not in env_file: pytest.skip("No parameters specified in the environment file") - return check_parameter_exists(pattern, - env_file.get("parameters", {}) - ) is not DESIRED + return ( + check_parameter_exists(pattern, env_file.get("parameters", {})) is not DESIRED + ) """ @@ -95,13 +99,16 @@ resource_id: """ -def check_resource_parameter(environment_pair, - prop, - DESIRED, - resource_type, - resource_type_inverse=False, - nested_prop='', - exclude_resource=''): +def check_resource_parameter( + environment_pair, + prop, + DESIRED, + resource_type, + resource_type_inverse=False, + nested_prop="", + exclude_resource="", + exclude_parameter="", +): if not environment_pair: pytest.skip("No heat/env pair could be identified") @@ -117,12 +124,13 @@ def check_resource_parameter(environment_pair, if template_file: for resource, resource_prop in template_file.get("resources", {}).items(): + # workaround for subinterface resource groups if exclude_resource and re.match(exclude_resource, resource): continue - if resource_prop.get("type") == resource_type or \ - (resource_prop.get("type") != resource_type - and resource_type_inverse): + if ( + resource_prop.get("type") == resource_type and not resource_type_inverse + ) or (resource_prop.get("type") != resource_type and resource_type_inverse): pattern = False @@ -141,7 +149,10 @@ def check_resource_parameter(environment_pair, if not nested_param: continue - pattern = nested_param.get("get_param") + if isinstance(nested_param, dict): + pattern = nested_param.get("get_param") + else: + pattern = "" if not pattern: continue @@ -149,26 +160,37 @@ def check_resource_parameter(environment_pair, if isinstance(pattern, list): pattern = pattern[0] + if check_param_in_env_file( + environment_pair, + pattern, + DESIRED, + exclude_parameter=exclude_parameter, + ): + invalid_parameters.append(pattern) + elif isinstance(resource_parameter, dict): if nested_prop and nested_prop in resource_parameter: resource_parameter = resource_parameter.get(nested_prop) pattern = resource_parameter.get("get_param") - + if not pattern: + continue + + if check_param_in_env_file( + environment_pair, + pattern, + DESIRED, + exclude_parameter=exclude_parameter, + ): + invalid_parameters.append(pattern) else: continue - if not pattern: - continue - - if check_param_in_env_file(environment_pair, pattern, DESIRED): - invalid_parameters.append(pattern) - return set(invalid_parameters) -@validates('R-91125') +@validates("R-91125") def test_nova_server_image_parameter_exists_in_environment_file(heat_template): if pytest.config.getoption("validation_profile") == "heat_only": @@ -180,19 +202,19 @@ def test_nova_server_image_parameter_exists_in_environment_file(heat_template): DESIRED = True resource_type = "OS::Nova::Server" - invalid_parameters = check_resource_parameter(environment_pair, - prop, - DESIRED, - resource_type) + invalid_parameters = check_resource_parameter( + environment_pair, prop, DESIRED, resource_type + ) - assert not invalid_parameters, ("OS::Nova::Server {} parameters not" - " found in {} environment file {}" - .format(prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "OS::Nova::Server {} parameters not" + " found in {} environment file {}".format( + prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-69431') +@validates("R-69431") def test_nova_server_flavor_parameter_exists_in_environment_file(heat_template): if pytest.config.getoption("validation_profile") == "heat_only": @@ -204,19 +226,19 @@ def test_nova_server_flavor_parameter_exists_in_environment_file(heat_template): DESIRED = True resource_type = "OS::Nova::Server" - invalid_parameters = check_resource_parameter(environment_pair, - prop, - DESIRED, - resource_type) + invalid_parameters = check_resource_parameter( + environment_pair, prop, DESIRED, resource_type + ) - assert not invalid_parameters, ("OS::Nova::Server {} parameters not" - " found in {} environment file {}" - .format(prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "OS::Nova::Server {} parameters not" + " found in {} environment file {}".format( + prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-22838') +@validates("R-22838") def test_nova_server_name_parameter_doesnt_exist_in_environment_file(heat_template): if pytest.config.getoption("validation_profile") == "heat_only": @@ -228,19 +250,19 @@ def test_nova_server_name_parameter_doesnt_exist_in_environment_file(heat_templa DESIRED = False resource_type = "OS::Nova::Server" - invalid_parameters = check_resource_parameter(environment_pair, - prop, - DESIRED, - resource_type) + invalid_parameters = check_resource_parameter( + environment_pair, prop, DESIRED, resource_type + ) - assert not invalid_parameters, ("OS::Nova::Server {} parameters" - " found in {} environment file {}" - .format(prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "OS::Nova::Server {} parameters" + " found in {} environment file {}".format( + prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-59568') +@validates("R-59568") def test_nova_server_az_parameter_doesnt_exist_in_environment_file(heat_template): if pytest.config.getoption("validation_profile") == "heat_only": @@ -252,19 +274,19 @@ def test_nova_server_az_parameter_doesnt_exist_in_environment_file(heat_template DESIRED = False resource_type = "OS::Nova::Server" - invalid_parameters = check_resource_parameter(environment_pair, - prop, - DESIRED, - resource_type) + invalid_parameters = check_resource_parameter( + environment_pair, prop, DESIRED, resource_type + ) - assert not invalid_parameters, ("OS::Nova::Server {} parameters" - " found in {} environment file {}" - .format(prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "OS::Nova::Server {} parameters" + " found in {} environment file {}".format( + prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-20856') +@validates("R-20856") def test_nova_server_vnf_id_parameter_doesnt_exist_in_environment_file(heat_template): if pytest.config.getoption("validation_profile") == "heat_only": @@ -275,19 +297,20 @@ def test_nova_server_vnf_id_parameter_doesnt_exist_in_environment_file(heat_temp prop = "vnf_id" DESIRED = False - invalid_parameters = check_param_in_env_file(environment_pair, - prop, - DESIRED) + invalid_parameters = check_param_in_env_file(environment_pair, prop, DESIRED) - assert not invalid_parameters, ("{} parameters" - " found in {} environment file {}" - .format(prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "{} parameters" + " found in {} environment file {}".format( + prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-72871') -def test_nova_server_vf_module_id_parameter_doesnt_exist_in_environment_file(heat_template): +@validates("R-72871") +def test_nova_server_vf_module_id_parameter_doesnt_exist_in_environment_file( + heat_template +): if pytest.config.getoption("validation_profile") == "heat_only": pytest.skip("skipping test because validation profile is heat only") @@ -297,18 +320,40 @@ def test_nova_server_vf_module_id_parameter_doesnt_exist_in_environment_file(hea prop = "vf_module_id" DESIRED = False - invalid_parameters = check_param_in_env_file(environment_pair, - prop, - DESIRED) + invalid_parameters = check_param_in_env_file(environment_pair, prop, DESIRED) + + assert not invalid_parameters, ( + "{} parameters" + " found in {} environment file {}".format( + prop, environment_pair.get("name"), invalid_parameters + ) + ) - assert not invalid_parameters, ("{} parameters" - " found in {} environment file {}" - .format(prop, - environment_pair.get("name"), - invalid_parameters)) +@validates("R-37039") +def test_nova_server_vf_module_index_parameter_doesnt_exist_in_environment_file( + heat_template +): + + if pytest.config.getoption("validation_profile") == "heat_only": + pytest.skip("skipping test because validation profile is heat only") + + environment_pair = get_environment_pair(heat_template) + + prop = "vf_module_index" + DESIRED = False -@validates('R-36542') + invalid_parameters = check_param_in_env_file(environment_pair, prop, DESIRED) + + assert not invalid_parameters, ( + "{} parameters" + " found in {} environment file {}".format( + prop, environment_pair.get("name"), invalid_parameters + ) + ) + + +@validates("R-36542") def test_nova_server_vnf_name_parameter_doesnt_exist_in_environment_file(heat_template): if pytest.config.getoption("validation_profile") == "heat_only": @@ -319,19 +364,20 @@ def test_nova_server_vnf_name_parameter_doesnt_exist_in_environment_file(heat_te prop = "vnf_name" DESIRED = False - invalid_parameters = check_param_in_env_file(environment_pair, - prop, - DESIRED) + invalid_parameters = check_param_in_env_file(environment_pair, prop, DESIRED) - assert not invalid_parameters, ("{} parameters" - " found in {} environment file {}" - .format(prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "{} parameters" + " found in {} environment file {}".format( + prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-80374') -def test_nova_server_vf_module_name_parameter_doesnt_exist_in_environment_file(heat_template): +@validates("R-80374") +def test_nova_server_vf_module_name_parameter_doesnt_exist_in_environment_file( + heat_template +): if pytest.config.getoption("validation_profile") == "heat_only": pytest.skip("skipping test because validation profile is heat only") @@ -341,19 +387,20 @@ def test_nova_server_vf_module_name_parameter_doesnt_exist_in_environment_file(h prop = "vf_module_name" DESIRED = False - invalid_parameters = check_param_in_env_file(environment_pair, - prop, - DESIRED) + invalid_parameters = check_param_in_env_file(environment_pair, prop, DESIRED) - assert not invalid_parameters, ("{} parameters" - " found in {} environment file {}" - .format(prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "{} parameters" + " found in {} environment file {}".format( + prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-02691') -def test_nova_server_workload_context_parameter_doesnt_exist_in_environment_file(heat_template): +@validates("R-02691") +def test_nova_server_workload_context_parameter_doesnt_exist_in_environment_file( + heat_template +): if pytest.config.getoption("validation_profile") == "heat_only": pytest.skip("skipping test because validation profile is heat only") @@ -363,19 +410,20 @@ def test_nova_server_workload_context_parameter_doesnt_exist_in_environment_file prop = "workload_context" DESIRED = False - invalid_parameters = check_param_in_env_file(environment_pair, - prop, - DESIRED) + invalid_parameters = check_param_in_env_file(environment_pair, prop, DESIRED) - assert not invalid_parameters, ("{} parameters" - " found in {} environment file {}" - .format(prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "{} parameters" + " found in {} environment file {}".format( + prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-13194') -def test_nova_server_environment_context_parameter_doesnt_exist_in_environment_file(heat_template): +@validates("R-13194") +def test_nova_server_environment_context_parameter_doesnt_exist_in_environment_file( + heat_template +): if pytest.config.getoption("validation_profile") == "heat_only": pytest.skip("skipping test because validation profile is heat only") @@ -385,18 +433,17 @@ def test_nova_server_environment_context_parameter_doesnt_exist_in_environment_f prop = "environment_context" DESIRED = False - invalid_parameters = check_param_in_env_file(environment_pair, - prop, - DESIRED) + invalid_parameters = check_param_in_env_file(environment_pair, prop, DESIRED) - assert not invalid_parameters, ("{} parameters" - " found in {} environment file {}" - .format(prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "{} parameters" + " found in {} environment file {}".format( + prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-29872') +@validates("R-29872") def test_nova_server_network_parameter_doesnt_exist_in_environment_file(heat_template): if pytest.config.getoption("validation_profile") == "heat_only": @@ -409,33 +456,22 @@ def test_nova_server_network_parameter_doesnt_exist_in_environment_file(heat_tem DESIRED = False resource_type = "OS::Nova::Server" - invalid_parameters = check_resource_parameter(environment_pair, - prop, - DESIRED, - resource_type, - nested_prop=nested_prop) - - assert not invalid_parameters, ("{} {} parameters" - " found in {} environment file {}" - .format(resource_type, - nested_prop, - environment_pair.get("name"), - invalid_parameters)) - - -@validates('R-39841', - 'R-87123', - 'R-28795', - 'R-97201', - 'R-62590', - 'R-93496', - 'R-98905', - 'R-93030', - 'R-90206', - 'R-98569', - 'R-62590', - 'R-93496') -def test_neutron_port_fixedips_ipaddress_parameter_doesnt_exist_in_environment_file(heat_template): + invalid_parameters = check_resource_parameter( + environment_pair, prop, DESIRED, resource_type, nested_prop=nested_prop + ) + + assert not invalid_parameters, ( + "{} {} parameters" + " found in {} environment file {}".format( + resource_type, nested_prop, environment_pair.get("name"), invalid_parameters + ) + ) + + +@validates("R-39841", "R-87123", "R-62590", "R-98905", "R-93030", "R-62590") +def test_neutron_port_external_fixedips_ipaddress_parameter_doesnt_exist_in_environment_file( + heat_template +): if pytest.config.getoption("validation_profile") == "heat_only": pytest.skip("skipping test because validation profile is heat only") @@ -446,26 +482,62 @@ def test_neutron_port_fixedips_ipaddress_parameter_doesnt_exist_in_environment_f nested_prop = "ip_address" DESIRED = False resource_type = "OS::Neutron::Port" + exclude_parameter = re.compile(r"^(.+?)_int_(.+?)$") + + invalid_parameters = check_resource_parameter( + environment_pair, + prop, + DESIRED, + resource_type, + nested_prop=nested_prop, + exclude_parameter=exclude_parameter, + ) + + assert not invalid_parameters, ( + "{} {} external parameters" + " found in {} environment file {}".format( + resource_type, nested_prop, environment_pair.get("name"), invalid_parameters + ) + ) + + +@validates("R-28795", "R-97201", "R-93496", "R-90206", "R-98569", "R-93496") +def test_neutron_port_internal_fixedips_ipaddress_parameter_exists_in_environment_file( + heat_template +): - invalid_parameters = check_resource_parameter(environment_pair, - prop, - DESIRED, - resource_type, - nested_prop=nested_prop) - - assert not invalid_parameters, ("{} {} parameters" - " found in {} environment file {}" - .format(resource_type, - nested_prop, - environment_pair.get("name"), - invalid_parameters)) + if pytest.config.getoption("validation_profile") == "heat_only": + pytest.skip("skipping test because validation profile is heat only") + environment_pair = get_environment_pair(heat_template) -@validates('R-83677', - 'R-80829', - 'R-69634', - 'R-22288') -def test_neutron_port_fixedips_subnet_parameter_doesnt_exist_in_environment_file(heat_template): + prop = "fixed_ips" + nested_prop = "ip_address" + DESIRED = True + resource_type = "OS::Neutron::Port" + exclude_parameter = re.compile(r"^((?!_int_).)*$") + + invalid_parameters = check_resource_parameter( + environment_pair, + prop, + DESIRED, + resource_type, + nested_prop=nested_prop, + exclude_parameter=exclude_parameter, + ) + + assert not invalid_parameters, ( + "{} {} internal parameters" + " not found in {} environment file {}".format( + resource_type, nested_prop, environment_pair.get("name"), invalid_parameters + ) + ) + + +@validates("R-83677", "R-80829", "R-69634", "R-22288") +def test_neutron_port_fixedips_subnet_parameter_doesnt_exist_in_environment_file( + heat_template +): if pytest.config.getoption("validation_profile") == "heat_only": pytest.skip("skipping test because validation profile is heat only") @@ -473,26 +545,23 @@ def test_neutron_port_fixedips_subnet_parameter_doesnt_exist_in_environment_file environment_pair = get_environment_pair(heat_template) prop = "fixed_ips" - nested_prop = "subnet_id" + nested_prop = "subnet" DESIRED = False resource_type = "OS::Neutron::Port" - invalid_parameters = check_resource_parameter(environment_pair, - prop, - DESIRED, - resource_type, - nested_prop=nested_prop) + invalid_parameters = check_resource_parameter( + environment_pair, prop, DESIRED, resource_type, nested_prop=nested_prop + ) - assert not invalid_parameters, ("{} {} parameters" - " found in {} environment file {}" - .format(resource_type, - nested_prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "{} {} parameters" + " found in {} environment file {}".format( + resource_type, nested_prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-83412', - 'R-83418') +@validates("R-83412", "R-83418") def test_neutron_port_aap_ip_parameter_doesnt_exist_in_environment_file(heat_template): if pytest.config.getoption("validation_profile") == "heat_only": @@ -505,21 +574,19 @@ def test_neutron_port_aap_ip_parameter_doesnt_exist_in_environment_file(heat_tem DESIRED = False resource_type = "OS::Neutron::Port" - invalid_parameters = check_resource_parameter(environment_pair, - prop, - DESIRED, - resource_type, - nested_prop=nested_prop) + invalid_parameters = check_resource_parameter( + environment_pair, prop, DESIRED, resource_type, nested_prop=nested_prop + ) - assert not invalid_parameters, ("{} {} parameters" - " found in {} environment file {}" - .format(resource_type, - nested_prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "{} {} parameters" + " found in {} environment file {}".format( + resource_type, nested_prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-99812') +@validates("R-99812") def test_non_nova_server_name_parameter_doesnt_exist_in_environment_file(heat_template): if pytest.config.getoption("validation_profile") == "heat_only": @@ -531,21 +598,19 @@ def test_non_nova_server_name_parameter_doesnt_exist_in_environment_file(heat_te DESIRED = False resource_type = "OS::Nova::Server" - invalid_parameters = check_resource_parameter(environment_pair, - prop, - DESIRED, - resource_type, - resource_type_inverse=True) + invalid_parameters = check_resource_parameter( + environment_pair, prop, DESIRED, resource_type, resource_type_inverse=True + ) - assert not invalid_parameters, ("non-{} {} parameters" - " found in {} environment file {}" - .format(resource_type, - prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "non-{} {} parameters" + " found in {} environment file {}".format( + resource_type, prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-92193') +@validates("R-92193") def test_network_fqdn_parameter_doesnt_exist_in_environment_file(heat_template): if pytest.config.getoption("validation_profile") == "heat_only": @@ -553,22 +618,23 @@ def test_network_fqdn_parameter_doesnt_exist_in_environment_file(heat_template): environment_pair = get_environment_pair(heat_template) - prop = r'^(.+?)_net_fqdn$' + prop = r"^(.+?)_net_fqdn$" DESIRED = False - invalid_parameters = check_param_in_env_file(environment_pair, - prop, - DESIRED) + invalid_parameters = check_param_in_env_file(environment_pair, prop, DESIRED) - assert not invalid_parameters, ("{} parameters" - " found in {} environment file {}" - .format(prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "{} parameters" + " found in {} environment file {}".format( + prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-76682') -def test_contrail_route_prefixes_parameter_doesnt_exist_in_environment_file(heat_template): +@validates("R-76682") +def test_contrail_route_prefixes_parameter_doesnt_exist_in_environment_file( + heat_template +): if pytest.config.getoption("validation_profile") == "heat_only": pytest.skip("skipping test because validation profile is heat only") @@ -580,21 +646,19 @@ def test_contrail_route_prefixes_parameter_doesnt_exist_in_environment_file(heat DESIRED = False resource_type = "OS::ContrailV2::InterfaceRouteTable" - invalid_parameters = check_resource_parameter(environment_pair, - prop, - DESIRED, - resource_type, - nested_prop=nested_prop) + invalid_parameters = check_resource_parameter( + environment_pair, prop, DESIRED, resource_type, nested_prop=nested_prop + ) - assert not invalid_parameters, ("{} {} parameters" - " found in {} environment file {}" - .format(resource_type, - nested_prop, - environment_pair.get("name"), - invalid_parameters)) + assert not invalid_parameters, ( + "{} {} parameters" + " found in {} environment file {}".format( + resource_type, nested_prop, environment_pair.get("name"), invalid_parameters + ) + ) -@validates('R-50011') +@validates("R-50011") def test_heat_rg_count_parameter_exists_in_environment_file(heat_template): if pytest.config.getoption("validation_profile") == "heat_only": @@ -605,17 +669,19 @@ def test_heat_rg_count_parameter_exists_in_environment_file(heat_template): prop = "count" DESIRED = True resource_type = "OS::Heat::ResourceGroup" - exclude_resource = re.compile(r'^(.+?)_subint_(.+?)_port_(.+?)_subinterfaces$') - - invalid_parameters = check_resource_parameter(environment_pair, - prop, - DESIRED, - resource_type, - exclude_resource=exclude_resource) - - assert not invalid_parameters, ("{} {} parameters not" - " found in {} environment file {}" - .format(resource_type, - prop, - environment_pair.get("name"), - invalid_parameters)) + exclude_resource = re.compile(r"^(.+?)_subint_(.+?)_port_(.+?)_subinterfaces$") + + invalid_parameters = check_resource_parameter( + environment_pair, + prop, + DESIRED, + resource_type, + exclude_resource=exclude_resource, + ) + + assert not invalid_parameters, ( + "{} {} parameters not" + " found in {} environment file {}".format( + resource_type, prop, environment_pair.get("name"), invalid_parameters + ) + ) diff --git a/ice_validator/tests/test_environment_file_structure.py b/ice_validator/tests/test_environment_file_structure.py index 42786e9..a4fd0f8 100644 --- a/ice_validator/tests/test_environment_file_structure.py +++ b/ice_validator/tests/test_environment_file_structure.py @@ -45,19 +45,19 @@ from tests import cached_yaml as yaml from .helpers import validates -VERSION = '1.0.0' +VERSION = "1.0.0" # pylint: disable=invalid-name -@validates('R-03324') +@validates("R-03324") def test_environment_file_contains_required_sections(env_file): - ''' + """ Check that all environments files only have the allowed sections - ''' + """ required_keys = ["parameters"] with open(env_file) as fh: yml = yaml.load(fh) missing_keys = [v for v in required_keys if v not in yml] - assert not missing_keys, '%s missing %s' % (env_file, missing_keys) + assert not missing_keys, "%s missing %s" % (env_file, missing_keys) diff --git a/ice_validator/tests/test_filename_is_vmtype_dot_yaml.py b/ice_validator/tests/test_filename_is_vmtype_dot_yaml.py new file mode 100644 index 0000000..f31f370 --- /dev/null +++ b/ice_validator/tests/test_filename_is_vmtype_dot_yaml.py @@ -0,0 +1,75 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. + +import os +from tests import cached_yaml as yaml + +from .helpers import validates +from .utils.vm_types import get_vm_types + +VERSION = "1.0.0" + +# pylint: disable=invalid-name + + +@validates("R-70276") +def test_filename_is_vmtype_dot_yaml(yaml_files): + + vm_types = [] + invalid_files = [] + + for yaml_file in yaml_files: + with open(yaml_file, "r") as f: + yml = yaml.load(f) + + if "resources" not in yml: + continue + + vm_types.extend(get_vm_types(yml["resources"])) + + for yaml_file in yaml_files: + basename, filename = os.path.split(yaml_file) + file, ext = os.path.splitext(os.path.basename(filename)) + for vt in vm_types: + if vt == file: + invalid_files.append({"vm_type": vt, "file": yaml_file}) + + assert not invalid_files, "filenames must not be in format vm_type.yaml: {}".format( + invalid_files + ) diff --git a/ice_validator/tests/test_files_in_flat_dir.py b/ice_validator/tests/test_files_in_flat_dir.py new file mode 100644 index 0000000..ac0ff7c --- /dev/null +++ b/ice_validator/tests/test_files_in_flat_dir.py @@ -0,0 +1,50 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +import os + +from tests.helpers import validates + + +@validates("R-511776", "R-99646") +def test_files_in_flat_dir(template_dir): + paths = (os.path.join(template_dir, p) for p in os.listdir(template_dir)) + nested_dirs = (p for p in paths if os.path.isdir(p)) + nested_dirs = [os.path.relpath(p, template_dir) for p in nested_dirs] + msg = "Nested directories detected in template directory: {}".format( + ", ".join(nested_dirs) + ) + assert not nested_dirs, msg diff --git a/ice_validator/tests/test_fixed_ips_include_vm_type_network_role.py b/ice_validator/tests/test_fixed_ips_include_vm_type_network_role.py index 428b72e..f94d22b 100644 --- a/ice_validator/tests/test_fixed_ips_include_vm_type_network_role.py +++ b/ice_validator/tests/test_fixed_ips_include_vm_type_network_role.py @@ -45,21 +45,23 @@ from .helpers import validates from .utils.ports import get_invalid_ip_addresses -@validates('R-40971', - 'R-27818', - 'R-29765', - 'R-85235', - 'R-78380', - 'R-23503', - 'R-71577', - 'R-04697', - 'R-34037') +@validates( + "R-40971", + "R-27818", + "R-29765", + "R-85235", + "R-78380", + "R-23503", + "R-71577", + "R-04697", + "R-34037", +) def test_fixed_ips_include_vm_type_network_role(heat_template): - ''' + """ Check that all fixed_ips ip addresses include the {vm_type} of the nova server it is associated to and also contains the {network_role} of the network it is associated with - ''' + """ with open(heat_template) as fh: yml = yaml.load(fh) @@ -70,8 +72,11 @@ def test_fixed_ips_include_vm_type_network_role(heat_template): if "parameters" not in yml: pytest.skip("No parameters specified in the heat template") - invalid_ip_addresses = get_invalid_ip_addresses(yml['resources'], - "fixed_ips", - yml["parameters"]) + invalid_ip_addresses = get_invalid_ip_addresses( + yml["resources"], "fixed_ips", yml["parameters"] + ) - assert not set(invalid_ip_addresses) + msg = "The following fixed_ips are declared incorrectly: {}".format( + ", ".join(invalid_ip_addresses) + ) + assert not set(invalid_ip_addresses), msg diff --git a/ice_validator/tests/test_forbidden_resources.py b/ice_validator/tests/test_forbidden_resources.py new file mode 100644 index 0000000..7ff6bb6 --- /dev/null +++ b/ice_validator/tests/test_forbidden_resources.py @@ -0,0 +1,81 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +forbidden resources +""" + +from .structures import Heat +from .helpers import validates + + +VERSION = "1.1.1" + + +def run_test(heat_template, forbidden): + """run + """ + heat = Heat(filepath=heat_template) + bad = set() + for rid, resource in heat.resources.items(): + if heat.nested_get(resource, "type") == forbidden: + bad.add(rid) + assert not bad, 'resource(s) with forbidden type "%s" %s' % (forbidden, list(bad)) + + +# pylint: disable=invalid-name + + +@validates("R-05257") +def test_neutron_floating_ip_resource_type(heat_template): + """ + A VNF's Heat Orchestration Template's **MUST NOT** + contain the Resource ``OS::Neutron::FloatingIP``. + """ + run_test(heat_template, "OS::Neutron::FloatingIP") + + +@validates("R-76449") +def test_neutron_floating_ip_association_resource_type(heat_template): + """ + A VNF's Heat Orchestration Template's **MUST NOT** + contain the Resource ``OS::Neutron::FloatingIPAssociation``. + """ + run_test(heat_template, "OS::Neutron::FloatingIPAssociation") diff --git a/ice_validator/tests/test_get_attr_usage.py b/ice_validator/tests/test_get_attr_usage.py new file mode 100644 index 0000000..5180add --- /dev/null +++ b/ice_validator/tests/test_get_attr_usage.py @@ -0,0 +1,86 @@ +import os + +import pytest + +from tests.helpers import validates, traverse, load_yaml +from tests.structures import Resource +from tests.utils import nested_dict + + +class GetAttrValidator: + def __init__(self, yaml, base_dir): + self.yaml = yaml + self.base_dir = base_dir + self.errors = [] + + @property + def resources(self): + return self.yaml.get("resources", {}) + + def __call__(self, path, get_attr_arg): + if not isinstance(get_attr_arg, list): + self.add_error(path, get_attr_arg, "get_attr argument is not a list") + elif len(get_attr_arg) < 1: + self.add_error( + path, get_attr_arg, "get_attr argument must have a parameter" + ) + elif get_attr_arg[0] not in self.resources: + self.add_error( + path, + get_attr_arg, + "Resource ID could not be found. Please ensure " + "the resource is spelled correctly and defined " + "under the resources section of the YAML file.", + ) + else: + r_id = get_attr_arg[0] + r = Resource(r_id, self.yaml["resources"][r_id]) + if not r.is_nested(): + return + if len(get_attr_arg) < 2: + self.add_error( + path, + get_attr_arg, + "get_attr used on nested " + "resource, but no attribute " + "value specified", + ) + return + expected_param = get_attr_arg[1] + nested_yaml = r.get_nested_yaml(self.base_dir) + param = nested_dict.get(nested_yaml, "outputs", expected_param) + if not param: + self.add_error( + path, + get_attr_arg, + "Attribute key " + + expected_param + + " not found in outputs " + + r.get_nested_filename(), + ) + + def add_error(self, path, arg, message): + path_str = ".".join(path) + self.errors.append("{} {}: {}".format(path_str, arg, message)) + + @property + def error_message(self): + errs = ", ".join(self.errors) + return "Invalid get_attr usage detected: {}".format(errs) + + +@pytest.mark.base +@validates("R-95303") +def test_08_validate_get_attr_usage(yaml_file): + """Ensures that every get_attr refers to a valid resource name, + and if that resource is a nested YAML that the attribute exists as + an output of the nested YAML file. It does not validate the + attribute keys are always valid because of the attributes could + refer to intrinsic attributes of the resource that are not present + in the YAML file.""" + + yml = load_yaml(yaml_file) + base_dir, _ = os.path.split(yaml_file) + validator = GetAttrValidator(yml, base_dir) + traverse(yml, "get_attr", validator) + assert not validator.errors, validator.error_message diff --git a/ice_validator/tests/test_get_file_only_reference_local_files.py b/ice_validator/tests/test_get_file_only_reference_local_files.py index a419585..58a1384 100644 --- a/ice_validator/tests/test_get_file_only_reference_local_files.py +++ b/ice_validator/tests/test_get_file_only_reference_local_files.py @@ -1,5 +1,5 @@ # -*- coding: utf8 -*- -# ============LICENSE_START======================================================= +# ============LICENSE_START==================================================== # org.onap.vvp/validation-scripts # =================================================================== # Copyright © 2017 AT&T Intellectual Property. All rights reserved. @@ -37,8 +37,11 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # - +"""test get_file +""" import re +from os import listdir +from os import path from os import sep import pytest @@ -47,14 +50,19 @@ from tests import cached_yaml as yaml from .helpers import validates from .utils.nested_iterables import find_all_get_file_in_yml +VERSION = "1.0.0" -@validates('R-99646') -def test_get_file_only_reference_local_files(yaml_file): - ''' +# pylint: disable=invalid-name + + +@validates("R-41888") +@pytest.mark.base +def test_get_file_no_url_retrieval(yaml_file): + """ Make sure that all references to get_file only try to access local files and only assume a flat directory structure - ''' - is_url = re.compile(r'(?:http|https|file|ftp|ftps)://.+') + """ + is_url = re.compile(r"(?:http|https|file|ftp|ftps)://.+") with open(yaml_file) as fh: yml = yaml.load(fh) @@ -74,4 +82,39 @@ def test_get_file_only_reference_local_files(yaml_file): invalid_files.append(get_file) continue - assert not set(invalid_files) + assert not set(invalid_files), "External get_file references detected {}".format( + invalid_files + ) + + +@validates("R-76718") +@pytest.mark.base +def test_get_file_only_reference_local_files(yaml_file): + """ + Make sure that all references to get_file only try to access local files + and only assume a flat directory structure + """ + is_url = re.compile(r"(?:http|https|file|ftp|ftps)://.+") + base_dir, filename = path.split(yaml_file) + + with open(yaml_file) as fh: + yml = yaml.load(fh) + + # skip if parameters are not defined + if "resources" not in yml: + pytest.skip("No resources specified in the heat template") + + get_files = find_all_get_file_in_yml(yml["resources"]) + + invalid_files = [] + for get_file in get_files: + if is_url.match(get_file): + pytest.skip("external get_file detected") + continue + if get_file not in listdir(base_dir): + invalid_files.append(get_file) + continue + + assert not set(invalid_files), "Non-local files detected in get_file {}".format( + invalid_files + ) diff --git a/ice_validator/tests/test_heat_numeric_parameters.py b/ice_validator/tests/test_heat_numeric_parameters.py deleted file mode 100644 index 7cf5212..0000000 --- a/ice_validator/tests/test_heat_numeric_parameters.py +++ /dev/null @@ -1,78 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -import pytest -from tests import cached_yaml as yaml - -from .helpers import validates - - -@validates('R-88863') -def test_numeric_parameter(heat_template): - ''' - Make sure all numeric parameters has either `range` or `allowed_values` - specified - ''' - key_values = ["range", "allowed_values"] - missing_constraints = [] - - with open(heat_template) as fh: - yml = yaml.load(fh) - - # skip if parameters are not defined - if "parameters" not in yml: - pytest.skip("No parameters specified in the heat template") - - for k1, v1 in yml["parameters"].items(): - if not isinstance(v1, dict): - continue - if 'number' not in v1.values(): - continue - - for k2, v2 in v1.items(): - if k2 == "type" and v2 == "number": - if "constraints" not in v1: - missing_constraints.append(k1) - continue - for v3 in v1["constraints"]: - if not set(v3) & set(key_values): - missing_constraints.append(k1) - - assert not set(missing_constraints) diff --git a/ice_validator/tests/test_heat_pairs_provided.py b/ice_validator/tests/test_heat_pairs_provided.py index 76aa276..fd6c95b 100644 --- a/ice_validator/tests/test_heat_pairs_provided.py +++ b/ice_validator/tests/test_heat_pairs_provided.py @@ -43,24 +43,54 @@ from os import path from .helpers import validates -@validates('R-86285', 'R-38474', 'R-81725', 'R-53433', 'R-56438', - 'R-74304', 'R-91342', 'R-94509', 'R-31141') +@validates( + "R-86285", + "R-38474", + "R-81725", + "R-53433", + "R-56438", + "R-74304", + "R-91342", + "R-94509", + "R-31141", +) def test_heat_pairs_provided(heat_templates, env_files, volume_templates): - ''' + """ Check that every yaml file is submitted with an associated env file, and every env has an associated yaml file. - ''' + """ + env_files_missing_template = [] for filename in env_files: basename = path.splitext(filename)[0] - assert basename + '.yaml' in heat_templates or \ - basename + '.yml' in heat_templates or \ - basename + '.yml' in volume_templates or \ - basename + '.yaml' in volume_templates + if not ( + basename + ".yaml" in heat_templates + or basename + ".yml" in heat_templates + or basename + ".yml" in volume_templates + or basename + ".yaml" in volume_templates + ): + env_files_missing_template.append(filename) + + heat_template_missing_env = [] for filename in heat_templates: basename = path.splitext(filename)[0] - assert basename + '.env' in env_files + if not basename + ".env" in env_files: + heat_template_missing_env.append(filename) + for filename in volume_templates: basename = path.splitext(filename)[0] - assert basename + '.env' in env_files + if not basename + ".env" in env_files: + heat_template_missing_env.append(filename) + + msg = ( + "Mismatched template and environment file pairs detected. " + + "Environment files with no matching template: {} ".format( + env_files_missing_template + ) + + "Heat templates with no matching environment file: {}".format( + heat_template_missing_env + ) + ) + + assert not (env_files_missing_template or heat_template_missing_env), msg diff --git a/ice_validator/tests/test_heat_parameter_section.py b/ice_validator/tests/test_heat_parameter_section.py index a226416..ce97023 100644 --- a/ice_validator/tests/test_heat_parameter_section.py +++ b/ice_validator/tests/test_heat_parameter_section.py @@ -2,7 +2,7 @@ # ============LICENSE_START==================================================== # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -48,17 +48,17 @@ from tests import cached_yaml as yaml from .helpers import validates -VERSION = '1.0.0' +VERSION = "1.0.0" # one or more (alphanumeric or underscore) -RE_VALID_PARAMETER_NAME = re.compile(r'[\w_]+$') +RE_VALID_PARAMETER_NAME = re.compile(r"[\w_]+$") -@validates('R-90526') +@validates("R-90526") def test_default_values(yaml_file): - ''' + """ Make sure no default values are set for any parameter. - ''' + """ with open(yaml_file) as fh: yml = yaml.load(fh) @@ -66,23 +66,26 @@ def test_default_values(yaml_file): if "parameters" not in yml: pytest.skip("No parameters specified in the heat template") - invalid_params = [] - for v1 in yml["parameters"].values(): + invalid_params = set() + for param, v1 in yml["parameters"].items(): if not isinstance(v1, dict): continue - if any(k == 'default' for k in v1): - invalid_params.append(str(v1)) + if any(k == "default" for k in v1): + invalid_params.add(param) - assert not set(invalid_params) + msg = "The following parameters specify a default: {}".format( + ", ".join(invalid_params) + ) + assert not invalid_params, msg -@validates('R-25877') +@validates("R-25877") def test_parameter_names(yaml_file): - ''' + """ A VNF's Heat Orchestration Template's parameter name (i.e., ) **MUST** contain only alphanumeric characters and underscores ('_'). - ''' + """ with open(yaml_file) as fh: yml = yaml.load(fh) @@ -90,9 +93,7 @@ def test_parameter_names(yaml_file): if "parameters" not in yml: pytest.skip("No parameters specified in the heat template") - for key in yml['parameters']: - assert RE_VALID_PARAMETER_NAME.match(key), ( - '%s parameter "%s" not alphanumeric or underscore' % ( - yaml_file, - key)) - + for key in yml["parameters"]: + assert RE_VALID_PARAMETER_NAME.match( + key + ), '%s parameter "%s" not alphanumeric or underscore' % (yaml_file, key) diff --git a/ice_validator/tests/test_heat_template_parameters_contain_required_fields.py b/ice_validator/tests/test_heat_template_parameters_contain_required_fields.py index 9f0a5a8..c1a9777 100644 --- a/ice_validator/tests/test_heat_template_parameters_contain_required_fields.py +++ b/ice_validator/tests/test_heat_template_parameters_contain_required_fields.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -37,6 +37,7 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # +from collections import defaultdict import pytest from tests import cached_yaml as yaml @@ -44,13 +45,13 @@ from tests import cached_yaml as yaml from .helpers import validates -@validates('R-36772', 'R-44001') +@validates("R-36772", "R-44001") def test_heat_template_parameters_contain_required_fields(yaml_file): - ''' + """ Check that all parameters in the environment file have the required fields - ''' - required_keys = ["type", "description"] + """ + required_keys = {"type", "description"} with open(yaml_file) as fh: yml = yaml.load(fh) @@ -59,11 +60,17 @@ def test_heat_template_parameters_contain_required_fields(yaml_file): if "parameters" not in yml: pytest.skip("No parameters specified in the heat template") - invalid_parameters = [] - for k1, v1 in yml["parameters"].items(): - if not isinstance(v1, dict): + invalid_params = defaultdict(list) + for param, param_attrs in yml["parameters"].items(): + if not isinstance(param_attrs, dict): continue - if not all(map(lambda v: v in v1, required_keys)): - invalid_parameters.append(k1) + for key in required_keys: + if key not in param_attrs: + invalid_params[param].append(key) - assert not set(invalid_parameters) + msg = [ + "Parameter {} is missing required attribute(s): {}".format(k, ", ".join(v)) + for k, v in invalid_params.items() + ] + msg = ". ".join(msg) + assert not invalid_params, msg diff --git a/ice_validator/tests/test_heat_template_structure.py b/ice_validator/tests/test_heat_template_structure.py index 32b448e..fabe9bd 100644 --- a/ice_validator/tests/test_heat_template_structure.py +++ b/ice_validator/tests/test_heat_template_structure.py @@ -44,89 +44,90 @@ from tests import cached_yaml as yaml from .helpers import validates -VERSION = '1.2.0' +VERSION = "1.2.0" # pylint: disable=invalid-name -@validates('R-27078') +@validates("R-27078") def test_heat_template_structure_contains_heat_template_version(yaml_file): - ''' + """ Check that all heat templates have the required sections - ''' + """ required_key_values = ["heat_template_version"] with open(yaml_file) as fh: yml = yaml.load(fh) - assert all([k in yml for k in required_key_values]), ( - "{} doesn't contain the {} section, but it is required" - .format(yaml_file, required_key_values[0])) + assert all( + [k in yml for k in required_key_values] + ), "{} doesn't contain the {} section, but it is required".format( + yaml_file, required_key_values[0] + ) -@validates('R-39402') +@validates("R-39402") def test_heat_template_structure_contains_description(yaml_file): - ''' + """ Check that all heat templates have the required sections - ''' + """ required_key_values = ["description"] with open(yaml_file) as fh: yml = yaml.load(fh) - assert all([k in yml for k in required_key_values]), ( - "{} doesn't contain the {} section, but it is required" - .format(yaml_file, required_key_values[0])) + assert all( + [k in yml for k in required_key_values] + ), "{} doesn't contain the {} section, but it is required".format( + yaml_file, required_key_values[0] + ) -@validates('R-35414') +@validates("R-35414") def test_heat_template_structure_contains_parameters(yaml_file): - ''' + """ Check that all heat templates have the required sections - ''' + """ required_key_values = ["parameters"] with open(yaml_file) as fh: yml = yaml.load(fh) - assert all([k in yml for k in required_key_values]), ( - "{} doesn't contain the {} section, but it is required" - .format(yaml_file, required_key_values[0])) + assert all( + [k in yml for k in required_key_values] + ), "{} doesn't contain the {} section, but it is required".format( + yaml_file, required_key_values[0] + ) -@validates('R-23664') +@validates("R-23664") def test_heat_template_structure_contains_resources(heat_template): - ''' + """ Check that all heat templates have the required sections - ''' + """ required_key_values = ["resources"] with open(heat_template) as fh: yml = yaml.load(fh) - assert all([k in yml for k in required_key_values]), ( - "{} doesn't contain the {} section, but it is required" - .format(heat_template, required_key_values[0])) + assert all( + [k in yml for k in required_key_values] + ), "{} doesn't contain the {} section, but it is required".format( + heat_template, required_key_values[0] + ) -@validates('R-11441') +@validates("R-11441") def test_parameter_type(yaml_file): - '''A VNF's Heat Orchestration Template's parameter type **MUST** + """A VNF's Heat Orchestration Template's parameter type **MUST** be one of the following values: - ''' - types = ['string', - 'number', - 'json', - 'comma_delimited_list', - 'boolean'] + """ + types = ["string", "number", "json", "comma_delimited_list", "boolean"] with open(yaml_file) as fh: yml = yaml.load(fh) - for key, param in yml.get('parameters', {}).items(): - assert isinstance(param, dict), '%s parameter %s is not dict' % ( - yaml_file, - key) - assert 'type' in param, '%s parameter %s has no "type"' % ( - yaml_file, - key) - typ = param['type'] + for key, param in yml.get("parameters", {}).items(): + assert isinstance(param, dict), "%s parameter %s is not dict" % (yaml_file, key) + if "type" not in param: + continue + typ = param["type"] assert typ in types, '%s parameter %s has invalid type "%s"' % ( yaml_file, key, - typ) - + typ, + ) diff --git a/ice_validator/tests/test_initial_configuration.py b/ice_validator/tests/test_initial_configuration.py index 7944970..6a91567 100644 --- a/ice_validator/tests/test_initial_configuration.py +++ b/ice_validator/tests/test_initial_configuration.py @@ -37,16 +37,21 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # - +import os +from os import listdir from os import path import pytest +from yaml.constructor import ConstructorError + from tests import cached_yaml as yaml +from tests.utils import yaml_custom_utils from .helpers import validates from yamllint.config import YamlLintConfig from yamllint import linter from .utils.nested_files import check_for_invalid_nesting +from .utils.nested_files import get_list_of_nested_files from .utils.nested_iterables import find_all_get_resource_in_yml from .utils.nested_iterables import find_all_get_param_in_yml @@ -56,31 +61,55 @@ Order tests by number so they execute in order for base tests @pytest.mark.base -@validates('R-95303') +@validates("R-95303") def test_00_valid_yaml(filename): - ''' + """ Read in each .yaml or .env file. If it is successfully parsed as yaml, save contents, else add filename to list of bad yaml files. Log the result of parse attempt. - ''' - conf = YamlLintConfig('rules: {}') + """ + conf = YamlLintConfig("rules: {}") if path.splitext(filename)[-1] in [".yml", ".yaml", ".env"]: gen = linter.run(open(filename), conf) errors = list(gen) - assert not errors, "Error parsing file {} with error {}".format(filename, errors) + assert not errors, "Error parsing file {} with error {}".format( + filename, errors + ) else: - pytest.skip("The file does not have any of the extensions .yml,\ - .yaml, or .env") + pytest.skip( + "The file does not have any of the extensions .yml,\ + .yaml, or .env" + ) + + +@pytest.mark.base +@validates("R-92635") +def test_02_no_duplicate_keys_in_file(yaml_file): + """ + Checks that no duplicate keys exist in a given YAML file. + """ + import yaml as normal_yaml # we can't use the caching version in this test + + normal_yaml.add_constructor( + yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG, + yaml_custom_utils.raise_duplicates_keys, + ) + + try: + with open(yaml_file) as fh: + normal_yaml.load(fh) + except ConstructorError as e: + pytest.fail("{} {}".format(e.problem, e.problem_mark)) @pytest.mark.base -def test_02_all_referenced_resources_exists(yaml_file): - ''' +def test_03_all_referenced_resources_exists(yaml_file): + """ Check that all resources referenced by get_resource actually exists in all yaml files - ''' + """ with open(yaml_file) as fh: yml = yaml.load(fh) @@ -88,55 +117,63 @@ def test_02_all_referenced_resources_exists(yaml_file): if "resources" not in yml: pytest.skip("No resources specified in the yaml file") - resource_ids = yml['resources'].keys() - referenced_resource_ids = find_all_get_resource_in_yml(yml) + resources = yml.get("resources") + if resources: + resource_ids = resources.keys() + referenced_resource_ids = find_all_get_resource_in_yml(yml) - missing_referenced_resources = set() - for referenced_resource_id in referenced_resource_ids: - if referenced_resource_id not in resource_ids: - missing_referenced_resources.add(referenced_resource_id) + missing_referenced_resources = set() + for referenced_resource_id in referenced_resource_ids: + if referenced_resource_id not in resource_ids: + missing_referenced_resources.add(referenced_resource_id) - assert not missing_referenced_resources, ( - 'missing referenced resources %s' % list( - missing_referenced_resources)) + assert not missing_referenced_resources, ( + "Unable to resolve get_resource for the following " + "resource IDS: {}. Please ensure the resource ID is defined and " + "nested under the resources section of the template".format( + ", ".join(missing_referenced_resources) + ) + ) @pytest.mark.base -def test_01_valid_nesting(yaml_file): - ''' +def test_04_valid_nesting(yaml_file): + """ Check that the nesting is following the proper format and that all nested files exists and are parsable - ''' + """ invalid_nesting = [] with open(yaml_file) as fh: yml = yaml.load(fh) if "resources" in yml: try: - invalid_nesting.extend(check_for_invalid_nesting( - yml["resources"], - yaml_file, - path.dirname(yaml_file))) + invalid_nesting.extend( + check_for_invalid_nesting( + yml["resources"], yaml_file, path.dirname(yaml_file) + ) + ) except Exception: invalid_nesting.append(yaml_file) - assert not invalid_nesting, \ - "invalid nested file detected in file {}\n\n".format(invalid_nesting) + assert not invalid_nesting, "invalid nested file detected in file {}\n\n".format( + invalid_nesting + ) @pytest.mark.base -def test_03_all_get_param_have_defined_parameter(yaml_file): - ''' +def test_05_all_get_param_have_defined_parameter(yaml_file): + """ Check that all referenced parameters are actually defined as parameters - ''' + """ invalid_get_params = [] with open(yaml_file) as fh: yml = yaml.load(fh) resource_params = find_all_get_param_in_yml(yml) - parameters = set(yml.get('parameters', {}).keys()) + parameters = set(yml.get("parameters", {}).keys()) if not parameters: pytest.skip("no parameters detected") @@ -144,6 +181,55 @@ def test_03_all_get_param_have_defined_parameter(yaml_file): if rp not in parameters: invalid_get_params.append(rp) - assert not invalid_get_params, ( - "get_param reference detected without corresponding parameter defined {}" - .format(invalid_get_params)) + assert ( + not invalid_get_params + ), "get_param reference detected without corresponding parameter defined {}".format( + invalid_get_params + ) + + +@validates("R-90152") +@pytest.mark.base +def test_06_heat_template_resource_section_has_resources(heat_template): + + found_resource = False + + with open(heat_template) as fh: + yml = yaml.load(fh) + + resources = yml.get("resources") + if resources: + for k1, v1 in yml["resources"].items(): + if not isinstance(v1, dict): + continue + + found_resource = True + break + + assert found_resource, "Heat templates must contain at least one resource" + + +@validates("R-52530") +@pytest.mark.base +def test_07_nested_template_in_same_directory(yaml_file): + + missing_files = [] + + with open(yaml_file) as fh: + yml = yaml.load(fh) + + # skip if resources are not defined + if "resources" not in yml: + pytest.skip("No resources specified in the heat template") + + dirname = os.path.dirname(yaml_file) + list_of_files = get_list_of_nested_files(yml, dirname) + dir_files = listdir(dirname) + for file in list_of_files: + base_name = path.basename(file) + if base_name not in dir_files: + missing_files.append(base_name) + + assert ( + not missing_files + ), "Missing nested files in heat template directory {}".format(missing_files) diff --git a/ice_validator/tests/test_ip_parameters_start_at_0.py b/ice_validator/tests/test_ip_parameters_start_at_0.py new file mode 100644 index 0000000..e16c161 --- /dev/null +++ b/ice_validator/tests/test_ip_parameters_start_at_0.py @@ -0,0 +1,50 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +import re + +from tests.helpers import validates, check_indices +from tests.structures import Heat + + +IP_PARAM_PATTERN = re.compile(r"^(.*_ip_)(\d+)$") + + +@validates("R-71577", "R-40971") +def test_ips_start_at_0(heat_template): + params = Heat(heat_template).parameters + invalid_params = check_indices(IP_PARAM_PATTERN, params, "IP Parameters") + assert not invalid_params, ". ".join(invalid_params) diff --git a/ice_validator/tests/test_multipart_mime_resource_id.py b/ice_validator/tests/test_multipart_mime_resource_id.py index 1660399..fe6fe47 100644 --- a/ice_validator/tests/test_multipart_mime_resource_id.py +++ b/ice_validator/tests/test_multipart_mime_resource_id.py @@ -38,10 +38,10 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -''' +""" A VNF's Heat Orchestration Template's Resource ``OS::Heat::MultipartMime`` Resource ID **MUST** contain the ``{vm-type}``. -''' +""" import pytest @@ -49,24 +49,24 @@ from .structures import Heat from .helpers import validates from .utils import vm_types -VERSION = '1.0.1' +VERSION = "1.0.1" -@validates('R-30804') +@validates("R-30804") def test_multipart_mime(heat_template): - '''validate resource ids - ''' + """validate resource ids + """ h = Heat(filepath=heat_template) if not h.resources: - pytest.skip('No resources in this template') + pytest.skip("No resources in this template") multipart_mimes = get_multipart_mimes(h) if not multipart_mimes: - pytest.skip('No MultipartMime resources in this template') + pytest.skip("No MultipartMime resources in this template") resource_vm_types = vm_types.get_vm_types(h.resources) if not resource_vm_types: - pytest.skip('No resources with {vm-type} in this template') + pytest.skip("No resources with {vm-type} in this template") bad = set() for rid in multipart_mimes: @@ -75,14 +75,17 @@ def test_multipart_mime(heat_template): break else: bad.add(rid) - assert not bad, 'MultipartMime %s have {vm-type} not in %s' % ( + assert not bad, "MultipartMime %s have {vm-type} not in %s" % ( list(bad), - list(resource_vm_types)) + list(resource_vm_types), + ) def get_multipart_mimes(heat): """Return list of resource_id whose type is OS::Heat::MultipartMime. """ - return [rid for rid, resource in heat.resources.items() - if heat.nested_get(resource, 'type') == 'OS::Heat::MultipartMime'] - + return [ + rid + for rid, resource in heat.resources.items() + if heat.nested_get(resource, "type") == "OS::Heat::MultipartMime" + ] diff --git a/ice_validator/tests/test_nested_parameter_args.py b/ice_validator/tests/test_nested_parameter_args.py new file mode 100644 index 0000000..cba76f6 --- /dev/null +++ b/ice_validator/tests/test_nested_parameter_args.py @@ -0,0 +1,112 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +"""heat parameters +""" + +import collections + +import pytest + +from .structures import Heat +from .helpers import validates + +VERSION = "1.0.0" + + +@validates("R-10834") +def test_nested_parameter_args(heat_template): + """ + If a VNF’s Heat Orchestration Template resource attribute + property metadata uses a nested get_param, then the "outer" + get_param must take 2 arguments. The first argument must be + a parameter of type "comma_delimited_list", and the second + argument must be the "inner" get_param whose value must be a + parameter of type "number". + + parameters: + cdl: + type: comma_delimited_list + num: + type: number + resources: + ex1_nova_server_0: + type: OS::Nova::Server + properties: + name: { get_param: [ ex1_vm_names, 0 ] } + metadata: + vnf_id: { get_param: vnf_id } + vf_module_id: + get_param: [ cdl, { get_param: num }] + """ + heat = Heat(filepath=heat_template) + if not heat.resources: + pytest.skip("No resources found") + has_nested_parameters = False + bad = collections.defaultdict(list) + for rid, r in heat.resources.items(): + metadata = heat.nested_get(r, "properties", "metadata", default={}) + for key, value in metadata.items(): + param = heat.nested_get(value, "get_param") + if isinstance(param, list) and len(param) == 2: + nested_param = heat.nested_get(param[1], "get_param") + if nested_param: + has_nested_parameters = True + if ( + heat.nested_get(heat.parameters, param[0], "type") + != Heat.type_cdl + ): + bad[rid].append( + "%s %s parameter type not %s" + % (key, param[0], Heat.type_cdl) + ) + if ( + heat.nested_get(heat.parameters, nested_param, "type") + != Heat.type_num + ): + bad[rid].append( + "%s %s nested parameter type not %s" + % (key, nested_param, Heat.type_num) + ) + assert not bad, "resource ids with invalid nested parameter arguments\n %s" % ( + "\n ".join("%s %s" % (k, ", ".join(v)) for k, v in bad.items()) + ) + if has_nested_parameters is False: + pytest.skip("No nested parameters found") diff --git a/ice_validator/tests/test_nested_parameters.py b/ice_validator/tests/test_nested_parameters.py index a1af4bd..3e3bb06 100644 --- a/ice_validator/tests/test_nested_parameters.py +++ b/ice_validator/tests/test_nested_parameters.py @@ -41,40 +41,101 @@ """heat parameters """ -import os - import pytest from tests import cached_yaml as yaml +from tests.structures import Resource from .helpers import validates -from .utils.nested_files import get_list_of_nested_files -VERSION = '1.0.0' +VERSION = "1.0.0" -@validates('R-00011') -def test_nested_parameter(yaml_file): - ''' - A VNF's Heat Orchestration Template's Nested YAML file's - parameter's **MUST NOT** have a parameter constraint defined. +def check_nested_parameter_doesnt_change(yaml_file, parameter): - ''' with open(yaml_file) as fh: yml = yaml.load(fh) - dirname = os.path.dirname(yaml_file) - nested_files = get_list_of_nested_files(yml, dirname) - if nested_files: - for filename in nested_files: - with open(filename) as fh: - template = yaml.load(fh) - parameters = template.get('parameters') - if parameters and isinstance(parameters, dict): - for param, value in parameters.items(): - if isinstance(value, dict): - assert 'constraints' not in value, ( - '%s parameter "%s" has "constraints"' % ( - filename, - param)) - else: - pytest.skip('No nested files') + # skip if resources are not defined + if "resources" not in yml: + pytest.skip("No resources specified in the heat template") + + invalid_parameters = [] + + """ + checking if property: { get_param: }, then property == + + resource_id: + type: nested.yaml + properties: + property: { get_param: } + + resource_id: + type: OS::Heat::ResourceGroup + properties: + resource_def: + properties: + property: { get_param: } + """ + for resource_id, resource in yml.get("resources", {}).items(): + r = Resource(resource_id=resource_id, resource=resource) + properties = r.get_nested_properties() + for k1, v1 in properties.items(): + if ( + isinstance(v1, dict) + and "get_param" in v1 + and parameter == v1.get("get_param") + ): + if k1 != parameter: + invalid_parameters.append( + { + "resource": r.resource_id, + "nested parameter": k1, + "parameter": parameter, + } + ) + + assert ( + not invalid_parameters + ), "Invalid parameter name change detected in nested template {}".format( + invalid_parameters + ) + + +@validates("R-70757") +def test_vm_role_doesnt_change_in_nested_template(yaml_file): + check_nested_parameter_doesnt_change(yaml_file, "vm_role") + + +@validates("R-44491") +def test_vnf_id_doesnt_change_in_nested_template(yaml_file): + check_nested_parameter_doesnt_change(yaml_file, "vnf_id") + + +@validates("R-86237") +def test_vf_module_id_doesnt_change_in_nested_template(yaml_file): + check_nested_parameter_doesnt_change(yaml_file, "vf_module_id") + + +@validates("R-16576") +def test_vnf_name_doesnt_change_in_nested_template(yaml_file): + check_nested_parameter_doesnt_change(yaml_file, "vnf_name") + + +@validates("R-49177") +def test_vf_module_name_doesnt_change_in_nested_template(yaml_file): + check_nested_parameter_doesnt_change(yaml_file, "vf_module_name") + + +@validates("R-22441") +def test_vf_module_index_name_doesnt_change_in_nested_template(yaml_file): + check_nested_parameter_doesnt_change(yaml_file, "vf_module_index") + + +@validates("R-62954") +def test_environment_context_name_doesnt_change_in_nested_template(yaml_file): + check_nested_parameter_doesnt_change(yaml_file, "environment_context") + + +@validates("R-75202") +def test_workload_context_name_doesnt_change_in_nested_template(yaml_file): + check_nested_parameter_doesnt_change(yaml_file, "workload_context") diff --git a/ice_validator/tests/test_nested_template_parameters.py b/ice_validator/tests/test_nested_template_parameters.py new file mode 100644 index 0000000..26a0fb3 --- /dev/null +++ b/ice_validator/tests/test_nested_template_parameters.py @@ -0,0 +1,120 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +"""nested template parameters +""" +import os.path + +import pytest + +from .structures import Heat +from .helpers import validates +from .utils import nested_files + +VERSION = "1.2.0" + + +def validate_parms(dirname, basename, nested, nested_props, prop_type): + """ensure all parms are props + return list of errors. + """ + bad = [] + for rid, nested_filename in nested.items(): + nested_filepath = os.path.join(dirname, nested_filename) + nested_heat = Heat(filepath=nested_filepath) + parms = set(nested_heat.parameters.keys()) + props = nested_props.get(rid, set()) + missing = parms - props + if missing: + bad.append( + "%s parameters %s missing as %s" + " of %s resource %s" + % (nested_filename, list(missing), prop_type, basename, rid) + ) + return bad + + +@validates("R-11041") +def test_nested_template_parameters(heat_template): + """ + All parameters defined in a VNFs Nested YAML file + **MUST** be passed in as properties of the resource calling + the nested yaml file. + """ + dirname, basename = os.path.split(heat_template) + heat = Heat(filepath=heat_template) + if not heat.resources: + pytest.skip("No resources found") + nested_type = nested_files.get_type_nested_files(heat.yml, dirname) + nested_resourcegroup = nested_files.get_resourcegroup_nested_files( + heat.yml, dirname + ) + if not nested_type and not nested_resourcegroup: + pytest.skip("No nested files") + bad = [] + nested_type_props = { + rid: set(heat.resources[rid].get("properties", {}).keys()) + for rid in nested_type + } + nested_resourcegroup_props = { + rid: set( + heat.nested_get( + heat.resources[rid], + "properties", + "resource_def", + "properties", + default={}, + ).keys() + ) + for rid in nested_resourcegroup + } + bad.extend( + validate_parms(dirname, basename, nested_type, nested_type_props, "properties") + ) + bad.extend( + validate_parms( + dirname, + basename, + nested_resourcegroup, + nested_resourcegroup_props, + "resource_def.properties", + ) + ) + assert not bad, "; ".join(bad) diff --git a/ice_validator/tests/test_nesting_level.py b/ice_validator/tests/test_nesting_level.py new file mode 100644 index 0000000..e1e4e68 --- /dev/null +++ b/ice_validator/tests/test_nesting_level.py @@ -0,0 +1,64 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +test nesting level +0 -> 1 -> 2 -> too many levels. +""" + +from .utils import nested_files +from .helpers import validates + +VERSION = "1.1.0" + +# pylint: disable=invalid-name + + +@validates("R-60011") +def test_nesting_level(yaml_files): + """ + A VNF's Heat Orchestration Template **MUST** have no more than two + levels of nesting. + """ + bad, __, __, __ = nested_files.get_nesting(yaml_files) + assert not bad, "nesting depth of %d exceeded: %s" % ( + nested_files.MAX_DEPTH, + ", ".join(bad), + ) diff --git a/ice_validator/tests/test_nesting_nova_server.py b/ice_validator/tests/test_nesting_nova_server.py new file mode 100644 index 0000000..ed23059 --- /dev/null +++ b/ice_validator/tests/test_nesting_nova_server.py @@ -0,0 +1,99 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +test nesting level +0 -> 1 -> 2 -> too many levels. +""" + +import pytest + +from .utils import nested_files +from .helpers import validates + +VERSION = "1.0.0" + + +def get_nova_server_count(heat): + """return the number of OS::Nova::Server + resources in heat + """ + return len(heat.get_resource_by_type("OS::Nova::Server")) + + +# pylint: disable=invalid-name + + +@validates("R-17528") +def test_nesting_nova_server(yaml_files): + """ + A VNF's Heat Orchestration Template's first level Nested YAML file + **MUST NOT** contain more than one ``OS::Nova::Server`` resource. + A VNF's Heat Orchestration Template's second level Nested YAML file + **MUST NOT** contain an ``OS::Nova::Server`` resource. + + level: 0 1 2 3 + template -> nested -> nested -> too many levels + """ + bad, __, heat, depths = nested_files.get_nesting(yaml_files) + if bad: + pytest.skip("nesting depth exceeded") + for parent, depth in depths.items(): + for depth_tuple in depth: + depth, context = depth_tuple + if depth > 1: + fname = context[0] + nservers = get_nova_server_count(heat[fname]) + if nservers > 1: + bad.append( + "nested template %s must have only have 1 " + "OS::Nova::Server defined, but %s were found" + % (fname, nservers) + ) + if depth > 2: + fname = context[1] + nservers = get_nova_server_count(heat[fname]) + if nservers > 0: + bad.append( + "nested template %s must not have an " + "OS::Nova::Server defined, but %s were found" + % (fname, nservers) + ) + assert not bad, "; ".join(bad) diff --git a/ice_validator/tests/test_network_format.py b/ice_validator/tests/test_network_format.py index 7fb343a..bfa9813 100644 --- a/ice_validator/tests/test_network_format.py +++ b/ice_validator/tests/test_network_format.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -39,19 +39,25 @@ # import pytest +import re + from tests import cached_yaml as yaml from .helpers import validates -from .utils.network_roles import get_network_role_from_port, \ - property_uses_get_resource +from .utils.network_roles import get_network_role_from_port, property_uses_get_resource + +RE_INTERNAL_NETWORK_RID = re.compile( # match pattern + r"int_(?P.+)_network$" +) +NETWORK_RESOURCE_TYPES = ["OS::Neutron::Net", "OS::ContrailV2::VirtualNetwork"] -@validates('R-62983', 'R-86182') +@validates("R-62983", "R-86182") def test_network_format(heat_template): - ''' + """ Make sure all network properties use the allowed naming conventions - ''' + """ with open(heat_template) as fh: yml = yaml.load(fh) @@ -72,4 +78,96 @@ def test_network_format(heat_template): if not get_network_role_from_port(v): invalid_ports.append(k) - assert not set(invalid_ports) + assert not set(invalid_ports), ( + "Missing 'network' property or improperly " + "formatted network parameter name on the " + "following OS::Neutron::Ports: " + "{}".format(", ".join(invalid_ports)) + ) + + +@validates("R-16968", "R-35666") +def test_network_resource_id_format(yaml_file): + """ + Make sure all network resource ids use the allowed naming + convention + """ + RE_INTERNAL_NETWORK_RID = re.compile( # match pattern + r"int_(?P.+)_network$" + ) + + with open(yaml_file) as fh: + yml = yaml.load(fh) + + # skip if resources are not defined + if "resources" not in yml: + pytest.skip("No resources specified in the heat template") + + invalid_networks = [] + for k, v in yml["resources"].items(): + if not isinstance(v, dict): + continue + if "properties" not in v: + continue + if property_uses_get_resource(v, "network"): + continue + if v.get("type") not in NETWORK_RESOURCE_TYPES: + continue + match = RE_INTERNAL_NETWORK_RID.match(k) + if not match: + invalid_networks.append(k) + + assert not set(invalid_networks), ( + "Heat templates must only create internal networks " + "and follow format int_{network-role}_network" + "{}".format(", ".join(invalid_networks)) + ) + + +@validates("R-16241") +def test_network_has_subnet(yaml_file): + """ + if creating internal network, make sure there is a + corresponding subnet that references it + """ + + with open(yaml_file) as fh: + yml = yaml.load(fh) + + # skip if resources are not defined + if "resources" not in yml: + pytest.skip("No resources specified in the heat template") + + networks = [] + + for k, v in yml["resources"].items(): + if not isinstance(v, dict): + continue + if "properties" not in v: + continue + # need to check if contrail networks also require subnet + # and it is defined the same as neutron networks + # if v.get("type") not in NETWORK_RESOURCE_TYPES: + if v.get("type") not in ["OS::Neutron::Net"]: + continue + networks.append(k) + + for k, v in yml["resources"].items(): + if not isinstance(v, dict): + continue + if "properties" not in v: + continue + if v.get("type") != "OS::Neutron::Subnet": + continue + network_prop = v.get("properties", {}).get("network", {}).get("get_resource") + + if not network_prop: + continue + x = 0 + for network in networks: + if network == network_prop: + networks.pop(x) + break + x += 1 + + assert not networks, "Networks detected without subnet {}".format(networks) diff --git a/ice_validator/tests/test_network_format_use_get_param_or_get_resource.py b/ice_validator/tests/test_network_format_use_get_param_or_get_resource.py index 98d4401..dada3e5 100644 --- a/ice_validator/tests/test_network_format_use_get_param_or_get_resource.py +++ b/ice_validator/tests/test_network_format_use_get_param_or_get_resource.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -44,12 +44,12 @@ from tests import cached_yaml as yaml from .helpers import validates -@validates('R-93177') +@validates("R-93177") def test_network_format_use_get_param_or_get_resource(heat_template): - ''' + """ Make sure all network properties only use get_param or get_resource of an internal network - ''' + """ with open(heat_template) as fh: yml = yaml.load(fh) @@ -58,7 +58,8 @@ def test_network_format_use_get_param_or_get_resource(heat_template): if "resources" not in yml: pytest.skip("No resources specified in the heat template") - invalid_ports = [] + invalid_get_resource = [] + invalid_get_param = [] for k1, v1 in yml["resources"].items(): if not isinstance(v1, dict): continue @@ -67,17 +68,35 @@ def test_network_format_use_get_param_or_get_resource(heat_template): if v1.get("type") != "OS::Neutron::Port": continue - valid_network = True for k2, v2 in v1["properties"].items(): if k2 != "network": continue - if "get_resource" in v2: - if not v2["get_resource"].startswith('int_'): - valid_network = False + if not isinstance(v2, dict): + invalid_get_param.append(k1) + elif "get_resource" in v2: + if not v2["get_resource"].startswith("int_"): + invalid_get_resource.append(k1) elif "get_param" not in v2: - valid_network = False + invalid_get_param.append(k1) + # TODO: I don't think this test needs to check get_param as that is + # already covered by another test. - if not valid_network: - invalid_ports.append(k1) + msg = ( + "A OS::Neutron::Port must connect to an internal network using " + "get_resource (network created in same template) or get_param " + "(network created in a different template)." + ) + if invalid_get_resource: + msg = ( + msg + + " These resources use get_resource to connect to a " + + "non-internal network: {}" + ).format(", ".join(invalid_get_resource)) + if invalid_get_param: + msg = ( + msg + + " These resources do not use get_resource or get_param " + + "to connect to a network: {}" + ).format(", ".join(invalid_get_param)) - assert not set(invalid_ports) + assert not (invalid_get_param or invalid_get_resource), msg diff --git a/ice_validator/tests/test_neutron_net_resource_id.py b/ice_validator/tests/test_neutron_net_resource_id.py new file mode 100644 index 0000000..36e77fa --- /dev/null +++ b/ice_validator/tests/test_neutron_net_resource_id.py @@ -0,0 +1,73 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +neutron net resource id +""" + +import pytest + +from .helpers import validates +from .structures import Heat +from .structures import NeutronNet + +VERSION = "1.1.0" + +# pylint: disable=invalid-name + + +@validates("R-25720") +def test_neutron_net_resource_id(heat_template): + """ + A VNF's Heat Orchestration Template's Resource OS::Neutron::Net + Resource ID **MUST** use the naming convention + + * int_{network-role}_network + """ + heat = Heat(filepath=heat_template) + neutron_nets = heat.get_resource_by_type(NeutronNet.resource_type) + if not neutron_nets: + pytest.skip("No neutron nets found") + neutron_net = NeutronNet() + bad = [] + for rid in neutron_nets: + if not neutron_net.get_rid_match_tuple(rid)[0]: + bad.append("Neutron Net %s does not match any known format" % rid) + assert not bad, "; ".join(bad) diff --git a/ice_validator/tests/test_neutron_port_addresses.py b/ice_validator/tests/test_neutron_port_addresses.py new file mode 100644 index 0000000..0cd6b3b --- /dev/null +++ b/ice_validator/tests/test_neutron_port_addresses.py @@ -0,0 +1,242 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +OS::Neutron::Port connecting to external network +must have at most one ip_address and at most one v6_ip_address. +""" + +import collections +import os.path + +import pytest + +from .structures import Heat +from .helpers import validates + +VERSION = "1.1.0" + + +def is_v6_ip(ip_address): + if ip_address.find("v6") != -1: + return True + return False + + +def get_neutron_ports(heat): + """Return dict of resource_id: resource, whose type is + OS::Neutron::Port. + """ + return { + rid: resource + for rid, resource in heat.resources.items() + if heat.nested_get(resource, "type") == "OS::Neutron::Port" + } + + +def get_port_addresses(filepath): + """Return dict: + key is field name, value is dict: + key is parameter name, value is dict: + key is filepath, value is set of rid + """ + port_addresses = collections.defaultdict( + lambda: collections.defaultdict(lambda: collections.defaultdict(set)) + ) + heat = Heat(filepath=filepath) + basename = os.path.basename(filepath) + for rid, port in get_neutron_ports(heat).items(): + allowed_address_pairs = heat.nested_get( + port, "properties", "allowed_address_pairs" + ) + if not isinstance(allowed_address_pairs, list): + continue + field = "ip_address" + for aa_pair in allowed_address_pairs: + param = heat.nested_get(aa_pair, field, "get_param") + if param is None: + continue + port_addresses[field][param][basename].add(rid) + return port_addresses + + +def nested_update(out_dict, in_dict): + """Recursively update out_dict from in_dict. + """ + for key, value in in_dict.items(): + if key not in out_dict: + out_dict[key] = value + elif isinstance(value, dict) and isinstance(out_dict[key], dict): + out_dict[key] = nested_update(out_dict[key], value) + elif isinstance(value, set) and isinstance(out_dict[key], set): + out_dict[key].update(value) + else: + out_dict[key] = value + return out_dict + + +def run_test(heat_template, validate): + """call validate with allowed_address_pairs + """ + heat = Heat(filepath=heat_template) + if not heat.resources: + pytest.skip("No resources found") + + neutron_ports = get_neutron_ports(heat) + if not neutron_ports: + pytest.skip("No OS::Neutron::Port resources found") + + bad = {} + for rid, resource in neutron_ports.items(): + if rid.startswith("int_"): + continue + allowed_address_pairs = heat.nested_get( + resource, "properties", "allowed_address_pairs" + ) + if allowed_address_pairs is None: + continue + if not isinstance(allowed_address_pairs, list): + bad[rid] = "properties.allowed_address_pairs must be a list." + continue + error = validate(heat, allowed_address_pairs) + if error: + bad[rid] = error + break + if bad: + # raise RuntimeError( + raise AssertionError( + "Bad OS::Neutron::Port: %s" + % (", ".join("%s: %s" % (rid, error) for rid, error in bad.items())) + ) + + +def validate_field(heat, allowed_address_pairs, field, v6=False): + """ensure at most one `field` is found in `allowed_address_pairs' + validate allowed_addrfess_pairs as well. + Returns error message string or None. + """ + error = None + ports = set() + port_type = "ipv6" if v6 else "ipv4" + for allowed_address_pair in allowed_address_pairs: + if not isinstance(allowed_address_pair, dict): + error = 'allowed_address_pair "%s" is not a dict' % (allowed_address_pair) + break + if field in allowed_address_pair: + param = heat.nested_get(allowed_address_pair, field, "get_param") + if param is None: + error = 'allowed_address_pair %s requires "get_param"' % field + break + else: + # if v6 and testing v6, or inverse + if v6 == is_v6_ip(param): + ports.add(param) + if error is None and len(ports) > 1: + error = 'More than one %s "%s" found in allowed_address_pairs: %s' % ( + port_type, + field, + list(ports), + ) + return error + + +def validate_external_ipaddress(heat, allowed_address_pairs): + """ensure allowed_address_pairs has at most one ip_address + Returns error message string or None. + """ + return validate_field(heat, allowed_address_pairs, "ip_address") + + +def validate_external_ipaddress_v6(heat, allowed_address_pairs): + """ensure allowed_address_pairs has at most one v6_ip_address + Returns error message string or None. + """ + return validate_field(heat, allowed_address_pairs, "ip_address", v6=True) + + +# pylint: disable=invalid-name + + +@validates("R-91810") +def test_neutron_port_external_ipaddress(heat_template): + """ + If a VNF requires ECOMP to assign a Virtual IP (VIP) Address to + ports connected an external network, the port + **MUST NOT** have more than one IPv4 VIP address. + """ + run_test(heat_template, validate_external_ipaddress) + + +@validates("R-41956") +def test_neutron_port_external_ipaddress_v6(heat_template): + """ + If a VNF requires ECOMP to assign a Virtual IP (VIP) Address to + ports connected an external network, the port + **MUST NOT** have more than one IPv6 VIP address. + """ + run_test(heat_template, validate_external_ipaddress_v6) + + +@validates("R-10754") +def test_neutron_port_floating(yaml_files): + """ + If a VNF has two or more ports that + attach to an external network that require a Virtual IP Address (VIP), + and the VNF requires ECOMP automation to assign the IP address, + all the Virtual Machines using the VIP address **MUST** + be instantiated in the same Base Module Heat Orchestration Template + or in the same Incremental Module Heat Orchestration Template. + """ + fields = {} + for filepath in yaml_files: + fields = nested_update(fields, get_port_addresses(filepath)) + bad = [] + for field, params in fields.items(): + for param, files in params.items(): + if len(files) > 1: + bad.append( + '"%s" "%s" in multiple templates: %s' + % ( + field, + param, + ", ".join("%s: %s" % (k, list(v)) for k, v in files.items()), + ) + ) + assert not bad, "; ".join(bad) diff --git a/ice_validator/tests/test_neutron_port_fixed_ips.py b/ice_validator/tests/test_neutron_port_fixed_ips.py new file mode 100644 index 0000000..f8cb7db --- /dev/null +++ b/ice_validator/tests/test_neutron_port_fixed_ips.py @@ -0,0 +1,325 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +resources: +{vm-type}_{vm-type_index}_{network-role}_port_{port-index}: + type: OS::Neutron::Port + properties: + network: { get_param: ...} + fixed_ips: [ { "ipaddress": { get_param: ... } } ] + binding:vnic_type: direct #only SR-IOV ports, not OVS ports + value_specs: { + vlan_filter: { get_param: ... }, #all NC ports + public_vlans: { get_param: ... }, #all NC ports + private_vlans: { get_param: ... },#all NC ports + guest_vlans: { get_param: ... }, #SR-IOV Trunk Port only + vlan_mirror: { get_param: ... }, #SRIOV Trunk Port + # Receiving Mirrored Traffic only + ATT_FABRIC_CONFIGURATION_REQUIRED: true #all NC ports + } + metadata: + port_type: SR-IOV_Trunk #SR-IOV Trunk Port + port_type: SR-IOV_Non_Trunk #SR-IOV Non Trunk Port + port_type: OVS #OVS Port + port_type: SR-IOV_Mirrored_Trunk #SR-IOV Trunk Port + # Receiving Mirrored Traffic +""" + +import os +import os.path +import re + +import pytest + +from .structures import Heat +from .helpers import validates + +VERSION = "1.3.0" + +RE_BASE = re.compile(r"(^base$)|(^base_)|(_base_)|(_base$)") # search pattern + +RE_EXTERNAL_PARAM_SUBNET_ID = re.compile( # match pattern + r"(?P.+)(_v6)?_subnet_id$" +) +RE_EXTERNAL_PARAM_SUBNET = RE_EXTERNAL_PARAM_SUBNET_ID +# RE_EXTERNAL_PARAM_SUBNET = re.compile( # match pattern +# r'(?P.+)(_v6)?_subnet$') + +RE_INTERNAL_PARAM_SUBNET_ID = re.compile( # match pattern + r"int_(?P.+)(_v6)?_subnet_id$" +) +RE_INTERNAL_PARAM_SUBNET = RE_INTERNAL_PARAM_SUBNET_ID +# RE_INTERNAL_PARAM_SUBNET = re.compile( # match pattern +# r'int_(?P.+)(_v6)?_subnet$') + + +def get_network(base_template_filepath): + """Return the base template's Heat instance. + """ + if base_template_filepath is None: + pytest.skip("No base template found") + base_template = Heat(filepath=base_template_filepath) + for r in base_template.resources.values(): + if ( + base_template.nested_get(r, "type") == "OS::Neutron::Net" + or base_template.nested_get(r, "type") == "OS::ContrailV2::VirtualNetwork" + ): + return base_template + return None + + +def run_test(heat_template, validate): + """call validate for each fixed_ips + """ + heat = Heat(filepath=heat_template) + base_template = get_base_template(heat_template) + if not heat.resources: + pytest.skip("No resources found") + + neutron_ports = heat.neutron_port_resources + if not neutron_ports: + pytest.skip("No OS::Neutron::Port resources found") + + bad = {} + for rid, resource in neutron_ports.items(): + fixed_ips = heat.nested_get(resource, "properties", "fixed_ips") + if fixed_ips is None: + continue + if not isinstance(fixed_ips, list): + bad[rid] = "properties.fixed_ips must be a list." + continue + if not heat.parameters: + bad[rid] = "fixed_ips requires parameters" + continue + for fixed_ip in fixed_ips: + error = validate(heat, fixed_ip, base_template) + if error: + bad[rid] = error + break + if bad: + # raise RuntimeError( + raise AssertionError( + "Bad OS::Neutron::Port: %s" + % (", ".join("%s: %s" % (rid, error) for rid, error in bad.items())) + ) + + +def validate_external_fixed_ip(heat, fixed_ip, base_template): + """ensure fixed_ip subnet and subnet_id for external network + match the pattern. + Returns error message string or None. + """ + subnet = heat.nested_get(fixed_ip, "subnet", "get_param") + subnet_id = heat.nested_get(fixed_ip, "subnet_id", "get_param") + if subnet and subnet_id: + error = 'fixed_ip %s has both "subnet" and "subnet_id"' % (fixed_ip) + elif subnet: + error = validate_external_subnet(subnet) + elif subnet_id: + error = validate_external_subnet_id(subnet_id) + else: + error = None + return error + + +def validate_external_subnet(subnet): + """ensure subnet matches template. + Returns error message string or None. + """ + if ( + subnet + and not subnet.startswith("int_") + and RE_EXTERNAL_PARAM_SUBNET.match(subnet) is None + ): + return 'fixed_ip subnet parameter "%s" does not match "%s"' % ( + subnet, + RE_EXTERNAL_PARAM_SUBNET.pattern, + ) + return None + + +def validate_external_subnet_id(subnet_id): + """ensure subnet_id matches template. + Returns error message string or None. + """ + if ( + subnet_id + and not subnet_id.startswith("int_") + and RE_EXTERNAL_PARAM_SUBNET_ID.match(subnet_id) is None + ): + return 'fixed_ip subnet_id parameter "%s" does not match "%s"' % ( + subnet_id, + RE_EXTERNAL_PARAM_SUBNET_ID.pattern, + ) + return None + + +def validate_internal_fixed_ip(heat, fixed_ip, base_template): + """ensure fixed_ip subnet and subnet_id for internal network + match the pattern. + Returns error message string or None. + """ + base_module = get_network(base_template) + subnet = heat.nested_get(fixed_ip, "subnet", "get_param") + subnet_id = heat.nested_get(fixed_ip, "subnet_id", "get_param") + if subnet and subnet_id: + error = 'fixed_ip %s has both "subnet" and "subnet_id"' % (fixed_ip) + elif subnet: + error = validate_internal_subnet(heat, base_module, subnet) + elif subnet_id: + error = validate_internal_subnet_id(heat, base_module, subnet_id) + else: + error = None + return error + + +def validate_internal_subnet(heat, base_module, subnet): + """ensure if subnet matches template then its parameter exists. + Returns error message string or None. + """ + if ( + subnet + and subnet.startswith("int_") + and RE_INTERNAL_PARAM_SUBNET.match(subnet) + and heat.nested_get(base_module.outputs, subnet) is None + ): + return 'fixed_ip subnet parameter "%s" not in base outputs"' % (subnet) + return None + + +def validate_internal_subnet_id(heat, base_module, subnet_id): + """ensure if subnet_id matches template then its parameter exists. + Returns error message string or None. + """ + if ( + subnet_id + and subnet_id.startswith("int_") + and RE_INTERNAL_PARAM_SUBNET_ID.match(subnet_id) + and heat.nested_get(base_module.outputs, subnet_id) is None + ): + return 'fixed_ip subnet_id parameter "%s" not in base outputs"' % (subnet_id) + return None + + +def validate_fixed_ip(heat, fixed_ip, base_template): + """ensure fixed_ip has proper parameters + Returns error message string or None. + """ + subnet = heat.nested_get(fixed_ip, "subnet", "get_param") + subnet_id = heat.nested_get(fixed_ip, "subnet_id", "get_param") + if subnet and subnet_id: + error = 'fixed_ip %s has both "subnet" and "subnet_id"' % (fixed_ip) + elif subnet and heat.nested_get(heat.parameters, subnet, "type") != "string": + error = 'subnet parameter "%s" must be type "string"' % subnet + elif subnet_id and heat.nested_get(heat.parameters, subnet_id, "type") != "string": + error = 'subnet_id parameter "%s" must be type "string"' % subnet_id + else: + error = None + return error + + +def get_base_template(heat_template): + (dirname, filename) = os.path.split(heat_template) + files = os.listdir(dirname) + for file in files: + basename, __ = os.path.splitext(os.path.basename(file)) + if ( + __ == ".yaml" + and basename.find("base") != -1 + and basename.find("volume") == -1 + ): + return os.path.join(dirname, "{}{}".format(basename, __)) + return None + + +@validates("R-38236") +def test_neutron_port_fixed_ips(heat_template): + """ + The VNF's Heat Orchestration Template's + resource ``OS::Neutron::Port`` property ``fixed_ips`` + map property ``subnet``/``subnet_id`` parameter + **MUST** be declared type ``string``. + """ + run_test(heat_template, validate_fixed_ip) + + +@validates("R-62802", "R-15287") +def test_neutron_port_external_fixed_ips(heat_template): + """ + When the VNF's Heat Orchestration Template's + resource ``OS::Neutron::Port`` is attaching + to an external network (per the ECOMP definition, see + Requirement R-57424), + and an IPv4 address is being cloud assigned by OpenStack's DHCP Service + and the external network IPv4 subnet is to be specified + using the property ``fixed_ips`` + map property ``subnet``/``subnet_id``, the parameter + **MUST** follow the naming convention + + * ``{network-role}_subnet_id`` + and the external network IPv6 subnet is to be specified + * ``{network-role}_v6_subnet_id`` + """ + run_test(heat_template, validate_external_fixed_ip) + + +@validates("R-84123", "R-76160") +def test_neutron_port_internal_fixed_ips(heat_template): + """ + When + + * the VNF's Heat Orchestration Template's + resource ``OS::Neutron::Port`` in an Incremental Module is attaching + to an internal network (per the ECOMP definition, see + Requirements R-52425 and R-46461) + that is created in the Base Module, AND + * an IPv4 address is being cloud assigned by OpenStack's DHCP Service AND + * the internal network IPv4 subnet is to be specified + using the property ``fixed_ips`` map property ``subnet``/``subnet_id``, + + the parameter **MUST** follow the naming convention + + * ``int_{network-role}_subnet_id`` + an IPv6 address is being cloud assigned by OpenStack's DHCP Service AND + * ``int_{network-role}_v6_subnet_id`` + + """ + run_test(heat_template, validate_internal_fixed_ip) diff --git a/ice_validator/tests/test_neutron_port_internal_network.py b/ice_validator/tests/test_neutron_port_internal_network.py new file mode 100644 index 0000000..b625be6 --- /dev/null +++ b/ice_validator/tests/test_neutron_port_internal_network.py @@ -0,0 +1,241 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +resources: +{vm-type}_{vm-type_index}_{network-role}_port_{port-index}: + type: OS::Neutron::Port + properties: + network: { get_param: ...} + fixed_ips: [ { "ipaddress": { get_param: ... } } ] + binding:vnic_type: direct #only SR-IOV ports, not OVS ports + value_specs: { + vlan_filter: { get_param: ... }, #all NC ports + public_vlans: { get_param: ... }, #all NC ports + private_vlans: { get_param: ... },#all NC ports + guest_vlans: { get_param: ... }, #SR-IOV Trunk Port only + vlan_mirror: { get_param: ... }, #SRIOV Trunk Port + # Receiving Mirrored Traffic only + ATT_FABRIC_CONFIGURATION_REQUIRED: true #all NC ports + } + metadata: + port_type: SR-IOV_Trunk #SR-IOV Trunk Port + port_type: SR-IOV_Non_Trunk #SR-IOV Non Trunk Port + port_type: OVS #OVS Port + port_type: SR-IOV_Mirrored_Trunk #SR-IOV Trunk Port + # Receiving Mirrored Traffic +""" + +import os.path +import re + +import pytest + +from .structures import Heat +from .helpers import validates + +VERSION = "1.1.0" + +RE_BASE = re.compile(r"(^base$)|(^base_)|(_base_)|(_base$)") # search pattern +RE_NEUTRON_PORT_RID = re.compile( # match pattern + r"(?P.+)" + r"_(?P\d+)" + r"_(?P.+)" + r"_port_" + r"(?P\d+)" + r"$" +) +RE_INTERNAL_NETWORK_PARAM = re.compile( # match pattern + r"int_(?P.+)_net_(?Pid|name)$" +) +RE_INTERNAL_NETWORK_RID = re.compile( # match pattern + r"int_(?P.+)_network$" +) + + +def get_base_template_filepath(yaml_files): + """Return first filepath to match RE_BASE + """ + for filepath in yaml_files: + basename, __ = os.path.splitext(os.path.basename(filepath)) + if RE_BASE.search(basename) and basename.find("volume") == -1: + return filepath + return None + + +def get_internal_network(yaml_files): + """Return the base template's Heat istance. + """ + base_template_filepath = get_base_template_filepath(yaml_files) + if base_template_filepath is None: + pytest.skip("No base template found") + base_template = Heat(filepath=base_template_filepath) + for r in base_template.resources.values(): + # if base_template.nested_get(r, 'type') == 'OS::Neutron::Net': + return base_template + + return None + + +def get_neutron_ports(heat): + """Return dict of resource_id: resource, whose type is + OS::Neutron::Port. + """ + return { + rid: resource + for rid, resource in heat.resources.items() + if heat.nested_get(resource, "type") == "OS::Neutron::Port" + } + + +# pylint: disable=invalid-name + + +@validates("R-86182", "R-22688") +def test_neutron_port_internal_network(yaml_files): + """ + When the VNF's Heat Orchestration Template's Resource + ``OS::Neutron::Port`` is attaching to an internal network (per the + ECOMP definition, see Requirements R-52425 and R-46461), + and the internal network is created in a + different Heat Orchestration Template than the ``OS::Neutron::Port``, + the ``network`` parameter name **MUST** + + * follow the naming convention ``int_{network-role}_net_id`` + if the Neutron + network UUID value is used to reference the network + * follow the naming convention ``int_{network-role}_net_name`` if the + OpenStack network name in is used to reference the network. + + where ``{network-role}`` is the network-role of the internal network and + a ``get_param`` **MUST** be used as the intrinsic function. + + In Requirement R-86182, the internal network is created in the VNF's + Base Module (Heat Orchestration Template) and the parameter name is + declared in the Base Module's ``outputs`` section. + When the parameter's value uses a "get_param" function, its name + must end in "_name", and when it uses a "get_resource" function, + its name must end in "_id". + + The output parameter name will be declared as a parameter in the + ``parameters`` section of the incremental module. + """ + internal_network = get_internal_network(yaml_files) + if not internal_network: + pytest.skip("internal_network template not found") + + if not internal_network.outputs: + pytest.skip('internal_network template has no "outputs"') + + for filepath in yaml_files: + if filepath != internal_network.filepath: + validate_neutron_port(filepath, internal_network) + + +def validate_neutron_port(filepath, internal_network): + """validate the neutron port + """ + heat = Heat(filepath=filepath) + if not heat.resources: + return + neutron_ports = get_neutron_ports(heat) + if not neutron_ports: + return + bad = {} + for rid, resource in neutron_ports.items(): + if not heat.parameters: + bad[rid] = 'missing "parameters"' + continue + network = heat.nested_get(resource, "properties", "network", "get_param") + if network is None: + bad[rid] = 'missing "network.get_param"' + continue + if not network.startswith("int_"): + continue # not an internal network port + error = validate_param(heat, network, internal_network) + if error: + bad[rid] = error + if bad: + raise RuntimeError( + "Bad OS::Neutron::Port: %s" + % (", ".join("%s: %s" % (rid, error) for rid, error in bad.items())) + ) + + +def validate_param(heat, network, internal_network): + """Ensure network (the parameter name) is defined in the base + template, and has the correct value function. Ensure its + network-role is found in the base template in some + OS::Neutron::Net resource. + Return error message string, or None if no no errors. + """ + match = RE_INTERNAL_NETWORK_PARAM.match(network) + if not match: + return 'network.get_param "%s" does not match "%s"' % ( + network, + RE_INTERNAL_NETWORK_PARAM.pattern, + ) + if heat.nested_get(heat.parameters, network) is None: + return "missing parameters.%s" % network + output = heat.nested_get(internal_network.outputs, network) + if not output: + return 'network.get_param "%s"' " not found in base template outputs" % network + param_dict = match.groupdict() + expect = {"name": "get_param", "id": "get_resource"}[param_dict["value_type"]] + value = heat.nested_get(output, "value") + if heat.nested_get(value, expect) is None: + return ( + 'network.get_param "%s" implies its base template' + ' output value function should be "%s" dict not "%s"' + % (network, expect, value) + ) + network_role = param_dict["network_role"] + for rid, resource in internal_network.resources.items(): + if ( + heat.nested_get(resource, "type") == "OS::Neutron::Net" + or heat.nested_get(resource, "type") == "OS::ContrailV2::VirtualNetwork" + ): + match = RE_INTERNAL_NETWORK_RID.match(rid) + if match and match.groupdict()["network_role"] == network_role: + return None + return ( + "OS::Neutron::Net with network-role" + ' "%s" not found in base template."' % network_role + ) diff --git a/ice_validator/tests/test_neutron_port_network_parameter.py b/ice_validator/tests/test_neutron_port_network_parameter.py new file mode 100644 index 0000000..14fe386 --- /dev/null +++ b/ice_validator/tests/test_neutron_port_network_parameter.py @@ -0,0 +1,94 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +import pytest +from tests import cached_yaml as yaml + +from .helpers import validates +from .utils.network_roles import property_uses_get_resource + + +@validates("R-18008") +def test_neutron_port_network_param_is_string(heat_template): + """ + Make sure all network properties use the allowed naming + conventions + """ + with open(heat_template) as fh: + yml = yaml.load(fh) + + # skip if resources are not defined + if "resources" not in yml: + pytest.skip("No resources specified in the heat template") + + # skip if parameters are not defined + if "parameters" not in yml: + pytest.skip("No parameters specified in the heat template") + + invalid_ports = [] + for k, v in yml["resources"].items(): + if not isinstance(v, dict): + continue + if "properties" not in v: + continue + if property_uses_get_resource(v, "network"): + continue + if v.get("type") != "OS::Neutron::Port": + continue + + prop = v.get("properties", {}).get("network", {}) + network_param = prop.get("get_param", "") if isinstance(prop, dict) else "" + if not network_param: + continue + + param = yml.get("parameters").get(network_param) + if not param: + continue + + param_type = param.get("type") + if not param_type: + continue + + if param_type != "string": + invalid_ports.append({"port": k, "param": network_param}) + + assert not invalid_ports, "network parameter must be defined as string {} ".format( + invalid_ports + ) diff --git a/ice_validator/tests/test_no_http_resources.py b/ice_validator/tests/test_no_http_resources.py new file mode 100644 index 0000000..6c01971 --- /dev/null +++ b/ice_validator/tests/test_no_http_resources.py @@ -0,0 +1,74 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +import re + +import pytest +from tests import cached_yaml as yaml + +from .helpers import validates + +VERSION = "1.0.0" + +# pylint: disable=invalid-name + + +@validates("R-71699", "R-53952") +def test_no_http_resources(yaml_file): + """Resources are prohibited from retrieving external + yaml files""" + is_url = re.compile(r"(?:http|https|file|ftp|ftps)://.+") + + with open(yaml_file) as fh: + yml = yaml.load(fh) + + # skip if parameters are not defined + if "resources" not in yml: + pytest.skip("No resources specified in the heat template") + + invalid_resources = [] + for rid, rprop in yml["resources"].items(): + rtype = rprop.get("type", "") + if is_url.match(rtype): + invalid_resources.append({"resource": rid, "url": rtype}) + continue + + assert not invalid_resources, "External resource types detected {}".format( + invalid_resources + ) diff --git a/ice_validator/tests/test_no_image_files.py b/ice_validator/tests/test_no_image_files.py new file mode 100644 index 0000000..fc09bfe --- /dev/null +++ b/ice_validator/tests/test_no_image_files.py @@ -0,0 +1,69 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +import os + +from tests.helpers import validates + + +INVALID_EXTS = { + ".aki", + ".ami", + ".ari", + ".iso", + ".qcow2", + ".raw", + ".vdi", + ".vhd", + ".vhdx", + ".vmdk", + ".bare", + ".ova", + ".ovf", + ".docker", +} + + +@validates("R-348813") +def test_no_image_files_included(template_dir): + filenames = (f.lower() for f in os.listdir(template_dir)) + exts = {os.path.splitext(f)[1] for f in filenames} + bad_exts = exts.intersection(INVALID_EXTS) + msg = ( + "Image files are not allowed in the template package. Files with " + + "the following extensions were found: {}".format(", ".join(bad_exts)) + ) + assert not bad_exts, msg diff --git a/ice_validator/tests/test_no_unused_parameters_between_env_and_templates.py b/ice_validator/tests/test_no_unused_parameters_between_env_and_templates.py index 81cfc9a..333e01e 100644 --- a/ice_validator/tests/test_no_unused_parameters_between_env_and_templates.py +++ b/ice_validator/tests/test_no_unused_parameters_between_env_and_templates.py @@ -35,41 +35,59 @@ # # ============LICENSE_END============================================ # -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# import os import pytest from .helpers import validates, get_environment_pair +def get_keys(template, key): + """ + Gets the set of keys from an expected dict from the ``template`` mapped to + the ``key``. If the key is not found, or is not a dict, then an empty + set is returned + """ + value = template.get(key) + if not value or not hasattr(value, "keys"): + return set() + else: + return set(value.keys()) + + @pytest.mark.heat_only -@validates('R-90279', 'R-01896', 'R-26124') +@validates("R-01896", "R-26124") def test_no_unused_parameters_between_env_and_templates(heat_template): """ - Check all defined parameters are used in the appropiate Heat template. + Check all defined parameters are used in the appropriate Heat template. """ environment_pair = get_environment_pair(heat_template) if not environment_pair: pytest.skip("No heat/env pair could be identified") - env_parameters = set(environment_pair["eyml"]["parameters"].keys()) - template_parameters = set(environment_pair["yyml"]["parameters"].keys()) + env_parameters = get_keys(environment_pair["eyml"], "parameters") + template_parameters = get_keys(environment_pair["yyml"], "parameters") extra_in_template = template_parameters.difference(env_parameters) extra_in_env = env_parameters.difference(template_parameters) - msg = "Mismatched parameters detected for the template and environment pair " \ - "with basename ({basename}). " + msg = ( + "Mismatched parameters detected for the template and environment pair " + "({basename}). Ensure the parameters exist in both " + "templates indented under their respective parameters sections. " + ) if extra_in_env: - msg += "The following parameters exist in the env file, but not the " \ - "template: {extra_in_env}. " + msg += ( + "The following parameters exist in the env file, but not the " + "template: {extra_in_env}. " + ) if extra_in_template: - msg += "The following parameters exist in the template file, but not the " \ - "environment file: {extra_in_template}" + msg += ( + "The following parameters exist in the template file, but not the " + "environment file: {extra_in_template}" + ) assert not (extra_in_template or extra_in_env), msg.format( basename=os.path.split(environment_pair["name"])[-1], extra_in_env=", ".join(extra_in_env), - extra_in_template=", ".join(extra_in_template) + extra_in_template=", ".join(extra_in_template), ) diff --git a/ice_validator/tests/test_non_server_name.py b/ice_validator/tests/test_non_server_name.py new file mode 100644 index 0000000..7d88155 --- /dev/null +++ b/ice_validator/tests/test_non_server_name.py @@ -0,0 +1,143 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +resource property name +""" + +import pytest + +from .structures import Heat +from .helpers import validates + +VERSION = "1.1.0" + + +def get_non_servers(heat): + """ + Return a dict of non servers. key is rid, value is resource + """ + non_servers = { + rid: resource + for rid, resource in heat.resources.items() + if heat.nested_get(resource, "type") != "OS::Nova::Server" + } + return non_servers + + +@validates("R-85734") +def test_non_server_name(heat_template): + """ + If a VNF's Heat Orchestration Template contains the property ``name`` + for a non ``OS::Nova::Server`` resource, the intrinsic function + ``str_replace`` **MUST** be used in conjunction with the ECOMP + supplied metadata parameter ``vnf_name`` to generate a unique value. + + """ + h = Heat(filepath=heat_template) + if not h.resources: + pytest.skip("No resources in this template") + + non_servers = get_non_servers(h) + if not non_servers: + pytest.skip("No non-server resources in this template") + + bad = [] + for rid, resource in non_servers.items(): + name = h.nested_get(resource, "properties", "name") + if not name: + continue + + # Make sure it uses str_replace + str_replace = name.get("str_replace") if hasattr(name, "get") else None + if not str_replace: + bad.append("{}'s name property does not use str_replace".format(rid)) + continue + + # Make sure str_replace is properly formatted + if not all(key in str_replace for key in ("template", "params")): + bad.append( + ( + "{}'s name property use of str_replace is " + + "missing template, params, or both" + ).format(rid) + ) + continue + params = str_replace["params"] + if not isinstance(params, dict): + bad.append( + ( + "{}'s name property's use of str_replace.params is " + + "missing or invalid" + ).format(rid) + ) + continue + + # Find the param that uses vnf_name + vnf_name_param = None + for key, value in params.items(): + if not isinstance(value, dict): + continue + if value.get("get_param", "") == "vnf_name": + vnf_name_param = key + break + if not vnf_name_param: + bad.append( + ( + "{}'s name property's use str_replace does not " + + "use have a params that maps to the parameter " + "via {{get_param: vnf_name}}" + ).format(rid) + ) + continue + + # make sure the VNF name is used in the template string + template = str_replace.get("template") or "" + if vnf_name_param not in template: + bad.append( + ( + "{}'s name property's str_replace template does " + + "not incorporate vnf_name; expected {} in " + + "template ({})" + ).format(rid, vnf_name_param, template) + ) + msg = "Improper name property for non-OS::Nova::Server resources. " + ". ".join(bad) + + assert not bad, msg diff --git a/ice_validator/tests/test_nova_server_name_parameters_start_at_0.py b/ice_validator/tests/test_nova_server_name_parameters_start_at_0.py new file mode 100644 index 0000000..91258e1 --- /dev/null +++ b/ice_validator/tests/test_nova_server_name_parameters_start_at_0.py @@ -0,0 +1,52 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +import re + +from tests.helpers import check_indices, validates +from tests.structures import Heat + + +SERVER_NAME_PARAM = re.compile(r"(.*_name_)(\d+)") + + +@validates("R-54171") +def test_nova_server_name_parameter_starts_at(heat_template): + params = Heat(heat_template).parameters + invalid_params = check_indices( + SERVER_NAME_PARAM, params, "OS::Nova::Server Name Parameters" + ) + assert not invalid_params, ". ".join(invalid_params) diff --git a/ice_validator/tests/test_nova_server_resource_id.py b/ice_validator/tests/test_nova_server_resource_id.py new file mode 100644 index 0000000..64462a5 --- /dev/null +++ b/ice_validator/tests/test_nova_server_resource_id.py @@ -0,0 +1,78 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +resources: +{vm-type}_server_{vm-type_index} +""" +import pytest + +from .structures import Heat +from .structures import NovaServer +from .helpers import validates + +VERSION = "1.0.0" + +# pylint: disable=invalid-name + + +@validates("R-29751") +def test_nova_server_resource_id(heat_template): + """ + A VNF's Heat Orchestration Template's Resource + OS::Nova::Server Resource ID + **MUST** use the naming convention + + * ``{vm-type}_server_{index}`` + + """ + heat = Heat(filepath=heat_template) + resources = heat.nova_server_resources + if not resources: + pytest.skip("No Nova Server resources found") + nova_server = NovaServer() + bad = [] + for rid in resources: + if not nova_server.get_rid_match_tuple(rid)[0]: + bad.append(rid) + assert not bad, "Resource ids %s must match %s" % ( + bad, + nova_server.get_rid_patterns(), + ) diff --git a/ice_validator/tests/test_nova_servergroup_policies.py b/ice_validator/tests/test_nova_servergroup_policies.py index 6a49822..4e67f58 100644 --- a/ice_validator/tests/test_nova_servergroup_policies.py +++ b/ice_validator/tests/test_nova_servergroup_policies.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -43,11 +43,11 @@ import pytest def test_nova_servergroup_policies(yaml_file): - ''' + """ Check that nova servergroup resources using either anti-affinity or affinity rules in policies - ''' - req_rules = ['affinity', 'anti-affinity'] + """ + req_rules = ["affinity", "anti-affinity"] with open(yaml_file) as fh: yml = yaml.load(fh) @@ -56,8 +56,8 @@ def test_nova_servergroup_policies(yaml_file): if "resources" not in yml: pytest.skip("No resources specified in the heat template") - has_req_rules = [] - for v1 in yml["resources"].values(): + invalid_policies = [] + for r_id, v1 in yml["resources"].items(): if not isinstance(v1, dict): continue if "properties" not in v1: @@ -70,11 +70,19 @@ def test_nova_servergroup_policies(yaml_file): try: all_rules = v1["properties"]["policies"] detected_rules = set(all_rules) & set(req_rules) - has_req_rules.append(len(detected_rules) > 0) - except (ValueError): + if len(detected_rules) == 0: + invalid_policies.append( + "{} policies must include one of {}".format( + r_id, ", ".join(req_rules) + ) + ) + elif len(detected_rules) > 1: + invalid_policies.append( + "{} policies must include only one of {}".format( + r_id, ", ".join(req_rules) + ) + ) + except ValueError: continue - if not has_req_rules: - pytest.skip("No policies Nova::ServerGroup instances were detected") - - assert all(has_req_rules) + assert not invalid_policies, ". ".join(invalid_policies) diff --git a/ice_validator/tests/test_nova_servers_environment_context.py b/ice_validator/tests/test_nova_servers_environment_context.py index 9e01ce0..7c71ef1 100644 --- a/ice_validator/tests/test_nova_servers_environment_context.py +++ b/ice_validator/tests/test_nova_servers_environment_context.py @@ -38,24 +38,28 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -'''environment context -''' +"""environment context +""" import pytest from tests import cached_yaml as yaml from .helpers import validates -VERSION = '1.0.0' +VERSION = "1.0.0" -@validates('R-20308') +@validates("R-20308") def test_environment_context(heat_template): - ''' + """ + A VNF's Heat Orchestration Template's OS::Nova::Server Resource + **MUST** + contain the metadata map value parameter 'environment_context'. + A VNF's Heat Orchestration Template's OS::Nova::Server Resource metadata map value parameter 'environment_context' **MUST** be declared as type: 'string'. - ''' + """ with open(heat_template) as fh: yml = yaml.load(fh) @@ -65,38 +69,38 @@ def test_environment_context(heat_template): pytest.skip("No resources specified in the heat template") for resource, v in yml["resources"].items(): - if (not isinstance(v, dict) - or v.get('type') != 'OS::Nova::Server' - or 'properties' not in v): + if ( + not isinstance(v, dict) + or v.get("type") != "OS::Nova::Server" + or "properties" not in v + ): continue - metadata = v['properties'].get('metadata') + metadata = v["properties"].get("metadata") if not isinstance(metadata, dict): continue - error = validate_metadata(metadata, yml['parameters']) + error = validate_metadata(metadata, yml["parameters"]) if error: - assert False, '%s resource "%s" %s' % ( - heat_template, - resource, - error) + assert False, '%s resource "%s" %s' % (heat_template, resource, error) def validate_metadata(metadata, parameters): - '''validate metatdata. - Ensure metadata references parameter environment_context - is a string. + """validate metatdata. + Ensure metadata references parameter environment_context, + and that it is a string. Return error message string or None if no errors. - ''' + """ for value in metadata.values(): if isinstance(value, dict): - if 'get_param' in value: - if value['get_param'] == 'environment_context': - wc = parameters.get('environment_context', {}) - if wc.get('type') == 'string': + if "get_param" in value: + if value["get_param"] == "environment_context": + wc = parameters.get("environment_context", {}) + if wc.get("type") == "string": break else: - return ('must have parameter "environment_context"' - ' of type "string"') + return ( + 'must have parameter "environment_context"' + ' of type "string"' + ) break else: return None - diff --git a/ice_validator/tests/test_nova_servers_index.py b/ice_validator/tests/test_nova_servers_index.py deleted file mode 100644 index 9ce843a..0000000 --- a/ice_validator/tests/test_nova_servers_index.py +++ /dev/null @@ -1,120 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START==================================================== -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -''' -Ensure that if a resource_id has an {index}, then all resources of -the same vm-type have an index, the indices are consecutive and start -with 0. -''' - -import collections -import re - -import pytest - -from .structures import Heat -from .helpers import validates -from .utils import vm_types - -VERSION = '1.1.0' - -RE_INDEXED_RESOURCE_ID = re.compile(r'\w+_(?P\d+)$') - - -@validates('R-11690') -def test_indices(heat_templates): - '''validate indices - ''' - indexed_resource_ids = {} - resources = {} - for heat_template in heat_templates: - h = Heat(filepath=heat_template) - if h.resources: - indexed_resource_ids.update(get_indexed_resource_ids(h.resources)) - resources.update(h.resources) - if not resources: - pytest.skip('No resources found') - - if not indexed_resource_ids: - pytest.skip('No resources with {index} found') - - types = get_types(resources, indexed_resource_ids) - if not types: - pytest.skip('No resources with {vm-type} found') - - indices = collections.defaultdict(list) - for resource_id, vm_type in types.items(): - indices[vm_type].append(indexed_resource_ids[resource_id]) - bad = {} - for vm_type, index_list in indices.items(): - for i in range(len(index_list)): - if i not in index_list: - bad[vm_type] = index_list - break - assert not bad, ( - 'vm-type indices must be consecutive, unique,' - ' and start at 0.\n %s' % ( - '\n '.join(['Resource ID %s: VM Type: %s' % (x, y) - for x, y in types.items() if y in bad]))) - - -def get_indexed_resource_ids(resources): - """Return dict. keys are resource_ids which end in an index. - values are the integer index parsed from the resource_id. - """ - indexed_resource_ids = {} - for resource in resources: - match = RE_INDEXED_RESOURCE_ID.match(resource) - if match: - indexed_resource_ids[resource] = int(match.groupdict()['index']) - return indexed_resource_ids - - -def get_types(resources, indexed_resource_ids): - """Return dict. keys are resource_ids from indexed_resource_ids. - values are the vm-type extracted from the resource. - """ - all_vm_types = {} - for rid in indexed_resource_ids: - x = vm_types.get_vm_types_for_resource(resources[rid]) - if x and len(x) == 1: - all_vm_types[rid] = list(x)[0] # x is a set. - return all_vm_types - diff --git a/ice_validator/tests/test_nova_servers_resource_ids.py b/ice_validator/tests/test_nova_servers_resource_ids.py index dd3e156..9747e29 100644 --- a/ice_validator/tests/test_nova_servers_resource_ids.py +++ b/ice_validator/tests/test_nova_servers_resource_ids.py @@ -45,12 +45,11 @@ from .helpers import validates from .utils.vm_types import get_vm_type_for_nova_server -@validates('R-40499', - 'R-57282') +@validates("R-40499", "R-57282") def test_nova_servers_valid_resource_ids(yaml_file): - ''' + """ Make sure all nova servers have valid resource ids - ''' + """ with open(yaml_file) as fh: yml = yaml.load(fh) @@ -85,14 +84,27 @@ def test_nova_servers_valid_resource_ids(yaml_file): int(k1_suffix) except ValueError: # vm_type_index is not an integer - invalid_nova_servers.append({"resource": k1, "vm_type": vm_type, "vm_type_index": k1_suffix}) + invalid_nova_servers.append( + { + "resource": k1, + "vm_type": vm_type, + "vm_type_index": k1_suffix, + } + ) else: # vm_type_index not found - invalid_nova_servers.append({"resource": k1, "vm_type": vm_type, "vm_type_index": "none found"}) + invalid_nova_servers.append( + { + "resource": k1, + "vm_type": vm_type, + "vm_type_index": "none found", + } + ) - assert not invalid_nova_servers, \ - "Invalid OS::Nova::Server resource ids detected {}\n" \ - "OS::Nova::Server resource ids must be in the form " \ - "_server_ \n" \ - " is derived from flavor, image and name properties " \ + assert not invalid_nova_servers, ( + "Invalid OS::Nova::Server resource ids detected {}\n" + "OS::Nova::Server resource ids must be in the form " + "_server_ \n" + " is derived from flavor, image and name properties " "".format(invalid_nova_servers) + ) diff --git a/ice_validator/tests/test_nova_servers_vm_types.py b/ice_validator/tests/test_nova_servers_vm_types.py index 233304c..786973e 100644 --- a/ice_validator/tests/test_nova_servers_vm_types.py +++ b/ice_validator/tests/test_nova_servers_vm_types.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -45,18 +45,17 @@ from tests import cached_yaml as yaml from .helpers import validates -from .utils.vm_types import get_vm_types_for_resource -from .utils.vm_types import get_vm_types +from .utils.vm_types import get_vm_types_for_resource, get_vm_types from .utils.network_roles import get_network_roles -@validates('R-57282') +@validates("R-57282") def test_vm_type_consistent_on_nova_servers(heat_template): - ''' + """ Make sure all nova servers have properly formatted properties for their name, image and flavor - ''' + """ with open(heat_template) as fh: yml = yaml.load(fh) @@ -68,22 +67,23 @@ def test_vm_type_consistent_on_nova_servers(heat_template): for k, v in yml["resources"].items(): if not isinstance(v, dict): continue - if v.get('type') != 'OS::Nova::Server': + if v.get("type") != "OS::Nova::Server": continue - if 'properties' not in v: + if "properties" not in v: continue vm_types = get_vm_types_for_resource(v) if len(vm_types) != 1: invalid_nova_servers.append(k) - assert not set(invalid_nova_servers), \ - "vm_types not consistant on the following resources {}" \ - .format(invalid_nova_servers) + assert not set( + invalid_nova_servers + ), "vm_types not consistant on the following resources: {}".format( + ",".join(invalid_nova_servers) + ) -@validates('R-48067', - 'R-00977') +@validates("R-48067", "R-00977") def test_vm_type_network_role_collision(yaml_file): with open(yaml_file) as fh: yml = yaml.load(fh) @@ -100,34 +100,37 @@ def test_vm_type_network_role_collision(yaml_file): collisions = [] for nr in network_roles: for vt in vm_types: - if vt in nr or nr in vt: - collisions.append({"vm_type": vt, "network_role": nr}) - - assert not collisions, \ - "vm_type and network_role should not be substrings {}" .format(collisions) - - -@validates('R-50436', - 'R-45188', - 'R-40499') + if vt in nr: + collisions.append( + ( + "vm_type ({}) cannot be a substring " "of network_role ({})" + ).format(vt, nr) + ) + elif nr in vt: + collisions.append( + ( + "network_role ({}) cannot be a substring " "of vm_type ({})" + ).format(nr, vt) + ) + + assert not collisions, ", ".join(collisions) + + +@validates("R-50436", "R-45188", "R-40499") def test_nova_server_flavor_parameter(yaml_file): prop = "flavor" check_nova_parameter_format(prop, yaml_file) -@validates('R-51430', - 'R-54171', - 'R-87817') +@validates("R-51430", "R-54171", "R-87817") def test_nova_server_name_parameter(yaml_file): prop = "name" check_nova_parameter_format(prop, yaml_file) -@validates('R-71152', - 'R-45188', - 'R-57282') +@validates("R-71152", "R-57282", "R-58670") def test_nova_server_image_parameter(yaml_file): prop = "image" @@ -138,13 +141,11 @@ def check_nova_parameter_format(prop, yaml_file): formats = { "string": { - "name": re.compile(r'(.+?)_name_\d+$'), - "flavor": re.compile(r'(.+?)_flavor_name$'), - "image": re.compile(r'(.+?)_image_name$') + "name": re.compile(r"(.+?)_name_\d+$"), + "flavor": re.compile(r"(.+?)_flavor_name$"), + "image": re.compile(r"(.+?)_image_name$"), }, - "comma_delimited_list": { - "name": re.compile(r'(.+?)_names$') - } + "comma_delimited_list": {"name": re.compile(r"(.+?)_names$")}, } with open(yaml_file) as fh: @@ -163,31 +164,28 @@ def check_nova_parameter_format(prop, yaml_file): for k, v in yml["resources"].items(): if not isinstance(v, dict): continue - if v.get('type') != 'OS::Nova::Server': + if v.get("type") != "OS::Nova::Server": continue - prop_param = v.get("properties", {}) \ - .get(prop, {}) \ - .get("get_param") + prop_val = v.get("properties", {}).get(prop, {}) + prop_param = prop_val.get("get_param", "") if isinstance(prop_val, dict) else "" if not prop_param: pytest.skip("{} doesn't have property {}".format(k, prop)) elif isinstance(prop_param, list): prop_param = prop_param[0] - template_param_type = yml.get("parameters", {}) \ - .get(prop_param, {}) \ - .get("type") + template_param_type = yml.get("parameters", {}).get(prop_param, {}).get("type") if not template_param_type: pytest.skip("could not determine param type for {}".format(prop_param)) - format_match = formats.get(template_param_type, {}) \ - .get(prop) + format_match = formats.get(template_param_type, {}).get(prop) if not format_match or not format_match.match(prop_param): - invalid_parameters.append(prop_param) + msg = ( + "Invalid parameter format ({}) on Resource ID ({}) property" " ({})" + ).format(prop_param, k, prop) + invalid_parameters.append(msg) - assert not set(invalid_parameters), \ - "invalid {} parameters detected {}" \ - .format(prop, invalid_parameters) + assert not set(invalid_parameters), ", ".join(invalid_parameters) diff --git a/ice_validator/tests/test_nova_servers_vm_types_use_get_param.py b/ice_validator/tests/test_nova_servers_vm_types_use_get_param.py index 6b1a668..2f69b52 100644 --- a/ice_validator/tests/test_nova_servers_vm_types_use_get_param.py +++ b/ice_validator/tests/test_nova_servers_vm_types_use_get_param.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -41,11 +41,14 @@ import pytest from tests import cached_yaml as yaml +from .helpers import validates + +@validates("R-901331", "R-481670", "R-663631") def test_vm_type_assignments_on_nova_servers_only_use_get_param(heat_template): - ''' + """ Make sure all nova servers only use get_param for their properties - ''' + """ with open(heat_template) as fh: yml = yaml.load(fh) @@ -54,7 +57,7 @@ def test_vm_type_assignments_on_nova_servers_only_use_get_param(heat_template): pytest.skip("No resources specified in the heat template") key_values = ["name", "flavor", "image"] - invalid_nova_servers = [] + invalid_nova_servers = set() for k, v in yml["resources"].items(): if not isinstance(v, dict): @@ -69,8 +72,11 @@ def test_vm_type_assignments_on_nova_servers_only_use_get_param(heat_template): for k2, v2 in v["properties"].items(): if k2 in key_values: if not isinstance(v2, dict): - invalid_nova_servers.append(k) + invalid_nova_servers.add(k) elif "get_param" not in v2: - invalid_nova_servers.append(k) - - assert not set(invalid_nova_servers) + invalid_nova_servers.add(k) + msg = ( + "These OS::Nova::Server resources do not derive one or more of " + + "their {} properties via get_param: {}" + ).format(", ".join(key_values), ", ".join(invalid_nova_servers)) + assert not invalid_nova_servers, msg diff --git a/ice_validator/tests/test_nova_servers_workload_context.py b/ice_validator/tests/test_nova_servers_workload_context.py index 650a6e1..5703f75 100644 --- a/ice_validator/tests/test_nova_servers_workload_context.py +++ b/ice_validator/tests/test_nova_servers_workload_context.py @@ -38,24 +38,28 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -'''workload context -''' +"""workload context +""" import pytest from tests import cached_yaml as yaml from .helpers import validates -VERSION = '1.0.0' +VERSION = "1.0.0" -@validates('R-74978') +@validates("R-74978") def test_workload_context(heat_template): - ''' + """ + A VNF's Heat Orchestration Template's OS::Nova::Server Resource + **MUST** + contain the metadata map value parameter 'workload_context'. + A VNF's Heat Orchestration Template's OS::Nova::Server Resource metadata map value parameter 'workload_context' **MUST** be declared as type: 'string'. - ''' + """ with open(heat_template) as fh: yml = yaml.load(fh) @@ -65,38 +69,37 @@ def test_workload_context(heat_template): pytest.skip("No resources specified in the heat template") for resource, v in yml["resources"].items(): - if (not isinstance(v, dict) - or v.get('type') != 'OS::Nova::Server' - or 'properties' not in v): + if ( + not isinstance(v, dict) + or v.get("type") != "OS::Nova::Server" + or "properties" not in v + ): continue - metadata = v['properties'].get('metadata') + metadata = v["properties"].get("metadata") if not isinstance(metadata, dict): continue - error = validate_metadata(metadata, yml['parameters']) + error = validate_metadata(metadata, yml["parameters"]) if error: - assert False, '%s resource "%s" %s' % ( - heat_template, - resource, - error) + assert False, '%s resource "%s" %s' % (heat_template, resource, error) def validate_metadata(metadata, parameters): - '''validate metatdata. - Ensure metadata references parameter workload_context - is a string. + """validate metatdata. + Ensure metadata references parameter workload_context, + and that it is a string. Return error message string or None if no errors. - ''' + """ for value in metadata.values(): if isinstance(value, dict): - if 'get_param' in value: - if value['get_param'] == 'workload_context': - wc = parameters.get('workload_context', {}) - if wc.get('type') == 'string': + if "get_param" in value: + if value["get_param"] == "workload_context": + wc = parameters.get("workload_context", {}) + if wc.get("type") == "string": break else: - return ('must have parameter "workload_context"' - ' of type "string"') + return ( + 'must have parameter "workload_context"' ' of type "string"' + ) break else: return None - diff --git a/ice_validator/tests/test_port_connected_to_multiple_servers.py b/ice_validator/tests/test_port_connected_to_multiple_servers.py new file mode 100644 index 0000000..e8b778d --- /dev/null +++ b/ice_validator/tests/test_port_connected_to_multiple_servers.py @@ -0,0 +1,71 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +from collections import defaultdict + +import pytest + +from tests.helpers import validates +from tests.structures import Heat, Resource + + +@validates("R-92635") +def test_port_connected_to_multiple_servers(yaml_file): + """ + SDC will throw an error if a single port is connected to more than + one server. This test detects that condition and logs a test failure. + """ + heat = Heat(yaml_file) + if not heat.resources: + pytest.skip("No resources") + + port_to_server = defaultdict(list) + for server_id, server_data in heat.get_resource_by_type("OS::Nova::Server").items(): + server = Resource(server_id, server_data) + ports = server.properties.get("networks", []) + for port in ports: + port_val = port.get("port") + if isinstance(port_val, dict) and "get_resource" in port_val: + port_id = port_val["get_resource"] + port_to_server[port_id].append(server_id) + errors = [] + for port, servers in port_to_server.items(): + if len(servers) > 1: + errors.append("Port {} is connected to {}".format(port, ", ".join(servers))) + msg = "A port cannot be connected to more than 1 server: {}".format( + ". ".join(errors) + ) + assert not errors, msg diff --git a/ice_validator/tests/test_port_resource_ids.py b/ice_validator/tests/test_port_resource_ids.py index 076c479..f53370d 100644 --- a/ice_validator/tests/test_port_resource_ids.py +++ b/ice_validator/tests/test_port_resource_ids.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -44,29 +44,22 @@ import pytest from tests import cached_yaml as yaml from .helpers import validates -from .utils.network_roles import get_network_role_from_port, \ - get_network_type_from_port, \ - property_uses_get_resource +from .utils.network_roles import ( + get_network_role_from_port, + get_network_type_from_port, + property_uses_get_resource, +) from .utils.vm_types import get_vm_type_for_nova_server -@validates('R-69014', - 'R-05201', - 'R-68936', - 'R-32025', - 'R-11168', - 'R-84322', - 'R-96983', - 'R-26506', - 'R-20453', - 'R-26351') +@validates("R-20453", "R-26351", "R-26506" "R-681859") def test_port_resource_ids(heat_template): - ''' + """ Check that all resource ids for ports follow the right naming convention to include the {vm_type} of the nova server it is associated to and also contains the {network_role} of the network it is associated with - ''' + """ with open(heat_template) as fh: yml = yaml.load(fh) @@ -74,45 +67,39 @@ def test_port_resource_ids(heat_template): if "resources" not in yml: pytest.skip("No resources specified in the heat template") - port_patterns = {'internal': re.compile(r'(.+?)_\d+_int_(.+?)_port_\d+'), - 'external': re.compile(r'(.+?)_\d+_(.+?)_port_\d+')} - resources = yml['resources'] + resources = yml["resources"] invalid_ports = [] for k, v in resources.items(): if not isinstance(v, dict): continue - if 'type' not in v: + if "type" not in v: continue - if v['type'] not in 'OS::Nova::Server': + if v["type"] not in "OS::Nova::Server": continue - if 'properties' not in v: + if "properties" not in v: continue - if 'networks' not in v['properties']: + if "networks" not in v["properties"]: continue - has_vm_type = False - has_network_role = True - port_resource = None - vm_type = get_vm_type_for_nova_server(v) if not vm_type: continue vm_type = vm_type.lower() # get all ports associated with the nova server - properties = v['properties'] - for v2 in properties['networks']: + properties = v["properties"] + for v2 in properties["networks"]: for k3, v3 in v2.items(): - if k3 != 'port': + if k3 != "port": continue if not isinstance(v3, dict): continue - if 'get_param' in v3: + if "get_param" in v3: continue - elif 'get_resource' in v3: - port_id = v3['get_resource'] + elif "get_resource" in v3: + port_id = v3["get_resource"] if not resources[port_id]: continue port_resource = resources[port_id] @@ -120,34 +107,30 @@ def test_port_resource_ids(heat_template): else: continue - has_vm_type = vm_type + "_" in port_id - has_network_role = False - - if port_resource: - if property_uses_get_resource(v, "network"): - continue - network_role = get_network_role_from_port(port_resource) - if not network_role: - continue - network_role = network_role.lower() - - network_type = get_network_type_from_port(port_resource) - if not network_type: - continue - - if port_patterns[network_type].match(port_id): - has_network_role = True - else: - # match the assumed naming convention for ports - # if the specified port is provided via get_param - network_type = 'external' - if "int_" in port_id: - network_type = 'internal' - if port_patterns[network_type].match(port_id): - has_network_role = True - - if has_vm_type and has_network_role: + if property_uses_get_resource(v, "network"): continue - invalid_ports.append(port_id) + network_role = get_network_role_from_port(port_resource) + if not network_role: + continue + network_role = network_role.lower() - assert not set(invalid_ports) + network_type = get_network_type_from_port(port_resource) + if not network_type: + continue + if network_type == "external": + expected_r_id = r"{}_\d+_{}_port_\d+".format(vm_type, network_role) + else: + expected_r_id = r"{}_\d+_int_{}_port_\d+".format( + vm_type, network_role + ) + if not re.match(expected_r_id, port_id): + invalid_ports.append( + (port_id, "Did not match {}".format(expected_r_id)) + ) + + port_errors = "; ".join( + "{} -> {}".format(port, error) for port, error in invalid_ports + ) + msg = "The following ports have invalid resource IDs: {}".format(port_errors) + msg = msg.replace(r"\d+", "{index}") + assert not invalid_ports, msg diff --git a/ice_validator/tests/test_required_parameters_no_constraints.py b/ice_validator/tests/test_required_parameters_no_constraints.py index 4036162..d397a23 100644 --- a/ice_validator/tests/test_required_parameters_no_constraints.py +++ b/ice_validator/tests/test_required_parameters_no_constraints.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -44,24 +44,55 @@ from tests import cached_yaml as yaml from .helpers import validates -@validates('R-55218', 'R-98374', 'R-44318') -def test_required_parameters_no_constraints(yaml_file): - ''' - Make sure all required parameters are specified without any - constraints in the heat template. - ''' - required_parameters = ["vnf_id", "vf_module_id", "vnf_name"] +def check_parameters_no_constraints(yaml_file, parameter): with open(yaml_file) as fh: yml = yaml.load(fh) - # skip if parameters are not defined - if "parameters" not in yml: - pytest.skip("No parameters specified in the heat template") + param = yml.get("parameters", {}).get(parameter) + if not param: + pytest.skip("Parameter {} not defined in parameters section".format(parameter)) - invalid_params = [] - for k1, v1 in yml["parameters"].items(): - if k1 in required_parameters and "constraints" in v1: - invalid_params.append(k1) + assert ( + "constraints" not in param + ), "Found constraints defined for parameter: {}".format(parameter) - assert not set(invalid_params) + +@validates("R-55218") +def test_vnf_id_parameter_has_no_constraints(yaml_file): + check_parameters_no_constraints(yaml_file, "vnf_id") + + +@validates("R-98374") +def test_vf_module_id_parameter_has_no_constraints(yaml_file): + check_parameters_no_constraints(yaml_file, "vf_module_id") + + +@validates("R-44318") +def test_vnf_name_parameter_has_no_constraints(yaml_file): + check_parameters_no_constraints(yaml_file, "vnf_name") + + +@validates("R-34055") +def test_workload_context_parameter_has_no_constraints(yaml_file): + check_parameters_no_constraints(yaml_file, "workload_context") + + +@validates("R-56183") +def test_environment_context_parameter_has_no_constraints(yaml_file): + check_parameters_no_constraints(yaml_file, "environment_context") + + +@validates("R-15480") +def test_vf_module_name_parameter_has_no_constraints(yaml_file): + check_parameters_no_constraints(yaml_file, "vf_module_name") + + +@validates("R-67597") +def test_vm_role_parameter_has_no_constraints(yaml_file): + check_parameters_no_constraints(yaml_file, "vm_role") + + +@validates("R-09811") +def test_vf_module_index_parameter_has_no_constraints(yaml_file): + check_parameters_no_constraints(yaml_file, "vf_module_index") diff --git a/ice_validator/tests/test_required_parameters_specified_in_env_files.py b/ice_validator/tests/test_required_parameters_specified_in_env_files.py deleted file mode 100644 index 63b890c..0000000 --- a/ice_validator/tests/test_required_parameters_specified_in_env_files.py +++ /dev/null @@ -1,81 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -import pytest - -from .helpers import get_environment_pair - - -@pytest.mark.heat_only -def test_required_parameters_provided_in_env_file(heat_template): - ''' - Make sure all required parameters are specified properly - in the environment file if a server is defined in the - corresponding heat template - ''' - environment_pair = get_environment_pair(heat_template) - if not environment_pair: - pytest.skip("No heat/env pair could be identified") - - required_parameters = ["vnf_id", "vf_module_id", "vnf_name"] - - if "resources" not in environment_pair["yyml"]: - pytest.skip("No resources specified in the heat template") - - if "parameters" not in environment_pair["eyml"]: - pytest.skip("No parameters specified in the environment file") - - server_count = 0 - for v in environment_pair["yyml"]['resources'].values(): - if "type" not in v: - continue - if v["type"] == "OS::Nova::Server": - server_count += 1 - - if server_count == 0: - pytest.skip("No Nova Server resources specified in " + - "the heat template") - - provided_parameters = [] - for k in environment_pair["eyml"]['parameters']: - if k in required_parameters: - provided_parameters.append(k) - - assert set(required_parameters) == set(provided_parameters) diff --git a/ice_validator/tests/test_required_parameters_specified_in_heat_templates.py b/ice_validator/tests/test_required_parameters_specified_in_heat_templates.py deleted file mode 100644 index 9b38722..0000000 --- a/ice_validator/tests/test_required_parameters_specified_in_heat_templates.py +++ /dev/null @@ -1,77 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -import pytest -from tests import cached_yaml as yaml - - -def test_required_parameters_provided_in_heat_template(heat_template): - ''' - Make sure all required parameters are specified properly - in the heat template if a server resource is defined - ''' - required_parameters = ["vnf_id", "vf_module_id", "vnf_name"] - provided_parameters = [] - - with open(heat_template) as fh: - yml = yaml.load(fh) - - if "resources" not in yml: - pytest.skip("No resources specified in the heat template") - - server_count = 0 - for v in yml["resources"].values(): - if "type" not in v: - continue - if v["type"] == "OS::Nova::Server": - server_count += 1 - - if server_count == 0: - pytest.skip("No Nova Server resources specified in " + - "the heat template") - - if "parameters" not in yml: - pytest.fail("No parameters specified in the heat template") - - for k in yml["parameters"]: - if k in required_parameters: - provided_parameters.append(k) - - assert set(required_parameters) == set(provided_parameters) diff --git a/ice_validator/tests/test_resource_ids_alphanumeric_only.py b/ice_validator/tests/test_resource_ids_alphanumeric_only.py index d5080f4..f08e0c8 100644 --- a/ice_validator/tests/test_resource_ids_alphanumeric_only.py +++ b/ice_validator/tests/test_resource_ids_alphanumeric_only.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -46,21 +46,21 @@ from tests import cached_yaml as yaml from .helpers import validates -@validates('R-75141') +@validates("R-75141") def test_alphanumeric_resource_ids_only(yaml_file): - ''' - Check that all instance names are only using alphanumerics - ''' - valid_format = re.compile(r'^[\w-]+$') + valid_format = re.compile(r"^[\w-]+$") with open(yaml_file) as fh: yml = yaml.load(fh) - if 'resources' not in yml: + if "resources" not in yml: pytest.skip("No resources specified in the heat template") - invalid_resource_ids = [k - for k in yml['resources'].keys() - if not valid_format.match(k)] + invalid_resource_ids = [ + k for k in yml["resources"].keys() if not valid_format.match(k) + ] - assert not set(invalid_resource_ids) + msg = "Invalid character(s) detected in the following resource IDs: " + ", ".join( + invalid_resource_ids + ) + assert not set(invalid_resource_ids), msg diff --git a/ice_validator/tests/test_resource_indices.py b/ice_validator/tests/test_resource_indices.py new file mode 100644 index 0000000..8e92567 --- /dev/null +++ b/ice_validator/tests/test_resource_indices.py @@ -0,0 +1,84 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +import collections +from itertools import chain +from .structures import Heat +from .helpers import validates + + +def has_next(seq, index): + """ + Returns true if there is at least one more item after the current + index in the sequence + """ + next_index = index + 1 + return len(seq) > next_index + + +@validates("R-11690") +def test_indices_start_at_0_increment(yaml_files): + resources_ids = chain.from_iterable(Heat(f).resources.keys() for f in yaml_files) + prefix_indices = collections.defaultdict(set) + for r_id in resources_ids: + parts = r_id.split("_") + prefix_parts = [] + for i, part in enumerate(parts): + if part.isdigit(): + # It's an index so let's record it and its prefix + prefix = "_".join(prefix_parts) + "_" + index = int(part) + prefix_indices[prefix].add(index) + prefix_parts.append(part) + errors = [] + for prefix, indices in prefix_indices.items(): + indices = sorted(indices) + if indices[0] != 0: + errors.append( + ( + "Index values associated with resource ID " + + "prefix {} do not start at 0".format(prefix) + ) + ) + elif indices[-1] != (len(indices) - 1): + errors.append( + ( + "Index values associated with resource ID " + + "prefix {} are not contiguous: {}" + ).format(prefix, indices) + ) + assert not errors, ". ".join(errors) diff --git a/ice_validator/tests/test_server_parameters.py b/ice_validator/tests/test_server_parameters.py new file mode 100644 index 0000000..ec49f02 --- /dev/null +++ b/ice_validator/tests/test_server_parameters.py @@ -0,0 +1,178 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# +"""test +""" +import pytest +from tests import cached_yaml as yaml + +from .helpers import validates + +VERSION = "1.1.0" + + +def check_parameter_type(heat_template, parameter, parameter_type): + """ + Make sure these OS::Nova::Server parameters are defined w/ + the correct type + """ + + with open(heat_template) as fh: + yml = yaml.load(fh) + + # skip if resources are not defined + if "parameters" not in yml: + pytest.skip("No parameters specified in the heat template") + + invalid_parameters = [] + + for k1, v1 in yml["parameters"].items(): + if not isinstance(v1, dict): + continue + if "type" not in v1: + continue + + if k1.find(parameter) == -1: + continue + + param_type = v1.get("type") + + if not param_type: + continue + + if param_type != parameter_type: + invalid_parameters.append(k1) + + assert ( + not invalid_parameters + ), "{} parameters must be defined as type {}: {}".format( + parameter, parameter_type, invalid_parameters + ) + + +def check_server_parameter_name(heat_template, parameter, parameter_name): + """ + Check each OS::Nova::Server metadata property + uses the same parameter name w/ get_param + """ + + with open(heat_template) as fh: + yml = yaml.load(fh) + + # skip if resources are not defined + if "resources" not in yml: + pytest.skip("No resources specified in the heat template") + + invalid_parameters = [] + + for k1, v1 in yml["resources"].items(): + if not isinstance(v1, dict): + continue + if "type" not in v1: + continue + + if v1["type"] != "OS::Nova::Server": + continue + + metadata = v1.get("properties", {}).get("metadata", {}).get(parameter) + + if not metadata or not isinstance(metadata, dict): + continue + + get_param = metadata.get("get_param") + + if not get_param: + continue + + if get_param != parameter_name: + invalid_parameters.append( + { + "resource": k1, + "metadata property": parameter_name, + "get_param": get_param, + } + ) + + assert not invalid_parameters, ( + "metadata property {} must use get_param and " + "the parameter name must be {}: {}".format( + parameter, parameter_name, invalid_parameters + ) + ) + + +@validates("R-23311") +def test_availability_zone_parameter_type(heat_template): + check_parameter_type(heat_template, "availability_zone_", "string") + + +@validates("R-07507") +def test_vnf_id_parameter_type_and_parameter_name(heat_template): + check_parameter_type(heat_template, "vnf_id", "string") + check_server_parameter_name(heat_template, "vnf_id", "vnf_id") + + +@validates("R-82134") +def test_vf_module_id_parameter_type_and_parameter_name(heat_template): + check_parameter_type(heat_template, "vf_module_id", "string") + check_server_parameter_name(heat_template, "vf_module_id", "vf_module_id") + + +@validates("R-62428") +def test_vnf_name_parameter_type_and_parameter_name(heat_template): + check_parameter_type(heat_template, "vnf_name", "string") + check_server_parameter_name(heat_template, "vnf_name", "vnf_name") + + +@validates("R-39067") +def test_vf_module_name_parameter_type_and_parameter_name(heat_template): + check_parameter_type(heat_template, "vf_module_name", "string") + check_server_parameter_name(heat_template, "vf_module_name", "vf_module_name") + + +@validates("R-95430") +def test_vm_role_parameter_type_and_parameter_name(heat_template): + check_parameter_type(heat_template, "vm_role", "string") + check_server_parameter_name(heat_template, "vm_role", "vm_role") + + +@validates("R-54340") +def test_vf_module_index_parameter_type_and_parameter_name(heat_template): + check_parameter_type(heat_template, "vf_module_index", "number") + check_server_parameter_name(heat_template, "vf_module_index", "vf_module_index") diff --git a/ice_validator/tests/test_servers_have_optional_metadata.py b/ice_validator/tests/test_servers_have_optional_metadata.py deleted file mode 100644 index 01e87e0..0000000 --- a/ice_validator/tests/test_servers_have_optional_metadata.py +++ /dev/null @@ -1,93 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -from tests import cached_yaml as yaml -import pytest - - -def test_servers_have_optional_metadata(yaml_file): - ''' - Check that if optional metadata is included in the metadata - for nova servers, they are specified in parameters - ''' - with open(yaml_file) as fh: - yml = yaml.load(fh) - - # skip if parameters are not defined - if "parameters" not in yml: - pytest.skip("No parameters specified in the heat template") - - # Check if the param vm_role is defined - if "resources" not in yml: - pytest.skip("No resources specified in the heat template") - - optional_metadata = ["vf_module_name", "vf_module_index"] - specified_optional_metadata = [k - for k in yml["parameters"].keys() - if k in optional_metadata] - - need_optional_metadata = [] - for v in yml["resources"].values(): - keys = [] - if v.get("type") == "OS::Nova::Server": - if 'properties' not in v: - continue - if 'metadata' not in v['properties']: - continue - - keys = v["properties"]["metadata"].keys() - elif v.get("type") == "OS::Heat::ResourceGroup": - if 'resource_def' not in v: - continue - if 'properties' not in v['resource_def']: - continue - - keys = v["resource_def"]["properties"].keys() - - for key in keys: - if key in optional_metadata: - need_optional_metadata.append(key) - - if not need_optional_metadata: - pytest.skip("No optional metadata is specified in the heat template") - - # Check that if optional metadata is included in the metadata - # for nova servers, they are specified in parameters - assert set(specified_optional_metadata) == set(need_optional_metadata) diff --git a/ice_validator/tests/test_servers_have_required_metadata.py b/ice_validator/tests/test_servers_have_required_metadata.py index 3e84d43..8ea8869 100644 --- a/ice_validator/tests/test_servers_have_required_metadata.py +++ b/ice_validator/tests/test_servers_have_required_metadata.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -44,12 +44,12 @@ from tests import cached_yaml as yaml from .helpers import validates -@validates('R-37437', 'R-71493', 'R-72483') +@validates("R-37437", "R-71493", "R-72483") def test_servers_have_required_metadata(yaml_file): - ''' + """ Check all defined nova server instances have the required metadata: vnf_id and vf_module_id - ''' + """ with open(yaml_file) as fh: yml = yaml.load(fh) @@ -57,20 +57,24 @@ def test_servers_have_required_metadata(yaml_file): if "resources" not in yml: pytest.skip("No resources specified in the heat template") - required_metadata = ["vnf_id", "vf_module_id", "vnf_name"] + required_metadata = {"vnf_id", "vf_module_id", "vnf_name"} - invalid_nova_servers = [] + errors = [] for k, v in yml["resources"].items(): if v.get("type") != "OS::Nova::Server": continue - if 'properties' not in v: + if "properties" not in v: continue - if 'metadata' not in v['properties']: + if "metadata" not in v["properties"]: continue - # do not add the server if it has the required metadata - if set(required_metadata) <= set(v["properties"]["metadata"].keys()): - continue - invalid_nova_servers.append(k) + metadata = set(v.get("properties", {}).get("metadata", {}).keys()) + missing_metadata = required_metadata.difference(metadata) + if missing_metadata: + msg_template = ( + "OS::Nova::Server {} is missing the following " + + "metadata properties: {}" + ) + errors.append(msg_template.format(k, missing_metadata)) - assert not set(invalid_nova_servers) + assert not errors, "\n".join(errors) diff --git a/ice_validator/tests/test_servers_metadata_use_get_param.py b/ice_validator/tests/test_servers_metadata_use_get_param.py index f7df880..f569edd 100644 --- a/ice_validator/tests/test_servers_metadata_use_get_param.py +++ b/ice_validator/tests/test_servers_metadata_use_get_param.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -44,13 +44,11 @@ from tests import cached_yaml as yaml from .helpers import validates -@validates('R-97199') -def test_servers_metadata_use_get_param(yaml_file): - ''' +def check_servers_metadata_use_get_param(yaml_file, md): + """ Check all defined nova server instances include metadata via the get_param function - ''' - required_metadata = ["vnf_id", "vf_module_id"] + """ with open(yaml_file) as fh: yml = yaml.load(fh) @@ -67,11 +65,44 @@ def test_servers_metadata_use_get_param(yaml_file): if v1["type"] == "OS::Nova::Server": try: for k2, v2 in v1["properties"]["metadata"].items(): - if (k2 in required_metadata and not - v2["get_param"] in required_metadata): - invalid_nova_servers.append(k1) + if k2 == md: + if isinstance(v2, dict): + metadata = v2.get("get_param") + if not metadata: + invalid_nova_servers.append( + {"server": k1, "metadata": k2} + ) + else: + invalid_nova_servers.append({"server": k1, "metadata": k2}) except Exception as e: print(e) invalid_nova_servers.append(k1) - assert not set(invalid_nova_servers) + assert ( + not invalid_nova_servers + ), "OS::Nova::Server metadata MUST use get_param {}".format(invalid_nova_servers) + + +@validates("R-37437") +def test_servers_vnf_id_metadata_use_get_param(yaml_file): + check_servers_metadata_use_get_param(yaml_file, "vnf_id") + + +@validates("R-71493") +def test_servers_vf_module_id_metadata_use_get_param(yaml_file): + check_servers_metadata_use_get_param(yaml_file, "vf_module_id") + + +@validates("R-72483") +def test_servers_vnf_name_metadata_use_get_param(yaml_file): + check_servers_metadata_use_get_param(yaml_file, "vnf_name") + + +@validates("R-68023") +def test_servers_vf_module_name_metadata_use_get_param(yaml_file): + check_servers_metadata_use_get_param(yaml_file, "vf_module_name") + + +@validates("R-50816") +def test_servers_vf_module_index_metadata_use_get_param(yaml_file): + check_servers_metadata_use_get_param(yaml_file, "vf_module_index") diff --git a/ice_validator/tests/test_software_config_resource_id.py b/ice_validator/tests/test_software_config_resource_id.py new file mode 100644 index 0000000..d15ed9d --- /dev/null +++ b/ice_validator/tests/test_software_config_resource_id.py @@ -0,0 +1,84 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +resources: +{vm-type}_{vm-type_index}_{network-role}_port_{port-index}: +""" + +import pytest + +from .structures import Heat +from .helpers import validates + +VERSION = "1.1.0" + +# pylint: disable=invalid-name + + +@validates("R-08975") +def test_software_config_vm_type(heat_template): + """ + A VNF's Heat Orchestration Template's Resource OS::Heat::SoftwareConfig + Resource ID **MUST** contain the {vm-type}. + """ + heat = Heat(filepath=heat_template) + software_configs = heat.get_resource_by_type("OS::Heat::SoftwareConfig") + if not software_configs: + pytest.skip("No SoftwareConfig resources found") + vm_types = sorted( + list( + set( + x + for x in [ + heat.get_vm_type(rid, resource=r) + for rid, r in heat.resources.items() + ] + if x + ) + ) + ) + if not vm_types: + pytest.skip("No vm_types found") + bad = [] + for rid in software_configs: + if not any(heat.part_is_in_name(part=v, name=rid) for v in vm_types): + bad.append("%s vm-type not in %s" % (rid, vm_types)) + assert not bad, "; ".join(bad) diff --git a/ice_validator/tests/test_subnet_format.py b/ice_validator/tests/test_subnet_format.py deleted file mode 100644 index bc183ef..0000000 --- a/ice_validator/tests/test_subnet_format.py +++ /dev/null @@ -1,127 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -import re - -import pytest -from tests import cached_yaml as yaml - -from .utils.network_roles import get_network_role_from_port, \ - property_uses_get_resource - - -def test_subnet_format(heat_template): - ''' - Make sure all subnet properties follow the allowed naming - conventions - ''' - formats = [ - ["subnet_id", "string", "internal", - re.compile(r'int_(.+?)_subnet_id')], - ["subnet_id", "string", "internal", - re.compile(r'int_(.+?)_v6_subnet_id')], - ["subnet_id", "string", "external", - re.compile(r'(.+?)_subnet_id')], - ["subnet_id", "string", "external", - re.compile(r'(.+?)_v6_subnet_id')]] - - with open(heat_template) as fh: - yml = yaml.load(fh) - - # skip if resources are not defined - if "resources" not in yml: - pytest.skip("No resources specified in the heat template") - - invalid_subnets = [] - for v1 in yml["resources"].values(): - if not isinstance(v1, dict): - continue - if "properties" not in v1: - continue - if v1.get("type") != "OS::Neutron::Port": - continue - if property_uses_get_resource(v1, "network"): - continue - network_role = get_network_role_from_port(v1) - - # get the network param to define the network_type - try: - network_param = v1["properties"]["network"]["get_param"] - except KeyError: - continue - - # define the network_type - network_type = 'external' - if network_param.startswith('int_'): - network_type = 'internal' - - for k2, v2 in v1["properties"].items(): - if k2 != "fixed_ips": - continue - - for v3 in v2: - if "subnet_id" not in v3: - continue - - subnet_id = v3["subnet_id"] - for v4 in formats: - if v4[2] != network_type: - continue - - # get the param or resource - if network_type == "external": - param_or_res = subnet_id["get_param"] - elif network_type == "internal": - if subnet_id.get("get_param"): - param_or_res = subnet_id["get_param"] - elif subnet_id.get("get_resource"): - param_or_res = subnet_id["get_resource"] - else: - continue - else: - continue - - m = v4[3].match(param_or_res) - if m and m.group(1): - snr = m.group(1) - if snr.replace("_v6", "") != network_role: - invalid_subnets.append(param_or_res) - - assert not set(invalid_subnets) diff --git a/ice_validator/tests/test_subnet_format_use_get_param_or_get_resource.py b/ice_validator/tests/test_subnet_format_use_get_param_or_get_resource.py deleted file mode 100644 index 7487089..0000000 --- a/ice_validator/tests/test_subnet_format_use_get_param_or_get_resource.py +++ /dev/null @@ -1,99 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -import pytest -from tests import cached_yaml as yaml - - -def test_subnet_format_use_get_param_or_get_resource(heat_template): - ''' - Make sure all subnet properties only use get_parm - or get_resource of an internal network - ''' - - with open(heat_template) as fh: - yml = yaml.load(fh) - - # skip if resources are not defined - if "resources" not in yml: - pytest.skip("No resources specified in the heat template") - - invalid_subnets = [] - for v1 in yml["resources"].values(): - if not isinstance(v1, dict): - continue - if "properties" not in v1: - continue - if v1.get("type") != "OS::Neutron::Port": - continue - - # get the network param to define the network_type - try: - network_param = v1["properties"]["network"]["get_param"] - except KeyError: - continue - - # define the network_type - network_type = 'external' - if network_param.startswith('int_'): - network_type = 'internal' - - for k2, v2 in v1["properties"].items(): - if k2 != "fixed_ips": - continue - - for v3 in v2: - if "subnet_id" not in v3: - continue - - subnet_id = v3["subnet_id"] - - # get the param or resource - if network_type == "external" and\ - subnet_id.get("get_param"): - continue - elif network_type == "internal" and\ - (subnet_id.get("get_param") or - subnet_id.get("get_resource")): - continue - else: - invalid_subnets.append(subnet_id) - - assert not set(invalid_subnets) diff --git a/ice_validator/tests/test_unique_name_resources.py b/ice_validator/tests/test_unique_name_resources.py deleted file mode 100644 index bb09706..0000000 --- a/ice_validator/tests/test_unique_name_resources.py +++ /dev/null @@ -1,110 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -from tests import cached_yaml as yaml -import pytest - -from .helpers import validates - - -@validates('R-40899') -def test_unique_name_resources(yaml_files): - ''' - Check that all resource names are unique across all yaml files. - The specifics of str_replace naming is carried out in a - different test - ''' - resource_names = [] - - params_using_index = {} - - for yaml_file in yaml_files: - with open(yaml_file) as fh: - yml = yaml.load(fh) - - # skip if resources are not defined - if "resources" not in yml: - continue - - for v1 in yml["resources"].values(): - if not isinstance(v1, dict): - continue - if "properties" not in v1: - continue - - try: - v2 = v1["properties"]["name"] - except (TypeError, KeyError): - continue - - try: - param = v2["get_param"] - except (TypeError, KeyError): - param = None - - if param: - if isinstance(param, list): - name = param[0] - index = param[1] - - if (isinstance(index, dict) and - 'get_param' in index): - get_param = index['get_param'] - - if name not in params_using_index: - params_using_index[name] = get_param - param = name + get_param - else: - continue - else: - param = name + str(index) - - resource_names.append(param) - else: - try: - template = v2["str_replace"]["yaml_file"] - resource_names.append(template) - except (TypeError, KeyError): - continue - - if not resource_names: - pytest.skip("No resource names could be detected") - - assert len(resource_names) == len(set(resource_names)) diff --git a/ice_validator/tests/test_unique_name_str_replace_use_params_in_tmpl.py b/ice_validator/tests/test_unique_name_str_replace_use_params_in_tmpl.py deleted file mode 100644 index f7a202d..0000000 --- a/ice_validator/tests/test_unique_name_str_replace_use_params_in_tmpl.py +++ /dev/null @@ -1,79 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -from tests import cached_yaml as yaml -import pytest - - -def test_unique_name_str_replace_use_req_params_in_tmpl(yaml_file): - ''' - Check that all occurences of str_replace uses either vnf_name or - vnf_module_id to construct the name - ''' - with open(yaml_file) as fh: - yml = yaml.load(fh) - - # skip if resources are not defined - if "resources" not in yml: - pytest.skip("No resources specified in the heat template") - - in_template = [] - for v1 in yml["resources"].values(): - if not isinstance(v1, dict): - continue - if "properties" not in v1: - continue - if v1["type"] in ["OS::Nova::Server", "OS::Neutron::Port", - "OS::Heat::ResourceGroup"]: - continue - - try: - v2 = v1["properties"]["name"] - str_replace = v2["str_replace"] - params = str_replace["params"] - template = str_replace["template"] - in_template.append(all(k3 in template for k3 in params)) - except (TypeError, KeyError): - continue - - if not in_template: - pytest.skip("No str_replace instances were detected") - - assert all(c for c in in_template) diff --git a/ice_validator/tests/test_unique_name_str_replace_use_req_params.py b/ice_validator/tests/test_unique_name_str_replace_use_req_params.py index 45369b4..60a0567 100644 --- a/ice_validator/tests/test_unique_name_str_replace_use_req_params.py +++ b/ice_validator/tests/test_unique_name_str_replace_use_req_params.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -41,13 +41,16 @@ from tests import cached_yaml as yaml import pytest +from tests.helpers import validates + +@validates("R-85734") def test_unique_name_str_replace_use_req_params(yaml_file): - ''' + """ Check that all occurences of str_replace uses either vnf_name or vf_module_id to construct the name - ''' - req_params = ['vnf_name', 'vf_module_id'] + """ + req_params = {"vnf_name"} with open(yaml_file) as fh: yml = yaml.load(fh) @@ -56,28 +59,30 @@ def test_unique_name_str_replace_use_req_params(yaml_file): if "resources" not in yml: pytest.skip("No resources specified in the heat template") - has_req_params = [] - for v1 in yml["resources"].values(): + missing_req_params = [] + for r_id, v1 in yml["resources"].items(): if not isinstance(v1, dict): continue if "properties" not in v1: continue - if v1["type"] in ["OS::Nova::Server", "OS::Neutron::Port", - "OS::Heat::ResourceGroup"]: + if v1["type"] in ["OS::Nova::Server"]: continue try: v2 = v1["properties"]["name"] str_replace = v2["str_replace"] - all_params = [] + all_params = set() for v3 in str_replace["params"].values(): - all_params.append(v3["get_param"]) - detected_params = set(all_params) & set(req_params) - has_req_params.append(len(detected_params) > 0) + all_params.add(v3["get_param"]) + if req_params.difference(all_params): + msg = ( + "Resource({}) does not use str_replace " + "and the vnf_name parameter to set " + "the name property" + ).format(r_id) + missing_req_params.append(msg) except (TypeError, KeyError): continue - if not has_req_params: - pytest.skip("No str_replace instances were detected") - assert all(c for c in has_req_params) + assert not missing_req_params, ", ".join(missing_req_params) diff --git a/ice_validator/tests/test_unique_resources_across_all_templates.py b/ice_validator/tests/test_unique_resources_across_all_templates.py index f6a5f3a..f85ec57 100644 --- a/ice_validator/tests/test_unique_resources_across_all_templates.py +++ b/ice_validator/tests/test_unique_resources_across_all_templates.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -39,28 +39,34 @@ # import collections +import os from tests import cached_yaml as yaml from .helpers import validates -@validates('R-16447') +@validates("R-16447") def test_unique_resources_across_all_yaml_files(yaml_files): - ''' + """ Check that all instance names are unique across all yaml files. - ''' - resources_ids = [] + """ + resources_ids = collections.defaultdict(set) for yaml_file in yaml_files: with open(yaml_file) as fh: yml = yaml.load(fh) - if 'resources' not in yml: + if "resources" not in yml: continue - resources_ids.extend(yml['resources'].keys()) + for resource_id in yml["resources"]: + resources_ids[resource_id].add(os.path.split(yaml_file)[1]) - dup_ids = [item - for item, count in collections.Counter(resources_ids).items() - if count > 1] + dup_ids = {r_id: files for r_id, files in resources_ids.items() if len(files) > 1} - assert not dup_ids + msg = "The following resource IDs are duplicated in one or more files: " + errors = [ + "ID ({}) appears in {}.".format(r_id, ", ".join(files)) + for r_id, files in dup_ids.items() + ] + msg += ", ".join(errors) + assert not dup_ids, msg diff --git a/ice_validator/tests/test_unique_resources_across_template.py b/ice_validator/tests/test_unique_resources_across_template.py deleted file mode 100644 index b811cdb..0000000 --- a/ice_validator/tests/test_unique_resources_across_template.py +++ /dev/null @@ -1,68 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -import yaml -import pytest -from .utils import yaml_custom_utils -from yaml.constructor import ConstructorError - - -def test_unique_resources_across_yaml_file(yaml_file): - ''' - Check that all instance names are unique within - a yaml file. - ''' - yaml.add_constructor( - yaml.resolver.BaseResolver.DEFAULT_MAPPING_TAG, - yaml_custom_utils.raise_duplicates_keys) - - try: - with open(yaml_file) as fh: - yaml.load(fh) - - # Assert yaml file dont have resources - # assert len(yml["resources"]) != 0 - - except ConstructorError as ce: - print(ce) - pytest.fail("Unique resources across a yaml file - failed") - except Exception as e: - print(e) - pytest.skip("This yaml file cannot be tested in this test") diff --git a/ice_validator/tests/test_vm_type_case.py b/ice_validator/tests/test_vm_type_case.py new file mode 100644 index 0000000..a7dbdaf --- /dev/null +++ b/ice_validator/tests/test_vm_type_case.py @@ -0,0 +1,129 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START==================================================== +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +# +# ECOMP is a trademark and service mark of AT&T Intellectual Property. +# + +""" +resources: +{vm-type}_{vm-type_index}_{network-role}_port_{port-index}: + type: OS::Neutron::Port + properties: + network: { get_param: ...} + fixed_ips: [ { "ipaddress": { get_param: ... } } ] + binding:vnic_type: direct #only SR-IOV ports, not OVS ports + value_specs: { + vlan_filter: { get_param: ... }, #all NC ports + public_vlans: { get_param: ... }, #all NC ports + private_vlans: { get_param: ... },#all NC ports + guest_vlans: { get_param: ... }, #SR-IOV Trunk Port only + vlan_mirror: { get_param: ... }, #SRIOV Trunk Port + # Receiving Mirrored Traffic only + ATT_FABRIC_CONFIGURATION_REQUIRED: true #all NC ports + } + metadata: + port_type: SR-IOV_Trunk #SR-IOV Trunk Port + port_type: SR-IOV_Non_Trunk #SR-IOV Non Trunk Port + port_type: OVS #OVS Port + port_type: SR-IOV_Mirrored_Trunk #SR-IOV Trunk Port + # Receiving Mirrored Traffic +""" + +import collections +import re + +import pytest + +from .structures import Heat +from .helpers import validates + +VERSION = "1.2.0" + + +def case_mismatch(vm_type, param): + """Return True if vm_type matches a portion of param in a case + insensitive search, but does not equal that portion; + return False otherwise. + The "portions" of param are delimited by "_". + """ + re_portion = re.compile( + "(^(%(x)s)_)|(_(%(x)s)_)|(_(%(x)s)$)" % dict(x=vm_type), re.IGNORECASE + ) + found = re_portion.search(param) + if found: + param_vm_type = [x for x in found.groups()[1::2] if x][0] + return param_vm_type != vm_type + else: + return False + + +# pylint: disable=invalid-name + + +@validates("R-32394") +def test_vm_type_case(heat_template): + """ + A VNF's Heat Orchestration Template's use of ``{vm-type}`` in all Resource + property parameter names **MUST** be the same case. + """ + heat = Heat(filepath=heat_template) + resources = heat.resources + if not resources: + pytest.skip("No resources found") + bad = collections.defaultdict(list) + for rid, resource in resources.items(): + vm_type = heat.get_vm_type(rid, resource=resource) + if vm_type: + properties = resource.get("properties") + if isinstance(properties, dict): + for prop, dic in properties.items(): + param = heat.nested_get(dic, "get_param") + if isinstance(param, list): + param = param[0] + if isinstance(param, str) and case_mismatch(vm_type, param): + bad[(rid, vm_type)].append((prop, param)) + if bad: + raise AssertionError( + "vm-type/parameter case mis-match %s" + % ( + "; ".join( + "resource: %s vm-type: %s %s" + % (k[0], k[1], ", ".join("%s: %s" % i for i in v)) + for k, v in bad.items() + ) + ) + ) diff --git a/ice_validator/tests/test_vm_type_resource_id.py b/ice_validator/tests/test_vm_type_resource_id.py index beb6745..2a0150c 100644 --- a/ice_validator/tests/test_vm_type_resource_id.py +++ b/ice_validator/tests/test_vm_type_resource_id.py @@ -38,8 +38,8 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -'''vm-type resource_id -''' +"""vm-type resource_id +""" import pytest @@ -47,29 +47,28 @@ from .structures import Heat from .helpers import validates from .utils import vm_types as utils_vm_types -VERSION = '1.1.0' +VERSION = "1.1.0" -@validates('R-46839') +@validates("R-46839") def test_vm_type_resource_id(heat_template): - ''' + """ A VNF's Heat Orchestration Template's use of ``{vm-type}`` in all Resource IDs **MUST** be the same case. - ''' + """ bad = {} h = Heat(filepath=heat_template) if not h.resources: pytest.skip("No resources specified in the heat template") - vm_types = {v + '_': v.lower() + '_' - for v in utils_vm_types.get_vm_types(h.resources)} + vm_types = { + v + "_": v.lower() + "_" for v in utils_vm_types.get_vm_types(h.resources) + } if not vm_types: pytest.skip("No {vm-type} specified in the heat template") for rid in h.resources: lower_rid = rid.lower() for vm_type, lower_vm_type in vm_types.items(): - if (lower_rid.startswith(lower_vm_type) - and not rid.startswith(vm_type)): - bad[rid] = vm_type - assert not bad, 'resource_id which do not match their vm-type %s' % bad - + if lower_rid.startswith(lower_vm_type) and not rid.startswith(vm_type): + bad[rid] = vm_type + assert not bad, "resource_id which do not match their vm-type %s" % bad diff --git a/ice_validator/tests/test_vm_type_syntax.py b/ice_validator/tests/test_vm_type_syntax.py index b2455c2..0a096b1 100644 --- a/ice_validator/tests/test_vm_type_syntax.py +++ b/ice_validator/tests/test_vm_type_syntax.py @@ -38,8 +38,8 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -'''vm-type syntax -''' +"""vm-type syntax +""" import re @@ -49,27 +49,25 @@ from .structures import Heat from .helpers import validates from .utils import vm_types -VERSION = '1.0.0' +VERSION = "1.0.0" -RE_VM_TYPE = re.compile(r'[\w\d_]+$') -RE_VM_TYPE_NG = re.compile(r'.*_int|_?int_.*$') +RE_VM_TYPE = re.compile(r"[\w\d_]+$") +RE_VM_TYPE_NG = re.compile(r".*_int|_?int_.*$") -@validates('R-98407') +@validates("R-98407") def test_vm_type_syntax(heat_template): - ''' + """ A VNF's Heat Orchestration Template's ``{vm-type}`` **MUST** contain only alphanumeric characters and/or underscores '_' and **MUST NOT** contain any of the following strings: ``_int`` or ``int_`` or ``_int_``. - ''' + """ v = Heat(filepath=heat_template) if not v.resources: pytest.skip("No resources") t = set() - t.update(*[vm_types.get_vm_types_for_resource(r) - for r in v.resources.values()]) + t.update(*[vm_types.get_vm_types_for_resource(r) for r in v.resources.values()]) bad = [x for x in t if not RE_VM_TYPE.match(x) or RE_VM_TYPE_NG.match(x)] - assert not bad, 'bad vm-types %s' % bad - + assert not bad, "bad vm-types %s" % bad diff --git a/ice_validator/tests/test_volume_format_outputs.py b/ice_validator/tests/test_volume_format_outputs.py deleted file mode 100644 index 8be3723..0000000 --- a/ice_validator/tests/test_volume_format_outputs.py +++ /dev/null @@ -1,69 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -from tests import cached_yaml as yaml -import pytest - - -def test_volume_format_outputs(volume_template): - ''' - Check that the values are properly provided to the outputs section - in a volume template - ''' - with open(volume_template) as fh: - yml = yaml.load(fh) - - # skip if resources are not defined - if "outputs" not in yml: - pytest.skip("No outputs specified in the volume template") - - # Retrieve the volume category parameters usage - invalid_outputs = [] - for k, v in yml['outputs'].items(): - if not isinstance(v, dict): - continue - - if ('value' in v and - ('get_resource' in v['value'] or - 'get_attr' in v['value'])): - continue - invalid_outputs.append(k) - - assert not set(invalid_outputs) diff --git a/ice_validator/tests/test_volume_module_naming.py b/ice_validator/tests/test_volume_module_naming.py new file mode 100644 index 0000000..770ad26 --- /dev/null +++ b/ice_validator/tests/test_volume_module_naming.py @@ -0,0 +1,79 @@ +# -*- coding: utf8 -*- +# ============LICENSE_START======================================================= +# org.onap.vvp/validation-scripts +# =================================================================== +# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# =================================================================== +# +# Unless otherwise specified, all software contained herein is licensed +# under the Apache License, Version 2.0 (the "License"); +# you may not use this software except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +# +# Unless otherwise specified, all documentation contained herein is licensed +# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); +# you may not use this documentation except in compliance with the License. +# You may obtain a copy of the License at +# +# https://creativecommons.org/licenses/by/4.0/ +# +# Unless required by applicable law or agreed to in writing, documentation +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# ============LICENSE_END============================================ +import os + +from tests.parametrizers import get_nested_files +from tests.structures import Heat, Resource + + +def non_nested_files(filenames): + nested_files = get_nested_files(filenames) + return set(filenames).difference(set(nested_files)) + + +# No requirement ID yet available +def test_detected_volume_module_follows_naming_convention(template_dir): + all_files = [os.path.join(template_dir, f) for f in os.listdir(template_dir)] + yaml_files = [f for f in all_files if f.endswith(".yaml") or f.endswith(".yml")] + errors = [] + for yaml_file in non_nested_files(yaml_files): + heat = Heat(filepath=yaml_file) + if not heat.resources: + continue + base_dir, filename = os.path.split(yaml_file) + resources = heat.get_all_resources(base_dir) + non_nested_ids = { + r_id + for r_id, r_data in resources.items() + if not Resource(r_id, r_data).is_nested() + } + volume_ids = { + r_id + for r_id, r_data in resources.items() + if Resource(r_id, r_data).resource_type == "OS::Cinder::Volume" + } + non_volume_ids = non_nested_ids.difference(volume_ids) + if non_volume_ids: + continue # Not a volume module + base_name, ext = os.path.splitext(filename) + if not base_name.endswith("_volume") or ext not in (".yaml", ".yml"): + errors.append(yaml_file) + msg = ( + "Volume modules detected, but they do not follow the expected " + + " naming convention {{module_name}}_volume.[yaml|yml]: {}" + ).format(", ".join(errors)) + assert not errors, msg diff --git a/ice_validator/tests/test_volume_outputs_consumed.py b/ice_validator/tests/test_volume_outputs_consumed.py index 575e5dc..cad1e7e 100644 --- a/ice_validator/tests/test_volume_outputs_consumed.py +++ b/ice_validator/tests/test_volume_outputs_consumed.py @@ -46,20 +46,36 @@ from tests import cached_yaml as yaml from .helpers import validates -def expected_template_module_pair(volume_path): - """Returns the path to the expected base or incremental module for a given volume""" - base_dir, filename = os.path.split(volume_path) - return os.path.join(base_dir, filename.replace("_volume", "")) +class VolumePairModule: + def __init__(self, volume_path): + self.volume_path = volume_path + + @property + def path_options(self): + expected_path, _ = self.volume_path.rsplit("_volume", maxsplit=1) + return (expected_path + ".yaml", expected_path + ".yml") + + @property + def exists(self): + return any(os.path.exists(option) for option in self.path_options) + + def get_module_path(self): + """ + Return the path of the volume module's pair if it exists, + otherwise None + """ + for option in self.path_options: + if os.path.exists(option): + return option + return None @validates("R-82732") def test_volume_module_name_matches_incremental_or_base_module(volume_template): - expected_template_name = expected_template_module_pair(volume_template) - assert os.path.exists( - expected_template_name - ), "Could not find corresponding module ({}) for volume module ({}".format( - expected_template_name, volume_template - ) + pair_module = VolumePairModule(volume_template) + assert pair_module.exists, ( + "Could not find a corresponding module ({}) for " + "volume module ({})" + ).format(" or ".join(pair_module.path_options), volume_template) @validates("R-11200", "R-07443") @@ -68,15 +84,12 @@ def test_volume_outputs_consumed(template_dir, volume_template): Check that all outputs in a volume template is consumed by the corresponding heat template """ - pair_template = expected_template_module_pair(volume_template) - - # Make sure all the output parameters in the volume module are - # consumed by the expected base or incremental module - if not os.path.exists(pair_template): - pytest.skip("Expected pair module not found") + pair_module = VolumePairModule(volume_template) + if not pair_module.exists: + pytest.skip("No pair module found for volume template") with open(volume_template, "r") as f: volume = yaml.load(f) - with open(pair_template, "r") as f: + with open(pair_module.get_module_path(), "r") as f: pair = yaml.load(f) outputs = set(volume.get("outputs", {}).keys()) parameters = set(pair.get("parameters", {}).keys()) @@ -84,16 +97,16 @@ def test_volume_outputs_consumed(template_dir, volume_template): assert not missing_output_parameters, ( "The output parameters ({}) in {} were not all " "used by the expected module {}".format( - ",".join(missing_output_parameters), volume_template, pair_template + ",".join(missing_output_parameters), volume_template, pair_module ) ) # Now make sure that none of the output parameters appear in any other # template - template_files = set(glob.glob("*.yaml")) + template_files = set(glob.glob("*.yaml")).union(glob.glob(".yml")) errors = {} for template_path in template_files: - if template_path in (pair_template, volume_template): + if template_path in (pair_module, volume_template): continue # Skip these files since we already checked this pair with open(template_path, "r") as f: template = yaml.load(f) @@ -104,5 +117,6 @@ def test_volume_outputs_consumed(template_dir, volume_template): message = ", ".join( "{} ({})".format(path, ", ".join(params)) for path, params in errors.items() ) - assert not errors, "Volume output parameters detected in unexpected modules: " + \ - message + assert not errors, ( + "Volume output parameters detected in unexpected modules: " + message + ) diff --git a/ice_validator/tests/test_volume_resource_ids.py b/ice_validator/tests/test_volume_resource_ids.py index 9f0d176..dc5ed7d 100644 --- a/ice_validator/tests/test_volume_resource_ids.py +++ b/ice_validator/tests/test_volume_resource_ids.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -47,11 +47,11 @@ from .utils.vm_types import get_vm_type_for_nova_server def test_volume_resource_ids(heat_template): - ''' + """ Check that all resource ids for cinder volumes follow the right naming convention to include the {vm_type} of the nova server it is associated to - ''' + """ with open(heat_template) as fh: yml = yaml.load(fh) @@ -59,25 +59,24 @@ def test_volume_resource_ids(heat_template): if "resources" not in yml: pytest.skip("No resources specified in the heat template") - volume_pattern = re.compile(r'(.+?)_volume_id_\d+') - resources = yml['resources'] + volume_pattern = re.compile(r"(.+?)_volume_id_\d+") + resources = yml["resources"] invalid_volumes = [] for k, v in resources.items(): if not isinstance(v, dict): continue - if 'type' not in v: + if "type" not in v: continue - if v['type'] not in ['OS::Nova::Server', - 'OS::Cinder::VolumeAttachment']: + if v["type"] not in ["OS::Nova::Server", "OS::Cinder::VolumeAttachment"]: continue - if v['type'] == 'OS::Nova::Server': + if v["type"] == "OS::Nova::Server": # check block_device_mapping and make sure the right # {vm_type} is used - if 'properties' not in v: + if "properties" not in v: continue - if 'block_device_mapping' not in v['properties']: + if "block_device_mapping" not in v["properties"]: continue vm_type = get_vm_type_for_nova_server(v) @@ -86,17 +85,15 @@ def test_volume_resource_ids(heat_template): vm_type = vm_type.lower() # get the volume_id from the block_device_mapping - properties = v['properties'] - for v2 in properties['block_device_mapping']: + properties = v["properties"] + for v2 in properties["block_device_mapping"]: for k3, v3 in v2.items(): - if k3 != 'volume_id': + if k3 != "volume_id": continue if not isinstance(v3, dict): continue - volume_id = ( - v3.get('get_param') or - v3.get('get_resource')) + volume_id = v3.get("get_param") or v3.get("get_resource") if not volume_id: continue if isinstance(volume_id, list): @@ -107,27 +104,27 @@ def test_volume_resource_ids(heat_template): if vm_type + "_" not in volume_id: invalid_volumes.append(volume_id) - elif v['type'] == 'OS::Cinder::VolumeAttachment': + elif v["type"] == "OS::Cinder::VolumeAttachment": # check the volume attachment and the {vm_type} # of the corresponding nova server - if 'properties' not in v: + if "properties" not in v: continue - if 'volume_id' not in v['properties']: + if "volume_id" not in v["properties"]: continue - if 'instance_uuid' not in v['properties']: + if "instance_uuid" not in v["properties"]: continue - properties = v['properties'] + properties = v["properties"] # get the instance_uuid and when applicable # the nova server instance instance_uuid = None nova_server = None - if 'get_param' in properties['instance_uuid']: + if "get_param" in properties["instance_uuid"]: continue - elif 'get_resource' in properties['instance_uuid']: - instance_uuid = properties['instance_uuid']['get_resource'] + elif "get_resource" in properties["instance_uuid"]: + instance_uuid = properties["instance_uuid"]["get_resource"] if not resources[instance_uuid]: continue nova_server = resources[instance_uuid] @@ -137,9 +134,9 @@ def test_volume_resource_ids(heat_template): # get the volume_id volume_id = None - volume_id = ( - properties['volume_id'].get('get_param') or - properties['volume_id'].get('get_resource')) + volume_id = properties["volume_id"].get("get_param") or properties[ + "volume_id" + ].get("get_resource") if not volume_id: continue if isinstance(volume_id, list): @@ -169,4 +166,7 @@ def test_volume_resource_ids(heat_template): else: continue - assert not set(invalid_volumes) + msg = "The following volumes have invalid resource IDs: {}".format( + ", ".join(invalid_volumes) + ) + assert not set(invalid_volumes), msg diff --git a/ice_validator/tests/test_volume_templates.py b/ice_validator/tests/test_volume_templates.py index 6d2a44c..bb358d5 100644 --- a/ice_validator/tests/test_volume_templates.py +++ b/ice_validator/tests/test_volume_templates.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -37,16 +37,23 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # - from tests import cached_yaml as yaml + +from .helpers import validates +from .utils.nested_files import get_list_of_nested_files + +import os import pytest -def test_volume_templates_only_contains_cinder(volume_template): - ''' +@validates("R-270358") +def test_volume_templates_contains_cinder_or_resource_group(volume_template): + """ Check that all templates marked as volume templates are in fact volume templates - ''' + """ + acceptable_resources = [] + with open(volume_template) as fh: yml = yaml.load(fh) @@ -54,14 +61,43 @@ def test_volume_templates_only_contains_cinder(volume_template): if "resources" not in yml: pytest.skip("No resources specified in the heat template") - non_volumes = [] - for k, v in yml["resources"].items(): - if not isinstance(v, dict): - continue - if "type" not in v: - continue - if v["type"] not in ["OS::Cinder::Volume", - "OS::Heat::ResourceGroup"]: - non_volumes.append(k) - - assert not set(non_volumes) + dirname = os.path.dirname(volume_template) + list_of_files = get_list_of_nested_files(yml, dirname) + + list_of_files.append(volume_template) + + for file in list_of_files: + with open(file) as fh: + yml = yaml.load(fh) + + for k, v in yml["resources"].items(): + if not isinstance(v, dict): + continue + if "type" not in v: + continue + if v["type"] in ["OS::Cinder::Volume", "OS::Heat::ResourceGroup"]: + acceptable_resources.append(k) + + assert acceptable_resources, ( + "No OS::Cinder::Volume or OS::Heat::ResourceGroup resources " + "found in volume module" + ) + + +@validates("R-55306") +def test_no_vf_module_index_in_cinder(volume_template): + """ + vf_module_index is prohibited in volume templates + """ + + with open(volume_template) as fh: + yml = yaml.load(fh) + + if "parameters" not in yml: + pytest.skip("No parameters specified in the heat template") + + parameters = yml.get("parameters") + if parameters and isinstance(parameters, dict): + assert ( + "vf_module_index" not in parameters + ), "{} must not use vf_module_index as a parameter".format(volume_template) diff --git a/ice_validator/tests/test_volume_templates_outputs.py b/ice_validator/tests/test_volume_templates_outputs.py index 1a779c6..19fd1e9 100644 --- a/ice_validator/tests/test_volume_templates_outputs.py +++ b/ice_validator/tests/test_volume_templates_outputs.py @@ -2,7 +2,7 @@ # ============LICENSE_START======================================================= # org.onap.vvp/validation-scripts # =================================================================== -# Copyright © 2018 AT&T Intellectual Property. All rights reserved. +# Copyright © 2017 AT&T Intellectual Property. All rights reserved. # =================================================================== # # Unless otherwise specified, all software contained herein is licensed @@ -37,14 +37,51 @@ # # ECOMP is a trademark and service mark of AT&T Intellectual Property. # +import pytest from tests import cached_yaml as yaml +from .helpers import validates +@validates("R-89913") def test_volume_templates_contains_outputs(volume_template): - ''' + """ Check that all volume templates include outputs - ''' + """ with open(volume_template) as fh: yml = yaml.load(fh) - assert "outputs" in yml + + resources = yml.get("resources") + volume_resources = [] + invalid_resource_ids = [] + output_resources = [] + + if not resources: + pytest.skip("No resources detected in template") + + for rid, rprop in resources.items(): + rtype = rprop.get("type") + if not rtype: + continue + if rtype == "OS::Cinder::Volume": + volume_resources.append(rid) + + outputs = yml.get("outputs") + if not outputs: + pytest.fail("No outputs detected in volume template") + + for k1, v1 in outputs.items(): + output_value = v1.get("value", {}).get("get_resource") + if not output_value: + continue + output_resources.append(output_value) + + for rid in volume_resources: + if rid not in output_resources: + invalid_resource_ids.append(rid) + + assert ( + not invalid_resource_ids + ), "volumes resource IDs not found in outputs of volume module {}".format( + invalid_resource_ids + ) diff --git a/ice_validator/tests/test_volume_templates_outputs_resources.py b/ice_validator/tests/test_volume_templates_outputs_resources.py deleted file mode 100644 index d3cec1e..0000000 --- a/ice_validator/tests/test_volume_templates_outputs_resources.py +++ /dev/null @@ -1,80 +0,0 @@ -# -*- coding: utf8 -*- -# ============LICENSE_START======================================================= -# org.onap.vvp/validation-scripts -# =================================================================== -# Copyright © 2017 AT&T Intellectual Property. All rights reserved. -# =================================================================== -# -# Unless otherwise specified, all software contained herein is licensed -# under the Apache License, Version 2.0 (the "License"); -# you may not use this software except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# -# -# Unless otherwise specified, all documentation contained herein is licensed -# under the Creative Commons License, Attribution 4.0 Intl. (the "License"); -# you may not use this documentation except in compliance with the License. -# You may obtain a copy of the License at -# -# https://creativecommons.org/licenses/by/4.0/ -# -# Unless required by applicable law or agreed to in writing, documentation -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -# ============LICENSE_END============================================ -# -# ECOMP is a trademark and service mark of AT&T Intellectual Property. -# - -from tests import cached_yaml as yaml -import pytest -from .utils.nested_iterables import find_all_get_resource_in_yml - - -def test_volume_templates_outputs_match_resources(volume_template): - ''' - Check that all referenced resources in the outputs of a volume - template actually exists - ''' - with open(volume_template) as fh: - yml = yaml.load(fh) - - # skip if resources are not defined - if "resources" not in yml: - pytest.skip("No resources specified in the volume template") - - # skip if outputs are not defined - if "outputs" not in yml: - pytest.skip("No outputs specified in the volume template") - - referenced_resources = find_all_get_resource_in_yml(yml['outputs']) - - invalid_get_attr = [] - for k, v in yml['outputs'].items(): - if 'value' not in v: - continue - if 'get_attr' not in v['value']: - continue - if not isinstance(v['value']['get_attr'], list): - continue - - for v1 in v['value']['get_attr']: - if v1 in yml['resources']: - break - else: - invalid_get_attr.append(k) - - assert (set(referenced_resources) <= set(yml["resources"]) and - not invalid_get_attr) diff --git a/ice_validator/tests/utils/nested_dict.py b/ice_validator/tests/utils/nested_dict.py index 24f7e5e..692ef5f 100644 --- a/ice_validator/tests/utils/nested_dict.py +++ b/ice_validator/tests/utils/nested_dict.py @@ -38,28 +38,30 @@ # ECOMP is a trademark and service mark of AT&T Intellectual Property. # -'''nested_dict.get -''' +"""nested_dict.get +""" -VERSION = '1.0.0' +VERSION = "1.1.1" -def get(dic, *keys): - '''Return the value of the last key given a (nested) dict - and list of keys. If any key is missing, or if the value - of any key except the last is not a dict, then None is returned. - ''' +def get(dic, *keys, **kwargs): + """Return the value of the last key given a (nested) dict and + list of keys. If any key is missing, or if the value of any key + except the last is not a dict, then the default value is returned. + The default value may be passed in using the keyword 'default=', + otherwise the default value is None. + """ d = dic + default = kwargs.get("default", None) for key in keys: - if hasattr(d, 'get'): - d = d.get(key) + if hasattr(d, "get"): + d = d.get(key, default) else: - return None + return default return d def is_dict_has_key(obj, key): - '''return True/False `obj` is a dict and has `key` - ''' + """return True/False `obj` is a dict and has `key` + """ return isinstance(obj, dict) and key in obj - diff --git a/ice_validator/tests/utils/nested_files.py b/ice_validator/tests/utils/nested_files.py index c551646..aff5a6b 100644 --- a/ice_validator/tests/utils/nested_files.py +++ b/ice_validator/tests/utils/nested_files.py @@ -44,16 +44,77 @@ from os import path import re from tests import cached_yaml as yaml +from tests.structures import Heat -VERSION = '1.0.2' +VERSION = "1.4.0" + +""" +test nesting depth +0 -> 1 -> 2 -> too deep. +""" +MAX_DEPTH = 3 + + +def check_for_invalid_nesting( # pylint: disable=too-many-branches + yml, yaml_file, dirpath +): + """ + return a list of all nested files + """ + if not hasattr(yml, "items"): + return [] + invalid_nesting = [] + p = re.compile("^[A-z]*::[A-z]*::[A-z]*$") + + for v in yml.values(): + if isinstance(v, dict) and "type" in v: + t = v["type"] + if t.endswith(".yml") or t.endswith(".yaml"): + filepath = path.join(dirpath, t) + elif t == "OS::Heat::ResourceGroup": + rd = v["properties"]["resource_def"] + if not isinstance(rd, dict) or "type" not in rd: + invalid_nesting.append(yaml_file) + continue + elif not p.match(rd["type"]): + filepath = path.join(dirpath, rd["type"]) + else: + continue + else: + continue + try: + with open(filepath) as fh: + yml = yaml.load(fh) + except yaml.YAMLError as e: + invalid_nesting.append(filepath) + print(e) # pylint: disable=superfluous-parens + invalid_nesting.extend(check_for_invalid_nesting(yml, filepath, dirpath)) + if isinstance(v, dict): + invalid_nesting.extend(check_for_invalid_nesting(v, yaml_file, dirpath)) + elif isinstance(v, list): + for d in v: + invalid_nesting.extend(check_for_invalid_nesting(d, yaml_file, dirpath)) + return invalid_nesting + + +def get_dict_of_nested_files(yml, dirpath): + """Return dict. + key: resource id in yml which references a nested file. + value: the nested file name. + Nested files are either referenced through "type", or + for OS::Heat::ResourceGroup, through "resource_def type". + """ + nested_files = get_type_nested_files(yml, dirpath) + nested_files.update(get_resourcegroup_nested_files(yml, dirpath)) + return nested_files def get_list_of_nested_files(yml, dirpath): - ''' + """ return a list of all nested files - ''' + """ - if not hasattr(yml, 'items'): + if not hasattr(yml, "items"): return [] nested_files = [] @@ -69,72 +130,132 @@ def get_list_of_nested_files(yml, dirpath): nested_files.append(filepath) nested_files.extend(get_list_of_nested_files(t_yml, dirpath)) elif t == "OS::Heat::ResourceGroup": - rdt = (v.get("properties", {}) - .get("resource_def", {}) - .get("type", None)) + rdt = v.get("properties", {}).get("resource_def", {}).get("type", None) if rdt and (rdt.endswith(".yml") or rdt.endswith(".yaml")): filepath = path.join(dirpath, rdt) if path.exists(filepath): with open(filepath) as fh: rdt_yml = yaml.load(fh) nested_files.append(filepath) - nested_files.extend( - get_list_of_nested_files(rdt_yml, dirpath)) + nested_files.extend(get_list_of_nested_files(rdt_yml, dirpath)) if isinstance(v, dict): - nested_files.extend( - get_list_of_nested_files(v, dirpath)) + nested_files.extend(get_list_of_nested_files(v, dirpath)) elif isinstance(v, list): for d in v: - nested_files.extend( - get_list_of_nested_files(d, dirpath)) + nested_files.extend(get_list_of_nested_files(d, dirpath)) return nested_files -def check_for_invalid_nesting(yml, yaml_file, dirpath): - ''' - return a list of all nested files - ''' - if not hasattr(yml, 'items'): - return [] - invalid_nesting = [] - p = re.compile('^[A-z]*::[A-z]*::[A-z]*$') +def get_nesting(yaml_files): + """return bad, files, heat, depths + bad - list of error messages. + files - dict: key is filename, value is dict of nested files. + This is the tree. + heat - dict,: key is filename, value is Heat instance. + depths - dict: key is filename, value is a depth tuple - for v in yml.values(): - if isinstance(v, dict) and "type" in v: - t = v["type"] - if t.endswith(".yml") or t.endswith(".yaml"): - filepath = path.join(dirpath, t) - elif t == "OS::Heat::ResourceGroup": - rd = v["properties"]["resource_def"] - if not isinstance(rd, dict) or "type" not in rd: - invalid_nesting.append(yaml_file) - continue - elif not p.match(rd["type"]): - filepath = path.join(dirpath, rd["type"]) - else: - continue - else: - continue - try: - with open(filepath) as fh: - yml = yaml.load(fh) - except yaml.YAMLError as e: - invalid_nesting.append(filepath) - print(e) # pylint: disable=superfluous-parens - invalid_nesting.extend(check_for_invalid_nesting( - yml, - filepath, - dirpath)) - if isinstance(v, dict): - invalid_nesting.extend(check_for_invalid_nesting( - v, - yaml_file, - dirpath)) - elif isinstance(v, list): - for d in v: - invalid_nesting.extend(check_for_invalid_nesting( - d, - yaml_file, - dirpath)) - return invalid_nesting + level: 0 1 2 3 + file: template -> nested -> nested -> nested + depth: 3 2 1 0 + """ + bad = [] + files = {} + heat = {} + depths = {} + for yaml_file in yaml_files: + dirname, basename = path.split(yaml_file) + h = Heat(filepath=yaml_file) + heat[basename] = h + files[basename] = get_dict_of_nested_files(h.yml, dirname) + for filename in files: + depths[filename] = _get_nesting_depth_start(0, filename, files, []) + for depth in depths[filename]: + if depth[0] > MAX_DEPTH: + bad.append("{} {}".format(filename, str(depth[1]))) + return bad, files, heat, depths + + +def _get_nesting_depth_start(depth, filename, files, context): + depths = [] + for rid, nf in files[filename].items(): + depths.append(_get_nesting_depth(1, nf, files, context)) + return depths + + +def _get_nesting_depth(depth, filename, files, context): + """Return a depth tuple (max_depth, current_context). + `context` is the list of filenames. + `depth` is the length of `context`. + Finds the max_depth of all the resources of `filename`. + current_context is the updated list of filenames + and max_depth is its length. + """ + max_depth = depth + 1 + current_context = context + [filename] + if depth <= MAX_DEPTH: + nested_filenames = files.get(filename, {}) + if nested_filenames: + max_depth, current_context = max( + _get_nesting_depth(depth + 1, nested_filename, files, current_context) + for nested_filename in nested_filenames.values() + ) + return max_depth, current_context + +def get_resourcegroup_nested_files(yml, dirpath): + """ + return a dict. + key: key in yml which references a nested ResourceGroup file. + (resource->type is ResourceGroup + and resource->properties->resource_def->type is a yaml file) + value: the nested file name. + + The keys are assumed to be unique across files. + A separate test checks for that. + """ + + if not hasattr(yml, "get"): + return {} + + nested_files = {} + for rid, r in yml.get("resources", {}).items(): + if isinstance(r, dict) and "type" in r: + t = r["type"] + nested_file = None + if t == "OS::Heat::ResourceGroup": + rdt = r.get("properties", {}).get("resource_def", {}).get("type", None) + if rdt and (rdt.endswith(".yml") or rdt.endswith(".yaml")): + nested_file = rdt + if nested_file: + filepath = path.join(dirpath, nested_file) + if path.exists(filepath): + nested_files[rid] = nested_file + return nested_files + + +def get_type_nested_files(yml, dirpath): + """ + return a dict. + key: key in yml which references a nested type file. + (the resource "type" is a yaml file.) + value: the nested file name. + + The keys are assumed to be unique across files. + A separate test checks for that. + """ + + if not hasattr(yml, "get"): + return {} + + nested_files = {} + for rid, r in yml.get("resources", {}).items(): + if isinstance(r, dict) and "type" in r: + t = r["type"] + nested_file = None + if t.endswith(".yml") or t.endswith(".yaml"): + nested_file = t + if nested_file: + filepath = path.join(dirpath, nested_file) + if path.exists(filepath): + nested_files[rid] = nested_file + return nested_files diff --git a/ice_validator/tests/utils/nested_iterables.py b/ice_validator/tests/utils/nested_iterables.py index b6deaba..0768339 100644 --- a/ice_validator/tests/utils/nested_iterables.py +++ b/ice_validator/tests/utils/nested_iterables.py @@ -40,10 +40,10 @@ def parse_nested_dict(d, key=""): - ''' + """ parse the nested dictionary and return values of given key of function parameter only - ''' + """ nested_elements = [] for k, v in d.items(): if isinstance(v, dict): @@ -60,29 +60,27 @@ def parse_nested_dict(d, key=""): def find_all_get_param_in_yml(yml): - ''' + """ Recursively find all referenced parameters in a parsed yaml body and return a list of parameters - ''' - os_pseudo_parameters = ['OS::stack_name', - 'OS::stack_id', - 'OS::project_id'] + """ + os_pseudo_parameters = ["OS::stack_name", "OS::stack_id", "OS::project_id"] - if not hasattr(yml, 'items'): + if not hasattr(yml, "items"): return [] params = [] for k, v in yml.items(): - if k == 'get_param' and v not in os_pseudo_parameters: + if k == "get_param" and v not in os_pseudo_parameters: if isinstance(v, list) and not isinstance(v[0], dict): params.append(v[0]) elif not isinstance(v, dict) and isinstance(v, str): params.append(v) - for item in (v if isinstance(v, list) else [v]): + for item in v if isinstance(v, list) else [v]: if isinstance(item, dict): params.extend(find_all_get_param_in_yml(item)) continue - elif k == 'list_join': - for item in (v if isinstance(v, list) else [v]): + elif k == "list_join": + for item in v if isinstance(v, list) else [v]: if isinstance(item, list): for d in item: params.extend(find_all_get_param_in_yml(d)) @@ -96,15 +94,15 @@ def find_all_get_param_in_yml(yml): def find_all_get_resource_in_yml(yml): - ''' + """ Recursively find all referenced resources in a parsed yaml body and return a list of resource ids - ''' - if not hasattr(yml, 'items'): + """ + if not hasattr(yml, "items"): return [] resources = [] for k, v in yml.items(): - if k == 'get_resource': + if k == "get_resource": if isinstance(v, list): resources.append(v[0]) else: @@ -119,15 +117,15 @@ def find_all_get_resource_in_yml(yml): def find_all_get_file_in_yml(yml): - ''' + """ Recursively find all get_file in a parsed yaml body and return the list of referenced files/urls - ''' - if not hasattr(yml, 'items'): + """ + if not hasattr(yml, "items"): return [] resources = [] for k, v in yml.items(): - if k == 'get_file': + if k == "get_file": if isinstance(v, list): resources.append(v[0]) else: @@ -142,37 +140,35 @@ def find_all_get_file_in_yml(yml): def find_all_get_resource_in_resource(resource): - ''' + """ Recursively find all referenced resources in a heat resource and return a list of resource ids - ''' - if not hasattr(resource, 'items'): + """ + if not hasattr(resource, "items"): return [] resources = [] for k, v in resource.items(): - if k == 'get_resource': + if k == "get_resource": if isinstance(v, list): resources.append(v[0]) else: resources.append(v) continue if isinstance(v, dict): - resources.extend( - find_all_get_resource_in_resource(v)) + resources.extend(find_all_get_resource_in_resource(v)) elif isinstance(v, list): for d in v: - resources.extend( - find_all_get_resource_in_resource(d)) + resources.extend(find_all_get_resource_in_resource(d)) return resources def get_associated_resources_per_resource(resources): - ''' + """ Recursively find all referenced resources for each resource in a list of resource ids - ''' - if not hasattr(resources, 'items'): + """ + if not hasattr(resources, "items"): return None resources_dict = {} @@ -183,8 +179,7 @@ def get_associated_resources_per_resource(resources): get_resources = [] for k, v in res_value: - if k == 'get_resource' and\ - isinstance(v, dict): + if k == "get_resource" and isinstance(v, dict): get_resources = find_all_get_resource_in_resource(v) # if resources found, add to dict @@ -201,9 +196,9 @@ def get_associated_resources_per_resource(resources): def flatten(items): - ''' + """ flatten items from any nested iterable - ''' + """ merged_list = [] for item in items: diff --git a/ice_validator/tests/utils/network_roles.py b/ice_validator/tests/utils/network_roles.py index bed3a5a..ffb9870 100644 --- a/ice_validator/tests/utils/network_roles.py +++ b/ice_validator/tests/utils/network_roles.py @@ -41,111 +41,114 @@ import re import socket - -def get_network_role_from_port(resource): - ''' - get the network role from a neutron port resource - ''' +PARAM_FORMATS = [ + ["network", "string", "internal", re.compile(r"int_(.+?)_net_id")], + ["network", "string", "internal", re.compile(r"int_(.+?)_net_name")], + ["network", "string", "external", re.compile(r"(.+?)_net_id")], + ["network", "string", "external", re.compile(r"(.+?)_net_name")], +] + +RESOURCE_FORMATS = [ + re.compile(r"int_(.+?)_network"), # OS::ContrailV2::VirtualNetwork + re.compile(r"int_(.+?)_RVN"), # OS::ContrailV2::VirtualNetwork + re.compile(r"int_(.+?)"), # OS::Neutron::Net +] + + +def get_network_role_and_type(resource): + """ + Derive the network role and type (internal vs. external) from an + OS::Neutron::Port. + + :param resource: dict of Resource attributes + :return: tuple of (network_role, network_type) where network_type is + 'internal' or 'external'. Returns (None, None) if resource + is not a port or the values cannot be derived. + """ if not isinstance(resource, dict): - return None - if 'type' not in resource: - return None - if resource['type'] != 'OS::Neutron::Port': - return None - if 'properties' not in resource: - return None - - formats = [ - ["network", "string", "internal", - re.compile(r'int_(.+?)_net_id')], - ["network", "string", "internal", - re.compile(r'int_(.+?)_net_name')], - ["network", "string", "external", - re.compile(r'(.+?)_net_id')], - ["network", "string", "external", - re.compile(r'(.+?)_net_name')]] - - for k1, v1 in resource["properties"].items(): - if k1 != 'network': - continue - - # get the network id or name - network = ( - v1.get('get_param') or - v1.get('get_resource')) - if not network: - continue - - for v2 in formats: - m = v2[3].match(network) + return None, None + if resource.get("type", "") != "OS::Neutron::Port": + return None, None + + network_props = resource.get("properties", {}).get("network", {}) + is_resource = "get_resource" in network_props + if is_resource: + network = network_props.get("get_resource", "") + else: + network = network_props.get("get_param", "") + + if is_resource: # connecting to an network in the template + for format in RESOURCE_FORMATS: + m = format.match(network) if m and m.group(1): - return m.group(1) - - return None + return m.group(1), "internal" + else: + for format in PARAM_FORMATS: + m = format[3].match(network) + if m and m.group(1): + return m.group(1), format[2] + return None, None -def get_network_roles(resources): - network_roles = [] +def get_network_role_from_port(resource): + """ + Get the network-role from a OS::Neutron::Port resource. Returns None + if resource is not a port or the network-role cannot be derived + """ + return get_network_role_and_type(resource)[0] + + +def get_network_roles(resources, of_type=""): + """ + Returns the network roles derived from the OS::Neutron::Port resources + in the collection of ``resources``. If ``of_type`` is not specified + then all network roles will be returned, or ``external`` or ``internal`` + can be passed to select only those network roles + + :param resources: collection of resource attributes (dict) + :param of_type: "internal" or "external" + :return: set of network roles discovered + """ + valid_of_type = ("", "external", "internal") + if of_type not in ("", "external", "internal"): + raise RuntimeError("of_type must one of " + ", ".join(valid_of_type)) + network_roles = set() for v in resources.values(): - nr = get_network_role_from_port(v) - if nr: - network_roles.append(nr) - - return set(network_roles) + nr, nt = get_network_role_and_type(v) + if not nr: + continue + if not of_type: + network_roles.add(nr) + elif of_type and of_type == nt: + network_roles.add(nr) + return network_roles def get_network_type_from_port(resource): - ''' - get the network type from a neutron port resource - ''' - if not isinstance(resource, dict): - return None - if 'type' not in resource: - return None - if resource['type'] != 'OS::Neutron::Port': - return None - if 'properties' not in resource: - return None - - formats = [ - ["network", "string", "internal", - re.compile(r'int_(.+?)_net_id')], - ["network", "string", "internal", - re.compile(r'int_(.+?)_net_name')], - ["network", "string", "external", - re.compile(r'(.+?)_net_id')], - ["network", "string", "external", - re.compile(r'(.+?)_net_name')]] - - for k1, v1 in resource["properties"].items(): - if k1 != 'network': - continue - if "get_param" not in v1: - continue - for v2 in formats: - m = v2[3].match(v1["get_param"]) - if m and m.group(1): - return v2[2] - - return None + """ + Get the network-type (internal or external) from an OS::Neutron::Port + resource. Returns None if the resource is not a port or the type + cannot be derived. + """ + return get_network_role_and_type(resource)[1] -def is_valid_ip_address(ip_address, ip_type='ipv4'): - ''' +def is_valid_ip_address(ip_address, ip_type="ipv4"): + """ check if an ip address is valid - ''' - if ip_type == 'ipv4': + """ + if ip_type == "ipv4": return is_valid_ipv4_address(ip_address) - elif ip_type == 'ipv6': + elif ip_type == "ipv6": return is_valid_ipv6_address(ip_address) return False def is_valid_ipv4_address(ip_address): - ''' + """ check if an ip address of the type ipv4 is valid - ''' + """ try: socket.inet_pton(socket.AF_INET, ip_address) except AttributeError: @@ -153,17 +156,17 @@ def is_valid_ipv4_address(ip_address): socket.inet_aton(ip_address) except (OSError, socket.error): return False - return ip_address.count('.') == 3 + return ip_address.count(".") == 3 except (OSError, socket.error): return False return True def is_valid_ipv6_address(ip_address): - ''' + """ check if an ip address of the type ipv6 is valid - ''' + """ try: socket.inet_pton(socket.AF_INET6, ip_address) except (OSError, socket.error): @@ -172,17 +175,17 @@ def is_valid_ipv6_address(ip_address): def property_uses_get_resource(resource, property_name): - ''' + """ returns true if a port's network property uses the get_resource function - ''' + """ if not isinstance(resource, dict): return False - if 'properties' not in resource: + if "properties" not in resource: return False for k1, v1 in resource["properties"].items(): if k1 != property_name: continue - if "get_resource" in v1: + if isinstance(v1, dict) and "get_resource" in v1: return True return False diff --git a/ice_validator/tests/utils/ports.py b/ice_validator/tests/utils/ports.py index a2ae8a9..4029d3c 100644 --- a/ice_validator/tests/utils/ports.py +++ b/ice_validator/tests/utils/ports.py @@ -43,53 +43,96 @@ from .vm_types import get_vm_type_for_nova_server import re -def is_valid_ip_address(ip_address, vm_type, network_role, port_property, parameter_type): - ''' +def is_valid_ip_address( + ip_address, vm_type, network_role, port_property, parameter_type +): + """ Check the ip_address to make sure it is properly formatted and also contains {vm_type} and {network_role} - ''' + """ allowed_formats = [ - ["allowed_address_pairs", "string", "internal", - re.compile(r'(.+?)_int_(.+?)_floating_v6_ip')], - ["allowed_address_pairs", "string", "internal", - re.compile(r'(.+?)_int_(.+?)_floating_ip')], - ["allowed_address_pairs", "string", "external", - re.compile(r'(.+?)_floating_v6_ip')], - ["allowed_address_pairs", "string", "external", - re.compile(r'(.+?)_floating_ip')], - ["allowed_address_pairs", "string", "internal", - re.compile(r'(.+?)_int_(.+?)_v6_ip_\d+')], - ["allowed_address_pairs", "string", "internal", - re.compile(r'(.+?)_int_(.+?)_ip_\d+')], - ["allowed_address_pairs", "string", "external", - re.compile(r'(.+?)_v6_ip_\d+')], - ["allowed_address_pairs", "string", "external", - re.compile(r'(.+?)_ip_\d+')], - ["allowed_address_pairs", "comma_delimited_list", - "internal", re.compile(r'(.+?)_int_(.+?)_v6_ips')], - ["allowed_address_pairs", "comma_delimited_list", - "internal", re.compile(r'(.+?)_int_(.+?)_ips')], - ["allowed_address_pairs", "comma_delimited_list", - "external", re.compile(r'(.+?)_v6_ips')], - ["allowed_address_pairs", "comma_delimited_list", - "external", re.compile(r'(.+?)_ips')], - ["fixed_ips", "string", "internal", - re.compile(r'(.+?)_int_(.+?)_v6_ip_\d+')], - ["fixed_ips", "string", "internal", - re.compile(r'(.+?)_int_(.+?)_ip_\d+')], - ["fixed_ips", "string", "external", - re.compile(r'(.+?)_v6_ip_\d+')], - ["fixed_ips", "string", "external", - re.compile(r'(.+?)_ip_\d+')], - ["fixed_ips", "comma_delimited_list", "internal", - re.compile(r'(.+?)_int_(.+?)_v6_ips')], - ["fixed_ips", "comma_delimited_list", "internal", - re.compile(r'(.+?)_int_(.+?)_ips')], - ["fixed_ips", "comma_delimited_list", "external", - re.compile(r'(.+?)_v6_ips')], - ["fixed_ips", "comma_delimited_list", "external", - re.compile(r'(.+?)_ips')]] + [ + "allowed_address_pairs", + "string", + "internal", + re.compile(r"(.+?)_int_(.+?)_floating_v6_ip"), + ], + [ + "allowed_address_pairs", + "string", + "internal", + re.compile(r"(.+?)_int_(.+?)_floating_ip"), + ], + [ + "allowed_address_pairs", + "string", + "external", + re.compile(r"(.+?)_floating_v6_ip"), + ], + [ + "allowed_address_pairs", + "string", + "external", + re.compile(r"(.+?)_floating_ip"), + ], + [ + "allowed_address_pairs", + "string", + "internal", + re.compile(r"(.+?)_int_(.+?)_v6_ip_\d+"), + ], + [ + "allowed_address_pairs", + "string", + "internal", + re.compile(r"(.+?)_int_(.+?)_ip_\d+"), + ], + ["allowed_address_pairs", "string", "external", re.compile(r"(.+?)_v6_ip_\d+")], + ["allowed_address_pairs", "string", "external", re.compile(r"(.+?)_ip_\d+")], + [ + "allowed_address_pairs", + "comma_delimited_list", + "internal", + re.compile(r"(.+?)_int_(.+?)_v6_ips"), + ], + [ + "allowed_address_pairs", + "comma_delimited_list", + "internal", + re.compile(r"(.+?)_int_(.+?)_ips"), + ], + [ + "allowed_address_pairs", + "comma_delimited_list", + "external", + re.compile(r"(.+?)_v6_ips"), + ], + [ + "allowed_address_pairs", + "comma_delimited_list", + "external", + re.compile(r"(.+?)_ips"), + ], + ["fixed_ips", "string", "internal", re.compile(r"(.+?)_int_(.+?)_v6_ip_\d+")], + ["fixed_ips", "string", "internal", re.compile(r"(.+?)_int_(.+?)_ip_\d+")], + ["fixed_ips", "string", "external", re.compile(r"(.+?)_v6_ip_\d+")], + ["fixed_ips", "string", "external", re.compile(r"(.+?)_ip_\d+")], + [ + "fixed_ips", + "comma_delimited_list", + "internal", + re.compile(r"(.+?)_int_(.+?)_v6_ips"), + ], + [ + "fixed_ips", + "comma_delimited_list", + "internal", + re.compile(r"(.+?)_int_(.+?)_ips"), + ], + ["fixed_ips", "comma_delimited_list", "external", re.compile(r"(.+?)_v6_ips")], + ["fixed_ips", "comma_delimited_list", "external", re.compile(r"(.+?)_ips")], + ] for v3 in allowed_formats: if v3[1] != parameter_type: @@ -99,33 +142,30 @@ def is_valid_ip_address(ip_address, vm_type, network_role, port_property, parame # check if pattern matches m = v3[3].match(ip_address) if m: - if (v3[2] == "internal" and - len(m.groups()) > 1): - return m.group(1) == vm_type and\ - m.group(2) == network_role - elif (v3[2] == "external" and - len(m.groups()) > 0): + if v3[2] == "internal" and len(m.groups()) > 1: + return m.group(1) == vm_type and m.group(2) == network_role + elif v3[2] == "external" and len(m.groups()) > 0: return m.group(1) == vm_type + "_" + network_role return False def get_invalid_ip_addresses(resources, port_property, parameters): - ''' + """ Get a list of valid ip addresses for a heat resources section - ''' + """ invalid_ip_addresses = [] for k, v in resources.items(): if not isinstance(v, dict): continue - if 'type' not in v: + if "type" not in v: continue - if v['type'] not in 'OS::Nova::Server': + if v["type"] not in "OS::Nova::Server": continue - if 'properties' not in v: + if "properties" not in v: continue - if 'networks' not in v['properties']: + if "networks" not in v["properties"]: continue port_resource = None @@ -135,16 +175,16 @@ def get_invalid_ip_addresses(resources, port_property, parameters): continue # get all ports associated with the nova server - properties = v['properties'] - for network in properties['networks']: + properties = v["properties"] + for network in properties["networks"]: for k3, v3 in network.items(): - if k3 != 'port': + if k3 != "port": continue if not isinstance(v3, dict): continue - if 'get_resource' in v3: - port_id = v3['get_resource'] + if "get_resource" in v3: + port_id = v3["get_resource"] if not resources[port_id]: continue port_resource = resources[port_id] @@ -175,11 +215,13 @@ def get_invalid_ip_addresses(resources, port_property, parameters): if not parameter_type: continue - valid_ip_address = is_valid_ip_address(ip_address, - vm_type, - network_role, - port_property, - parameter_type) + valid_ip_address = is_valid_ip_address( + ip_address, + vm_type, + network_role, + port_property, + parameter_type, + ) if not valid_ip_address: invalid_ip_addresses.append(ip_address) @@ -187,18 +229,17 @@ def get_invalid_ip_addresses(resources, port_property, parameters): return invalid_ip_addresses -def is_reserved_port(port_id): - ''' - Checks to see if the resource id for a port follows - the reserve port concept - ''' - formats = [ - ["port_id", - re.compile(r'reserve_port_(.+?)_floating_ip_\d+')], - ["port_id", - re.compile(r'reserve_port_(.+?)_floating_v6_ip_\d+')]] - for f in formats: - m = f[1].match(port_id.lower()) - if m and m.group(1): - return True - return False +def get_list_of_ports_attached_to_nova_server(nova_server): + networks_list = nova_server.get("properties", {}).get("networks") + + port_ids = [] + if networks_list: + for network in networks_list: + network_prop = network.get("port") + if network_prop: + pid = network_prop.get("get_param") + if not pid: + pid = network_prop.get("get_resource") + port_ids.append(pid) + + return port_ids diff --git a/ice_validator/tests/utils/vm_types.py b/ice_validator/tests/utils/vm_types.py index 6802666..78006b9 100644 --- a/ice_validator/tests/utils/vm_types.py +++ b/ice_validator/tests/utils/vm_types.py @@ -42,36 +42,33 @@ import re def get_vm_types_for_resource(resource): - ''' + """ Get all unique vm_types for a resource Notes: - Returns set([]) if the resource is not formatted properly, the passed resource is not a nova server - If more than one vm_type is detected all vm_types will be returned - ''' + """ if not isinstance(resource, dict): return set() - if 'type' not in resource: + if "type" not in resource: return set() - if resource['type'] != 'OS::Nova::Server': + if resource["type"] != "OS::Nova::Server": return set() - if 'properties' not in resource: + if "properties" not in resource: return set() key_values = ["name", "flavor", "image"] key_value_formats = [ - ["name", "string", - re.compile(r'(.+?)_name_\d+')], - ["name", "comma_delimited_list", - re.compile(r'(.+?)_names')], - ["flavor", "string", - re.compile(r'(.+?)_flavor_name')], - ["image", "string", - re.compile(r'(.+?)_image_name')]] + ["name", "string", re.compile(r"(.+?)_name_\d+")], + ["name", "comma_delimited_list", re.compile(r"(.+?)_names")], + ["flavor", "string", re.compile(r"(.+?)_flavor_name")], + ["image", "string", re.compile(r"(.+?)_image_name")], + ] vm_types = [] - for k2, v2 in resource['properties'].items(): + for k2, v2 in resource["properties"].items(): if k2 not in key_values: continue if "get_param" not in v2: @@ -89,12 +86,12 @@ def get_vm_types_for_resource(resource): def get_vm_type_for_nova_server(resource): - ''' + """ Get the vm_type for a resource Note: Returns None if not exactly one vm_type is detected, if the resource is not formatted properly, or the passed resource is not a nova server - ''' + """ vm_types = get_vm_types_for_resource(resource) # if more than one vm_type was identified, return None @@ -105,10 +102,10 @@ def get_vm_type_for_nova_server(resource): def get_vm_types(resources): - ''' + """ Get all vm_types for a list of heat resources, do note that some of the values retrieved may be invalid - ''' + """ vm_types = [] for v in resources.values(): vm_types.extend(list(get_vm_types_for_resource(v))) diff --git a/ice_validator/tests/utils/volumes.py b/ice_validator/tests/utils/volumes.py index 40731bf..6f52dd8 100644 --- a/ice_validator/tests/utils/volumes.py +++ b/ice_validator/tests/utils/volumes.py @@ -44,19 +44,19 @@ from os import path from tests import cached_yaml as yaml -VERSION = '1.0.0' +VERSION = "1.0.0" def get_volume_resources(heat_template): - ''' + """ get the resources from the volume template Note: Returns an empty dict if there is no volume template or for any other error - ''' + """ basename = path.splitext(heat_template)[0] - for ext in ['.yaml', '.yml']: - volume_template = basename + '_volume' + ext + for ext in [".yaml", ".yml"]: + volume_template = basename + "_volume" + ext if path.isfile(volume_template): break else: @@ -66,12 +66,12 @@ def get_volume_resources(heat_template): with open(volume_template) as fh: yml = yaml.load(fh) except yaml.YAMLError as e: - print(e) # pylint: disable=superfluous-parens + print(e) # pylint: disable=superfluous-parens return {} - if 'outputs' not in yml: + if "outputs" not in yml: return {} - if 'resources' not in yml: + if "resources" not in yml: return {} - return yml['resources'] + return yml["resources"] diff --git a/ice_validator/tests/utils/yaml_custom_utils.py b/ice_validator/tests/utils/yaml_custom_utils.py index 8a5006c..1e4b0e5 100644 --- a/ice_validator/tests/utils/yaml_custom_utils.py +++ b/ice_validator/tests/utils/yaml_custom_utils.py @@ -50,8 +50,11 @@ def raise_duplicates_keys(loader, node, deep=False): value = loader.construct_object(value_node, deep=deep) if key in mapping: raise ConstructorError( - "while constructing a mapping", node.start_mark, - "found duplicate key (%s)" % key, key_node.start_mark) + "while constructing a mapping", + node.start_mark, + "found duplicate key (%s)" % key, + key_node.start_mark, + ) mapping[key] = value return loader.construct_mapping(node, deep) diff --git a/tox.ini b/tox.ini index 61667f5..c8468a5 100644 --- a/tox.ini +++ b/tox.ini @@ -40,7 +40,7 @@ [tox] skipsdist=True -envlist = py27,py3,style +envlist = py3,style [testenv] distribute = False @@ -56,9 +56,6 @@ deps = -rrequirements.txt [testenv:style] commands = flake8 ice_validator -[testenv:py27] -basepython=python2.7 - [testenv:py3] basepython=python3.6 -- cgit 1.2.3-korg