def set_policy(table='filter', chain=None, policy=None, family='ipv4'):
    if not chain:
        return 'Error: Chain needs to be specified'
    if not policy:
        return 'Error: Policy needs to be specified'

    wait = '--wait' if _has_option('--wait', family) else ''
    cmd = '{0} {1} -t {2} -P {3} {4}'.format(
            _iptables_cmd(family), wait, table, chain, policy)
    out = __salt__['cmd.run'](cmd)
    return out
yield pre_annotations, pc, opcode, instruction, post_annotations
dataset/ETHPy150Open saltstack/salt/salt/modules/iptables.py/set_policy--crossover with--dataset/ETHPy150Open richardkiss/pycoin/pycoin/tx/script/disassemble.py/disassemble_scripts