diff options
Diffstat (limited to 'onap-client/onap_client/so/vnf_instance.py')
-rw-r--r-- | onap-client/onap_client/so/vnf_instance.py | 41 |
1 files changed, 6 insertions, 35 deletions
diff --git a/onap-client/onap_client/so/vnf_instance.py b/onap-client/onap_client/so/vnf_instance.py index 4d289a0..abb26c3 100644 --- a/onap-client/onap_client/so/vnf_instance.py +++ b/onap-client/onap_client/so/vnf_instance.py @@ -77,37 +77,14 @@ class VNFInstance(Resource): "line_of_business": {"type": str, "required": True}, } - def __init__( - self, - vnf_instance_name, - service_instance_name, - requestor_id, - model_name, - tenant_name, - cloud_owner, - cloud_region, - api_type, - platform, - line_of_business, - ): - instance_input = {} - - tenant_id = so.service_instance.get_tenant_id(cloud_region, cloud_owner, tenant_name) - - instance_input["vnf_instance_name"] = vnf_instance_name - instance_input["service_instance_name"] = service_instance_name - instance_input["requestor_id"] = requestor_id - instance_input["model_name"] = model_name + def _create(self, instance_input): + tenant_id = so.service_instance.get_tenant_id( + instance_input.get("cloud_region"), + instance_input.get("cloud_owner"), + instance_input.get("tenant_name") + ) instance_input["tenant_id"] = tenant_id - instance_input["cloud_owner"] = cloud_owner - instance_input["cloud_region"] = cloud_region - instance_input["api_type"] = api_type - instance_input["platform"] = platform - instance_input["line_of_business"] = line_of_business - super().__init__(instance_input) - - def _create(self, instance_input): service_instance = get_service_instance( instance_input.get("service_instance_name") ) @@ -156,12 +133,6 @@ class VNFInstance(Resource): return create_vnf_instance(instance_input) - def _post_create(self): - pass - - def _submit(self): - pass - def get_vnf_model_component(service_model_name, vnf_model_name): service_model = sdc_client.service.get_sdc_service( |