Closed anapolg closed 5 years ago
Commented by @tsoenen in #248
On the subject of having a + and - sign next to VNFs to scale out / in:
The - sign doesn't really make sense, as you have to specify which VNF you want to remove for the scale in. It could be better to use a x sign next to each VNF to indicate this. Clicking the + sign multiple times results in individual scale-out requests with one instance. With some sort of input textbox next to the VNF, you could indicate how many you want to scale out.
cc @felipevicens
Endpoint: http://pre-int-sp-ath.5gtango.eu:32002/api/v3/requests
Request to scale out
data = {"instance_uuid": instance_uuid,
"request_type": "SCALE_SERVICE",
"scaling_type": "ADD_VNF",
"vnfd_uuid": vnfd_uuid,
"number_of_instances": number_inst
}
Request to scale in
data = {
"instance_uuid": instance_uuid,
"request_type": "SCALE_SERVICE",
"scaling_type": "REMOVE_VNF",
"vnfd_uuid": vnfd_uuid
}
tng-cli implemented requests: https://github.com/sonata-nfv/tng-cli/blob/master/src/tnglib/requests.py
Related to #282
After deactivating the enforced policy if any / From the beginning if no policy is enforced: A) The VNF instances will display a x or rubbish button to scale in. B) The VNF instances will also display a + button preceded by an input to include the number of scale out requests the user wants to do over a VNF.