Repository navigation
Don't advertise the Annotation API from the registry's node - #543
Merged
lo-simon merged 1 commit intoNov 18, 2026
Merged
Conversation
The registry's own Node resource is made by make_node, which adds an urn:x-nmos:service:annotation/v1.0 entry to its services whenever annotation_port is not negative. The annotation_port setting has a default of 3212, and the registry server does not serve the Annotation API, so by default the registry's node advertises an IS-13 endpoint that nothing answers. Make -1 the registry's run-time default for annotation_port, so that its node advertises the Annotation API only when annotation_port is configured explicitly. Signed-off-by: Gareth Sylvester-Bradley <garethsb@nvidia.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The registry's own Node resource is made by
make_node, which adds anurn:x-nmos:service:annotation/v1.0entry to itsserviceswheneverannotation_portis not negative. Theannotation_portsetting has a default of 3212, and the registry server does not serve the Annotation API. So by default,nmos-cpp-registryadvertises an IS-13 endpoint that nothing answers. We found this on a lab registry, where IS-13 clients that discover endpoints from Nodeservicestried to annotate the registry's node and got no response on port 3212.This PR makes -1 the registry's run-time default for
annotation_port, ininsert_default_settings. The registry's node then advertises the Annotation API only whenannotation_portis configured explicitly, for example by an application that builds a registry which also servesmake_annotation_api. Node defaults are unchanged.testAnnotationPortDefaultscovers the registry with and withouthttp_port, an explicit registryannotation_port, and the Node default.@jonathan-r-thorpe, @lo-simon: do you think the registry needs to support IS-13 for its own node? If so, the alternative is to serve
make_annotation_apifromregistry_server.cppinstead of disabling the advertisement.Co-authored-by: Gareth's 🤖 buddy