We're going to create a new SLAX op script called config-interfaces.slax, upload it to our JUNOS device, and then test it to see how it automates the workflow involved when configuring lots of repetitive services. In order to support the SLAX tool, we're going to augment the configuration of the physical interfaces on our JUNOS router to add information such as the adjacent provider and the available VLAN ranges that can be used.
First of all, create the SLAX op script by making a new text file in your preferred text editor and applying the source code, as described here:
- First of all, include the usual Juniper op script boilerplater which defines namespaces and versions.
version 1.0; ns junos = "http://xml.juniper.net/junos/*/junos"; ...