Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>cumulus-to-srlinuxNew to Visual Studio Code? Get it now.
cumulus-to-srlinux

cumulus-to-srlinux

Miguel Simoes

|
1 install
| (0) | Free
translates cumulus commands to nokia srlinux commands
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Cumulus → SR Linux

A VS Code extension that helps translate Cumulus Linux configuration into Nokia SR Linux flat CLI commands.

This extension supports:

  • A dedicated Cumulus → SR Linux activity bar view
  • A translated cheat sheet for common Cumulus-to-SR Linux mappings
  • A translator panel that forwards Cumulus config to the SR Linux chat participant
  • A command to translate selected text or the entire active editor document

Features

  • Translate Cumulus config into SR Linux CLI using the built-in chat participant
  • Cheat Sheet view illustrating common Cumulus and SR Linux command mappings
  • Translator webview for quick copy/paste and translation workflows
  • Chat participant named SR Linux Translator for Chat API integration

Usage

  1. Open a Cumulus config file in VS Code.
  2. Select the config text to translate, or keep the editor active to translate the entire document.
  3. Run the command: Translate Cumulus config to SR Linux.
  4. The extension opens VS Code Chat and sends the selected config to the SR Linux Translator participant.

Commands

  • cumulus-to-srlinux.translate — Translate selected Cumulus config or the current document.
  • cumulus-to-srlinux.showCheatSheet — Open the Cumulus → SR Linux cheat sheet.

Views

  • Activity Bar: Cumulus → SR Linux
  • Cheat Sheet: A webview that shows sample translations between Cumulus config and SR Linux flat CLI.
  • Translator: A second webview that can send translation requests directly into the chat workflow.

Translator

Paste a Cumulus Linux configuration and open Copilot Chat with a pre-filled @srlinux translation prompt.

Cheat Sheet

Browse and search common Cumulus → SR Linux command mappings side by side.

Translator view

Architecture

  • The extension registers a chat participant named SR Linux Translator.
  • Selected config text is forwarded to VS Code Chat via the built-in command.
  • The chat participant applies prompt rules and cheat sheet guidance to generate SR Linux flat CLI commands.
  • This extension does not perform the translation locally; it relies on the VS Code Chat/CoPilot session to produce the output.

Requirements

  • Visual Studio Code version ^1.118.0
  • A valid VS Code Chat/CoPilot session to use the built-in translator participant
  • Supported SR Linux version: 25.10.3

Development

Install dependencies and build the extension:

npm install
npm run compile

Run the extension in VS Code:

npm run watch

Testing

Compile and lint before running tests:

npm run pretest
npm test

Notes

  • The extension does not perform offline translation itself; it forwards Cumulus config to VS Code Chat using the SR Linux Translator chat participant.
  • Output is intended to be SR Linux flat CLI only, with all non-comment lines starting with set /.

Disclaimer

  • This extension is a translation aid, not a production validation tool.
  • AI-generated configurations should be reviewed and tested before use in production.
  • Translated commands may not be 100% accurate for every environment or SR Linux release.

License

This repository is licensed under the Apache License, Version 2.0. See the included LICENSE file for details.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft