def _setup_test_for_arp_entry_cache(self):
    agent = l3_agent.L3NATAgent(HOSTNAME, self.conf)
    router = l3_test_common.prepare_router_data(num_internal_ports=2)
    router['distributed'] = True
    self._set_ri_kwargs(agent, router['id'], router)
    ri = dvr_router.DvrLocalRouter(HOSTNAME, **self.ri_kwargs)
    subnet_id = l3_test_common.get_subnet_id(ri.router[lib_constants.INTERFACE_KEY][0])
    return (ri, subnet_id)
def _setup_test_for_arp_entry_cache(self):
    agent = l3_agent.L3NATAgent(HOSTNAME, self.conf)
    router = l3_test_common.prepare_router_data(num_internal_ports=2)
    router['distributed'] = True
    self._set_ri_kwargs(agent, router['id'], router)
    ri = dvr_router.DvrLocalRouter(HOSTNAME, **self.ri_kwargs)
    subnet_id = l3_test_common.get_subnet_id(ri.router[lib_constants.INTERFACE_KEY][0])
    return (ri, subnet_id)