'Creates a rule corresponding to each ip that defines a
jump to the corresponding instance - chain for all the traffic
destined to that ip.'

def _filters_for_instance(self, chain_name, network_info):

    v4_subnets = self._get_subnets(network_info, 4)
    v6_subnets = self._get_subnets(network_info, 6)
    ips_v4 = [ip['address'] for subnet in v4_subnets for ip in subnet['ips']]
    ipv4_rules = self._create_filter(ips_v4, chain_name)
    ipv6_rules = ips_v6 = []
    if CONF.use_ipv6:
        if v6_subnets:
            ips_v6 = [ip['address'] for subnet in v6_subnets for ip in subnet['ips']]
        ipv6_rules = self._create_filter(ips_v6, chain_name)
    return (ipv4_rules, ipv6_rules)
