[lmap] /capabilities/task* vs /capabilities/tasks/task*

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Tue, 03 January 2017 16:32 UTC

Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: lmap@ietfa.amsl.com
Delivered-To: lmap@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id EE19A12968B for <lmap@ietfa.amsl.com>; Tue, 3 Jan 2017 08:32:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.3
X-Spam-Level:
X-Spam-Status: No, score=-7.3 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-3.1] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CiVylWlpcwnn for <lmap@ietfa.amsl.com>; Tue, 3 Jan 2017 08:32:24 -0800 (PST)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de [212.201.44.18]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id EDFE2129669 for <lmap@ietf.org>; Tue, 3 Jan 2017 08:32:23 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 2DA8E6A1 for <lmap@ietf.org>; Tue, 3 Jan 2017 17:32:22 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.205]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id FuxOlOg1Hokm for <lmap@ietf.org>; Tue, 3 Jan 2017 17:32:21 +0100 (CET)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de [212.201.44.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "hermes.jacobs-university.de", Issuer "Jacobs University CA - G01" (verified OK)) by atlas3.jacobs-university.de (Postfix) with ESMTPS for <lmap@ietf.org>; Tue, 3 Jan 2017 17:32:21 +0100 (CET)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id CE7F220087 for <lmap@ietf.org>; Tue, 3 Jan 2017 17:32:21 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius2.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id nvr-6Yh9ZQeV; Tue, 3 Jan 2017 17:32:21 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 704A720085; Tue, 3 Jan 2017 17:32:21 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 5BA6F3DFF823; Tue, 3 Jan 2017 17:32:23 +0100 (CET)
Date: Tue, 03 Jan 2017 17:32:23 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: lmap@ietf.org
Message-ID: <20170103163223.GA7367@elstar.local>
Mail-Followup-To: lmap@ietf.org
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
User-Agent: Mutt/1.6.0 (2016-04-01)
Archived-At: <https://mailarchive.ietf.org/arch/msg/lmap/V5lyGLRct8mkDw4DyfrRa6GFGiQ>
Subject: [lmap] /capabilities/task* vs /capabilities/tasks/task*
X-BeenThere: lmap@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
List-Id: Large Scale Measurement of Access network Performance <lmap.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lmap>, <mailto:lmap-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lmap/>
List-Post: <mailto:lmap@ietf.org>
List-Help: <mailto:lmap-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lmap>, <mailto:lmap-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Jan 2017 16:32:26 -0000

While implementing the /capabilities, I discovered that we do not have
a node representing the whole task list in the capabilities branch,
i.e., the tasks all appear right below /capabilities. I think it would
be simpler and more consistent with all other lists we have if we
would have a have tasks appear below /capabilities/tasks. (It would
also make sense to move /capabilities before any configuration
branches.)

It is also a bit unclear how capability tasks and configured tasks
work together. Right now, I can set the program property on both.
Would it not be more natural to have the program set only on the
capability and a configured task can only reference a capability task?
Right now the behaviour is not really clear; I can try to configure a
task to run any program, which is likely not what we want. Perhaps the
idea is that I can only configure a program listed in the capability
tasks. Perhaps we should instead have a way to reference a capability
task from a task configuration (and if the reference can't be
resolved, the referencing task (and any other indirect references to
the referencing task) would not be applied config. Well, what we have
may be possible to implement in a reasonable way, even though the
details may be not entirely obvious.

/js

PS: I do not really know where the chairs think we are with the LMAP
    documents in their lifecycle. I have implemented what I described
    in the first paragraph in my sources, see the diff here:

    http://www.beadg.de/lmap/draft-ietf-lmap-yang-10-from-09.diff.html

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <http://www.jacobs-university.de/>