[Contents] [Prev] [Next] [Index] [Report an Error]

Testing ex-atm-logical.xsl

To test the example in this section, perform the following steps:

  1. From Automatically Configuring Logical Interfaces and IP Addresses, copy the XSLT script into a text file, and name the file ex-atm-logical.xsl. Copy the ex-atm-logical.xsl file to the /var/db/scripts/commit directory on your routing platform.
  2. Select the following configuration, and press Ctrl+c to copy it to the clipboard. If you are using the SLAX version of the script, change the filename to filename.slax.
    system {
        scripts {
            commit {
                allow-transients;
                file ex-atm-logical.xsl;
            }
        }
    }
    interfaces {
        apply-macro at-1/2/3 {
            address 10.12.13.14/20;
            max 200;
            unit 32;
        }
        at-1/2/3 {
            atm-options {
                pic-type atm2;
                vpi 0;
            }
        }
    }
  3. Merge the configuration into your routing platform configuration by issuing the load merge terminal configuration mode command:
    [edit]
    user@host# load merge terminal
    [Type ^D at a new line to end input]
    > Paste the contents of the clipboard here<
    1. At the prompt, paste the contents of the clipboard using the mouse and the paste icon.
    2. Press Enter.
    3. Press Ctrl+d.
  4. Issue the commit command:
    [edit]
    user@host# commit

    When you issue the show interfaces at-1/2/3 | display commit-scripts configuration mode command, the following output appears:

    [edit]
    user@host# show interfaces at-1/2/3 | display commit-scripts
    atm-options {
        pic-type atm2;
        vpi 0;
    }
    unit 32 {
        vci 32;
        family inet {
            address 10.12.13.14/20;
        }
    }
    unit 33 {
        vci 33;
        family inet {
            address 10.12.13.15/20;
        }
    }
    unit 34 {
        vci 34;
        family inet {
            address 10.12.13.16/20;
        }
    }
    unit 35 {
        vci 35;
        family inet {
            address 10.12.13.17/20;
        }
    }

    ... # Logical units 36 through 199 are omitted for brevity.

    unit 200 {
        vci 200;
        family inet {
            address 10.12.13.182/20;
        }
    }

    [Contents] [Prev] [Next] [Index] [Report an Error]