Re: [netconf] Adoption call for notif-yang-04
Andy Bierman <andy@yumaworks.com> Mon, 22 April 2024 20:50 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 E5326C1930B0 for <netconf@ietfa.amsl.com>; Mon, 22 Apr 2024 13:50:02 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.096
X-Spam-Level:
X-Spam-Status: No, score=-7.096 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_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 pl7Fax8aPSxE for <netconf@ietfa.amsl.com>; Mon, 22 Apr 2024 13:49:58 -0700 (PDT)
Received: from mail-pj1-x102f.google.com (mail-pj1-x102f.google.com [IPv6:2607:f8b0:4864:20::102f]) (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 AF8D1C1CAF58 for <netconf@ietf.org>; Mon, 22 Apr 2024 13:49:58 -0700 (PDT)
Received: by mail-pj1-x102f.google.com with SMTP id 98e67ed59e1d1-2a55a3d0b8eso3309518a91.1 for <netconf@ietf.org>; Mon, 22 Apr 2024 13:49:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1713818998; x=1714423798; 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=jRsRg1nfP7GqU8HZQhGyMjnGt/Ku4C40evtX5WzdxG8=; b=u25+LoVt4+2jZrgIU0ZJ0WMMwVeth7GH/w90qEWYUOhdO2qZjaRRd/BSZrERyIDejw S704LVIG2NP3mNxCwY8e33MehlpuRZGC54tLGIkAEhGhtaYzdThDCC6UpwdDn3+A7qSd vJGdMlyVJ8uqJrmRFHswvo731jiXEN/KleztDVJbymAg3SIiM4kNxOpVqi3dr1p69hTz ZunTfr2qZ/9roEZs11mvrp2okddbKzcou0p7Y61QqhOca42X1g1eGSJy/koVKVwndNyo k6sU/tVUNm3ERphHkQhO3FAL43WUVM2hznN6VkPgWV+Q6JwIH2BfhZqluvzXgXgdppiT ox7A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713818998; x=1714423798; 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=jRsRg1nfP7GqU8HZQhGyMjnGt/Ku4C40evtX5WzdxG8=; b=M/7hE9ePyYHrvfKcYkE3uJmY0kotxq4onVggHnB3Heq/UzYUF31FmFLaJPlVXVWa9C AARXwhdLHDmCDYzeL3v7wOzKVd4sD0IpfZa8QW99qGRLpyLvYB6p2ESEiiT4cx0Vdev9 xjSgo0/wp+lpg+zJhznfjhMi9ZccggN+biLjQXLM23p/hAPKGZGq2I3yngutXkaZIE8h SOYS+lv4Ig/1eEkfM22RXXss+vAm8vGxIKSLQPr/aoSsBJTLP3UdmzF7LnjpFP8dXlys mSrVDxTEK0G6kd3b2LHEzLPmT3eYVTCj6Ypwk8JtouVLpG6QQ8TApBxWZncP59mZ/Tyc QH+g==
X-Gm-Message-State: AOJu0YxeIZeHGj1c7jvSw5X3miOsJWXbPxnwXjQKTkvc4k0s5HTvZyIe 1Hq5XfNDNdcL8VQwv9rDe2ufYqiimQLDZDi7rt842u83/xAsygDJMzq4c82uqF+NVZzS1b7rgHs iWz3GZjOuOUc3uYGGxIuGxVkq25b2oie/Kvl5nf3iaBGBC5WkWJk=
X-Google-Smtp-Source: AGHT+IGniGo9GknLIKzn/W6AeBeZR6bilsGZLnVVbHqIQjBTJcW7MI2bOkEJwYd+XY6KAs8qJUQY+hY1lHnN4ejGfW4=
X-Received: by 2002:a17:90a:3481:b0:29b:fb23:863e with SMTP id p1-20020a17090a348100b0029bfb23863emr1016398pjb.17.1713818997752; Mon, 22 Apr 2024 13:49:57 -0700 (PDT)
MIME-Version: 1.0
References: <0100018eb57a21d8-26b38f41-a625-4d44-9248-09b349fd4212-000000@email.amazonses.com> <DU2PR02MB10160110D4C72D682BA884802880E2@DU2PR02MB10160.eurprd02.prod.outlook.com> <CABCOCHT4Yy8gUKxmR9__ZcAEULiK8g-S7-B6EaLO8s0nk0FjTg@mail.gmail.com> <0100018f07521d0a-17e021b3-295a-4c50-8316-58632d7a7107-000000@email.amazonses.com>
In-Reply-To: <0100018f07521d0a-17e021b3-295a-4c50-8316-58632d7a7107-000000@email.amazonses.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 22 Apr 2024 13:49:46 -0700
Message-ID: <CABCOCHQ1bVtZqu0Z=fOihMrSMZ82ng-FZGnwhPbbAApdMLEHKg@mail.gmail.com>
To: Kent Watsen <kent+ietf@watsen.net>
Cc: "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000923a280616b594db"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/4TmlZ8gepcAkxhaid2sRgwgxyD4>
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: Mon, 22 Apr 2024 20:50:03 -0000
On Mon, Apr 22, 2024 at 12:39 PM Kent Watsen <kent+ietf@watsen.net> wrote: > Hi Andy, > > 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 > > > Fair point, but I think that there is only one requirement: > - to define YANG enabling the validation of RFC 5277 notifications. > > Did you have more in mind? > Look at the example notification in https://www.ietf.org/archive/id/draft-netana-nmop-yang-kafka-integration-01.txt { "ietf-notification:notification": { "eventTime": "2023-03-25T08:30:11.22Z", "ietf-notification-sequencing:sysName": "example-router", "ietf-notification-sequencing:sequenceNumber": 1, "ietf-subscribed-notification:subscription-started": { "id": 6666, "ietf-yang-push:datastore": "ietf-datastores:operational", "ietf-yang-push:datastore-xpath-filter": "/if:interfaces", "ietf-yang-push-revision:revision": "2014-05-08", "ietf-yang-push-revision:module-name": "ietf-interfaces", "ietf-yang-push-revision:revision-label": "", "ietf-distributed-notif:message-observation-domain-id": [1,2], "transport": "ietf-udp-notif-transport:udp-notif", "encoding": "encode-json", "ietf-yang-push:periodic": { "ietf-yang-push:period": 100 } } } } The 'sysName' and 'sequenceNumber' are from the augment-structure in https://datatracker.ietf.org/doc/html/draft-tgraf-netconf-notif-sequencing-03 The notification structure in https://datatracker.ietf.org/doc/html/draft-ahuang-netconf-notif-yang-03 is not the problem. That draft is trivial and obvious. The larger protocol and deployment issues should also be obvious, but not trivial NEW CLIENT: How does the new client know what notification header will be used? Is there one standard notification header or not? (Pros and Cons for either way) If not, then how is the new client supposed to know what the server can/will send? Can the client configure what the server will send? Note that the 'notification' structure is a pure abstraction using a YANG extension. It MAY be invisible to a YANG 1.1 tool and is not related to any protocol messages (except by description-stmt). OLD CLIENT Server MUST use RFC5277 notification messages sent to old clients > BTW, I almost wonder why this isn’t an rfc5277-bis. > > Indeed. If the goal is to actually send a notification message with a standard protocol, then more work is needed. > IMO this design is wrong. > The extra data (if any) should be added to the push-update, not to the > notification message header. > > > What’s wrong? The “notif-yang” draft only defines the “eventTime” leaf, > which matches RFC 5277. This scope seems right to me... > > I meant the other drafts. The issue here is whether the added data is needed in every notification or just PUSH updates? It could be both I guess. > > 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"/> > > > Do you mean the *examples* in Appendix A? What’s wrong? > > The 'sysName' and 'sequenceNumber' elements are not allowed by the XSD. The event type is a substitutionGroup. This element is expected to follow the 'eventTime' leaf. > Are you expecting an element called “event”? I think that the “event” > element used in RFC 5277 was just an example... > > The XSD is clear. > Or do you this draft to provide XSD for the ncEvent:notificationContent > substitution group? > > > > I am concerned that 'augment-structure' will be used to create lots of > different notification variants. > > > The string “augment-structure” doesn’t appear in this draft. Maybe you > meant > https://datatracker.ietf.org/doc/html/draft-tgraf-netconf-yang-push-observation-time-00 > ? > > > I’m concerned about the "augment-structure” too, but for a different > reason. My reason is that, if I understand the proposal correctly, > everywhere there is a “notification” in a YANG module, there would also > have to be an “augment-structure”, which sounds just horrible. > > To be clear, my idea of "YANG enabling the validation of RFC 5277 > notifications” may entail some coding to stitch together something that a > validator can use. Having a fully-defined sx:structure seems unrealistic. > > > 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? > > > These are good questions. Can the authors reply? > > > Andy > > > Kent > > > Andy
- [netconf] Adoption call for notif-yang-04 Kent Watsen
- [netconf] FW: Adoption call for notif-yang-04 Thomas.Graf
- Re: [netconf] Adoption call for notif-yang-04 Andy Bierman
- Re: [netconf] Adoption call for notif-yang-04 Jean Quilbeuf
- Re: [netconf] Adoption call for notif-yang-04 Nils.Warnke
- Re: [netconf] Adoption call for notif-yang-04 Zhuoyao Lin
- Re: [netconf] Adoption call for notif-yang-04 Vincenzo Riccobene
- Re: [netconf] Adoption call for notif-yang-04 Voyer, Daniel
- Re: [netconf] Adoption call for notif-yang-04 Giuseppe Fioccola
- Re: [netconf] Adoption call for notif-yang-04 Jan Lindblad (jlindbla)
- Re: [netconf] Adoption call for notif-yang-04 Camilo Cardona
- Re: [netconf] Adoption call for notif-yang-04 Qin Wu
- Re: [netconf] Adoption call for notif-yang-04 Leonardo.Rodoni
- Re: [netconf] Adoption call for notif-yang-04 maqiufang (A)
- Re: [netconf] Adoption call for notif-yang-04 Paolo Lucente
- Re: [netconf] Adoption call for notif-yang-04 IGNACIO DOMINGUEZ MARTINEZ-CASANUEVA
- Re: [netconf] Adoption call for notif-yang-04 mohamed.boucadair
- Re: [netconf] Adoption call for notif-yang-04 Andy Bierman
- Re: [netconf] Adoption call for notif-yang-04 mohamed.boucadair
- Re: [netconf] Adoption call for notif-yang-04 Kent Watsen
- Re: [netconf] Adoption call for notif-yang-04 Andy Bierman
- Re: [netconf] Adoption call for notif-yang-04 Kent Watsen
- [netconf] Re: Adoption call for notif-yang-04 Thomas.Graf
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Kent Watsen
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Thomas.Graf
- [netconf] Re: Adoption call for notif-yang-04 Rob Wilton (rwilton)
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Thomas.Graf
- [netconf] Re: Adoption call for notif-yang-04 Kent Watsen
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Benoit Claise
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Thomas.Graf
- [netconf] Re: Adoption call for notif-yang-04 Thomas.Graf
- [netconf] Re: Adoption call for notif-yang-04 Thomas.Graf
- [netconf] Re: Adoption call for notif-yang-04 Thomas.Graf
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Benoit Claise
- [netconf] Re: Adoption call for notif-yang-04 Kent Watsen
- [netconf] Re: Adoption call for notif-yang-04 Kent Watsen
- Re: [netconf] Adoption call for notif-yang-04 Per Andersson
- [netconf] Re: Adoption call for notif-yang-04 Kent Watsen
- [netconf] Re: Adoption call for notif-yang-04 Kent Watsen
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Thomas.Graf
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Thomas.Graf
- [netconf] Re: Adoption call for notif-yang-04 Thomas.Graf
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Benoit Claise
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Rob Wilton (rwilton)
- [netconf] Re: Adoption call for notif-yang-04 Thomas.Graf
- [netconf] Re: Adoption call for notif-yang-04 Benoit Claise
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Andy Bierman
- [netconf] Re: Adoption call for notif-yang-04 Rob Wilton (rwilton)
- [netconf] Re: Adoption call for notif-yang-04 Kent Watsen
- [netconf] Re: Adoption call for notif-yang-04 Thomas.Graf
- [netconf] Re: Adoption call for notif-yang-04 Kent Watsen
- [netconf] Re: Adoption call for notif-yang-04 Kent Watsen
- [netconf] Re: Adoption call for notif-yang-04 Alex Huang Feng