def test__update_arp_entry_with_no_subnet(self):
    self._set_ri_kwargs(mock.sentinel.agent, 'foo_router_id', {'distributed': True, 'gw_port_host': HOSTNAME})
    ri = dvr_router.DvrLocalRouter(HOSTNAME, **self.ri_kwargs)
    ri.get_internal_device_name = mock.Mock()
    ri._update_arp_entry(mock.ANY, mock.ANY, 'foo_subnet_id', 'add')
    self.assertFalse(ri.get_internal_device_name.call_count)
def test__update_arp_entry_with_no_subnet(self):
    self._set_ri_kwargs(mock.sentinel.agent, 'foo_router_id', {'distributed': True, 'gw_port_host': HOSTNAME})
    ri = dvr_router.DvrLocalRouter(HOSTNAME, **self.ri_kwargs)
    ri.get_internal_device_name = mock.Mock()
    ri._update_arp_entry(mock.ANY, mock.ANY, 'foo_subnet_id', 'add')
    self.assertFalse(ri.get_internal_device_name.call_count)