Quantcast
Channel: THWACK: Message List
Viewing all articles
Browse latest Browse all 20396

Re: Can you make variables in a configuration change template optional?

$
0
0

HolyGuacamole is absolutely correct. I used the word none instead of dummy, but here is the actual template that I used:

 

script BaseChangeTemplate(  

                             NCM.Nodes @ContextNode,

                             string @Line_1,

                             string @Line_2,

                             string @Line_3)

{

  //Issue commands to the device

  CLI

  {

     configure terminal

     @Line_1

  }

  if(@Line_2 !='none')

     {

      CLI{@Line_2}

     }

  }

  if(@Line_3 !='none')

     {

      CLI{@Line_3}

     }

  }

}


Viewing all articles
Browse latest Browse all 20396

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>