[coman] constrained management: best practice for "features"

Thomas Watteyne <watteyne@eecs.berkeley.edu> Sun, 26 October 2014 19:07 UTC

Return-Path: <twatteyne@gmail.com>
X-Original-To: coman@ietfa.amsl.com
Delivered-To: coman@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 44B301A038F; Sun, 26 Oct 2014 12:07:56 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.277
X-Spam-Level:
X-Spam-Status: No, score=-1.277 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FM_FORGED_GMAIL=0.622, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=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 ZKQ3zlbcaW9h; Sun, 26 Oct 2014 12:07:54 -0700 (PDT)
Received: from mail-pd0-x22f.google.com (mail-pd0-x22f.google.com [IPv6:2607:f8b0:400e:c02::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7E4491A00BF; Sun, 26 Oct 2014 12:07:54 -0700 (PDT)
Received: by mail-pd0-f175.google.com with SMTP id y13so4271416pdi.6 for <multiple recipients>; Sun, 26 Oct 2014 12:07:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:from:date:message-id:subject:to:content-type; bh=x2wCburcFKXJqOgjflSBwCVkrw4/jDYMnmSWRdivPN8=; b=GwsZ0XGUA/i1fBljCEQZS3Nc7QroHwOYEYhlD9dsOLByqtXWXLE8BmVyvxQYHAMrD3 QHoAPVOuEfxlrWmr99LdDWNxWr0p6IsHBGuJl80yDH7zWxoWGqbnXSRU7zed3F44RXaX fjlAYUVaoFRxEEAI5yBx33QG7jeo3nrSitm5HTGCiWgIOXyVlgUJn6Ram1CDgMNNVN3O mYJQCM+85cRl/NEtO8TaVH+070EAy7sOh6/tK5l1CL7TGYh1RRx449hiw6qCF5f0vRoI onguakfFb9KDhBw2rHDEuhukNuDZxygrtm+Rub4Sw76oHrQB5pRRxIQBmO5LoYHH1A/r WCjQ==
X-Received: by 10.70.48.10 with SMTP id h10mr19347115pdn.2.1414350473351; Sun, 26 Oct 2014 12:07:53 -0700 (PDT)
MIME-Version: 1.0
Sender: twatteyne@gmail.com
Received: by 10.66.250.169 with HTTP; Sun, 26 Oct 2014 12:07:33 -0700 (PDT)
From: Thomas Watteyne <watteyne@eecs.berkeley.edu>
Date: Sun, 26 Oct 2014 12:07:33 -0700
X-Google-Sender-Auth: 40XUorBDHEtSYZzuNKUJx-2P-4o
Message-ID: <CADJ9OA-cDiRH=9tKTJ5rOp4zE=CD86TT+RYR2ArPdKzXGqSzpQ@mail.gmail.com>
To: "6tisch@ietf.org" <6tisch@ietf.org>, "coman@ietf.org" <coman@ietf.org>
Content-Type: multipart/alternative; boundary="089e016283dc8d5baa05065821b2"
Archived-At: http://mailarchive.ietf.org/arch/msg/coman/M3v7YYF3-WFnQahPkhXx1zlIJLs
Subject: [coman] constrained management: best practice for "features"
X-BeenThere: coman@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Management of Constrained Networks and Devices <coman.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/coman>, <mailto:coman-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/coman/>
List-Post: <mailto:coman@ietf.org>
List-Help: <mailto:coman-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/coman>, <mailto:coman-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 26 Oct 2014 19:07:56 -0000

*[sending to both 6TiSCH and COMAN MLs]*

While discussion management of 6TiSCH devices, Jonathan brought up an
important question [1] while reviewing draft-ietf-6tisch-6top-interface [2]:

* Are all things in the YANG model required?  For example, must one support
> reading the READ.timesource for minTimeCorrection?
>

I'd like to poll the lists for best practice in (constrained) management
and optional portions of data model:

   1. are "features" [3] the correct mechanism for marking portions on a
   data model optional?
   2. how widely used are features; are they considered good practice?
   3. is GETing the resource /restconf/<module_name>/feature in RESTconf
   the default way for discovering features?
   4. would a HTTP/CoAP status code (e.g. "501 Not Implemented") be a
   viable alternative for feature discovery?
   5. In general, what are the opinions from the 6TiSCH WG about using
   features?


Thanks,
Thomas

[1] http://www.ietf.org/mail-archive/web/6tisch/current/msg02605.html
[2] http://tools.ietf.org/wg/6tisch/draft-ietf-6tisch-6top-interface/
[3] http://tools.ietf.org/html/rfc6020#section-7.18.1
[4] http://tools.ietf.org/html/draft-bierman-netconf-restconf-04