Re: [netconf] New Version Notification for draft-ahuang-netconf-notif-yang-00.txt

Andy Bierman <andy@yumaworks.com> Thu, 16 February 2023 22:28 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 0C5E7C16952B for <netconf@ietfa.amsl.com>; Thu, 16 Feb 2023 14:28:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.095
X-Spam-Level:
X-Spam-Status: No, score=-7.095 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BD99VyWtKhYX for <netconf@ietfa.amsl.com>; Thu, 16 Feb 2023 14:28:24 -0800 (PST)
Received: from mail-lj1-x234.google.com (mail-lj1-x234.google.com [IPv6:2a00:1450:4864:20::234]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3782EC169509 for <netconf@ietf.org>; Thu, 16 Feb 2023 14:28:24 -0800 (PST)
Received: by mail-lj1-x234.google.com with SMTP id i18so2907079ljc.8 for <netconf@ietf.org>; Thu, 16 Feb 2023 14:28:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=O7gjwybJ1GD6CrzUAKWr2ucbo2RHhzAw3DCuTfZZzKY=; b=Gl7mg4kM3eE1nu46vlTX0c/1PlcFznR1PZ5g9RXCSPZxM0sUOHFcYC3Wjp+PPABDFy 0gouBVEXr1H5RRXYms//pWLw5ugWfJuHNfA6aqZPXzugakphC3uAhbDj/GRIFqdyF425 VP53sfGe3q8MuiawCngvyRo6mMi8mDTpkWeT+X5zoXWvCquuuGGkpQRdp+tgnGUInUY/ uLYTicIQmtJgzaF7EZcIJLU+RS37TThIPBEew2QcVVj44zt6Mwxim56H5tFrPwbWD5Nj xS3bzGFsuMAqOtWSe/bOIuoL/wCDTBzgJ0fKXG8NZ57jHQZytGYgqZ5opzMQ83gKeQeZ LCpw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=O7gjwybJ1GD6CrzUAKWr2ucbo2RHhzAw3DCuTfZZzKY=; b=yrB7luo9Y9Ya6jKPk6Q8E7vRdyvgt2YJ7nB+HNh9f1Cw92W416FeCR7pIaU2Vc8zbO lc+BR4lJ/5SwbJeCQ3LiEQWbrocdhCXpbcoD9gcNigpU19WIZpebdGZdoVOP2tJUXLaJ 3wq5JKBekAx+5RSkWcDEE6MYc/Cckhhvr/EbKim7pTJ6tFYjfZq3RAemV4YIxk1cuxMe RKLfSpH4zg3h42sTpavE2Ax9LrXiVziIAOt+ELamUcVdTl4Lv1I8am31jrL59ifeC3qk lkbweCVXMSG3irVnV4hFthf1NxItstcn5gl2n1qTiOcArb9x96xi464e7LmcUXybSsbW kqYw==
X-Gm-Message-State: AO0yUKUnE1hZEWF7O4A38f7ODD26+yhdS421SLoM7y+cVEwgcePockKN mGtnd6dYmrRKtQAmx9yx++P2CqMYOt+ordTAlYashw==
X-Google-Smtp-Source: AK7set9T8Rxhgm9DfqCro7CTUuwO/hXCTylDVfKrcH4oiBCFEJdDBNbOtSTOI4G/BVPxc8yBNuCvi3XY//M+hkw3JpY=
X-Received: by 2002:a2e:b989:0:b0:293:4be5:1b49 with SMTP id p9-20020a2eb989000000b002934be51b49mr2096602ljp.0.1676586501047; Thu, 16 Feb 2023 14:28:21 -0800 (PST)
MIME-Version: 1.0
References: <167463735425.575.15306276671931656762@ietfa.amsl.com> <021AE345-3227-47A7-BB72-C84476E2A459@insa-lyon.fr> <DM6PR08MB5084D3F9FB11F181E0B275619BD09@DM6PR08MB5084.namprd08.prod.outlook.com> <A24027D6-D710-4058-ADDD-847AC6320A57@insa-lyon.fr> <DM6PR08MB50842F1BC3352F984221278B9BA09@DM6PR08MB5084.namprd08.prod.outlook.com>
In-Reply-To: <DM6PR08MB50842F1BC3352F984221278B9BA09@DM6PR08MB5084.namprd08.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 16 Feb 2023 14:28:09 -0800
Message-ID: <CABCOCHSSJnP-r6QGSaTWru0JU1t-jZL4aTL6zuwJKZTQ3jieaA@mail.gmail.com>
To: "Jason Sterne (Nokia)" <jason.sterne@nokia.com>
Cc: Alex Huang Feng <alex.huang-feng@insa-lyon.fr>, Netconf <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000d4a3bc05f4d8b6a9"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/8TxT8xqsKfMxtfxktlSK1Xfwzt8>
Subject: Re: [netconf] New Version Notification for draft-ahuang-netconf-notif-yang-00.txt
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.39
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: Thu, 16 Feb 2023 22:28:28 -0000

On Thu, Feb 16, 2023 at 6:53 AM Jason Sterne (Nokia) <jason.sterne@nokia.com>
wrote:

> Hi Alex,
>
>
>
> I’m not an expert on whether it is OK to have the same namespace for a
> YANG schema and an XML Schema (XSD) that both describe the same model. But
> it would be really good if we think that might be acceptable.
>
>
>
> Anyone out there know if we couldn’t do that? It would be a shame…
>

This is the whole point of this YANG module.
There is no rule (AFAIK) that a YANG module namespace cannot match
a target namespace from some XSD.

In order for a client to recognize the XML-encoded notification,
the XML namespace must be the same as it has always been.



>
> Jason
>

Andy


>
>
> *From:* Alex Huang Feng <alex.huang-feng@insa-lyon.fr>
> *Sent:* Thursday, February 16, 2023 5:23 AM
> *To:* Jason Sterne (Nokia) <jason.sterne@nokia.com>
> *Cc:* Netconf <netconf@ietf.org>
> *Subject:* Re: [netconf] New Version Notification for
> draft-ahuang-netconf-notif-yang-00.txt
>
>
>
> Hi Jason,
>
>
>
> Thanks for your feedback.
>
> Yes, that was my second option, just not asking for a new URI and reusing urn:ietf:params:xml:ns:netconf:notification:1.0
> as defined in RFC5277.
>
> My issue there was that the same namespace is linked to two schemas, one
> defined in XML (with RPCs) and one defined in YANG (without RPCs) which
> seems a bit confusing.
>
> But if it is the way to go, happy to remove the URI from the draft.
>
>
>
> Alex
>
>
>
> On 31 Jan 2023, at 23:06, Jason Sterne (Nokia) <jason.sterne@nokia.com>
> wrote:
>
>
>
> Hello Alex,
>
>
>
> If we use a different namespace, then it means the notifications that
> clients receive would be in a different namespace (that in theory they
> don’t recognize unless they are updated with your new draft).
>
>
>
> Maybe we’d just want to keep the same old namespace as in RFC5277 here? It
> is just an alternative schema format for describing the same schema
> elements.
>
>
>
> Jason
>
>
>
> *From:* netconf <netconf-bounces@ietf.org> *On Behalf Of *Alex Huang Feng
> *Sent:* Wednesday, January 25, 2023 4:34 AM
> *To:* Netconf <netconf@ietf.org>
> *Subject:* Re: [netconf] New Version Notification for
> draft-ahuang-netconf-notif-yang-00.txt
>
>
>
> Dear Netconf WG,
>
>
>
> On the last IETF 115 (and some time ago in the ML), I raised the
> discussion on a gap in the spec of YANG-push notification model.
>
>
>
> The definition of this model is necessary to encode and decode the
> YANG-push notification header using different encodings.
>
>
>
> Currently, the definition of this model is specified in RFC5277 using a
> XML schema (See section 4 of RFC5277).
>
>
>
> When the message needs to be encoded using other YANG-compatible encodings
> (such as YANG-json RFC7951 or CBOR RFC9254), a YANG model needs to be
> defined.
>
>
>
> This draft defines the YANG model for this notification message.
>
> It is a short and very simple draft addressing only the existing
> definition of RFC5277. No RPCs are defined since they are already defined
> in RFC8641.
>
>
>
> In the IANA section, I asked for a new
> URI: urn:ietf:params:xml:ns:yang:ietf-notification. Here I asked myself if
> this is the way to do it.
>
> In RFC5277, the authors asked for
> urn:ietf:params:xml:ns:netconf:notification:1.0. This URI reference the XML
> schema.
>
> In practice, the validation of the header is valid using both namespaces,
> but since RFC5277 also defines some RPCs, I went for a new URI.
>
>
>
> I would like to request feedback from the WG.
>
>
>
> Cheers,
>
>
>
> Alex
>
>
>
>
> On 25 Jan 2023, at 10:02, internet-drafts@ietf.org wrote:
>
>
>
>
> A new version of I-D, draft-ahuang-netconf-notif-yang-00.txt
> has been successfully submitted by Alex Huang Feng and posted to the
> IETF repository.
>
> Name:                draft-ahuang-netconf-notif-yang
> Revision:            00
> Title:                   YANG model for NETCONF Event Notifications
> Document date:             2023-01-25
> Group:                Individual Submission
> Pages:                6
> URL:
> https://www.ietf.org/archive/id/draft-ahuang-netconf-notif-yang-00.txt
> Status:
> https://datatracker.ietf.org/doc/draft-ahuang-netconf-notif-yang/
> Htmlized:
> https://datatracker.ietf.org/doc/html/draft-ahuang-netconf-notif-yang
>
>
> Abstract:
>   This document defines the YANG model for NETCONF Event Notifications.
>
>
>
>
>
> The IETF Secretariat
>
>
> _______________________________________________
> netconf mailing list
> netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
>