Closed pavellikin closed 7 months ago
As far as I know, ConnectivityService and Connection are parallel under Context in T-API. The _connection of ConnectivityService is ref by uuid.
As far as I know, ConnectivityService and Connection are parallel under Context in T-API. The _connection of ConnectivityService is ref by uuid.
We see that connection and connectivityService contained in different URL: /config/Context/_connection/{uuid}/ /config/Context/_connectivityService/{uuid}/
And _connection not under _connectivityService. It violates integrity and the uniqueness of requests.
Of course we can get connection uuid from ConnectivityService:
_connection:
items:
type: string
description: none
x-path: '/Tapi:Context/Tapi:_connection/Tapi:uuid'
type: array
and for get connection detail need send request to /config/Context/_connection/{uuid}/ , but we think that it is not correct.
What do you think about it?
@RodLU As you may know the only way to create a Connection is to create a ConnectivityService. In other words ConnectivityService produces Connections that represent underlying connectivity. I had a discussion with @karthik-sethuraman regarding this issue and we considered the behavior is a bug. However, the /config/Context/_connection URLs could be kept. According to swagger file all _connection URLs are to be available only through HTTP GET method (read only).
@burnout171 Agree. But I am afraid that this modification may break the conformance with information model. This issue may not be able to be solved by simplely adding a HTTP path.
I am not able to understand the problem. A connectivity service request triggers the creation of a connection, as agreed.
@rvilalta , We think that it needs to change HTTP URL for improving the integrity and completeness. We think that it needs to move _connection under _connectivityService. 1) New URL for get Connections: /config/Context/_connectivityService/{service-uuid}/_connection/ 2) New URL for get Connection detail: /config/Context/_connectivityService/{service-uuid}/_connection/{connection-uuid}/
@rvilalta The original issue is to add missing URLs to retrieve _connection through its _connectivityService. @NikolayKolyada already give an example of missing URLs.
All,
Apologize for any misinformation from past discussions. The current implementation is consitent as per the containment hierarchy that was discussed/agreed by the TAPI design team during the TAPI IM design few months back.
At a high level TAPI Context holds 2 types of GlobalClass instances (first-class objects identified by uuid): Services and Resources. In general TAPI clients can create Service, delete Service, update Service and retrieve Service. Service represents what a TAPI client has requested from the TAPI provider. In response TAPI provider provisions/creates Resources and allows them to be retrieved by TAPI client.
Now while its certainly possible to scope every Resource (Topology, Path, Connection, Notification) within its corresponding Service, it was decided to decouple them for few reasons (as per my memory):
It is certainly possible to counter argue the above points, but since it requires more discussion and group decision and is a major impact change, we should consider this in major TAPI revision only.
Related Issue #132
This issue will be tracked as part of #151 discussion
This issue has been closed due to the lack of activity for more than one year. Please reopen it if follow up is necessary.
According to TAPI, Connection object is a part of ConnectivityService. Here is the ConnectivityService swagger description:
The RPC object GetConnectionDetailsRPCInputSchema has a possibility to request a Connection related to a specific ConnectivityService:
Unfortunately the such mechanism is missing in Restconf HTTP paths. It is only possible to collect Connection details independently from ConnectivityService. Could you please add missing HTTP paths to relate Connection and ConnectivityService?