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

Add name resolution service #3

Open
pavel-kirienko opened this issue May 1, 2023 · 1 comment
Open

Add name resolution service #3

pavel-kirienko opened this issue May 1, 2023 · 1 comment
Assignees

Comments

@pavel-kirienko
Copy link
Member

# NameToIDRequest.0.1.dsdl
# This message is published when a node desires to map a computational graph name to a numerical identifier.
# The Raft node that is currently elected as the Leader should find the entry in the log and send the response.
# If there is no such entry in the log, a new one needs to be created by the Leader ad-hoc;
# the response with the new value is then published as soon as the Raft consensus is reached (replication completed).
ResourceKind.0.1 kind
uavcan.primitive.String.1.0 name
@extent 512*8
# NameToIDResponse.0.1.dsdl
# This message is published by a name service node to inform the subscribers of the identifier associated with the named resource.
# If there is no known association, an ID has to be chosen automatically and the name table be extended ad-hoc.
# If there is no known association and it is impossible to create one at the moment, no response should be published.
uint32 id
# The requested identifier value.
ResourceKind.0.1 kind
uavcan.primitive.String.1.0 name
@extent 512*8
# ResourceKind.0.1.dsdl
# Kind of a named resource.
uint4 value
uint4 SUBJECT = 0
@sealed
@pavel-kirienko
Copy link
Member Author

Only the Leader should participate in the name resolution exchanges. Other cluster nodes should ignore name requests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants