Skip to content

srl-labs/vscode-sr

Repository files navigation

Nokia SR Linux & SR OS Language Server

VS Code

A VS Code language server extension for Nokia SR OS and SR Linux configuration files which uses the srpls language server.

Features

  • Syntax highlighting for:
    • *.sros.cfg
    • *.srl.cfg
  • Flatten/unflatten conifg on-demand for SR Linux
  • Automatic configuration keyword suggestions based on the YANG model.

SR Linux frontpanel view

See the location of the physical port on the box by higlighting the port in the config file.

s3.mp4

Version aware

Based on the SR Linux & SR OS (model-driven) YANG Models, check the config against the YANG model for any given software release.

s4.mp4

Quick search

Use the flat config path syntax to jump to positions in a braced-format config file. Makes working with huge config files easy.

s1.mp4

Flatten/Unflatten

Easily convert the config file between flat/braced formats.

s2.mp4

Quickstart

SR Linux / SR OS

  1. Create a file named myconfig.srl.cfg.
  2. Add the platform on the first line:
# platform=ixr-d3l
  1. Save and start typing config. Suggestions should appear automatically.

FAQ

Q: Where is the srpls binary installed?

The srpls language server binary is by default installed into the following locations (dependant on OS):

  • ~/.srpls (Linux & MacOS)
  • %USERPROFILE%\.srpls (Windows)

Development

npm install
npm run compile
npm run lint

About

A VS Code language server extension for Nokia SR Linux and SR OS

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors