A VS Code language server extension for Nokia SR OS and SR Linux configuration files which uses the srpls language server.
- Syntax highlighting for:
*.sros.cfg*.srl.cfg
- Flatten/unflatten conifg on-demand for SR Linux
- Automatic configuration keyword suggestions based on the YANG model.
See the location of the physical port on the box by higlighting the port in the config file.
s3.mp4
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
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
Easily convert the config file between flat/braced formats.
s2.mp4
- Create a file named
myconfig.srl.cfg. - Add the platform on the first line:
# platform=ixr-d3l- Save and start typing config. Suggestions should appear automatically.
The srpls language server binary is by default installed into the following locations (dependant on OS):
~/.srpls(Linux & MacOS)%USERPROFILE%\.srpls(Windows)
npm install
npm run compile
npm run lint