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

Testing ex-atm-vc-limit.xsl

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

  1. From Limiting the Number of ATM Virtual Circuits, copy the XSLT script into a text file, and name the file ex-atm-vc-limit.xsl. Copy the ex-atm-vc-limit.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 {
                file ex-atm-vc-limit.xsl;
            }
        }
    }
    interfaces {
        at-1/2/3 {
            unit 15 {
                family inet {
                    address 10.12.13.15/20;
                }
            }
            unit 16 {
                family inet {
                    address 10.12.13.16/20;
                }
            }
            unit 17 {
                family inet {
                    address 10.12.13.17/20;
                }
            }
            unit 18 {
                family inet {
                    address 10.12.13.18/20;
                }
            }
            unit 19 {
                family inet {
                    address 10.12.13.19/20;
                }
            }
            unit 20 {
                family inet {
                    address 10.12.13.20/20;
                }
            }
            unit 21 {
                family inet {
                    address 10.12.13.21/20;
                }
            }
            unit 22 {
                family inet {
                    address 10.12.13.22/20;
                }
            }
            unit 23 {
                family inet {
                    address 10.12.13.23/20;
                }
            }
            unit 24 {
                family inet {
                    address 10.12.13.24/20;
                }
            }
            unit 25 {
                family inet {
                    address 10.12.13.25/20;
                }
            }
            unit 26 {
                family inet {
                    address 10.12.13.26/20;
                }
            }
        }
    }
  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. When you issue the commit command, the following output appears:
    [edit]
    user@host# commit
    [edit interfaces]
        'at-1/2/3'
        ATM VC limit exceeded; 12 are configured but only 10 are allowed.
    error: 1 error reported by commit scripts
    error: commit script failure

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