def _iptables_cmd(family='ipv4'):
    if family == 'ipv6':
        return salt.utils.which('ip6tables')
    else:
        return salt.utils.which('iptables')
Return correct command based on the family, e.g. ipv4 or ipv6
dataset/ETHPy150Open saltstack/salt/salt/modules/iptables.py/_iptables_cmd