In this recipe, we'll create a new SLAX-based op script, config-interface.slax, and use it as a provisioning frontend command intended to assist an operator in network service provisioning on Ethernet interfaces.
We'll assume an environment similar to the following diagram: an ISP router providing an IP-layer service and connected to several Ethernet-layer access providers on different interfaces. As a service request comes in to the provisioning center, an operator is required to enter some configuration on the JUNOS router to provide the service. This typically involves allocating some resources such as IP addresses and VLAN identifiers and applying them to a provisioning template configuration.
To automate this activity, we'll create our SLAX script so that it will take a series of user parameters and apply the configuration change...