jcs:printf() Function
Syntax
jcs:printf('expression')Description
Generate formatted output text. Most standard printf formats are supported, in addition to some Junos OS–specific formats.
The %j1 operator emits the field only if the field was changed from the last time the function was run.
The %jc operator capitalizes the first letter of the format output.
The %jt{TAG} operator emits the tag if the field is not empty.
<xsl:value-of select="jcs:printf('%-24j1s %-5jcs %-5jcs %s%jt{ - -> }s\n',
'so-0/0/0', 'up', 'down', '10.1.2.3', '')"/>
Hide Navigation Pane
Show Navigation Pane
Download
SHA1