Re: [netconf] Adoption call for notif-yang-04

Andy Bierman <andy@yumaworks.com> Thu, 18 April 2024 19:03 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 010F6C14F74E for <netconf@ietfa.amsl.com>; Thu, 18 Apr 2024 12:03:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.095
X-Spam-Level:
X-Spam-Status: No, score=-2.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_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 fLX-lny8Orbf for <netconf@ietfa.amsl.com>; Thu, 18 Apr 2024 12:03:42 -0700 (PDT)
Received: from mail-pg1-x52b.google.com (mail-pg1-x52b.google.com [IPv6:2607:f8b0:4864:20::52b]) (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 A083DC2144A5 for <netconf@ietf.org>; Thu, 18 Apr 2024 12:02:11 -0700 (PDT)
Received: by mail-pg1-x52b.google.com with SMTP id 41be03b00d2f7-5ce9555d42eso783570a12.2 for <netconf@ietf.org>; Thu, 18 Apr 2024 12:02:11 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1713466931; x=1714071731; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=tGX3c6e1NpB6umTEOPJaCgPoiVRbzlKFgtPv/7dZJvs=; b=H1nsoqiVMZwdrLDqP+dxzpM3EZ/Qc3xtW9vnfwlgkvU3fSt5rDAsKsAoJmd5QMKrJU 4HwRnumXH8v5LDnW3vgq8vX+EYLI2fJFifvXPu4qvbGK+5B5dFqW1JTZ2ShZkMzSQ9ir 1wntoZdLfphAEcRZPiKlAgdlPpx3uV+nPp8HWWBA6szzT4WdjYHIslsbsfgQD1wdBBER YjkT+qqCWUFc2WnZ4IzlM1kh+8jh5O3i4oSWjh821C7txvMo5M9QP/7DXKP+bmcpAVj6 NOtlh7tZVLmxZwAdm3lkAcMpg/eiqTDsaGjjLoVLW9YAMExVT1AdCi/XFn46Ab45uWXr aEJQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713466931; x=1714071731; 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=tGX3c6e1NpB6umTEOPJaCgPoiVRbzlKFgtPv/7dZJvs=; b=vzmLoOnd2Zp+buCcZ/oTPmM0H8flA6XZpCBQfEdr8yvYjQrDKmh8aBoweK7jgZeWtf 5+CFe7mdFAL4uD5Jy7KpysAKOWHdOKjZpdR+voitqOcT6cKlwJpr37aAyem4uqD0HD32 A6W/H9jWLrww/z7eH0DK7I71Hxh0tqEvCabdO/XCz+EjJQJE1LWHfcMVYxX5qqZBiTfC 0KmTYrZ63ICNqBDfx4Lu2fotFi4uYHsUpS/DBypcOxCLzthy3WA6yLFfBQSVBpokShGL lQ/imrBwQelsbJIdU5ocnPJnx+qL7oS7uHJITLbuw4gXFGM2nCW5mUWDNh9M7VMJLJmb Kb9w==
X-Forwarded-Encrypted: i=1; AJvYcCWNesMMXG0WpOW++L9uGJfSUjJy/K2TecMjORjNdBsFjg4TCqcymc7i7cU6QQgCdVrQ7kNZnrfJQkt2meZtJrpj
X-Gm-Message-State: AOJu0YzFomLqfOR5W3dkjPqfGdislx7ndVlUlIr54VDe9Ec7Jz9TQYoG UwS3S2clRw03T23Syh2TZSS6zfd4QMnlZ74hy7VABb09wfSRDsPeZkao2PnnloL5HAYFekTfngm nBT5k7psdffTYUTqdVIblOVtfyz7oTURrmf/f72HGF91cf6nfZ6w=
X-Google-Smtp-Source: AGHT+IGhF0MDfR/UNDv6V4UHB746SzDREBpNMjjXEQRvopLwGDx+lY/luAsx6EsJkKemGhtV71pNl9GkD45p2REcUEk=
X-Received: by 2002:a17:90a:9907:b0:2ac:5b11:9e46 with SMTP id b7-20020a17090a990700b002ac5b119e46mr15760pjp.26.1713466930819; Thu, 18 Apr 2024 12:02:10 -0700 (PDT)
MIME-Version: 1.0
References: <0100018eb57a21d8-26b38f41-a625-4d44-9248-09b349fd4212-000000@email.amazonses.com> <DU2PR02MB10160110D4C72D682BA884802880E2@DU2PR02MB10160.eurprd02.prod.outlook.com>
In-Reply-To: <DU2PR02MB10160110D4C72D682BA884802880E2@DU2PR02MB10160.eurprd02.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 18 Apr 2024 12:01:59 -0700
Message-ID: <CABCOCHT4Yy8gUKxmR9__ZcAEULiK8g-S7-B6EaLO8s0nk0FjTg@mail.gmail.com>
To: mohamed.boucadair@orange.com
Cc: Kent Watsen <kent+ietf@watsen.net>, "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000bf17cc0616639be0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/Q4S-qPV323F-1KsCSVNf5W1ungc>
Subject: Re: [netconf] Adoption call for notif-yang-04
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, 18 Apr 2024 19:03:48 -0000

On Thu, Apr 18, 2024 at 6:45 AM <mohamed.boucadair@orange.com> wrote:

> Hi all,
>
> I see the potential behind this spec to fill a gap (refer to
> draft-netana-nmop-yang-kafka-integration). However, as currently written,
> there is a disconnect between what is claimed in the abstract, the "simple"
> sx module, and the xml/json/cbor mappings in the appendix.
>
>    module: ietf-notification
>
>      structure notification:
>        +-- eventTime    yang:date-and-time
>
> It is true that there is no YANG module in RFC5277, but only an XML
> encoding. I would expect the authors to start from there and define a YANG
> module that echoes that XML structure + then enrich it with missing pieces
> (like eventTime) so that usual mapping specs naturally apply.
>
> I may be missing something, but some reasoning about the practicalities to
> produce data nodes and gluing it with other pieces is 5277 is needed.
>
> For these reasons, I'm afraid that this version is not ready for adoption.
>
>


I think the WG needs to agree on the requirements and a plan to go from RFC
5277 notification element to the example in the kafka draft.
https://www.ietf.org/archive/id/draft-netana-nmop-yang-kafka-integration-01.html#push_change_update_notif_example_json_fig

IMO this design is wrong.
The extra data (if any) should be added to the push-update, not to the
notification message header.
The example does not conform to the "NotificationType" XSD type in RFC 5277.

    <!-- <Notification> operation -->
     <xs:complexType name="NotificationContentType"/>

    <xs:element name="notificationContent"
        type="NotificationContentType" abstract="true"/>

    <xs:complexType name="NotificationType">
        <xs:sequence>
            <xs:element name="eventTime" type="xs:dateTime">
              <xs:annotation>
                <xs:documentation>
                The time the event was generated by the event source.
                </xs:documentation>
              </xs:annotation>
            </xs:element>
            <xs:element ref="notificationContent"/>
        </xs:sequence>
    </xs:complexType>

    <xs:element name="notification" type="NotificationType"/>

I am concerned that 'augment-structure' will be used to create lots of
different notification variants.
Every vendor could make up their own protocol messages this way.

1) How does each protocol using the structure-based notification message
define, advertise, negotiate
    the actual message template used?

2) How does each protocol make sure that a client must opt-in somehow for
the new format,
    otherwise the strict RFC 5277 format is used?


Cheers,
> Med
>
>

Andy


> > -----Message d'origine-----
> > De : netconf <netconf-bounces@ietf.org> De la part de Kent Watsen
> > Envoyé : dimanche 7 avril 2024 00:14
> > À : netconf@ietf.org
> > Objet : [netconf] Adoption call for notif-yang-04
> >
> >
> > NETCONF WG,
> >
> > This message starts a two week poll on adopting the following
> > document:
> >
> >       YANG model for NETCONF Event Notifications
> >       https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2
> > Fdatatracker.ietf.org%2Fdoc%2Fhtml%2Fdraft-ahuang-netconf-notif-yang-
> > 04&data=05%7C02%7Cmohamed.boucadair%40orange.com%7C211b4259f7534b07115
> > 208dc5686f24f%7C90c7a20af34b40bfbc48b9253b6f5d20%7C0%7C0%7C63848038486
> > 1736143%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLC
> > JBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=dA8lFN7pH3tdAS7lRJph7D
> > iQ5wV98Ee1sKGIBgcFeKA%3D&reserved=0
> >
> > The poll ends April 20.
> >
> > Please send email to the list indicating "yes/support" or "no/do not
> > support".  If indicating no, please state your reservations with the
> > document.  If yes, please also feel free to provide comments you'd
> > like to see addressed once the document is a WG document.
> >
> > No IPR is known for this document:
> > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fmail
> > archive.ietf.org%2Farch%2Fmsg%2Fnetconf%2FoQVZ6Pf_novNfMB4RsnDxQibHpM%
> > 2F&data=05%7C02%7Cmohamed.boucadair%40orange.com%7C211b4259f7534b07115
> > 208dc5686f24f%7C90c7a20af34b40bfbc48b9253b6f5d20%7C0%7C0%7C63848038486
> > 1744910%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLC
> > JBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%7C%7C%7C&sdata=spWoSRnrRPQ0lHPnD%2FTl
> > tr4wwzU7zn%2F1qxy5LBH1ujw%3D&reserved=0
> >
> > PS: this document received strong support before, being very focused,
> > providing just a module enabling validation of YANG "notification"
> > messages.
> >
> > Kent and Per (as co-chairs)
> >
> >
> >
> >
> >
> > _______________________________________________
> > netconf mailing list
> > netconf@ietf.org
> > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> > ietf.org%2Fmailman%2Flistinfo%2Fnetconf&data=05%7C02%7Cmohamed.boucada
> > ir%40orange.com%7C211b4259f7534b07115208dc5686f24f%7C90c7a20af34b40bfb
> > c48b9253b6f5d20%7C0%7C0%7C638480384861751307%7CUnknown%7CTWFpbGZsb3d8e
> > yJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C0%
> > 7C%7C%7C&sdata=BKneFQbHB2s9rbSVFulEULoxnperrKIwme1oCEvGW6Q%3D&reserved
> > =0
>
> ____________________________________________________________________________________________________________
> Ce message et ses pieces jointes peuvent contenir des informations
> confidentielles ou privilegiees et ne doivent donc
> pas etre diffuses, exploites ou copies sans autorisation. Si vous avez
> recu ce message par erreur, veuillez le signaler
> a l'expediteur et le detruire ainsi que les pieces jointes. Les messages
> electroniques etant susceptibles d'alteration,
> Orange decline toute responsabilite si ce message a ete altere, deforme ou
> falsifie. Merci.
>
> This message and its attachments may contain confidential or privileged
> information that may be protected by law;
> they should not be distributed, used or copied without authorisation.
> If you have received this email in error, please notify the sender and
> delete this message and its attachments.
> As emails may be altered, Orange is not liable for messages that have been
> modified, changed or falsified.
> Thank you.
>
> _______________________________________________
> netconf mailing list
> netconf@ietf.org
> https://www.ietf.org/mailman/listinfo/netconf
>