Skip to content

Restart GNMI and Telemetry on VRF update through GCU - #4395

Merged
bhouse-nexthop merged 1 commit into
sonic-net:masterfrom
spandan-nexthop:spandan-nexthop.vrf-aware-gnmi
Jun 15, 2026
Merged

bhouse-nexthop merged 1 commit into
sonic-net:masterfrom
spandan-nexthop:spandan-nexthop.vrf-aware-gnmi

Conversation

@spandan-nexthop

@spandan-nexthop spandan-nexthop commented Mar 25, 2026

Copy link
Copy Markdown
Contributor

What I did

Restarting gNMI and Telemetry services if the VRF is changed via GCU.

Fixes: sonic-net/sonic-gnmi#504
Related PRs:

How I did it

This change adds gnmi and telemetry validators to check for a change in VRF and restarts the services accordingly.

How to verify it

Added gNMI and Telemetry service validator tests have been passing.

Previous command output (if the output of a command-line utility has changed)

New command output (if the output of a command-line utility has changed)

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@spandan-nexthop
spandan-nexthop force-pushed the spandan-nexthop.vrf-aware-gnmi branch from c5c60ae to 1d3be98 Compare April 16, 2026 00:03
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@ronan-nexthop

Copy link
Copy Markdown

@DavidZagury @qiluo-msft @wen587 can you review as you have reviewed/edited code in this area, we are targeting 202605 so would like to get this reviewed asap as it has gone stale, thanks

@spandan-nexthop
spandan-nexthop force-pushed the spandan-nexthop.vrf-aware-gnmi branch from 1d3be98 to 2fd6d03 Compare April 29, 2026 23:27
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@ronan-nexthop

Copy link
Copy Markdown

@sneelam20 do you have reviewers in mind you could assign this to, this feature is targeting 202605 which is branching soon.

Signed-off-by: Spandan Chowdhury <spandan@nexthop.ai>
@spandan-nexthop
spandan-nexthop force-pushed the spandan-nexthop.vrf-aware-gnmi branch from 2fd6d03 to b547ce4 Compare May 25, 2026 17:19
@mssonicbld

Copy link
Copy Markdown
Collaborator

/azp run

@azure-pipelines

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

@sneelam20
sneelam20 requested a review from kwangsuk May 28, 2026 04:31
@bhouse-nexthop
bhouse-nexthop merged commit 822150d into sonic-net:master Jun 15, 2026
9 checks passed
anders-nexthop pushed a commit to sonic-net/sonic-mgmt that referenced this pull request Jun 23, 2026
<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit
easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should
reviewer start? background context?
- List any dependencies that are required for this change.
-->
Parameterize gNMI CONFIG DB tests with different VRFs to ensure correct
VRF binding of gNMI listener

Summary:
Fixes sonic-net/sonic-gnmi#504
Depends on:
- sonic-net/sonic-gnmi#503
- sonic-net/sonic-buildimage#23867
- sonic-net/sonic-utilities#4395

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] New Test case
    - [x] Skipped for non-supported platforms
- [ ] Test case improvement


### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [ ] 202505

### Approach
#### What is the motivation for this PR?
To test the changes in sonic-net/sonic-gnmi#503
and sonic-net/sonic-buildimage#23867

#### How did you do it?
Parameterized `test_gnmi_configdb.py` with `default`, `mgmt_vrf` and a
custom VRF scenario.

#### How did you verify/test it?
Manual verification of relevant changes are already done with the
`sonic-buildimage` changes.
The updated tests ran successfully in local setup.

#### Any platform specific information?
NA

#### Supported testbed topology if it's a new test case?
Any testbed works for the default and `mvrf` test cases.
Custom non-mgmt VRF testcase requires a `t0` topology for now, but it is
not a realistic case anyway since the gNMI request is shoved through a
dataplane VRF.

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
NA

#### A picture of a cute animal (not mandatory but encouraged)

![samoyed](https://github.com/user-attachments/assets/fb646e32-3eca-4130-a530-7bc34b7f68d0)

Signed-off-by: Spandan Chowdhury <spandan@nexthop.ai>
selldinesh pushed a commit to selldinesh/sonic-mgmt that referenced this pull request Jun 25, 2026
<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit
easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should
reviewer start? background context?
- List any dependencies that are required for this change.
-->
Parameterize gNMI CONFIG DB tests with different VRFs to ensure correct
VRF binding of gNMI listener

Summary:
Fixes sonic-net/sonic-gnmi#504
Depends on:
- sonic-net/sonic-gnmi#503
- sonic-net/sonic-buildimage#23867
- sonic-net/sonic-utilities#4395

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] New Test case
    - [x] Skipped for non-supported platforms
- [ ] Test case improvement

### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [ ] 202505

### Approach
#### What is the motivation for this PR?
To test the changes in sonic-net/sonic-gnmi#503
and sonic-net/sonic-buildimage#23867

#### How did you do it?
Parameterized `test_gnmi_configdb.py` with `default`, `mgmt_vrf` and a
custom VRF scenario.

#### How did you verify/test it?
Manual verification of relevant changes are already done with the
`sonic-buildimage` changes.
The updated tests ran successfully in local setup.

#### Any platform specific information?
NA

#### Supported testbed topology if it's a new test case?
Any testbed works for the default and `mvrf` test cases.
Custom non-mgmt VRF testcase requires a `t0` topology for now, but it is
not a realistic case anyway since the gNMI request is shoved through a
dataplane VRF.

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
NA

#### A picture of a cute animal (not mandatory but encouraged)

![samoyed](https://github.com/user-attachments/assets/fb646e32-3eca-4130-a530-7bc34b7f68d0)

Signed-off-by: Spandan Chowdhury <spandan@nexthop.ai>
Signed-off-by: selldinesh <dinesh.sellappan@keysight.com>
Yogapriya-cisco pushed a commit to vrajeshe/sonic-utilities that referenced this pull request Jul 10, 2026
#### What I did
Restarting gNMI and Telemetry services if the VRF is changed via GCU.

Fixes: sonic-net/sonic-gnmi#504
Related PRs:
- sonic-net/sonic-gnmi#503
- sonic-net/sonic-buildimage#23867
- sonic-net/sonic-mgmt#20456

#### How I did it
This change adds gnmi and telemetry validators to check for a change in VRF and restarts the services accordingly.

#### How to verify it
Added gNMI and Telemetry service validator tests have been passing.

#### Previous command output (if the output of a command-line utility has changed)

#### New command output (if the output of a command-line utility has changed)

Signed-off-by: Spandan Chowdhury <spandan@nexthop.ai>
Signed-off-by: Yogapriya Mohankumar <ymohanku@cisco.com>
selldinesh pushed a commit to selldinesh/sonic-mgmt that referenced this pull request Jul 16, 2026
<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit
easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should
reviewer start? background context?
- List any dependencies that are required for this change.
-->
Parameterize gNMI CONFIG DB tests with different VRFs to ensure correct
VRF binding of gNMI listener

Summary:
Fixes sonic-net/sonic-gnmi#504
Depends on:
- sonic-net/sonic-gnmi#503
- sonic-net/sonic-buildimage#23867
- sonic-net/sonic-utilities#4395

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] New Test case
    - [x] Skipped for non-supported platforms
- [ ] Test case improvement

### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [ ] 202505

### Approach
#### What is the motivation for this PR?
To test the changes in sonic-net/sonic-gnmi#503
and sonic-net/sonic-buildimage#23867

#### How did you do it?
Parameterized `test_gnmi_configdb.py` with `default`, `mgmt_vrf` and a
custom VRF scenario.

#### How did you verify/test it?
Manual verification of relevant changes are already done with the
`sonic-buildimage` changes.
The updated tests ran successfully in local setup.

#### Any platform specific information?
NA

#### Supported testbed topology if it's a new test case?
Any testbed works for the default and `mvrf` test cases.
Custom non-mgmt VRF testcase requires a `t0` topology for now, but it is
not a realistic case anyway since the gNMI request is shoved through a
dataplane VRF.

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
NA

#### A picture of a cute animal (not mandatory but encouraged)

![samoyed](https://github.com/user-attachments/assets/fb646e32-3eca-4130-a530-7bc34b7f68d0)

Signed-off-by: Spandan Chowdhury <spandan@nexthop.ai>
Signed-off-by: selldinesh <dinesh.sellappan@keysight.com>
ssithaia-ebay pushed a commit to ssithaia-ebay/sflow-yang-sonic-mgmt that referenced this pull request Jul 21, 2026
<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit
easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should
reviewer start? background context?
- List any dependencies that are required for this change.
-->
Parameterize gNMI CONFIG DB tests with different VRFs to ensure correct
VRF binding of gNMI listener

Summary:
Fixes sonic-net/sonic-gnmi#504
Depends on:
- sonic-net/sonic-gnmi#503
- sonic-net/sonic-buildimage#23867
- sonic-net/sonic-utilities#4395

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] New Test case
    - [x] Skipped for non-supported platforms
- [ ] Test case improvement

### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [ ] 202505

### Approach
#### What is the motivation for this PR?
To test the changes in sonic-net/sonic-gnmi#503
and sonic-net/sonic-buildimage#23867

#### How did you do it?
Parameterized `test_gnmi_configdb.py` with `default`, `mgmt_vrf` and a
custom VRF scenario.

#### How did you verify/test it?
Manual verification of relevant changes are already done with the
`sonic-buildimage` changes.
The updated tests ran successfully in local setup.

#### Any platform specific information?
NA

#### Supported testbed topology if it's a new test case?
Any testbed works for the default and `mvrf` test cases.
Custom non-mgmt VRF testcase requires a `t0` topology for now, but it is
not a realistic case anyway since the gNMI request is shoved through a
dataplane VRF.

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
NA

#### A picture of a cute animal (not mandatory but encouraged)

![samoyed](https://github.com/user-attachments/assets/fb646e32-3eca-4130-a530-7bc34b7f68d0)

Signed-off-by: Spandan Chowdhury <spandan@nexthop.ai>
Signed-off-by: ssithaia-ebay <ssithaian@ebay.com>
rameshraghupathy pushed a commit to rameshraghupathy/sonic-utilities that referenced this pull request Jul 29, 2026
#### What I did
Restarting gNMI and Telemetry services if the VRF is changed via GCU.

Fixes: sonic-net/sonic-gnmi#504
Related PRs:
- sonic-net/sonic-gnmi#503
- sonic-net/sonic-buildimage#23867
- sonic-net/sonic-mgmt#20456

#### How I did it
This change adds gnmi and telemetry validators to check for a change in VRF and restarts the services accordingly.

#### How to verify it
Added gNMI and Telemetry service validator tests have been passing.

#### Previous command output (if the output of a command-line utility has changed)

#### New command output (if the output of a command-line utility has changed)

Signed-off-by: Spandan Chowdhury <spandan@nexthop.ai>
Signed-off-by: Ramesh Raghupathy <ram@cisco.com>
rraghav-cisco pushed a commit to rraghav-cisco/sonic-mgmt that referenced this pull request Aug 24, 2026
<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit
easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should
reviewer start? background context?
- List any dependencies that are required for this change.
-->
Parameterize gNMI CONFIG DB tests with different VRFs to ensure correct
VRF binding of gNMI listener

Summary:
Fixes sonic-net/sonic-gnmi#504
Depends on:
- sonic-net/sonic-gnmi#503
- sonic-net/sonic-buildimage#23867
- sonic-net/sonic-utilities#4395

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [ ] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [x] New Test case
    - [x] Skipped for non-supported platforms
- [ ] Test case improvement

### Back port request
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411
- [ ] 202505

### Approach
#### What is the motivation for this PR?
To test the changes in sonic-net/sonic-gnmi#503
and sonic-net/sonic-buildimage#23867

#### How did you do it?
Parameterized `test_gnmi_configdb.py` with `default`, `mgmt_vrf` and a
custom VRF scenario.

#### How did you verify/test it?
Manual verification of relevant changes are already done with the
`sonic-buildimage` changes.
The updated tests ran successfully in local setup.

#### Any platform specific information?
NA

#### Supported testbed topology if it's a new test case?
Any testbed works for the default and `mvrf` test cases.
Custom non-mgmt VRF testcase requires a `t0` topology for now, but it is
not a realistic case anyway since the gNMI request is shoved through a
dataplane VRF.

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
NA

#### A picture of a cute animal (not mandatory but encouraged)

![samoyed](https://github.com/user-attachments/assets/fb646e32-3eca-4130-a530-7bc34b7f68d0)

Signed-off-by: Spandan Chowdhury <spandan@nexthop.ai>
Signed-off-by: Raghavendran Ramanathan <rraghav@cisco.com>
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.

Enhancement: Enable VRF binding for gNMI and Telemetry

6 participants