[j-nsp] [OT] unit-level vs interface-level description

Benny Amorsen benny+usenet at amorsen.dk
Fri May 31 17:51:31 EDT 2013


Phil Shafer <phil at juniper.net> writes:

> -----------
> version 1.0;
>
> ns jcs extension = "http://xml.juniper.net/junos/commit-scripts/1.0";
>
> import "../import/junos.xsl";
>
> match configuration {
>     for-each (interfaces/interface[description]/unit[not(description)]) {
>         var $content = <description> ../description;
>         call jcs:emit-change($content, $tag = "transient-change");
>     }
> }
> -----------

Thank you, much prettier than what I would have done.


/Benny



More information about the juniper-nsp mailing list