Re: [Netconf] "depth" parameter: nest-level semantics
Andy Bierman <andy@yumaworks.com> Tue, 03 December 2013 21:53 UTC
Return-Path: <andy@yumaworks.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 39D371ADE8A for <netconf@ietfa.amsl.com>; Tue, 3 Dec 2013 13:53:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.978
X-Spam-Level:
X-Spam-Status: No, score=-1.978 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FM_FORGED_GMAIL=0.622, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham
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 Q0kwKP1QTPnX for <netconf@ietfa.amsl.com>; Tue, 3 Dec 2013 13:53:48 -0800 (PST)
Received: from mail-qe0-f42.google.com (mail-qe0-f42.google.com [209.85.128.42]) by ietfa.amsl.com (Postfix) with ESMTP id 212841ADEBF for <netconf@ietf.org>; Tue, 3 Dec 2013 13:53:48 -0800 (PST)
Received: by mail-qe0-f42.google.com with SMTP id b4so14681651qen.15 for <netconf@ietf.org>; Tue, 03 Dec 2013 13:53:45 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=XN46CN3jGT6DEe5v/b91wE0w7KxCh8hNvhXrPKafqCQ=; b=CdYc1o7J0EYFVKU3W2R9/J4pTS8o+PbNSsBlA+XCaWr53YHJN6Hl53B5Cs3lXofHgj x5RaLyzTaWBymLq5uxVHtHlt+Nzyxy048qDbYiWqOklFQQ9tpcukIXGLjB2W8uyVwQHM YCJHNQhJ1a3bw+MxBIPBDBggmoiVye19nm2ShRlEU0FfUW+vct5e0w27YVmxIfTY4XkE iNKCvQ7YfRgzAa/P/h52z1jwPEgKtk9r0OVGouH9+hY7mVVkGrYVEJURQAc/mmfOFuB2 ky0s9jFx5RAfJSJxT9QtVQi1YmQIuEKIX/q94+Enxp5xCfAJzkTwlh1V2n5K3T2LSg4O 6zhA==
X-Gm-Message-State: ALoCoQnRP9gwQcAfXlZ3+kysr5Ptf2bgskvD8BcydxkwXyc6Jk0Jv9ctAnW44/KrFBvw1+Ei5CtY
MIME-Version: 1.0
X-Received: by 10.224.39.15 with SMTP id d15mr50016367qae.36.1386107625125; Tue, 03 Dec 2013 13:53:45 -0800 (PST)
Received: by 10.140.48.75 with HTTP; Tue, 3 Dec 2013 13:53:45 -0800 (PST)
In-Reply-To: <CEC38EF4.3AC41%albertgo@cisco.com>
References: <CEC38EF4.3AC41%albertgo@cisco.com>
Date: Tue, 03 Dec 2013 13:53:45 -0800
Message-ID: <CABCOCHTXXh51eAKzKQbUZg-o-Zw0VuRpNMBqSuXMsMj9_aEAjw@mail.gmail.com>
From: Andy Bierman <andy@yumaworks.com>
To: "Alberto Gonzalez Prieto (albertgo)" <albertgo@cisco.com>
Content-Type: multipart/alternative; boundary="001a1134a56a9dcfd404eca8548a"
Cc: Netconf <netconf@ietf.org>
Subject: Re: [Netconf] "depth" parameter: nest-level semantics
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/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, 03 Dec 2013 21:53:52 -0000
On Tue, Dec 3, 2013 at 1:36 PM, Alberto Gonzalez Prieto (albertgo) < albertgo@cisco.com> wrote: > Hello, > > I wanted to confirm my understanding of the semantics of a nest-level. > > I understand that a nest-level is composed of a resource + its children. > Data resources are: containers and lists. > Children of a data resource are: leaves, leaf-lists, anyxml. How about > presence containers? > > This is changing in restconf-03. In order to allow optional YANG terminals to be deleted without requiring implementation of YANG Patch, all YANG node types will be considered data resources. > 1) In the example of 3.8.1, for a depth of 2, the response includes 2 > containers (I.e., jukebox and library) and 1 list (I.e., artist). Would > that make it 3 resources, and therefore 3 nest-levels? > > 2) I am assuming that choice and case nodes are "transparent" wrt > nest-levels. Is this the case? > yes -- the depth applies to real nodes. That is, for the following resource > > Container alpha { > > choice interface-type { > case a { > leaf foo { ... } > } > case b { > container bar { ...} > } > } > > } > > > > For a get for "alpha" and depth = 1, the leaf "foo" should be returned > if it existed. "Bar" would not be returned if it existed. > Not in restconf-03. The approach above is kind of broken because there is no way for a client to just test for the existence of a container without retrieving all the leafs. depth=2 would return the leaf foo and an empty container bar. depth=3 would return the leaf foo, the container bar, and the children of bar. > Thanks, > > Alberto > > > Andy
- Re: [Netconf] "depth" parameter: nest-level seman… Alberto Gonzalez Prieto (albertgo)
- [Netconf] "depth" parameter: nest-level semantics Alberto Gonzalez Prieto (albertgo)
- Re: [Netconf] "depth" parameter: nest-level seman… Andy Bierman
- Re: [Netconf] "depth" parameter: nest-level seman… Andy Bierman