@require_context
@pick_context_manager_writer
def virtual_interface_delete_by_instance(context, instance_uuid):
 _virtual_interface_query(context).filter_by(instance_uuid=instance_uuid).soft_delete()

@ require_context @ pick_context_manager_writer def virtual_interface_delete_by_instance ( context , instance_uuid ) : _virtual_interface_query ( context ) . filter_by ( instance_uuid = instance_uuid ) . soft_delete ( )
delete virtual interface records that are associated with the instance given by instance_id .