Skip to main content

VS Code SR v0.18

· 2 min read

I bring to you srpls/vscode-sr v0.1.8 with two main goodies:

  • Classic CLI support.
  • Inventory sidebar for SR OS config.

Classic CLI​

Despite MD-CLI coming in SROS R16, some will never let go. For me that's enough of a reason to warrant supporting it in the extension/language server.

The great thing about MD-CLI is it was Model-driven. In classic we don't really have a model as a source to validate the config against, hence functionality for classic is limited to:

  • syntax highlighting
  • config stanza collapse/expansion

No validation or completions to be found. Sorry. The magic is all based on indentation and parsing of exit keywords.

Inventory tree​

Another thing that will never die is the utilitarian tree-view UI. For SR-OS configs you can now use this to get a quick view at the 'inventory' of your config.

At a high level you will have trees for:

  • Hardware (cards and ports).
  • LAGs.
  • Services (VPRN, VPLS, IES, EPIPE, SDPs).
  • Routing instances (and their routed interfaces).
  • SRv6 SID/uSID locators and blocks.

Expanding the tree can show you each of the relevant configured <things>, and depending you can also quickly see the admin status.

Thats it​

Please do try the extension and let me know if you find any bugs (likely). As usual just find it on the vscode extension marketplace, or if you're using a more exotic editor it also is on OpenVSX.

VS Code