'Update the trunk status to reflect outcome of data plane wiring.'

def update_trunk_status(self, context, trunk_id, status):

    with db_api.context_manager.writer.using(context):
        trunk = trunk_objects.Trunk.get_object(context, id=trunk_id)
        if trunk:
            trunk.update(status=status)
