Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update uDiscovery specs #118

Open
wants to merge 12 commits into
base: main
Choose a base branch
from
473 changes: 228 additions & 245 deletions up-core-api/uprotocol/core/udiscovery/v3/udiscovery.proto

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -29,63 +29,86 @@ autonumber

box uDevice #white
Collections uEs #red
entity LDS #orange
entity uLDS #orange
entity uDDS #orange
entity uCDS #orange
end box
entity CDS #orange

uEs -> LDS: LookupUri(UriRequest)
uEs -> uLDS: FinduE(FinduERequest)
note right
<size:14>**UriRequest:**</size>
<size:14>**FinduERequest:**</size>
""uri"": ""//topic//""
end note

alt Found Locally
LDS --> uEs: UriResponse
uLDS --> uEs: FinduEResponse
note right
<size:14>**UriRequest:**</size>
<size:14>**FinduEResponse:**</size>
""uris"": {""//topic//"", ""//topic//""}
""result"": {""code"": ""OK""}
end note
|||
else Invalid Argument or Permission Denied
LDS --> uEs: UriResponse
uLDS --> uEs: FinduEResponse
note right
<size:14>**UriResponse:**</size>
<size:14>**FinduEResponse:**</size>
""result"" : { ""code"": ""INVALID_ARGUMENT | PERMISSION_DENIED"" }
end note
|||
else Remote Lookup Required
LDS -> CDS: LookupUri(UriRequest)
uLDS -> uDDS: FinduE(FinduERequest)
alt Success
CDS --> LDS: UriResponse
uDDS --> uLDS: FinduEResponse
note right
<size:14>**UriResponse:**</size>
<size:14>**FinduEResponse:**</size>
""uris"": {""//topic//"", ""//topic//""}
""result"": {""code"": ""OK""}
end note
LDS -> LDS: Cache (per ttl)
LDS --> uEs: UriResponse
uLDS -> uLDS: Cache (per ttl)
uLDS --> uEs: FinduEResponse
note right
<size:14>**UriResponse:**</size>
<size:14>**FinduEResponse:**</size>
""uris"": {""//topic//"", ""//topic//""}
""result"": {""code"": ""OK""}
end note
|||
else Remote Lookup Required
uDDS -> uCDS: FinduE(FinduERequest)
alt Success
uCDS --> uDDS: FinduEResponse
note right
<size:14>**FinduEResponse:**</size>
""uris"": {""//topic//"", ""//topic//""}
""result"": {""code"": ""OK""}
end note
uDDS -> uDDS: Cache (per ttl)
uDDS --> uLDS: FinduEResponse
uLDS -> uLDS : Cache( per ttl)
uLDS --> uEs : FinduEResponse
note right
<size:14>**FinduEResponse:**</size>
""uris"": {""//topic//"", ""//topic//""}
""result"": {""code"": ""OK""}
end note
|||
else Failure
CDS --> LDS: UriResponse
uDDS --> uLDS: FinduEResponse
note right
<size:14>**UriResponse:**</size>
<size:14>**FinduEResponse:**</size>
""result"": {""code"": ""INVALID_ARGUMENT | NOT_FOUND | PERMISSION_DENIED""}
end note
LDS --> uEs: UriResponse
uLDS --> uEs: FinduEResponse
end alt

else Not Found
LDS --> uEs: UriResponse
uLDS --> uEs: FinduEResponse
note right
<size:14>**UriResponse:**</size>
<size:14>**FinduEResponse:**</size>
""result"": {""code"": ""NOT_FOUND""}
end note
end alt

LDS --> uEs: UriResponse
uLDS --> uEs: FinduEResponse
end alt
@enduml
1 change: 1 addition & 0 deletions up-l3/udiscovery/v3/FindUE.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading