Re: [netconf] NACM and draft-ietf-netconf-notification-capabilities-07

Andy Bierman <andy@yumaworks.com> Mon, 18 November 2019 22:18 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 65277120B47 for <netconf@ietfa.amsl.com>; Mon, 18 Nov 2019 14:18:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 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_NONE=-0.0001, SPF_HELO_NONE=0.001, 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 gz_rtdYd1dk1 for <netconf@ietfa.amsl.com>; Mon, 18 Nov 2019 14:18:52 -0800 (PST)
Received: from mail-lj1-x22a.google.com (mail-lj1-x22a.google.com [IPv6:2a00:1450:4864:20::22a]) (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 3CC03120090 for <netconf@ietf.org>; Mon, 18 Nov 2019 14:18:52 -0800 (PST)
Received: by mail-lj1-x22a.google.com with SMTP id m4so15905369ljj.8 for <netconf@ietf.org>; Mon, 18 Nov 2019 14:18:52 -0800 (PST)
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=YVk8tiaxFBKdcyA27dRAP80lMIEEONaWY0kbQ9m3wv0=; b=YJl3Gmre+UaHZYEsrX97Ii40ppvVcSaTFrJQJBXpHFHWvZR9gVajT4jSu912gGi1EE CAHRTFphFR1O/NYSgJeBNSbXRGnkXDQxzhyX30+ByNA9ncM3vPAyqbNm35Ar8ac9egKk dnoseLvWmlklCEfaM/TwwHp7pW9wLqL8OLVXhhwwR/UtN1XfzRSXQhEkNo1/mJ4WkKO4 BzGxNRUHlUtm2SuguejBgM5opZoSEiA0U6S2veFqv2eYGTWVHBBC3/1K+V8AnmDBMG66 x0w8g08pecZS2vTTbKt0/iV2lJm6rfFXya5yK87hlW5nipSzBHcnrkLorRFBhB8Fi635 kKvA==
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=YVk8tiaxFBKdcyA27dRAP80lMIEEONaWY0kbQ9m3wv0=; b=ckHBbePL+XjXVI9z1y2OO9cXj6hxihC6O9HXv6Mpznry/c51uxZ4UqdAs9SI2YDTeH 8GVzxBkM5TBxekXfg8iykLimEsL35kIKgG8aidK696RngThUKrf2Pmz8i07Ha+9flKlc CgySAL1eIqXlPBVHqug/gaFaGoVkSF7D2UMlmnhuDACv7N/1wUnPPav9dBYEsRkZ3F8v VVvGgsnMoyGmtMbEZbbo3R/eMJfIjuKLO4AA6F0bfwejcOwW6U9medmD9+nMKu2s7ID2 JkvYEhnNo6NFp2S4hwzlEKpMFQOmmyX3eMTveDwklp1nXvhgwj/U+xNZrganzQY0mxwy FjMQ==
X-Gm-Message-State: APjAAAVqtrPG82GeHWFsXXAVWOBLK2tp2ENF6C50fWkN2aiTlIhkXHwb yIbHlwLzMfJZK6VHRpzh19EXqoU6Yz00++FXFhSETg==
X-Google-Smtp-Source: APXvYqxgXEtLId5ReD8/gTgZjsLB3gxHqdsx2P4+Soi8F6a5iukbUFRGdEZJ1g7kti2CWmytwCIOoKVKYfaodGpn/LE=
X-Received: by 2002:a05:651c:d3:: with SMTP id 19mr1259774ljr.202.1574115530107; Mon, 18 Nov 2019 14:18:50 -0800 (PST)
MIME-Version: 1.0
References: <71259b42-2e44-7584-36af-6eaa860c41cf@cisco.com> <32b6be76986ed69bf3d2aec84866ef6dfa9b277c.camel@nic.cz>
In-Reply-To: <32b6be76986ed69bf3d2aec84866ef6dfa9b277c.camel@nic.cz>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 18 Nov 2019 14:18:39 -0800
Message-ID: <CABCOCHQ_ngwYPqOUFpFRmdc1cNh-UKGqC7N8S-6FYwPPcVF7uA@mail.gmail.com>
To: Ladislav Lhotka <lhotka@nic.cz>
Cc: Netconf <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000020afd0597a65563"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/f9-CEKjrqw2VwT8wsfHoLdLNxlo>
Subject: Re: [netconf] NACM and draft-ietf-netconf-notification-capabilities-07
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: Mon, 18 Nov 2019 22:18:58 -0000

On Mon, Nov 18, 2019 at 2:28 AM Ladislav Lhotka <lhotka@nic.cz> wrote:

> On Mon, 2019-11-18 at 17:34 +0800, Benoit Claise wrote:
> > Dear all,
> >
> > Coming back to Rob Wilton's message at the mike about NACM reference to
> draft-
> > ietf-netmod-rfc6991-bis-02
> > From draft-ietf-netconf-notification-capabilities-07
> >    import ietf-netconf-acm  { prefix nacm; }
> >    import ietf-yang-push    {
> >      prefix yp;
> >      description
> >        "This module requires ietf-yang-push to be implemented.";
> >    }
> >
> > Along the same lines, I believe it makes sense to add "This module does
> not
> > require NACM to be implemented."
>
>

This is a rather ad-hoc way to declare module conformance and dependencies.
Not sure it is even correct.

In this draft it looks like all the objects that are related to yang-push
use "if-feature yp:on-change".  So does this module really require
yang-push if
feature on-change is not supported?

For nacm, only a typedef is used and no objects are used at all.

It seems clear that if the importing module augments the imported module,
or if leafref nodes exist that point to the imported module, then it is
supposed to be implemented.


Andy


Yes, see also my Yang Doctor review:
>
>
> https://datatracker.ietf.org/doc/review-ietf-netconf-notification-capabilities-05-yangdoctors-lc-lhotka-2019-10-29/
>
> >
> > Thinking some more about it... Actually, I don't like "This module
> requires
> > ietf-yang-push to be implemented."
> > What if I want to implement this draft for gRPC and not YANG-push?
> > This capability should be independent of the streaming protocol IMO
>
> This draft (of which you are a co-author:-) states explicitly that the
> capabilities are 'related to "Subscription to YANG Datastores"
> (YANG-Push)'.
>
> Lada
>
> >
> > Regards, Benoit
> > _______________________________________________
> > netconf mailing list
> > netconf@ietf.org
> > https://www.ietf.org/mailman/listinfo/netconf
> --
> Ladislav Lhotka
> Head, CZ.NIC Labs
> PGP Key ID: 0xB8F92B08A9F76C67
>
> _______________________________________________
> netconf mailing list
> netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
>