Closed anapolg closed 4 years ago
Hi @ekapassa the idea is to show all the possible SLAs available to a NS descriptor? Where? In the SP menu or in the SM one? Or both?
Hello @anapolg If i remember correctly (because this issue is 5 months old)..the idea was to show this list of slas,, not in the SP menu...but inside its network service page.
So the idea is to show a list of SLAs related with the network service in here https://pre-int-sp-ath.5gtango.eu/service-management/network-services/services/683d6e7a-a2bc-43fa-9c38-35fd8b0b4e4b just below the list of VNFs for example?
Is there any use for the list? Any action? Or just displaying them?
Yes that's right! To the best of my knowledge no, there is not any use for the list - just displaying them. Maybe just a link to the associated sla would be nice. (I mean when you click on a list item, to be redirected to the specific sla page)
Ok, working on it.
We have a problem with the error codes: You are responding with a 404 Not found error when there are no SLAs for a particular network service (an empty array). This is an error to be shown only when the resource or page you are trying to open could not be found on the server side.
In this case, it was found. It simply has no items inside, This should be a 200 OK as a response. In any other case different than 2XX codes, the HTTP module of the app will recognize the code as an error, which is the normal.
Ready from Portal side. Still, it would be good to change in server side what I commented below to avoid displaying errors that are not errors.
@anapolg Thank you! I will fix this issue asap
@anapolg Is this integrated already or not? Because I cannot see the SLA associated with the ns uuid = 095539af-6688-42e7-8c1f-9563f27cb6f2 (in pre-int)
Yes, it is integrated but SLAs are only shown in SM menu. In here: https://pre-int-sp-ath.5gtango.eu/service-management/network-services/services/095539af-6688-42e7-8c1f-9563f27cb6f2
From this ..the idea was to show this list of slas,, not in the SP menu...but inside its network service page.
I understood that the SP menu is not a target for this.
oh yes..you are right.my mistake! mixed the links
API for getting SLAs associated to a specific service implemented:
curl -v -H "Content-type:application/json" http://pre-int-sp-ath.5gtango.eu:32002/api/v3/slas/templates/services/134daeab-0d7a-4096-8d6e-f1adc7705b02
Response:
cc @ekapassa @jbonnet