tacker.api.vnflcm.v1.controller module¶
-
class
tacker.api.vnflcm.v1.controller.
VnfLcmController
¶ Bases:
tacker.wsgi.Controller
-
api_versions
(request)¶
-
cancel
(request, id, body)¶ SOL003 v3.5.1 5.4.17 Resource: Cancel operation task
@param request: A request object @param id: Identifier of a VNF lifecycle management operation occurrence to be cancelled. @param body: the content of the request body @return: A response object
NOTE(h-asahina): This API is a hotfix for a bug: https://bugs.launchpad.net/tacker/+bug/1924917 Thus, the API doesn’t support the following features. - The transitions from the STARTING state and ROLLING_BACK state - 5.5.4.6 CancelModeType (the parameter is available, but it doesn’t affect an actual operation)
-
change_ext_conn
(request, id, body)¶
-
create
(request, body)¶
-
delete
(request, id)¶
-
delete_subscription
(request, subscriptionId)¶
-
fail
(request, id)¶
-
heal
(request, id, body)¶
-
index
(request)¶
-
instantiate
(request, id, body)¶
-
list_lcm_op_occs
(request)¶
-
notification_type_list
= ['VnfLcmOperationOccurrenceNotification', 'VnfIdentifierCreationNotification', 'VnfIdentifierDeletionNotification']¶
-
operation_state_list
= ['STARTING', 'PROCESSING', 'COMPLETED', 'FAILED_TEMP', 'FAILED', 'ROLLING_BACK', 'ROLLED_BACK']¶
-
operation_type_list
= ['INSTANTIATE', 'SCALE', 'SCALE_TO_LEVEL', 'CHANGE_FLAVOUR', 'TERMINATE', 'HEAL', 'OPERATE', 'CHANGE_EXT_CONN', 'MODIFY_INFO']¶
-
register_subscription
(request, body)¶
-
retry
(request, id)¶
-
rollback
(request, id)¶
-
scale
(request, id, body)¶
-
show
(request, id)¶
-
show_lcm_op_occs
(request, id)¶
-
subscription_list
(request)¶
-
subscription_show
(request, subscriptionId)¶
-
terminate
(request, id, body)¶
-
update
(request, id, body)¶
-
-
tacker.api.vnflcm.v1.controller.
check_vnf_state
(action, instantiation_state=None, task_state=(None))¶ Decorator to check vnf states are valid for particular action.
If the vnf is in the wrong state, it will raise conflict exception.
-
tacker.api.vnflcm.v1.controller.
check_vnf_status
(action, status=None)¶ Decorator to check vnf status are valid for particular action.
If the vnf is in the wrong state, it will raise conflict exception.
-
tacker.api.vnflcm.v1.controller.
check_vnf_status_and_error_point
(action, status=None)¶ Decorator to check vnf status are valid for particular action.
If the vnf has the wrong status with the wrong error point, it will raise conflict exception.
-
tacker.api.vnflcm.v1.controller.
create_resource
()¶