Skip to content

Conversation

@spandan-nexthop
Copy link

@spandan-nexthop spandan-nexthop commented Sep 1, 2025

Why I did it

Operators have requested to allow gNMI server to be bound to a particular VRF.
Though the more common use case is to be able to bind it to mvrf only, we have enabled this feature for all VRFs.
Fixes #504
Fixes sonic-net/sonic-buildimage#23865

How I did it

Added GnmiVrf to gNMI/Telemetry config which is used to create the gNMI listener bound to the given VRF.

How to verify it

  • sonic-mgmt tests have been added here for verifying the changes
  • sonic-buildimage changes with manual verification steps have been added here

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111

Description for the changelog

Add GnmiVrf to gNMI/Telemetry config to bind gNMI listener to a VRF

Link to config_db schema for YANG module changes

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

beluga-whale

@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@spandan-nexthop spandan-nexthop force-pushed the spandan-nexthop.vrf-aware-gnmi branch from e8e5aa6 to a30e19e Compare September 1, 2025 23:19
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@spandan-nexthop spandan-nexthop force-pushed the spandan-nexthop.vrf-aware-gnmi branch from a30e19e to 0d14a4d Compare September 1, 2025 23:42
@mssonicbld
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@anders-nexthop
Copy link
Contributor

@qiluo-msft @sneelam20 @anand-kumar-subramanian @seiferteric

Adding sonic-gnmi maintainers for viz

}
file := os.NewFile(uintptr(fd), "")
listener, err := net.FileListener(file)
file.Close()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use defer to close the file

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 Enhancement: Enable VRF binding for gNMI service

4 participants