def auth_traps_enabled(name, status=True):
 ret = {'name': name, 'changes': {}, 'comment': str(), 'result': None}
 vname = 'EnableAuthenticationTraps'
 current_status = __salt__['win_snmp.get_auth_traps_enabled']()
 if (status == current_status):
  ret['comment'] = '{0} already contains the provided value.'.format(vname)
  ret['result'] = True
 elif __opts__['test']:
  ret['comment'] = '{0} will be changed.'.format(vname)
  ret['changes'] = {'old': current_status, 'new': status}
 else:
  ret['comment'] = 'Set {0} to contain the provided value.'.format(vname)
  ret['changes'] = {'old': current_status, 'new': status}
  ret['result'] = __salt__['win_snmp.set_auth_traps_enabled'](status=status)
 return ret

def auth_traps_enabled ( name , status = True ) : ret = { 'name' : name , 'changes' : { } , 'comment' : str ( ) , 'result' : None } vname = 'EnableAuthenticationTraps' current_status = __salt__ [ 'win_snmp.get_auth_traps_enabled' ] ( ) if ( status == current_status ) : ret [ 'comment' ] = '{0} already contains the provided value.' . format ( vname ) ret [ 'result' ] = True elif __opts__ [ 'test' ] : ret [ 'comment' ] = '{0} will be changed.' . format ( vname ) ret [ 'changes' ] = { 'old' : current_status , 'new' : status } else : ret [ 'comment' ] = 'Set {0} to contain the provided value.' . format ( vname ) ret [ 'changes' ] = { 'old' : current_status , 'new' : status } ret [ 'result' ] = __salt__ [ 'win_snmp.set_auth_traps_enabled' ] ( status = status ) return ret
manage the sending of authentication traps .