Automation

last person joined: 2 days ago 

Ask questions and share experiences about Apstra, Paragon, and all things network automation.
  • 1.  command line argument with no parameter value

    Posted 07-17-2013 05:59

    I want to include a command line parameter that does not have an associated value.

    Example: op show_paths extensive

     

    How should I construct the <arguments>  XML for CLI help and how do I check for the existence of 'extensive'?

     

    Jeff L.



  • 2.  RE: command line argument with no parameter value
    Best Answer

     
    Posted 07-17-2013 08:10

    it should be in pair. You may not use single argument.

     

    /Charlie



  • 3.  RE: command line argument with no parameter value

    Posted 07-17-2013 18:42

    Charlie,

     

    Thanks for your reply.

     

    I'd like to see op scripts to be able to mimic Junos-style CLI. Ops teams learn 'show route extensive'. Telling them that they should run 'op show_paths extensive 1' or 'op show_paths_extensive'  is a bit kludgy.

     

    Jeff L.