def fake_virtual_interface_delete_by_instance(context, instance_id):
    vif = copy.copy(virtual_interfacees)
    addresses = [m for m in vif
                 if m['instance_id'] == instance_id]
    try:
        for address in addresses:
            vif.remove(address)
    except __HOLE__:
        pass
dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/tests/unit/db/fakes.py/fake_virtual_interface_delete_by_instance