def _iptables_cmd(family='ipv4'):
 if (family == 'ipv6'):
  return salt.utils.which('ip6tables')
 else:
  return salt.utils.which('iptables')

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 .