Re: [netconf] restconf collections

Andy Bierman <andy@yumaworks.com> Sat, 26 September 2020 17:31 UTC

Return-Path: <andy@yumaworks.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 D7C8B3A0C1B for <netconf@ietfa.amsl.com>; Sat, 26 Sep 2020 10:31:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.887
X-Spam-Level:
X-Spam-Status: No, score=-1.887 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 CRDxjzb57rBr for <netconf@ietfa.amsl.com>; Sat, 26 Sep 2020 10:31:27 -0700 (PDT)
Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id CD6A03A0C20 for <netconf@ietf.org>; Sat, 26 Sep 2020 10:31:26 -0700 (PDT)
Received: by mail-lj1-x232.google.com with SMTP id n25so5031814ljj.4 for <netconf@ietf.org>; Sat, 26 Sep 2020 10:31:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=JpTCdxXvHqsffSh04ZiK3UTfoLYSzqsCuDcz+g5l3bU=; b=UjRwYQyR1Qm3WsWZWAWaRxR9ucFADUo5zqHX7qWhTcNMUbmd3+m10Y4vosHboXOrYa WOM2l8+oOYJKrZXogPl2e+NdYbyf9wD56aag35K5zIeT29YuUewWtleb0PgOoo+P5/R4 Vyi8gHWZ3tQRH9g3XGL6wae0Phv6XO97UXrNXIV+6n3MGu2hRchLrf6S4Dy2o9L7+W6r BQxFm3xRRe+XxytH0HsQGCV4FpN8cxxfHtTbxuDaPyUvkniEzLUAQINsR8RNeMbzWHOu ofzAirKXnyygQ4hxEspSif5xBT7Os3cvmODXpyT06agoFFIXCnxh8JvAhTnXxJVz3BC9 w6yQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=JpTCdxXvHqsffSh04ZiK3UTfoLYSzqsCuDcz+g5l3bU=; b=EZCOzTsFhEexAb+I5q4Qyp2ehaSkUpXChs4EHcPOmOWoJVr4hdSCM8tIEI5v0JS28F IBCmHGZUh8ChYnqDQajnmmJSQKInSUIse7B6/bWSj/mjaXre5r2Xk65M6ZYs20VwmTUj tj06sjxzJlA62NTZYpjBIbhaPIAxNGM+F1k/L4mtPMhQR4Fo/dmiZ5jzSAntYWI2Yas4 90sazyeXZteWFuDFr4/8X8Yh01vlcQcQ59JFrHav3WPsmsEz5V/sG/2juMrla7LqsFmn fdW/OyLmZjzuu6b/HVVAz/UBXuL7zzLtr2I6ME3aqcpYI0xGNxp2sRdL/o4b1j6PR8gJ 2fUg==
X-Gm-Message-State: AOAM530GCm4JIvo2y/h3p7UCqLi6ZMoJpj7Z4eXWRpFqwJQCdCcvZ3L1 xZFVcfe20szYYmGGDpxpb0bp/WZLd+EV2hE6dl4SmQ==
X-Google-Smtp-Source: ABdhPJxlzX3l+dRjfUYU0oidWX54aAfIM4uDu5+jB/9CZXrzzxUwsk7DhH9mXoocQ7u76ogSmTXBrzgfabS/c2YdllA=
X-Received: by 2002:a2e:7c14:: with SMTP id x20mr3148750ljc.220.1601141484561; Sat, 26 Sep 2020 10:31:24 -0700 (PDT)
MIME-Version: 1.0
References: <B8F9A780D330094D99AF023C5877DABAADA1006E@dggeml511-mbs.china.huawei.com> <01000174cb6ea9ee-d7716c10-a691-4a97-9e99-022e4c0ef55a-000000@email.amazonses.com>
In-Reply-To: <01000174cb6ea9ee-d7716c10-a691-4a97-9e99-022e4c0ef55a-000000@email.amazonses.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Sat, 26 Sep 2020 10:31:13 -0700
Message-ID: <CABCOCHRzK8658NuwH4rBrmUg-T1KFWA0nZ2RJf_Kd9Q0TFka0g@mail.gmail.com>
To: Kent Watsen <kent+ietf@watsen.net>
Cc: Qin Wu <bill.wu@huawei.com>, "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000006c3e5305b03acd53"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/E9pJLqk0r3qeVtaRUZsJVeE15-8>
Subject: Re: [netconf] restconf collections
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: Sat, 26 Sep 2020 17:31:29 -0000

On Sat, Sep 26, 2020 at 10:21 AM Kent Watsen <kent+ietf@watsen.net> wrote:

> Hi Qin,
>
> (My concern is that the IETF version will be too complex to implement or
> use as the feature list grows.)
>
> [Qin]:That’s the issue we try to address in our customer’s scenarios. If
> the solution only focuses on list, the complexity is controllable. If the
> scope is not limited to list, XAPTH filtering and query actually provides a
> good solution to navigate from root node to leaf node.
>
>
> The functionality is only for lists.  The functionality (e.g., paging)
> being discussed only make sense for lists...
>
>
> It is easy. Use RPC operations which map to RESTCONF POST automatically.
>
>
>
> [Qin]: Agree, NETCONF fragment provide an example on what RPC operations
> look like
>
> https://tools.ietf.org/html/draft-zheng-netconf-fragmentation-02
>
> which is similar to getbulk operation.
>
>
> The <get-block> RPC may be a good starting point.  It would be good to
> also look at Andy’s <get-bulk> RPC for inspiration.
>
>
>
The <get-block> operation seems very stateful and seems to be tied to the
existing get-config operation

The <get-bulk> operation is not stateful.
 http://www.netconfcentral.org/modulereport/yumaworks-getbulk


There are 3 completely different approaches:

  1) stateless
  2) stateful
  3) stateful snapshot

How to efficiently iterate through data that is changing constantly?
This problem is harder than it looks.


K.
>
>
Andy