Nokia SR Linux & SR OS Language Server
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:
- Flatten/unflatten conifg on-demand for SR Linux
- Automatic configuration keyword suggestions based on the YANG model.
Quickstart
SR Linux / SR OS
- 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.
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
| |