
From nobody Sun Oct 26 12:08:03 2014
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

--089e016283dc8d5baa05065821b2
Content-Type: text/plain; charset=UTF-8

*[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

--089e016283dc8d5baa05065821b2
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><i>[sending to both 6TiSCH and COMAN MLs]</i><div><br></di=
v><div>While discussion management of 6TiSCH devices, Jonathan brought up a=
n important question [1] while reviewing draft-ietf-6tisch-6top-interface [=
2]:</div><div><br></div><blockquote style=3D"margin:0px 0px 0px 0.8ex;borde=
r-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid=
;padding-left:1ex" class=3D"gmail_quote"><span style=3D"color:rgb(80,0,80);=
font-family:arial,sans-serif;font-size:13px">* Are all things in the YANG m=
odel required?=C2=A0 For example, must one support reading the READ.timesou=
rce for minTimeCorrection?</span><br></blockquote><div><br></div><div>I&#39=
;d like to poll the lists for best practice in (constrained) management and=
 optional portions of data model:<br></div><div><ol><li>are &quot;features&=
quot; [3] the correct mechanism for marking portions on a data model option=
al?<br></li><li>how widely used are features; are they considered good prac=
tice?<br></li><li>is GETing the resource <font face=3D"courier new, monospa=
ce">/restconf/&lt;module_name&gt;/feature</font> in RESTconf the default wa=
y for discovering features?<br></li><li>would a HTTP/CoAP status code=C2=A0=
(e.g. &quot;501 Not Implemented&quot;) be a viable alternative for feature =
discovery?</li><li>In general, what are the opinions from the 6TiSCH WG abo=
ut using features?</li></ol></div><div><br></div><div>Thanks,</div><div>Tho=
mas=C2=A0</div><div><br></div><div>[1]=C2=A0<a href=3D"http://www.ietf.org/=
mail-archive/web/6tisch/current/msg02605.html" target=3D"_blank">http://www=
.ietf.org/mail-archive/web/6tisch/current/msg02605.html</a></div><div>[2]=
=C2=A0<a href=3D"http://tools.ietf.org/wg/6tisch/draft-ietf-6tisch-6top-int=
erface/" target=3D"_blank">http://tools.ietf.org/wg/6tisch/draft-ietf-6tisc=
h-6top-interface/</a></div><div>[3]=C2=A0<a href=3D"http://tools.ietf.org/h=
tml/rfc6020#section-7.18.1" target=3D"_blank">http://tools.ietf.org/html/rf=
c6020#section-7.18.1</a></div><div>[4]=C2=A0<a href=3D"http://tools.ietf.or=
g/html/draft-bierman-netconf-restconf-04" target=3D"_blank">http://tools.ie=
tf.org/html/draft-bierman-netconf-restconf-04</a></div></div>

--089e016283dc8d5baa05065821b2--


From nobody Sun Oct 26 12:40:16 2014
Return-Path: <j.schoenwaelder@jacobs-university.de>
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 CA3F21A1A65; Sun, 26 Oct 2014 12:40:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.56
X-Spam-Level: 
X-Spam-Status: No, score=-1.56 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] 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 GOfLqigaAjzr; Sun, 26 Oct 2014 12:40:14 -0700 (PDT)
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 70C541A1A5B; Sun, 26 Oct 2014 12:40:14 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id 425CF8EE; Sun, 26 Oct 2014 20:40:13 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.220]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id kel5bjiQk68T; Sun, 26 Oct 2014 20:39:45 +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; Sun, 26 Oct 2014 20:40:12 +0100 (CET)
Received: from localhost (demetrius4.jacobs-university.de [212.201.44.49]) by hermes.jacobs-university.de (Postfix) with ESMTP id 7469E20037; Sun, 26 Oct 2014 20:40:12 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23]) by localhost (demetrius4.jacobs-university.de [212.201.44.32]) (amavisd-new, port 10024) with ESMTP id 3F7WCptEVfna; Sun, 26 Oct 2014 20:40:11 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id 654CD20035; Sun, 26 Oct 2014 20:40:11 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 721D42F1229A; Sun, 26 Oct 2014 20:40:10 +0100 (CET)
Date: Sun, 26 Oct 2014 20:40:09 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Thomas Watteyne <watteyne@eecs.berkeley.edu>
Message-ID: <20141026194009.GA6308@elstar.local>
Mail-Followup-To: Thomas Watteyne <watteyne@eecs.berkeley.edu>, "6tisch@ietf.org" <6tisch@ietf.org>, "coman@ietf.org" <coman@ietf.org>
References: <CADJ9OA-cDiRH=9tKTJ5rOp4zE=CD86TT+RYR2ArPdKzXGqSzpQ@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CADJ9OA-cDiRH=9tKTJ5rOp4zE=CD86TT+RYR2ArPdKzXGqSzpQ@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Archived-At: http://mailarchive.ietf.org/arch/msg/coman/E7jZ6iSrS_JGUNYv_bHEJYtcU44
Cc: "coman@ietf.org" <coman@ietf.org>, "6tisch@ietf.org" <6tisch@ietf.org>
Subject: Re: [coman] constrained management: best practice for "features"
X-BeenThere: coman@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
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:40:16 -0000

On Sun, Oct 26, 2014 at 12:07:33PM -0700, Thomas Watteyne wrote:
> *[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?

Yes

>    2. how widely used are features; are they considered good practice?

$ grep -h -i feature.*\{ ietf-*yang | sort -u  | wc -l
      38

They are apparently not considered bad practice. However, making
single leafs features may be considered bad style. Usually features
are used to mark logical sub-components that may not be always
implemented as optional.

>    3. is GETing the resource /restconf/<module_name>/feature in RESTconf
>    the default way for discovering features?

I think the data model in draft-ietf-netconf-restconf-03.txt section 9
is a bit more complex (you seem to be looking at an old
specification).

>    4. would a HTTP/CoAP status code (e.g. "501 Not Implemented") be a
>    viable alternative for feature discovery?

Unclear. Which request would trigger this?

>    5. In general, what are the opinions from the 6TiSCH WG about using
>    features?

Can't answer this one.

/js

-- 
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/>


From nobody Sun Oct 26 15:09:03 2014
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 3A82D1A1A2F; Sun, 26 Oct 2014 15:09:00 -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 I3gBS5NHG4Zz; Sun, 26 Oct 2014 15:08:58 -0700 (PDT)
Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5DEF41A1A17; Sun, 26 Oct 2014 15:08:58 -0700 (PDT)
Received: by mail-pa0-f41.google.com with SMTP id rd3so4213374pab.28 for <multiple recipients>; Sun, 26 Oct 2014 15:08:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;  h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=O5mZL69x+YltUiwbO2EhgFSlhMEg5GqWiWWv8GI91uw=; b=JOoeeHCKx8SapXwO6p+0cLO9y+kV5vpflYkgFx5tjmwlZ5zX9APxWZ7WaiBZikkmFD uN1iMcWntaxExZYVcndDPHEbjV4bjvjW4Ite6Pfx66E5RE2PgSgLqAaI3kpBExWZoa9S XFWDxLN9hbHnVqhecwOvJ/wruylyTjlmzlihLVZuNXhAaS2bwMTNv0rUAXIr+uQaxh8t Z03qGJ70ftnd3N+hM6mxD09COcE4ViQkEpcha5fGFMguaDlb6C+nXOTI4pCZ6OC7iKFu ooj7xUJph9yLeGIN5dcND/H7UEElq9pjpKBtrfpXx9ed/YG7hUe4/TDFe+ccVStH+2xw wSig==
X-Received: by 10.68.139.161 with SMTP id qz1mr20317136pbb.24.1414361338001; Sun, 26 Oct 2014 15:08:58 -0700 (PDT)
MIME-Version: 1.0
Sender: twatteyne@gmail.com
Received: by 10.66.250.169 with HTTP; Sun, 26 Oct 2014 15:08:37 -0700 (PDT)
In-Reply-To: <20141026194009.GA6308@elstar.local>
References: <CADJ9OA-cDiRH=9tKTJ5rOp4zE=CD86TT+RYR2ArPdKzXGqSzpQ@mail.gmail.com> <20141026194009.GA6308@elstar.local>
From: Thomas Watteyne <watteyne@eecs.berkeley.edu>
Date: Sun, 26 Oct 2014 15:08:37 -0700
X-Google-Sender-Auth: BzPm6iPVEfbxAJ6-u1O6CU0BDRc
Message-ID: <CADJ9OA_su_mWBFimQP+cF8SZwkMRQUPZioEx9_4w9CZ0uDZtkw@mail.gmail.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>,  Thomas Watteyne <watteyne@eecs.berkeley.edu>, "6tisch@ietf.org" <6tisch@ietf.org>, "coman@ietf.org" <coman@ietf.org>
Content-Type: multipart/alternative; boundary=001a11c3f7f822c18805065aa99c
Archived-At: http://mailarchive.ietf.org/arch/msg/coman/4Y3Ef4UpHJTVIUvRC6iymD0u78w
Subject: Re: [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 22:09:00 -0000

--001a11c3f7f822c18805065aa99c
Content-Type: text/plain; charset=UTF-8

Juergen,

Great.

>    3. is GETing the resource /restconf/<module_name>/feature in RESTconf
> >    the default way for discovering features?
> I think the data model in draft-ietf-netconf-restconf-03.txt section 9
> is a bit more complex (you seem to be looking at an old
> specification).


Yep, I was looking at an old spec...
https://tools.ietf.org/html/draft-ietf-netconf-restconf-03#appendix-D.1.2
does answer what I was looking for, and illustrates
http://tools.ietf.org/html/rfc6020#section-7.18.1 well.

>    4. would a HTTP/CoAP status code (e.g. "501 Not Implemented") be a
> >    viable alternative for feature discovery?
> Unclear. Which request would trigger this?


Assuming some feature is NOT implemented on a server, and a client tries to
access one of the corresponding resources. I was wondering what HTTP status
code would be returned, according to RESTCONF.

Thanks,
Thomas

On Sun, Oct 26, 2014 at 12:40 PM, Juergen Schoenwaelder <
j.schoenwaelder@jacobs-university.de> wrote:

> On Sun, Oct 26, 2014 at 12:07:33PM -0700, Thomas Watteyne wrote:
> > *[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?
>
> Yes
>
> >    2. how widely used are features; are they considered good practice?
>
> $ grep -h -i feature.*\{ ietf-*yang | sort -u  | wc -l
>       38
>
> They are apparently not considered bad practice. However, making
> single leafs features may be considered bad style. Usually features
> are used to mark logical sub-components that may not be always
> implemented as optional.
>
> >    3. is GETing the resource /restconf/<module_name>/feature in RESTconf
> >    the default way for discovering features?
>
> I think the data model in draft-ietf-netconf-restconf-03.txt section 9
> is a bit more complex (you seem to be looking at an old
> specification).
>
> >    4. would a HTTP/CoAP status code (e.g. "501 Not Implemented") be a
> >    viable alternative for feature discovery?
>
> Unclear. Which request would trigger this?
>
> >    5. In general, what are the opinions from the 6TiSCH WG about using
> >    features?
>
> Can't answer this one.
>
> /js
>
> --
> 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/>
>

--001a11c3f7f822c18805065aa99c
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Juergen,<div><br></div><div>Great.</div><div><br></div><bl=
ockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-lef=
t-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padd=
ing-left:1ex"><span style=3D"font-family:arial,sans-serif;font-size:13px">&=
gt;=C2=A0 =C2=A0 3. is GETing the resource /restconf/&lt;module_name&gt;/</=
span><span style=3D"font-family:arial,sans-serif;font-size:13px">feature in=
 RESTconf<br></span><span class=3D"im" style=3D"font-family:arial,sans-seri=
f;font-size:13px">&gt;=C2=A0 =C2=A0 the default way for discovering feature=
s?</span><span class=3D"im" style=3D"font-family:arial,sans-serif;font-size=
:13px"><br></span><span style=3D"font-family:arial,sans-serif;font-size:13p=
x">I think the data model in draft-ietf-netconf-restconf-</span><span style=
=3D"font-family:arial,sans-serif;font-size:13px">03.txt section 9<br></span=
><span style=3D"font-family:arial,sans-serif;font-size:13px">is a bit more =
complex (you seem to be looking at an old<br></span><span style=3D"font-fam=
ily:arial,sans-serif;font-size:13px">specification).</span></blockquote><di=
v><span style=3D"font-family:arial,sans-serif;font-size:13px"><br></span></=
div><div><span style=3D"font-family:arial,sans-serif;font-size:13px">Yep, I=
 was looking at an old spec...=C2=A0</span><font face=3D"arial, sans-serif"=
><a href=3D"https://tools.ietf.org/html/draft-ietf-netconf-restconf-03#appe=
ndix-D.1.2">https://tools.ietf.org/html/draft-ietf-netconf-restconf-03#appe=
ndix-D.1.2</a> does answer what I was looking for, and illustrates=C2=A0<a =
href=3D"http://tools.ietf.org/html/rfc6020#section-7.18.1">http://tools.iet=
f.org/html/rfc6020#section-7.18.1</a> well.</font></div><div><font face=3D"=
arial, sans-serif"><br></font></div><blockquote class=3D"gmail_quote" style=
=3D"margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(20=
4,204,204);border-left-style:solid;padding-left:1ex"><span style=3D"font-fa=
mily:arial,sans-serif;font-size:13px">&gt;=C2=A0 =C2=A0 4. would a HTTP/CoA=
P status code (e.g. &quot;501 Not Implemented&quot;) be a<br></span><span c=
lass=3D"im" style=3D"font-family:arial,sans-serif;font-size:13px">&gt;=C2=
=A0 =C2=A0 viable alternative for feature discovery?</span><span class=3D"i=
m" style=3D"font-family:arial,sans-serif;font-size:13px"><br></span><span s=
tyle=3D"font-family:arial,sans-serif;font-size:13px">Unclear. Which request=
 would trigger this?</span></blockquote><div><br></div><div>Assuming some f=
eature is NOT implemented on a server, and a client tries to access one of =
the corresponding resources. I was wondering what HTTP status code would be=
 returned, according to RESTCONF.</div><div><br></div><div>Thanks,</div><di=
v>Thomas</div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quot=
e">On Sun, Oct 26, 2014 at 12:40 PM, Juergen Schoenwaelder <span dir=3D"ltr=
">&lt;<a href=3D"mailto:j.schoenwaelder@jacobs-university.de" target=3D"_bl=
ank">j.schoenwaelder@jacobs-university.de</a>&gt;</span> wrote:<br><blockqu=
ote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc s=
olid;padding-left:1ex">On Sun, Oct 26, 2014 at 12:07:33PM -0700, Thomas Wat=
teyne wrote:<br>
&gt; *[sending to both 6TiSCH and COMAN MLs]*<br>
<span class=3D"">&gt;<br>
&gt; While discussion management of 6TiSCH devices, Jonathan brought up an<=
br>
&gt; important question [1] while reviewing draft-ietf-6tisch-6top-interfac=
e [2]:<br>
&gt;<br>
&gt; * Are all things in the YANG model required?=C2=A0 For example, must o=
ne support<br>
&gt; &gt; reading the READ.timesource for minTimeCorrection?<br>
&gt; &gt;<br>
&gt;<br>
&gt; I&#39;d like to poll the lists for best practice in (constrained) mana=
gement<br>
&gt; and optional portions of data model:<br>
&gt;<br>
</span>&gt;=C2=A0 =C2=A0 1. are &quot;features&quot; [3] the correct mechan=
ism for marking portions on a<br>
&gt;=C2=A0 =C2=A0 data model optional?<br>
<br>
Yes<br>
<br>
&gt;=C2=A0 =C2=A0 2. how widely used are features; are they considered good=
 practice?<br>
<br>
$ grep -h -i feature.*\{ ietf-*yang | sort -u=C2=A0 | wc -l<br>
=C2=A0 =C2=A0 =C2=A0 38<br>
<br>
They are apparently not considered bad practice. However, making<br>
single leafs features may be considered bad style. Usually features<br>
are used to mark logical sub-components that may not be always<br>
implemented as optional.<br>
<br>
&gt;=C2=A0 =C2=A0 3. is GETing the resource /restconf/&lt;module_name&gt;/f=
eature in RESTconf<br>
<span class=3D"">&gt;=C2=A0 =C2=A0 the default way for discovering features=
?<br>
<br>
</span>I think the data model in draft-ietf-netconf-restconf-03.txt section=
 9<br>
is a bit more complex (you seem to be looking at an old<br>
specification).<br>
<br>
&gt;=C2=A0 =C2=A0 4. would a HTTP/CoAP status code (e.g. &quot;501 Not Impl=
emented&quot;) be a<br>
<span class=3D"">&gt;=C2=A0 =C2=A0 viable alternative for feature discovery=
?<br>
<br>
</span>Unclear. Which request would trigger this?<br>
<br>
&gt;=C2=A0 =C2=A0 5. In general, what are the opinions from the 6TiSCH WG a=
bout using<br>
&gt;=C2=A0 =C2=A0 features?<br>
<br>
Can&#39;t answer this one.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
/js<br>
<br>
--<br>
Juergen Schoenwaelder=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Jacobs Univer=
sity Bremen gGmbH<br>
Phone: <a href=3D"tel:%2B49%20421%20200%203587" value=3D"+494212003587">+49=
 421 200 3587</a>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Campus Ring 1, 28759 Bre=
men, Germany<br>
Fax:=C2=A0 =C2=A0<a href=3D"tel:%2B49%20421%20200%203103" value=3D"+4942120=
03103">+49 421 200 3103</a>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0&lt;<a href=3D=
"http://www.jacobs-university.de/" target=3D"_blank">http://www.jacobs-univ=
ersity.de/</a>&gt;<br>
</font></span></blockquote></div><br></div>

--001a11c3f7f822c18805065aa99c--


From nobody Mon Oct 27 00:01:06 2014
Return-Path: <j.schoenwaelder@jacobs-university.de>
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 EB01E1A6FDB; Mon, 27 Oct 2014 00:01:04 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.56
X-Spam-Level: 
X-Spam-Status: No, score=-1.56 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] 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 VrNjiCBfYwbJ; Mon, 27 Oct 2014 00:01:03 -0700 (PDT)
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 25E861A6F34; Mon, 27 Oct 2014 00:01:03 -0700 (PDT)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222]) by atlas3.jacobs-university.de (Postfix) with ESMTP id BB96E93E; Mon, 27 Oct 2014 08:01:01 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.220]) by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new, port 10030) with ESMTP id J3K6vQCarkFx; Mon, 27 Oct 2014 08:01:00 +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; Mon, 27 Oct 2014 08:01:01 +0100 (CET)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47]) by hermes.jacobs-university.de (Postfix) with ESMTP id 0C77120035; Mon, 27 Oct 2014 08:01:01 +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 BIOVP9dcb3px; Mon, 27 Oct 2014 08:00:24 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de [10.50.231.133]) by hermes.jacobs-university.de (Postfix) with ESMTP id C233A20037; Mon, 27 Oct 2014 08:00:58 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501) id 0AD5E2F12EF1; Mon, 27 Oct 2014 08:00:56 +0100 (CET)
Date: Mon, 27 Oct 2014 08:00:56 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Thomas Watteyne <watteyne@eecs.berkeley.edu>
Message-ID: <20141027070056.GA7204@elstar.local>
Mail-Followup-To: Thomas Watteyne <watteyne@eecs.berkeley.edu>, "6tisch@ietf.org" <6tisch@ietf.org>, "coman@ietf.org" <coman@ietf.org>
References: <CADJ9OA-cDiRH=9tKTJ5rOp4zE=CD86TT+RYR2ArPdKzXGqSzpQ@mail.gmail.com> <20141026194009.GA6308@elstar.local> <CADJ9OA_su_mWBFimQP+cF8SZwkMRQUPZioEx9_4w9CZ0uDZtkw@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <CADJ9OA_su_mWBFimQP+cF8SZwkMRQUPZioEx9_4w9CZ0uDZtkw@mail.gmail.com>
User-Agent: Mutt/1.4.2.3i
Archived-At: http://mailarchive.ietf.org/arch/msg/coman/r8G18iw699RMoYHxyePc9_pomDQ
Cc: "coman@ietf.org" <coman@ietf.org>, "6tisch@ietf.org" <6tisch@ietf.org>
Subject: Re: [coman] constrained management: best practice for "features"
X-BeenThere: coman@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
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: Mon, 27 Oct 2014 07:01:05 -0000

On Sun, Oct 26, 2014 at 03:08:37PM -0700, Thomas Watteyne wrote:
> 
> >    4. would a HTTP/CoAP status code (e.g. "501 Not Implemented") be a
> > >    viable alternative for feature discovery?
> > Unclear. Which request would trigger this?
> 
> 
> Assuming some feature is NOT implemented on a server, and a client tries to
> access one of the corresponding resources. I was wondering what HTTP status
> code would be returned, according to RESTCONF.

If this is not clear from the spec, the proper place to raise this
question is the NETCONF WG.

/js

-- 
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/>


From nobody Tue Oct 28 05:27:08 2014
Return-Path: <stokcons@xs4all.nl>
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 1C1F81A6F60; Tue, 28 Oct 2014 05:26:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.185
X-Spam-Level: 
X-Spam-Status: No, score=0.185 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_NL=0.55, HOST_EQ_NL=1.545, RCVD_IN_DNSWL_NONE=-0.0001, T_RP_MATCHES_RCVD=-0.01] 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 raum6q1-vR46; Tue, 28 Oct 2014 05:26:19 -0700 (PDT)
Received: from smtp-vbr7.xs4all.nl (smtp-vbr7.xs4all.nl [194.109.24.27]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 184331A8878; Tue, 28 Oct 2014 05:21:33 -0700 (PDT)
Received: from roundcube.xs4all.nl (roundcube4.xs4all.net [194.109.20.200]) by smtp-vbr7.xs4all.nl (8.13.8/8.13.8) with ESMTP id s9SCLV0L065668; Tue, 28 Oct 2014 13:21:32 +0100 (CET) (envelope-from stokcons@xs4all.nl)
Received: from a82-95-140-48.adsl.xs4all.nl ([82.95.140.48]) by roundcube.xs4all.nl with HTTP (HTTP/1.1 POST); Tue, 28 Oct 2014 13:21:30 +0100
MIME-Version: 1.0
Content-Type: text/plain; charset=US-ASCII; format=flowed
Content-Transfer-Encoding: 7bit
Date: Tue, 28 Oct 2014 13:21:30 +0100
From: peter van der Stok <stokcons@xs4all.nl>
To: opsawg@ietf.org, coman@ietf.org
Organization: vanderstok consultancy
Mail-Reply-To: consultancy@vanderstok.org
Message-ID: <4627f4d064d6955520902c0676160c30@xs4all.nl>
X-Sender: stokcons@xs4all.nl (G7fjfvzIEJmNCyXO+l4rJ8ehjAIMGMcb)
User-Agent: XS4ALL Webmail
X-Virus-Scanned: by XS4ALL Virus Scanner
Archived-At: http://mailarchive.ietf.org/arch/msg/coman/uFY-b0NdK2pEokspWnHHR-ew4vk
Subject: [coman] Fwd: New Version Notification for draft-vanderstok-core-comi-05.txt
X-BeenThere: coman@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: consultancy@vanderstok.org
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: Tue, 28 Oct 2014 12:26:21 -0000

Recently we submitted a new version of the Coap Management Interface 
(CoMI) draft to the CoRE wg.
We thought that people in opsawg and coman may be interested.

Peter

-------- Oorspronkelijke bericht --------
Onderwerp: New Version Notification for 
draft-vanderstok-core-comi-05.txt
Datum: 2014-10-28 01:25
Afzender: internet-drafts@ietf.org
Ontvanger: Anuj Sehgal <s.anuj@jacobs-university.de>, "Anuj Sehgal" 
<s.anuj@jacobs-university.de>, "Juergen Schoenwaelder" 
<j.schoenwaelder@jacobs-university.de>, Juergen Schoenwaelder 
<j.schoenwaelder@jacobs-university.de>, "Peter Van der Stok" 
<consultancy@vanderstok.org>, Peter van der Stok 
<consultancy@vanderstok.org>, Bert Greevenbosch 
<bert.greevenbosch@huawei.com>, "Bert Greevenbosch" 
<bert.greevenbosch@huawei.com>, Andy Bierman <andy@yumaworks.com>, "Andy 
Bierman" <andy@yumaworks.com>

A new version of I-D, draft-vanderstok-core-comi-05.txt
has been successfully submitted by Andy Bierman and posted to the
IETF repository.

Name:		draft-vanderstok-core-comi
Revision:	05
Title:		CoAP Management Interface
Document date:	2014-10-27
Group:		Individual Submission
Pages:		37
URL:            
http://www.ietf.org/internet-drafts/draft-vanderstok-core-comi-05.txt
Status:         
https://datatracker.ietf.org/doc/draft-vanderstok-core-comi/
Htmlized:       http://tools.ietf.org/html/draft-vanderstok-core-comi-05
Diff:           
http://www.ietf.org/rfcdiff?url2=draft-vanderstok-core-comi-05

Abstract:
    This document describes a network management interface for
    constrained devices, called CoMI.  CoMI is an adaptation of the
    RESTCONF protocol for use in constrained devices and networks.  It is
    designed to reduce the message sizes, server code size, and
    application development complexity.  The Constrained Application
    Protocol (CoAP) is used to access management data resources specified
    in YANG, or SMIv2 converted to YANG.  The payload of the CoMI message
    is encoded in Concise Binary Object Representation (CBOR).




Please note that it may take a couple of minutes from the time of 
submission
until the htmlized version and diff are available at tools.ietf.org.

The IETF Secretariat

