Re: [netconf] [yang-doctors] Yangdoctors last call review of draft-ietf-netconf-subscribed-notifications-21

Andy Bierman <andy@yumaworks.com> Mon, 21 January 2019 19:17 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 D3BEC130F11 for <netconf@ietfa.amsl.com>; Mon, 21 Jan 2019 11:17:20 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.042
X-Spam-Level:
X-Spam-Status: No, score=-2.042 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.142, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=unavailable 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 J1vDX4J8w6Ev for <netconf@ietfa.amsl.com>; Mon, 21 Jan 2019 11:17:19 -0800 (PST)
Received: from mail-lj1-x229.google.com (mail-lj1-x229.google.com [IPv6:2a00:1450:4864:20::229]) (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 03924130F0F for <netconf@ietf.org>; Mon, 21 Jan 2019 11:17:16 -0800 (PST)
Received: by mail-lj1-x229.google.com with SMTP id v1-v6so18510542ljd.0 for <netconf@ietf.org>; Mon, 21 Jan 2019 11:17:15 -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=hwuz7GFI47uvUwZa6Y3N0UkL/qlldXwjZoTWZ44qmks=; b=kiQRHuu+jbYJ1gX15qD23+excAzdrmwfqoUq6lhcL+lcmonYHEPmB3k3MU5dlgxwa5 fU/3U77rz0X9hJ/xcoaeOvdzhJMZQu0ySOb16hrOxFkyj9m04yj3HWVGpJdRbw2cmf/d YvuSGwkLpzgVDkXkF2dOETnm4TDGQoZYC56vnjekoGb6nLFWtXaoPvWFSpnlAcWPj+C8 0Y9zny+xwHvEMZ0d7cd6c1bJniCTnO3qKG6UY2QPNVXpi/4xn1b4Sg52f56abdRbHd9T xnfmxev7Luvx9blR1b6hCKyfFz2g6LYE7mKYsHua/kh2zS1bqsAR/2OvFrtMKdnW3ytc XiRA==
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=hwuz7GFI47uvUwZa6Y3N0UkL/qlldXwjZoTWZ44qmks=; b=n2iACOSGa44ekjucKg4nXl0cmqo0gnqo1uAYv/5VdGaLuROk05sky8vyHduLzqPUOA uHmRs4X4L2WfLkowPkyzPVLIaYiTcrKo8AfWmIo2Mfkoc1rokRBocDLrD+DKNrSQPyHW 3r/Xb97dYtLjXuWBT8nnoWk5FFo7p2P9CcuU//7KAl7r0suzQ4t3frvq1TfN+UMHSHeu 9vrB9YBHAPH4I3sEsnVP8aVXZlhWU41jV3fwia/ntcyCWm1tLwsrB+cMbNe/ObGyXJQI eoGMGbZM3n6nc62haXKcBoUQBb7hC04SOPSgvJdjpe4iifs0yecb9SbHh0rAf/ruEzmR 4Ktw==
X-Gm-Message-State: AJcUukfGgPY/mCTiYwZSWpc9UbXDYnhMI9bdZCCkjfo9ixLp9lWbNxZk dO32DSX4qF6Kwf6z67MKN6DdnTMbzdo9Agig+j3C0Q==
X-Google-Smtp-Source: ALg8bN4P1qNTH6z1x2qPBm4MhoPei9gmdHBbUTDrIHoxJ/qMqRQSkPBL+CoHmmdok2ZW5OV2sde9G+ntfBiOeYODGYA=
X-Received: by 2002:a05:651c:14e:: with SMTP id c14mr18007257ljd.20.1548098234013; Mon, 21 Jan 2019 11:17:14 -0800 (PST)
MIME-Version: 1.0
References: <154751447121.9624.9621514728857769626@ietfa.amsl.com> <ece835a85a55419f875537f0ca4b90c6@XCH-RTP-013.cisco.com> <CABCOCHTQ4VD49zZ4LLOFHiTWhKJgOOhMyX0DAV-hrwYO8MZkCQ@mail.gmail.com> <20190121.104951.444527646937998070.mbj@tail-f.com>
In-Reply-To: <20190121.104951.444527646937998070.mbj@tail-f.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 21 Jan 2019 11:17:02 -0800
Message-ID: <CABCOCHSPLkAQY_Q5-ge8JCiLVTHUEO0pHSE+8TmaTnThQCGNcg@mail.gmail.com>
To: Martin Bjorklund <mbj@tail-f.com>
Cc: "Eric Voit (evoit)" <evoit@cisco.com>, YANG Doctors <yang-doctors@ietf.org>, Netconf <netconf@ietf.org>, draft-ietf-netconf-subscribed-notifications.all@ietf.org
Content-Type: multipart/alternative; boundary="00000000000050e26a057ffcb54d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/av0lQVetyX9oWPE3T7T-yd0bcD8>
Subject: Re: [netconf] [yang-doctors] Yangdoctors last call review of draft-ietf-netconf-subscribed-notifications-21
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, 21 Jan 2019 19:17:21 -0000

On Mon, Jan 21, 2019 at 1:49 AM Martin Bjorklund <mbj@tail-f.com> wrote:

> Andy Bierman <andy@yumaworks.com> wrote:
> > On Wed, Jan 16, 2019 at 10:35 AM Eric Voit (evoit) <evoit@cisco.com>
> wrote:
> >
> > > Hi Andy,
> > >
> > > Thanks for the review.  Some thoughts....
> > >
> > > > From: Andy Bierman, January 14, 2019 8:08 PM
>
> [...]
>
> > > > I7) leaf stream-xpath-filter: [multiple uses]
> > > >
> > > >            The expression is evaluated in the following XPath
> context:
> > > >
> > > >              o   The set of namespace declarations is the set of
> prefix
> > > >                  and namespace pairs for all YANG modules implemented
> > > >                  by the server, where the prefix is the YANG module
> > > >                  name and the namespace is as defined by the
> > > >                  'namespace' statement in the YANG module.
> > > >
> > > >   -- This prefix processing is not done anywhere else in NETCONF
> > > >      or RESTCONF.  IMO a bad precedent.  Only the XML prefixes
> > > >      should be required for processing of XML encoding.  YANG
> > > >      module prefixes are not required to be unique, unlike
> > > >      the prefix mappings in XML
> > >
> > > This text was proposed by Martin as a result of the "xpath expressions
> in
> > > JSON" thread last October in NETMOD.
> > >
> > > I am happy to incorporate whatever text is appropriate.  I was hoping
> that
> > > the suggested text was sufficient for now.  Kent has already
> incorporated
> > > this as an issue for yang-next
> > > https://github.com/netmod-wg/yang-next/issues/55
> > > So hopefully there is no final precedent being claimed.
> > >
> > >
> > I do not agree that this YANG module should define a new way to encode
> XPath
> > into XML instance documents.
>
> This mechanism was first used in RFC 8040, section 4.8.4, in order to
> have a transport-agnostic encoding of XPath expressions (same for XML
> and JSON).
>
> There was long debate on the ML for this issue, and this was the
> outcome that the WG decided.
>
>
OK -- no need to change anything then.
I do not agree that "xmlns" attributes pose an implementation challenge for
clients
but servers already need custom XPath to process YANG so this just adds to
that list.



> > This will require significant changes to server
> > implementations.  YANG module prefixes are not even required to be unique
> > so the set of prefixes used by the server in XML instance documents may
> be
> > different,
> > since it must be unique.
>
> YANG module prefixes are not used here.  The module *name* is used as
> the identifier prefix in XPath expressions:
>
>   /ietf-interfaces:interfaces/ietf-interfaces:interface/...
>
>
>
> /martin
>


Andy