Re: [netconf] ietf-restconf YANG - 'errors' grouping query

Kent Watsen <kent+ietf@watsen.net> Wed, 24 July 2019 18:05 UTC

Return-Path: <0100016c25291b3b-ba2af94e-8f60-4ff5-b369-186cd6692de9-000000@amazonses.watsen.net>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 62C65120059 for <netconf@ietfa.amsl.com>; Wed, 24 Jul 2019 11:05:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=amazonses.com
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 D_qpAQMShhcG for <netconf@ietfa.amsl.com>; Wed, 24 Jul 2019 11:05:48 -0700 (PDT)
Received: from a8-64.smtp-out.amazonses.com (a8-64.smtp-out.amazonses.com [54.240.8.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DFB7112062A for <netconf@ietf.org>; Wed, 24 Jul 2019 11:05:47 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=6gbrjpgwjskckoa6a5zn6fwqkn67xbtw; d=amazonses.com; t=1563991546; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=1WsfnZ7G7MZvlpCf9o55KrKbHrJ66fAPFuTZCMmViVw=; b=NE6tBgCPCOKGuio7P/IwTLJxgwYlAqIUpFfTTFXd0yxn+EN79WTqrvAkcgGqspah hCxq1FMu4g7i42hLNK/v+wSh8sFBXBvbhmy+o/r+q+3NzxinxwrV1iHnGp0M9XcnUQe Cyf2EleNMUAWqdKj4wk3ATWnOtJP8FwzbPk6oW7Y=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <0100016c25291b3b-ba2af94e-8f60-4ff5-b369-186cd6692de9-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_4CE191C7-4E31-4548-8150-9EE601BBE2FE"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Wed, 24 Jul 2019 18:05:46 +0000
In-Reply-To: <e5c3ad18a35d4d338e4b9cc05e24502f@thebrowns.net.nz>
Cc: "netconf@ietf.org" <netconf@ietf.org>
To: hayden@thebrowns.net.nz
References: <e5c3ad18a35d4d338e4b9cc05e24502f@thebrowns.net.nz>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2019.07.24-54.240.8.64
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/eSWj3bj8fCusBwiQHaOb3b4eX8U>
Subject: Re: [netconf] ietf-restconf YANG - 'errors' grouping query
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETCONF WG list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Jul 2019 18:05:49 -0000

Hi Hayden,

<snip/>

> Currently the list 'error' itself omits a config statement, and as there is no ancestor with a config-statement, presumably the 'error' list represents information that is configuration data.
> My understanding is that according to RFC 7950 (Section 7.8.2), lists representing configuration data must have a key specified. The excerpt above doesn't specify a key and perhaps should?

RFC 8040 defines yang-data as not "configuration" by default (much like e.g., notifications) and hence, per RFC 7950 Section 7.8.2, the "key" statement is optional.   

Kent