In the SLAX language, a variable is a reference to an assigned value. The variable name is used within the script, and the script engine substitutes the value in its place when it executes the script. SLAX variables are immutable; they cannot be changed. This might seem strange to those who are accustomed to other programming languages, but in SLAX variables always refer to the value to which they were first assigned.
junos namespaces are reserved. Do not use any of these namespaces when creating variables, parameters, elements, or templates.
- Do not start any names with
"slax". These names are reserved for future use.
While the following serve as guidelines, they are also best practices that let your scripts conform to Junos configuration naming standards as well as to official Junos scripts.
- Write variables, parameters, elements, and templates entirely in lowercase.
- Separate multiple words with a dash ( - ), for example: