Re: [netconf] Trouble with RFC 8040 (Restconf) fields Query Parameter

Kent Watsen <kent+ietf@watsen.net> Tue, 12 May 2020 19:53 UTC

Return-Path: <010001720a72cd87-57dc4f05-1079-470c-b1eb-d84e548c7ca6-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 E51C43A0AAD for <netconf@ietfa.amsl.com>; Tue, 12 May 2020 12:53:17 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.898
X-Spam-Level:
X-Spam-Status: No, score=-1.898 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, 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 FRkjl8EuV348 for <netconf@ietfa.amsl.com>; Tue, 12 May 2020 12:53:16 -0700 (PDT)
Received: from a8-96.smtp-out.amazonses.com (a8-96.smtp-out.amazonses.com [54.240.8.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id ABBFD3A0A8D for <netconf@ietf.org>; Tue, 12 May 2020 12:53:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=224i4yxa5dv7c2xz3womw6peuasteono; d=amazonses.com; t=1589313195; h=From:Message-Id:Content-Type:Mime-Version:Subject:Date:In-Reply-To:Cc:To:References:Feedback-ID; bh=Cg9XRKhDAtIrANo9BgMG/GqQl665j4R2Fr9hyrbC1LY=; b=KBHBQCvGzQkhvdEBs90x76Io/LVu4mYeznR3bLw6Hdi+ri+Cw3lkqwQauTAjWHke qmD+9BFmf7PrOZQRvD4Ke9Xzohl2E3J784ORUSYlBlzQLQTgXfkTOoOn6VLYtMGTE4+ ahiYAma3UjULaaijoSlE3VFkwQ6mPtK4eykv+RRU=
From: Kent Watsen <kent+ietf@watsen.net>
Message-ID: <010001720a72cd87-57dc4f05-1079-470c-b1eb-d84e548c7ca6-000000@email.amazonses.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_9A6B9930-F07C-4630-B977-5634977014E9"
Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\))
Date: Tue, 12 May 2020 19:53:15 +0000
In-Reply-To: <CAGnRvuqtb4Z_gqZEXQ2Mi2XL2Pygn866f6UjTbmqMwPTnqTYBQ@mail.gmail.com>
Cc: "Per Andersson (perander)" <perander@cisco.com>, "netconf@ietf.org" <netconf@ietf.org>
To: Henning Rogge <hrogge@gmail.com>
References: <CAGnRvup-pLVYgxAx7PnbJJ1gS-GTkD6t5jGD_Ayhh7ctpPothw@mail.gmail.com> <CAGnRvuq=ESLkeyWsgiqE9sXqFwHGUef3A4QRuW=H8ompVO3C4Q@mail.gmail.com> <20200414.222236.518728457229433184.id@4668.se> <CAGnRvurVJBHbRbwtnLXQFeSrDUFSGKWhL1UUjUDjw5-Gc44ozg@mail.gmail.com> <9C6D0A8A-2BD4-4578-8CB3-6969078CE10A@gmail.com> <CAGnRvupBeUnmpTLmeNR7y3Ycb22Jkngo=kfssNFfxHndxxEfPQ@mail.gmail.com> <20BA9136-0FC6-4CAC-BF59-89FC16DB583E@gmail.com> <01000171f59ea8ae-a7319ea3-12ca-4857-9b43-3f89ef6ec35c-000000@email.amazonses.com> <CAGnRvurn163ON65dDD8eZ-706fGrNGh8jHehFfwShm29cGyDOA@mail.gmail.com> <CAGnRvuoG04aKApt8LrKZhJD6iKWyGEiDNhmjkf1q34mYBjV=9A@mail.gmail.com> <DM6PR11MB3818284F0D47F5DF846584A3DBBE0@DM6PR11MB3818.namprd11.prod.outlook.com> <CAGnRvuqtb4Z_gqZEXQ2Mi2XL2Pygn866f6UjTbmqMwPTnqTYBQ@mail.gmail.com>
X-Mailer: Apple Mail (2.3445.104.11)
X-SES-Outgoing: 2020.05.12-54.240.8.96
Feedback-ID: 1.us-east-1.DKmIRZFhhsBhtmFMNikgwZUWVrODEw9qVcPhqJEI2DA=:AmazonSES
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/Ev2SkrDX144pAiIk6YrPfv7QO1Q>
Subject: Re: [netconf] Trouble with RFC 8040 (Restconf) fields Query Parameter
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: Tue, 12 May 2020 19:53:23 -0000

Hi Henning,

> Does the counting just begin when the explicit selected fields end or
> does it directly jump to the depth measured from the root node?

It's measured from the target resource.

Think of "fields" as like a SQL "WHERE" clause and "depth" as a post-op on the result.   Note that certain combinations of depth and fields can lead to all the selected fields being trimmed out of the response.  That is a valid user-error scenario.


> Henning Rogge

Kent // contributor