THE LINUX FOUNDATION PROJECTS
Blog

SONiC Mentorship Spotlight: Vinod Dhoke on Simplifying Platform and Device Management

By December 2, 2026No Comments

Through guided, hands-on project work, the SONiC Mentorship Program helps new contributors turn technical challenges into real-world open source impact.

In this spotlight, we speak with Vinod Dhoke, a B.Tech student in Computer Science and Engineering at IIT Indore, about how shared templates can make it easier to add new platforms and devices to SONiC.

About the Mentee

Vinod joined the SONiC Mentorship Program to gain experience contributing to a large open source network operating system.

He enjoys systems programming and mostly works in C, C++, Rust and Linux. Contributing to SONiC showed him how a large open source project keeps support for many vendors and hardware platforms manageable.

Q: What project did you work on, and why is it important to SONiC?

My project was Simplify Platform and Device Management. Onboarding a new platform or device in SONiC is a cumbersome process: changesets are large and reviews are tedious. A big reason is duplication, because many devices carry their own nearly identical copies of templates like buffers.json.j2 and qos.json.j2.

The mentorship has four objectives. The main one, and the largest part of my work, is modularization: letting a device share common templates and describe only what is different about it, so onboarding changesets become much smaller and bug fixes are made in one place.

The other objectives support this goal:

  • Automating reviewer work, for example by detecting binary files that are added to a pull request, so reviewers no longer have to spot them by hand.
  • Selective commit gating, so CI builds and tests only the platforms a change actually touches instead of wasting resources on unrelated ones, while platforms outside the usual set still get tested.
  • Directory-specific Copilot instructions for platform/ and device/, so AI tools generate changes that follow SONiC conventions and CI expectations and need fewer review cycles.

Q: What were your main technical contributions?

My main contribution was the modularization work. I investigated how templates are already shared in sonic-buildimage and found mechanisms such as a shared include with a topology variable, a shared include with overriding macros, and filesystem symlinks. I then used the first two in a real migration: buffers.json.j2 files now use a shared include driven by a single default_topo variable, and qos.json.j2 files use a shared include where each device overrides only the blocks it needs. I documented all the mechanisms in a design document.

For the other objectives, I built an automated binary artifact check that runs on pull requests, a selective build gating stage in the Azure pipeline that maps changed paths to the platforms that need building (with a safe fallback when a path is unknown), and path-specific Copilot instruction files for platform/ and device/. Each came with tests and a short design document.

Q: What challenges did you face, and what did you learn?

Every task in the mentorship was a new thing to learn. The first challenge was simply finding my way around a very large codebase. I learned to search it with grep, follow includes and imports from one file to the next, and read git history to see how and why something was built, instead of trying to read everything.

The technical details also took time. In Jinja, include shares variables with the shared template while import does not, and the qos templates depend on the buffers templates, so the order of migration mattered. For selective gating I had to learn how Azure Pipelines stages and conditions work, and for the binary check, how file signatures differ from file names. I even found that GitHub Copilot does not read a nested instructions file, so I had to learn the path-specific approach instead.

My earlier projects helped here. Building a system monitoring daemon in Rust had already taught me to learn an unfamiliar system by reading documentation and source code until it makes sense. That habit is what got me through each new area in SONiC.

Q: What impact has this mentorship had, and what are your next steps?

This mentorship took me from reading about large build systems to actually changing one, and taught me how to write, test and document changes for a community project.

Next, I plan to get my pull requests reviewed and merged, migrate more devices to the shared templates, and continue contributing to the SONiC community.

Q: Is there anyone you’d like to acknowledge?

This project has been a valuable learning experience and a great introduction to open source networking. I would like to thank my mentor, Antony Rheneus, for his continuous guidance, technical direction and support throughout the project. I’m also thankful to the SONiC community members who reviewed my work.

Finally, I want to thank the LFX Mentorship Program and the broader SONiC community for providing this opportunity and creating such a welcoming environment for contributors.

Get Involved

Want to contribute to SONiC? Explore the SONiC Mentorship Program.