Automation

last person joined: 3 days ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.
  • 1.  slax vs. xslt ?

    Posted 08-11-2010 09:27

    Which language should I use for writing Junos automation script?  Any pros and cons?



  • 2.  RE: slax vs. xslt ?
    Best Answer

    Posted 08-11-2010 12:42

    Unless you already know XSLT then I'd recommend you learn SLAX. If you already have a good knowledge base with XSLT, then go ahead and use that language. You'll be able to accomplish the same things as with SLAX, but if starting from scratch then I suspect that SLAX will be easier to learn and work with.

     

     



  • 3.  RE: slax vs. xslt ?

    Posted 08-26-2010 04:51

    Why choose when you can use both simultaneously?

     

    The SLAX syntax is signficantly easier to develop scripts, no questions.  When Junos processes SLAX it converts it first to XSLT.  It is possible, and sometimes necessary, to embed native XSLT into SLAX.  For example, if one needed to create a function (not a template) for your automation, you would currently need to use the <func:function> XSLT construct.  

     

    Improvements and advances in the SLAX syntax are in progress, and be on the lookout for new features and capabilities.