Log in to ask questions, share your expertise, or stay connected to content you value. Don’t have a login? Learn how to become a member.
Source Code and GitHub Links The source code below is also available from the following GitHub locations: check-ldp in Junoscriptorium on GitHub Example Configuration Example Output SLAX Script Contents XML Script Contents Example Configuration 01 system ( 02 scripts ( 03 commit ( 04 file check-ldp.xsl; 05 ) 06 ) 07 ) 08 protocols ( 09 isis ( 10 interface so-1/2/2.0 ( 11 apply-macro no-ldp; 12 ) 13 interface so-1/2/3.0; 14 ) 15 ospf ( 16 area 10.4.0.0 ( 17 interface ge-3/2/1.0; 18 interface ge-2/2/1.0; 19 ) 20 ) 21 ldp ( 22 interface ge-1/2/1.0; 23 interface ge-2/2/1.0; 24 ) 25 ) Example Output 01 [edit protocols isis interface so-1/2/3.0] 02 'interface so-1/2/3.0;' 03 warning: ldp not enabled for this interface 04 [edit protocols ospf area 10.4.0.0 interface ge-3/2/1.0] 05 'interface ge-3/2/1.0;' 06 warning: ldp not enabled for this interface 07 [edit protocols ldp interface ge-1/2/1.0] 08 'interface ge-1/2/1.0;' 09 warning: ldp-enabled interface does not have an IGP configured 10 [edit] 11 'system' 12 Missing mandatory statement: 'root-authentication' 13 error: configuration check-out failed: (missing statements) SLAX Script Contents 01 /* Machine Crafted with Care (tm) by slaxWriter */ 02 version 1.0; 03 04 05 /* 06 - $Id: check-ldp.slax,v 1.1 2007/10/17 18:37:04 phil Exp $ 07 - 08 - Copyright (c) 2004-2005, Juniper Networks, Inc. 09 - All rights reserved. 10 - 11 */ 12 ns junos = "http://xml.juniper.net/junos/*/junos"; 13 ns xnm = "http://xml.juniper.net/xnm/1.1/xnm"; 14 ns jcs = "http://xml.juniper.net/junos/commit-scripts/1.0"; 15 16 import "