Re: [netconf] Get all lists, container, keys

Martin Bjorklund <mbj@tail-f.com> Tue, 19 February 2019 10:16 UTC

Return-Path: <mbj@tail-f.com>
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 097C4130E99 for <netconf@ietfa.amsl.com>; Tue, 19 Feb 2019 02:16:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=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 sj_vxYpd8q6I for <netconf@ietfa.amsl.com>; Tue, 19 Feb 2019 02:16:43 -0800 (PST)
Received: from mail.tail-f.com (mail.tail-f.com [46.21.102.45]) by ietfa.amsl.com (Postfix) with ESMTP id 2F65C129284 for <netconf@ietf.org>; Tue, 19 Feb 2019 02:16:43 -0800 (PST)
Received: from localhost (unknown [173.38.220.61]) by mail.tail-f.com (Postfix) with ESMTPSA id E76591AE0141; Tue, 19 Feb 2019 11:16:40 +0100 (CET)
Date: Tue, 19 Feb 2019 11:16:40 +0100
Message-Id: <20190219.111640.909584911684750334.mbj@tail-f.com>
To: balazs.lengyel@ericsson.com
Cc: netconf@ietf.org
From: Martin Bjorklund <mbj@tail-f.com>
In-Reply-To: <37dad116-5a8e-4ce8-c2ca-1e2a89fa7a7f@ericsson.com>
References: <37dad116-5a8e-4ce8-c2ca-1e2a89fa7a7f@ericsson.com>
X-Mailer: Mew version 6.7 on Emacs 25.2 / Mule 6.0 (HANACHIRUSATO)
Mime-Version: 1.0
Content-Type: Text/Plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/aSXz2aWhBnWJi4jSMfuRSvVInOc>
Subject: Re: [netconf] Get all lists, container, keys
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, 19 Feb 2019 10:16:45 -0000

Balázs Lengyel <balazs.lengyel@ericsson.com> wrote:
> Hello,
> 
> What is the best way to get the skeleton of the datastore? I want to
> get all the containers, lists entries and key values, but none of the
> non-key leafs or leaf-lists. Is there a way to do this?

Not in a generic way.  The only way I can think of is to construct a
subtree filter, from the YANG model.


> My next question will be to get this only for the next level, but
> there get-data+max-depth seem useful?

Yes, max-depth is useful for this case.


/martin



> 
> regards Balazs
> 
> -- 
> Balazs Lengyel                       Ericsson Hungary Ltd.
> Senior Specialist
> Mobile: +36-70-330-7909 email: Balazs.Lengyel@ericsson.com
> 
>