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
dataset/ETHPy150Open saltstack/salt/salt/modules/bluez.py/block