<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:

def wolmatch(tgt, tgt_type='glob', bcast='255.255.255.255', destport=9):
    '''
    Send a "Magic Packet" to wake up Minions that are matched in the grains cache

    CLI Example:

    .. code-block:: bash

        salt-run network.wolmatch minion_id
        salt-run network.wolmatch 192.168.0.0/16 tgt_type='ipcidr' bcast=255.255.255.255 destport=7
    '''
    ret = []
    minions = __salt__['cache.grains'](tgt, tgt_type)
    for minion in minions:
        for iface, mac in minion['hwaddr_interfaces'].items():
            if iface == 'lo':
                continue
            mac = mac.strip()
            wol(mac, bcast, destport)
            log.info('Waking up %s', mac)
            ret.append(mac)
    return ret