Hi ALL
I did the below scripts to check all the interfaces that have description contain DSL , if they have configured with apply-group start with MOI and to give error if this apply group not there
But still I am not able to let this work as expected is there any error on the script ?
version 1.0;
ns junos = "http://xml.juniper.net/junos/*/junos";
ns xnm = "http://xml.juniper.net/xnm/1.1/xnm";
ns jcs = "http://xml.juniper.net/junos/commit-scripts/1.0";
import "../import/junos.xsl";
match configuration {
for-each (interfaces/interface) {
var $desc = description;
var $apply = apply-groups;
if (contains($desc, "*-DSL-*")) {
if (not ($apply = "MOI-.*")) {
<xnm:error> {
<message> "Error, MOI APPLY-GROUP should be configured";
}
}
}
}
}