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


JUNOS Extension Functions

The following sections explain each of the extension functions available when you write JUNOS commit and op scripts. The functions are organized alphabetically.

jcs:break-lines()

Syntax

jcs:break-lines(expression)

Description

Break a simple element into multiple elements, delimited by new lines. This is especially useful for large <output> elements, such as those produced by the show pfe commands.

Usage Example

var $lines = jcs:break-lines($output);

jcs:empty()

Syntax

jcs:empty(node-set)

jcs:empty(string)

Description

Return TRUE if the node set or string arguments are empty.

Usage Example

if(jcs:empty($set)) { .... }


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