Skip to content

Subscribe support for openconfig-* module origins - #735

Open
Verma-Anukul wants to merge 4 commits into
sonic-net:masterfrom
Verma-Anukul:upstream/gnmi-normalize-origin-subscribe
Open

Verma-Anukul wants to merge 4 commits into
sonic-net:masterfrom
Verma-Anukul:upstream/gnmi-normalize-origin-subscribe

Conversation

@Verma-Anukul

Copy link
Copy Markdown
Contributor

Summary

  • Add normalizeOrigin() to map openconfig-* module origins to canonical openconfig for translib
  • Use it in Subscribe prefix routing before DB path population

Split from #729 per review feedback. Follow-up to ONCE subscribe split; independent of dialout wildcard.

Test plan

  • /azp run

Define normalizeOrigin() in gnmi_server so client_subscribe can map
openconfig-* module origins to canonical openconfig per gNMI spec.

Signed-off-by: Verma-Anukul <anukulverma2013@gmail.com>
No functional change; retrigger Azure Pipelines for PR sonic-net#729.

Signed-off-by: Verma-Anukul <anukulverma2013@gmail.com>
Apply normalizeOrigin to the subscription prefix before DB path
population so openconfig-* module origins reach translib correctly.

Signed-off-by: Verma-Anukul <anukulverma2013@gmail.com>
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@mssonicbld

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@Verma-Anukul Verma-Anukul changed the title gnmi: normalize openconfig-* Subscribe prefix origins Subscribe support for openconfig-* module origins Aug 4, 2026
@Verma-Anukul

Copy link
Copy Markdown
Contributor Author

@hdwhdw
Please help in PR review

Cover normalizeOrigin branches so diff coverage includes the openconfig
prefix collapse path used before translib routing.

Signed-off-by: Verma-Anukul <anukulverma2013@gmail.com>
@mssonicbld

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@mssonicbld

Copy link
Copy Markdown
Contributor

Hi, there are workflow run(s) waiting for approval, you may be first-time contributor. I will notify maintainers to help approve once PR is approved. Thanks!

---Powered by SONiC BuildBot

@Verma-Anukul

Copy link
Copy Markdown
Contributor Author

@hdwhdw
Please review this PR

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