def test_del_arp_entry(self):
    agent = l3_agent.L3NATAgent(HOSTNAME, self.conf)
    router = l3_test_common.prepare_router_data(num_internal_ports=2)
    router['distributed'] = True
    subnet_id = l3_test_common.get_subnet_id(router[lib_constants.INTERFACE_KEY][0])
    arp_table = {'ip_address': '0.0.0.0', 'mac_address': '00:44:33:22:11:55', 'subnet_id': subnet_id}
    payload = {'arp_table': arp_table, 'router_id': router['id']}
    agent._router_added(router['id'], router)
    agent.add_arp_entry(None, payload)
    agent.del_arp_entry(None, payload)
    self.mock_ip_dev.neigh.delete.assert_called_once_with('0.0.0.0', '00:44:33:22:11:55')
    agent.router_deleted(None, router['id'])
def test_del_arp_entry(self):
    agent = l3_agent.L3NATAgent(HOSTNAME, self.conf)
    router = l3_test_common.prepare_router_data(num_internal_ports=2)
    router['distributed'] = True
    subnet_id = l3_test_common.get_subnet_id(router[lib_constants.INTERFACE_KEY][0])
    arp_table = {'ip_address': '0.0.0.0', 'mac_address': '00:44:33:22:11:55', 'subnet_id': subnet_id}
    payload = {'arp_table': arp_table, 'router_id': router['id']}
    agent._router_added(router['id'], router)
    agent.add_arp_entry(None, payload)
    agent.del_arp_entry(None, payload)
    self.mock_ip_dev.neigh.delete.assert_called_once_with('0.0.0.0', '00:44:33:22:11:55')
    agent.router_deleted(None, router['id'])