This Week: Junos Automation Reference for SLAX 1.0

SLAX is a syntax overlay of the XSLT programming language. While XSLT is used internally by Junos to power its on-box scripting capabilities, it is not the most intuitive or efficient of languages, so SLAX was created to simplify on-box script programming and make it more comfortable to write. This reference guide provides descriptions and examples of all of the basic components of the SLAX language including its statements, operators, functions, elements, templates, and default parameters.

  • Contains all the boolean, comparison, mathematic, and other operators in the SLAX language, including those derived from XPath, those added to improve efficiency, and certain scenarios where the SLAX-specific operators are not supported.
  • Documents all of the functions that are available natively in SLAX 1.0, including those functions that come from XPath, XSLT, EXSLT, and Junos itself.
  • Details the XSLT elements and additional extension elements that might be needed within a Junos SLAX script.
  • Documents the templates that are available in the junos.xsl import file as well as the default global parameters.

“This book is simply awesome. I used it twice the very first day I had it! It’s a Swiss Army knife of a reference, all the Junos automation a user might need in one monstrously-detailed package.”

Phil Shafer, Junos UI Architect, Juniper Networks

Sample Pages

Download Book

Day One books are a free download for our J-Net members*. If you’re not a J-Net member, create a user account now. It’s fast and there’s no commitment or spam. Once you’re a member you can come back and download any of the Day One books.

Download: J-Net Member
Download: Not a J-Net Member

* If you have an existing Juniper user account, you can use it to login to J-Net

About the Author(s)

Curtis Call is a Senior Systems Engineer at Juniper Networks, has over a decade of experience working with Junos, and has authored multiple books on Junos on-box automation. He is a Juniper Networks Certified Internet Expert (JNCIE-M #43).

Author Q & A

What got you started on this book?

SLAX inherits its capabilities from a number of different sources and there was no consolidated source that documented all of the various functions, elements, statements, etc that were supported. I saw that as a critical gap and wanted to fill it.

Who is this book for?

This book is for anyone that wants to write SLAX scripts for Junos devices. It is not a tutorial, so there is an assumption that the basic understanding of Junos scripting is already in place, but it is accessible both for the novice that is trying to understand all the possibilities as well as for the expert that wants details on the exact behavior of a function.

After reading this book, what’s the take away?

While it is possible to read this cover to cover it is doubtful that most would choose to do so, so this is a hard question to answer. I would expect that script writers would turn to this reference guide to answer specific questions and I hope that they will take away the information they were looking for.

What are you hoping that people will learn from this book?

I hope that script writers will understand the wide variety of functions that are available to make their scripting life easier. I also hope they will be able to learn the ins and outs of the various functions, their caveats, etc.

What do you recommend as the next item to read after this book?

That would depend on the skill level of the particular script writer, but I would recommend they take advantage of the various Day One and This Week books within the Junos Automation Series.