ironcore-dev / ironcore-dev/sonic-operator

Remove the legacy template-based ZTP mode

Open
#178 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/switch-automation triage/needed
Dominant language
Go
Stars
4
Forks
155
Avg merge
1d 12h
Merged PRs (30d)
8

Description

Summary

Deprecate and remove the legacy --ztp-mode=templates mode, including the leaf and spine ZTP templates.

Also remove the operator-level ConfigMap configuration used to provide switch metadata to these templates.

Motivation

The existing templates are highly opinionated and configure topology-specific switch settings directly.

The recent sonic-operator direction is to describe the desired bootstrap configuration through the Switch spec and let it render the corresponding ZTP script. Removing the legacy mode avoids maintaining two different configuration models and keeps switch bootstrap behavior declarative.

This change should not remove the separate --ztp-mode=configmap option for serving user-provided ZTP scripts.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the --ztp-mode handling, the leaf and spine ZTP templates, and the operator-level ConfigMap configuration that supplies switch metadata. Trace how these paths are exposed and tested, then verify the templates mode and its metadata configuration are removed while --ztp-mode=configmap still serves user-provided scripts.

Written by the indexing model from the issue text.

Assessment

Tech stack
go, kubernetes
Domain
infrastructure
Issue type
Refactor
Difficulty
4/5
Estimated time
3-5 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.