Skip to content

Append custom request extension (get/set only)#813

Merged
karimra merged 1 commit intoopenconfig:mainfrom
Voronar:set_custom_ext
Feb 23, 2026
Merged

Append custom request extension (get/set only)#813
karimra merged 1 commit intoopenconfig:mainfrom
Voronar:set_custom_ext

Conversation

@Voronar
Copy link
Contributor

@Voronar Voronar commented Feb 20, 2026

The feature is based on work are done here which introduced registered extensions map with custom extension messages and response extension JSON-formatting.

Now it is possible to append custom extension to set/get request in JSON format:

gnmic -a 127.0.0.1 --insecure \
	--proto-dir protos \
	--proto-file ext1.proto \
	--registered-extensions 10:package1.Message1 \
	--request-extensions '{ "10": { "msg1_field": 10 } }' \
	set --target node1 --path-replace root:/ --replace-value '{}'

If the response contains the same extension it would be automatically JSON-formatted based on feature I mentioned above.

@karimra
Copy link
Collaborator

karimra commented Feb 23, 2026

Thanks for the contribution and for making the changes.

@karimra karimra merged commit 49d0eb1 into openconfig:main Feb 23, 2026
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants