def block(bdaddr):
 if (not salt.utils.validate.net.mac(bdaddr)):
  raise CommandExecutionError('Invalid BD address passed to bluetooth.block')
 cmd = 'hciconfig {0} block'.format(bdaddr)
 __salt__['cmd.run'](cmd).splitlines()

def block ( bdaddr ) : if ( not salt . utils . validate . net . mac ( bdaddr ) ) : raise CommandExecutionError ( 'Invalid BD address passed to bluetooth.block' ) cmd = 'hciconfig {0} block' . format ( bdaddr ) __salt__ [ 'cmd.run' ] ( cmd ) . splitlines ( )
block a specific bluetooth device by bd address cli example: .