def set_boot_options(module, image_name, kickstart=None):
 commands = ['terminal dont-ask']
 if (kickstart is None):
  commands.append(('install all nxos %s' % image_name))
 else:
  commands.append(('install all system %s kickstart %s' % (image_name, kickstart)))
 execute_config_command(commands, module)

def set_boot_options ( module , image_name , kickstart = None ) : commands = [ 'terminal dont-ask' ] if ( kickstart is None ) : commands . append ( ( 'install all nxos %s' % image_name ) ) else : commands . append ( ( 'install all system %s kickstart %s' % ( image_name , kickstart ) ) ) execute_config_command ( commands , module )
set boot variables like system image and kickstart image .