Fix invalid vim type for ETSI's definition

Correct vimType in vimConnectionInfo or vim_type in vim_connection_info
to `ETSINFV.OPENSTACK_KEYSTONE.V_2` as defined in ETSI-NFV SOL specs.

Closes-bug: #2069800
Change-Id: Ida18790772250a087c03c6e898577747aad0bff4
Signed-off-by: Yasufumi Ogawa <yasufum.o@gmail.com>
Co-Authored-By: Yoshiro Watanabe <fj3838ct@fujitsu.com>
This commit is contained in:
Yasufumi Ogawa 2024-06-21 21:57:17 +09:00 committed by Takahiro Miyajima
parent 1c9171e897
commit 72a96de392
24 changed files with 28 additions and 28 deletions

View File

@ -54,7 +54,7 @@
"vimConnectionInfo": [ "vimConnectionInfo": [
{ {
"id": "vim-uuid", "id": "vim-uuid",
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"vimConnectionId": "dummy-vimid", "vimConnectionId": "dummy-vimid",
"interfaceInfo": { "interfaceInfo": {
"key1": "value1", "key1": "value1",

View File

@ -329,7 +329,7 @@ Result:
| | { | | | { |
| | "id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1", | | | "id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1", |
| | "vimId": "fa9fa87e-8be2-425d-85e1-08778d82d95f", | | | "vimId": "fa9fa87e-8be2-425d-85e1-08778d82d95f", |
| | "vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2", | | | "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2", |
| | "interfaceInfo": {}, | | | "interfaceInfo": {}, |
| | "accessInfo": {}, | | | "accessInfo": {}, |
| | "extra": {} | | | "extra": {} |

View File

@ -703,7 +703,7 @@ Instantiate VNF
| | { | | | { |
| | "id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1", | | | "id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1", |
| | "vimId": "662e5f4f-3b16-4ca6-b560-28b62dd0e13b", | | | "vimId": "662e5f4f-3b16-4ca6-b560-28b62dd0e13b", |
| | "vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2", | | | "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2", |
| | "interfaceInfo": {}, | | | "interfaceInfo": {}, |
| | "accessInfo": {}, | | | "accessInfo": {}, |
| | "extra": {} | | | "extra": {} |

View File

@ -83,7 +83,7 @@ definition file before running command for changing the connectivity.
"vimConnectionInfo": [ "vimConnectionInfo": [
{ {
"id": "79a97d01-e5f3-4eaa-b2bc-8f513ecb8a56", "id": "79a97d01-e5f3-4eaa-b2bc-8f513ecb8a56",
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"vimConnectionId": "79a97d01-e5f3-4eaa-b2bc-8f513ecb8a56", "vimConnectionId": "79a97d01-e5f3-4eaa-b2bc-8f513ecb8a56",
"interfaceInfo": { "interfaceInfo": {
"endpoint": "http://127.0.0.1/identity" "endpoint": "http://127.0.0.1/identity"

View File

@ -455,7 +455,7 @@ An example of a param file with optional parameters:
{ {
"id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1", "id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1",
"vimId": "8a0fd79d-e224-4c27-85f5-ee79c6e0d870", "vimId": "8a0fd79d-e224-4c27-85f5-ee79c6e0d870",
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2" "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2"
} }
], ],
"localizationLanguage": "ja", "localizationLanguage": "ja",

View File

@ -215,7 +215,7 @@ An example of a param file with optional parameters:
{ {
"id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1", #Set a random uuid. "id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1", #Set a random uuid.
"vimId": "8a0fd79d-e224-4c27-85f5-ee79c6e0d870", #Set the uuid of the VIM to use "vimId": "8a0fd79d-e224-4c27-85f5-ee79c6e0d870", #Set the uuid of the VIM to use
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2" "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2"
} }
], ],
"additionalParams": { "additionalParams": {

View File

@ -288,7 +288,7 @@ Result:
| | \"subnetId\": \"d290cae3-0dbc-44a3-a043-1a50ded04a64\"}]}}]}]}, {\"cpdId\": \"VDU2_CP2\", \"cpConfig\": [{\"cpProtocolData\": [{\"layerProtocol\": \"IP_OVER_ETHERNET\", \"ipOverEthernet\": {\"ipAddresses\": [{\"type\": | | | \"subnetId\": \"d290cae3-0dbc-44a3-a043-1a50ded04a64\"}]}}]}]}, {\"cpdId\": \"VDU2_CP2\", \"cpConfig\": [{\"cpProtocolData\": [{\"layerProtocol\": \"IP_OVER_ETHERNET\", \"ipOverEthernet\": {\"ipAddresses\": [{\"type\": |
| | \"IPV4\", \"fixedAddresses\": [\"22.22.1.20\"], \"subnetId\": \"d290cae3-0dbc-44a3-a043-1a50ded04a64\"}]}}]}]}]}], \"extManagedVirtualLinks\": [{\"id\": \"8f9d8da0-2386-4f00-bbb0-860f50d32a5a\", \"vnfVirtualLinkDescId\": | | | \"IPV4\", \"fixedAddresses\": [\"22.22.1.20\"], \"subnetId\": \"d290cae3-0dbc-44a3-a043-1a50ded04a64\"}]}}]}]}]}], \"extManagedVirtualLinks\": [{\"id\": \"8f9d8da0-2386-4f00-bbb0-860f50d32a5a\", \"vnfVirtualLinkDescId\": |
| | \"internalVL1\", \"resourceId\": \"0e498d08-ed3a-4212-83e0-1b6808f6fcb6\"}, {\"id\": \"11d68761-aab7-419c-955c-0c6497f13692\", \"vnfVirtualLinkDescId\": \"internalVL2\", \"resourceId\": \"38a8d4ba- | | | \"internalVL1\", \"resourceId\": \"0e498d08-ed3a-4212-83e0-1b6808f6fcb6\"}, {\"id\": \"11d68761-aab7-419c-955c-0c6497f13692\", \"vnfVirtualLinkDescId\": \"internalVL2\", \"resourceId\": \"38a8d4ba- |
| | ac1b-41a2-a92b-ff2a3e5e9b12\"}], \"vimConnectionInfo\": [{\"id\": \"79a97d01-e5f3-4eaa-b2bc-8f513ecb8a56\", \"vimType\": \"ETSINFV.OPENSTACK_KEYSTONE.v_2\", \"vimConnectionId\": \"79a97d01-e5f3-4eaa-b2bc-8f513ecb8a56\", | | | ac1b-41a2-a92b-ff2a3e5e9b12\"}], \"vimConnectionInfo\": [{\"id\": \"79a97d01-e5f3-4eaa-b2bc-8f513ecb8a56\", \"vimType\": \"ETSINFV.OPENSTACK_KEYSTONE.V_2\", \"vimConnectionId\": \"79a97d01-e5f3-4eaa-b2bc-8f513ecb8a56\", |
| | \"interfaceInfo\": {\"endpoint\": \"http://127.0.0.1/identity\"}, \"accessInfo\": {\"username\": \"nfv_user\", \"region\": \"RegionOne\", \"password\": \"devstack\", \"tenant\": \"1994d69783d64c00aadab564038c2fd7\"}}], | | | \"interfaceInfo\": {\"endpoint\": \"http://127.0.0.1/identity\"}, \"accessInfo\": {\"username\": \"nfv_user\", \"region\": \"RegionOne\", \"password\": \"devstack\", \"tenant\": \"1994d69783d64c00aadab564038c2fd7\"}}], |
| | \"additionalParams\": {\"lcm-operation-user-data\": \"./UserData/lcm_user_data.py\", \"lcm-operation-user-data-class\": \"SampleUserData\"}}" | | | \"additionalParams\": {\"lcm-operation-user-data\": \"./UserData/lcm_user_data.py\", \"lcm-operation-user-data-class\": \"SampleUserData\"}}" |
| resourceChanges | {} | | resourceChanges | {} |

View File

@ -552,7 +552,7 @@ Result:
| | { | | | { |
| | "id": "79a97d01-e5f3-4eaa-b2bc-8f513ecb8a56", | | | "id": "79a97d01-e5f3-4eaa-b2bc-8f513ecb8a56", |
| | "vimId": null, | | | "vimId": null, |
| | "vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2", | | | "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2", |
| | "interfaceInfo": { | | | "interfaceInfo": { |
| | "endpoint": "http://127.0.0.1/identity" | | | "endpoint": "http://127.0.0.1/identity" |
| | }, | | | }, |

View File

@ -4,7 +4,7 @@
{ {
"id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1", "id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1",
"vimId": "${vim_uuid}", "vimId": "${vim_uuid}",
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2" "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2"
} }
] ]
} }

View File

@ -33,7 +33,7 @@
{ {
"id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1", "id": "e24f9796-a8e9-4cb0-85ce-5920dcddafa1",
"vimId": "${vim_uuid}", "vimId": "${vim_uuid}",
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2" "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2"
} }
], ],
"additionalParams": { "additionalParams": {

View File

@ -25,7 +25,7 @@
], ],
"vimConnectionInfo": [{ "vimConnectionInfo": [{
"id": "3cc2c4ff-525c-48b4-94c9-29247223322f", "id": "3cc2c4ff-525c-48b4-94c9-29247223322f",
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"vimConnectionId": "c3369b54-e376-4423-bb61-afd255900fea", "vimConnectionId": "c3369b54-e376-4423-bb61-afd255900fea",
"interfaceInfo": { "interfaceInfo": {
"endpoint": "http://127.0.0.1/identity" "endpoint": "http://127.0.0.1/identity"

View File

@ -63,7 +63,7 @@ INSTANTIATION_BODY = {
{ {
'id': None, 'id': None,
'vimId': None, 'vimId': None,
'vimType': 'ETSINFV.OPENSTACK_KEYSTONE.v_2' 'vimType': 'ETSINFV.OPENSTACK_KEYSTONE.V_2'
} }
] ]
} }

View File

@ -201,7 +201,7 @@ def _create_instantiate_vnf_request_body(flavour_id,
request_body["vimConnectionInfo"] = [ request_body["vimConnectionInfo"] = [
{"id": uuidutils.generate_uuid(), {"id": uuidutils.generate_uuid(),
"vimId": vim_id, "vimId": vim_id,
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2"}] "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2"}]
if add_params: if add_params:
request_body["additionalParams"] = add_params request_body["additionalParams"] = add_params

View File

@ -262,7 +262,7 @@ class VnfInstances:
ext_mngd_networks_id), ext_mngd_networks_id),
"vimConnectionInfo": [{ "vimConnectionInfo": [{
"id": uuidsentinel.vim_connection_id, "id": uuidsentinel.vim_connection_id,
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"vimConnectionId": uuidsentinel.vim_connection_id, "vimConnectionId": uuidsentinel.vim_connection_id,
"interfaceInfo": { "interfaceInfo": {
"endpoint": "http://127.0.0.1/identity" "endpoint": "http://127.0.0.1/identity"
@ -301,7 +301,7 @@ class VnfInstances:
ext_mngd_networks_id), ext_mngd_networks_id),
"vimConnectionInfo": [{ "vimConnectionInfo": [{
"id": uuidsentinel.vim_connection_id, "id": uuidsentinel.vim_connection_id,
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"vimConnectionId": uuidsentinel.vim_connection_id, "vimConnectionId": uuidsentinel.vim_connection_id,
"interfaceInfo": { "interfaceInfo": {
"endpoint": "http://127.0.0.1/identity" "endpoint": "http://127.0.0.1/identity"
@ -452,7 +452,7 @@ class VnfInstances:
], ],
"vimConnectionInfo": [{ "vimConnectionInfo": [{
"id": uuidsentinel.vim_connection_id, "id": uuidsentinel.vim_connection_id,
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"vimConnectionId": uuidsentinel.vim_connection_id, "vimConnectionId": uuidsentinel.vim_connection_id,
"interfaceInfo": { "interfaceInfo": {
"endpoint": "http://127.0.0.1/identity" "endpoint": "http://127.0.0.1/identity"

View File

@ -249,7 +249,7 @@ class VnfLcmTest(base.BaseTackerTest):
request_body["vimConnectionInfo"] = [ request_body["vimConnectionInfo"] = [
{"id": uuidutils.generate_uuid(), {"id": uuidutils.generate_uuid(),
"vimId": vim_id, "vimId": vim_id,
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2"}] "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2"}]
return request_body return request_body
@ -462,7 +462,7 @@ class VnfLcmTest(base.BaseTackerTest):
request_body["vimConnectionInfo"] = [ request_body["vimConnectionInfo"] = [
{"id": uuidutils.generate_uuid(), {"id": uuidutils.generate_uuid(),
"vimId": vim_id, "vimId": vim_id,
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2"}] "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2"}]
return request_body return request_body

View File

@ -546,7 +546,7 @@ class BaseEnhancedPolicyTest(object):
else: else:
raise Exception('vim_user_project_map is needed.') raise Exception('vim_user_project_map is needed.')
image_name = "cirros-0.5.2-x86_64-disk" image_name = "cirros-0.5.2-x86_64-disk"
image_path = test_etc_sample("nfv/common/Files/images", image_path = test_etc_sample("etsi/nfv/common/Files/images",
f"{image_name}.img") f"{image_name}.img")
image_data = { image_data = {
'disk_format': 'qcow2', 'disk_format': 'qcow2',

View File

@ -133,7 +133,7 @@ class VnflcmAPIsV1Test(VnflcmAPIsV1Base):
request_body["vimConnectionInfo"] = [ request_body["vimConnectionInfo"] = [
{"id": uuidutils.generate_uuid(), {"id": uuidutils.generate_uuid(),
"vimId": vim_id, "vimId": vim_id,
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2"}] "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2"}]
return request_body return request_body
@ -175,7 +175,7 @@ class VnflcmAPIsV1Test(VnflcmAPIsV1Base):
username, inst_id, request_body, expected_status_code) username, inst_id, request_body, expected_status_code)
def _change_ext_conn_vnf_request(self, vim_id=None, ext_vl=None, def _change_ext_conn_vnf_request(self, vim_id=None, ext_vl=None,
vim_type="ETSINFV.OPENSTACK_KEYSTONE.v_2"): vim_type="ETSINFV.OPENSTACK_KEYSTONE.V_2"):
request_body = {} request_body = {}
if ext_vl: if ext_vl:
request_body["extVirtualLinks"] = ext_vl request_body["extVirtualLinks"] = ext_vl

View File

@ -212,7 +212,7 @@ class VnfInstances:
ext_mngd_networks_id), ext_mngd_networks_id),
"vimConnectionInfo": [{ "vimConnectionInfo": [{
"id": uuidsentinel.vim_connection_id, "id": uuidsentinel.vim_connection_id,
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"vimConnectionId": uuidsentinel.vim_connection_id, "vimConnectionId": uuidsentinel.vim_connection_id,
"interfaceInfo": { "interfaceInfo": {
"endpoint": "http://127.0.0.1/identity" "endpoint": "http://127.0.0.1/identity"

View File

@ -46,7 +46,7 @@ class Grant:
return [{ return [{
"id": uuidsentinel.vim_connection_id, "id": uuidsentinel.vim_connection_id,
"vimType": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vimType": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"interfaceInfo": { "interfaceInfo": {
"endpoint": "http://127.0.0.1/identity" "endpoint": "http://127.0.0.1/identity"
}, },

View File

@ -75,7 +75,7 @@ class ChangeExtConnRequestTestCase(base.TestCase):
vim_connection_info = [{ vim_connection_info = [{
"id": "6b0ff598-60d6-49b4-a907-a1111de52d92", "id": "6b0ff598-60d6-49b4-a907-a1111de52d92",
"vim_id": uuidsentinel.vim_id, "vim_id": uuidsentinel.vim_id,
"vim_type": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vim_type": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"interface_info": { "interface_info": {
"endpoint": "endpoint_value"}, "endpoint": "endpoint_value"},
"access_info": { "access_info": {

View File

@ -29,7 +29,7 @@ class GrantTestCase(base.TestCase):
vim_connection_info = [{ vim_connection_info = [{
"id": "6b0ff598-60d6-49b4-a907-a1111de52d92", "id": "6b0ff598-60d6-49b4-a907-a1111de52d92",
"vim_id": uuidsentinel.vim_id, "vim_id": uuidsentinel.vim_id,
"vim_type": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vim_type": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"interface_info": { "interface_info": {
"endpoint": "endpoint_value"}, "endpoint": "endpoint_value"},
"access_info": { "access_info": {

View File

@ -233,7 +233,7 @@ class InstantiateVnfRequestTestCase(base.TestCase):
vim_connection_info = [{ vim_connection_info = [{
"id": "6b0ff598-60d6-49b4-a907-a1111de52d92", "id": "6b0ff598-60d6-49b4-a907-a1111de52d92",
"vim_id": uuidsentinel.vim_id, "vim_id": uuidsentinel.vim_id,
"vim_type": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vim_type": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"access_info": {}}] "access_info": {}}]
vnf_info_data = {'ext_managed_virtual_links': [ext_mg_vl], vnf_info_data = {'ext_managed_virtual_links': [ext_mg_vl],

View File

@ -1196,7 +1196,7 @@ class TestController(base.TestCase):
vim_info = { vim_info = {
"id": "7d24979f-491e-4fa3-8da1-4a374fe28d55", "id": "7d24979f-491e-4fa3-8da1-4a374fe28d55",
"vim_id": None, "vim_id": None,
"vim_type": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vim_type": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"interface_info": {"endpoint": "http://127.0.0.1/identity"}, "interface_info": {"endpoint": "http://127.0.0.1/identity"},
"access_info": { "access_info": {
"username": "nfv_user", "username": "nfv_user",

View File

@ -476,7 +476,7 @@ def get_change_ext_conn_request():
vim_connection_info = [{ vim_connection_info = [{
"id": uuidsentinel.vim_connection_id, "id": uuidsentinel.vim_connection_id,
"vim_id": uuidsentinel.vim_id, "vim_id": uuidsentinel.vim_id,
"vim_type": "ETSINFV.OPENSTACK_KEYSTONE.v_2", "vim_type": "ETSINFV.OPENSTACK_KEYSTONE.V_2",
"interface_info": { "interface_info": {
"endpoint": "endpoint_value"}, "endpoint": "endpoint_value"},
"access_info": { "access_info": {