Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Automation Scripting User Guide
Table of Contents Expand all
list Table of Contents
file_download PDF
{ "lLangCode": "en", "lName": "English", "lCountryCode": "us", "transcode": "en_US" }
English
keyboard_arrow_right

append

date_range 13-Jan-21

Syntax

content_copy zoom_out_map
append name += value;

Description

Append a value to the node set contained in a mutable variable. The variable must be defined using the mvar statement.

Attributes

name

Name of the mutable variable.

value

Value to append to the node set.

SLAX Example

The following snippet appends the <item> element and <name> and <size> child elements to the node set contained in the mutable variable block:

content_copy zoom_out_map
mvar $block;
set $block = <block> "item list";

for $item (list) {
    append $block += <item> {
        <name> $item/name;
        <size> $item/size;
    }
}

Release Information

Statement introduced in version 1.1 of the SLAX language, which is supported in Junos OS Release 12.2 and later releases.

footer-navigation