Re: [Netconf] In an update, when is a delete a delete?

Andy Bierman <andy@yumaworks.com> Fri, 19 May 2017 21:36 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 54CAA12717E for <netconf@ietfa.amsl.com>; Fri, 19 May 2017 14:36:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.6
X-Spam-Level:
X-Spam-Status: No, score=-2.6 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_LOW=-0.7, SPF_PASS=-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 nAnYov23DnPF for <netconf@ietfa.amsl.com>; Fri, 19 May 2017 14:36:47 -0700 (PDT)
Received: from mail-wm0-x22f.google.com (mail-wm0-x22f.google.com [IPv6:2a00:1450:400c:c09::22f]) (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 956DB1200F1 for <netconf@ietf.org>; Fri, 19 May 2017 14:36:46 -0700 (PDT)
Received: by mail-wm0-x22f.google.com with SMTP id b84so246319439wmh.0 for <netconf@ietf.org>; Fri, 19 May 2017 14:36:46 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=UPGweT7raVGx8wUaPatjMpGJg5Ri3+CZKmjJEmwmFT0=; b=s+8s+PHKwMh37IqudJita6Xl8kf63y8sf1pDQr8J227N+jM+os6mAY0ecLD5UmwBN9 8Ur3k2nNXc6mMmhMt7yArjIUY4VNa3QWMVxCiJlaWmVIiQkD6Y9VWcF3jkDD++c3uY8p IXwbacesGzEl1OlgQ2mVCJGDJCfFWtf5EIpyE0hskKFSV/ebwpOtbWbqm0MHFM4WV+tt sYA1prPNyccsIH2aQ2o58965+yCNtHi/V1bpqVKIJ476+PrzYhjUoJqD2uO34Xs6ZIyX r+jRsAMyffUcpiSFqYXca5m1vf3yThohtE/eEU7nurdzSwwdkuS9+z51INApHogYMvJ/ 53XQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=UPGweT7raVGx8wUaPatjMpGJg5Ri3+CZKmjJEmwmFT0=; b=OBc9Ode6mTTXuU9sIwCU0AiJTWZbwQK9CG44qnjd/DN9VjPBzLgVfRcawAc5F4VCWT l7MhwcxjrOu29OaFZIU1x+b/7tuTJAuMeFtoAWUxWXrO6G3oh6h0UZ1hAZABAKHjMPuU qSNKYfdsPB9HdJLl4Ty8RIfcSeX5zHqbKDO8dYj5LNXXFU1K2fYRP6VcJbf2XHikRqJF QfNL7vylCGKkNm2EweOwJVKqjExqXaNGuhGr69PRh+Guj6NwA4AzldgpQejG26eZA1z5 WNIzsfj2PIn31JjmOPumRQDvwXG6d8B87r8zmJk+sQbEwJGIG+ySG9Q5V7EygwXZUZjF v/Eg==
X-Gm-Message-State: AODbwcCCbFzjwO9KRfWc/N0kGZA7LHndh4RcAHpYH8nK7k/kfZktBREU FF+lrkgnY7xz4Gkje0w1eGJF6CbXNvu1
X-Received: by 10.28.158.134 with SMTP id h128mr3267254wme.99.1495229805065; Fri, 19 May 2017 14:36:45 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.155.2 with HTTP; Fri, 19 May 2017 14:36:44 -0700 (PDT)
In-Reply-To: <644DA50AFA8C314EA9BDDAC83BD38A2E0DFAF223@SJCEML701-CHM.china.huawei.com>
References: <8340AFB7-350A-4641-A130-4114E39C73E1@juniper.net> <CABCOCHS-qYRJuvrDNj+CbL6p+cdt84Mc+a-P-MiqU4x=V814aQ@mail.gmail.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0DFAF042@SJCEML701-CHM.china.huawei.com> <CABCOCHSdMGuXvmf6YeVCw6oVAgRwd2NOLrCC-1x3ync7KPx3Aw@mail.gmail.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0DFAF0AC@SJCEML701-CHM.china.huawei.com> <CABCOCHQ-H7CdQodptTxaJj-7v9qZ_sF41RfBC4oi-GFY57bz+A@mail.gmail.com> <644DA50AFA8C314EA9BDDAC83BD38A2E0DFAF223@SJCEML701-CHM.china.huawei.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 19 May 2017 14:36:44 -0700
Message-ID: <CABCOCHS4oKs+c-F0JN952RTb9xNQ4QBHcAKh40nHQzxSLPV-yQ@mail.gmail.com>
To: Alexander Clemm <alexander.clemm@huawei.com>
Cc: Kent Watsen <kwatsen@juniper.net>, "Eric Voit (evoit)" <evoit@cisco.com>, Netconf <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="001a114b3b046394af054fe7510d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/m66FhQs6zh6LTKVBBwvKWq0h3sE>
Subject: Re: [Netconf] In an update, when is a delete a delete?
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.22
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: <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: Fri, 19 May 2017 21:36:49 -0000

On Fri, May 19, 2017 at 2:30 PM, Alexander Clemm <alexander.clemm@huawei.com
> wrote:

> Hi Andy,
>
>
>
> I am not sure I understand your question below.  I am not referring to
> mix-and-match between subscription – not to bundling or anything like
> that.  Merely to an on-change subscription.
>
>
>
> If we do send updates regarding changes, and a subscription allows to
> apply a “value filter”, there are cases when a change is caused by a node
> being deleted since the last update cycle, and there are cases when a
> change is caused by a node changing its value so it no longer matches the
> value of the filter (and create case accordingly).  This can clearly
> occur.  Given this, I think we are faced with the alternative of either
> being able to properly distinguish the two (option #2 in the earlier
> thread), or disallowing filters based on data node value (option #3).  I
> was under the impression you were arguing for #3 earlier?
>
>
>


I guess I like option #4 (allow data filters on static data, say SHOULD NOT
use on dynamic data)
The solution seems too complicated if there is a need for "I am still here,
but I am not being reported" .
Especially since that means "still here in your custom view of things", not
"still here in the device".


--- Alex
>


Andy


>
>
> *From:* Andy Bierman [mailto:andy@yumaworks.com]
> *Sent:* Thursday, May 18, 2017 8:50 PM
> *To:* Alexander Clemm <alexander.clemm@huawei.com>
> *Cc:* Kent Watsen <kwatsen@juniper.net>; Eric Voit (evoit) <
> evoit@cisco.com>; Netconf <netconf@ietf.org>
> *Subject:* Re: [Netconf] In an update, when is a delete a delete?
>
>
>
> Hi Alex,
>
>
>
> On Thu, May 18, 2017 at 6:51 PM, Alexander Clemm <
> alexander.clemm@huawei.com> wrote:
>
> Hi Andy,
>
> Below
>
> --- Alex
>
>
>
> *From:* Andy Bierman [mailto:andy@yumaworks.com]
> *Sent:* Thursday, May 18, 2017 6:34 PM
> *To:* Alexander Clemm <alexander.clemm@huawei.com>
> *Cc:* Kent Watsen <kwatsen@juniper.net>; Eric Voit (evoit) <
> evoit@cisco.com>; Netconf <netconf@ietf.org>
> *Subject:* Re: [Netconf] In an update, when is a delete a delete?
>
>
>
> ……………………
>
> <snip>
>
> I interpret the “modified-in” and “modified-out” suggested by Kent
> precisely as a distinction between those cases.  “Modified-out” simply
> means its value changed so it no longer matches the filter (but the object
> still exists).  Whether we call it modified-in/out or something else is
> another question.  Of course, the issue is that this means this is a new
> case that is not covered by the patch syntax, which would require an
> extension of the encoding.
>
>
>
>
>
>
>
> What breaks if the client just sees data nodes appear or disappear from 1
> patch to the next?
>
> Why does the client need to know the data node still exists, but the
> foo==5 filter changed.
>
> The client decided that only state for foo==5 needs to be watched, so from
> its POV
>
> the extra metadata should not be needed.
>
>
>
>
>
> <Alex>
>
> For periodic, this is what happens.
>
> In the case of on-change, we would indicate changes.  If a data node is
> not included in an update, how would we be able to distinguish between the
> case of (not included because no change) and (not included because no
> longer meets the filter)?  We do need to indicate to the subscriber that
> there has been a change in that the data node no longer meets the
> criteria.  Presumably we want to distinguish this from the case that the
> data node ceased to exist.  (Not distinguishing those cases would put us
> back to alternative #1, which I think the consensus is that we don’t want
> that)
>
> </ALEX>
>
>
>
>
>
> Regarding not included because of no-change:
>
>
>
> How can happen/?
>
> Not if the client is requesting non-overlapping subtrees /foo and /bar.
>
> These are safe to mix in 1 subscription. The client should not assume
>
> that an update for /foo means /bar was deleted.
>
>
>
> Are you referring to overlapping subtrees in 1 subscription?
>
> How would this be configured? Seems complicated to manage.
>
> The semantics of "on-change" should be easy to manage on both client and
> server.
>
>
>
>
>
> Andy
>
>
>
>
>
>
>