[core] Re: Coreconf Notifications

Andy Bierman <andy@yumaworks.com> Sat, 27 July 2024 17:30 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 0AD57C14F705 for <core@ietfa.amsl.com>; Sat, 27 Jul 2024 10:30:33 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 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, T_SCC_BODY_TEXT_LINE=-0.01, 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 OvSelf9WTK8O for <core@ietfa.amsl.com>; Sat, 27 Jul 2024 10:30:28 -0700 (PDT)
Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C1EA9C14F702 for <core@ietf.org>; Sat, 27 Jul 2024 10:30:28 -0700 (PDT)
Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1fc5296e214so13076065ad.0 for <core@ietf.org>; Sat, 27 Jul 2024 10:30:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1722101428; x=1722706228; 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=LZUeCgs4/7xHFxXYaqa2UST/MqJSDpnxmqXDYRMmcAY=; b=D6IrccZCsxbFmzDEG3dKMpKMWcNOIiirFPgBNdow/j2pGtx5n8MLn89JhBGxjPeMpL l1LYwV1Cm6GcjATx/gv0JGmBHrqY8mg+Q3pW9Y3eEDRih5jnMcm/ho25PY0B18alpcQM mIP+oih9gox7SUQK/1F5bBDmLqPLbPdX5/H6/mI0YsvKIWY6MMXw7/+b3lBHujH/nWzf +f1thyuKJjZ5pbadQar3UVDJr5RTLr+qFIR4bRPdE/80StzrQHLBL+PC9Y3oXxGTkF/G 3U2YNM/4VrygGMilyGwM7EtKwdErRde2BX/o8wODLv2NmiNPK08w42HzO22l6L6W45yp HRmg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722101428; x=1722706228; 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=LZUeCgs4/7xHFxXYaqa2UST/MqJSDpnxmqXDYRMmcAY=; b=Jma2JKwBp4+n1Y+6XE53kbz0zTZInOJu4yS/VFtPqIkU+LIbb6jZTGhZ0kaPex3dfu RXR30V9k1TYbiYXLjJn97gckRTLyYZIYYN4eSz7Vgt46gWWeV3+wLan7PyXkgv1YTsM3 hOB4Nqcu2q+jOYTvHWtb4BHRK2jk79sGmnrCa7ulZyew1RH5rfLddrciDP6RR/VGT1/9 4MOYGSgHwHsSQr2GnMKro0CEJqMWEbLdRSJ5XI3jsALaTWsHOxyOHl3K+CwKtWqFyiay 9qyxxxc4NEg8qnFq/V9v2N01pfgmWv2njCOAOicbHdlgFidK1jusf/defQLZriSJSjDS svMQ==
X-Forwarded-Encrypted: i=1; AJvYcCXl/XiDKIvjPaZJ9VV/qQFC8Qwsi0j+7Yc73RTBUaLwmGVaZuokFrqfmySIKMRwnN9gJdchA0rKTo3PuDDN
X-Gm-Message-State: AOJu0YxnYTexeiSSwgb0uS2lmN9EEzGhlZaeC2GH6Eb6AtgMnW0c8zCr q+eYAAjhLOzQO7rAtbhKBp5uQqPd/6KhD+yWVzcvPtDz2vhWBQtllC/fko/ZaIQGJY+WFizk84S CdDSOoUTTMRJ6ZZEKLw/kqbzKUs8NPI7v29rsfw==
X-Google-Smtp-Source: AGHT+IFvX/TJihmtuuWUba3GjloiF0APdcAaSGFI+zBI0E0hwb/5XT793VAC7sgzMVuRH0Q6Ugm6LAzCOtgbRuVOuJ0=
X-Received: by 2002:a17:90a:46c3:b0:2c9:8650:404 with SMTP id 98e67ed59e1d1-2cf7e60dd94mr3205117a91.30.1722101428110; Sat, 27 Jul 2024 10:30:28 -0700 (PDT)
MIME-Version: 1.0
References: <E2DFFA8E-9766-4CB4-BCAA-6897402B8FB2@insa-lyon.fr> <5C0595E7-2071-4A6F-A0C8-6F9DE138535F@tzi.org> <C4AE55E1-0907-4BBD-A2BA-802063E10B50@insa-lyon.fr> <397772B6-6DAE-4A2D-BFD0-7A77ABE1415E@tzi.org> <E0D2CFE6-B0BD-4F0A-9F5C-4C29ADF16861@insa-lyon.fr> <CABCOCHT6B+9fjJL_UBArfcV1KO9SJBoV+588goWsDJ5_x_1x0A@mail.gmail.com> <0e37cbe90758409fae2a8f6763ffc986@swisscom.com> <C028C265-1624-4599-A0AC-64E075900275@tzi.org> <B1A2D516-1041-4744-8665-30BA32405EF7@insa-lyon.fr>
In-Reply-To: <B1A2D516-1041-4744-8665-30BA32405EF7@insa-lyon.fr>
From: Andy Bierman <andy@yumaworks.com>
Date: Sat, 27 Jul 2024 10:30:17 -0700
Message-ID: <CABCOCHS98n46dyRnXDffJr2WbbXDbwutJj5Qn_iXOWpk6jVkqg@mail.gmail.com>
To: Alex Huang Feng <alex.huang-feng@insa-lyon.fr>
Content-Type: multipart/alternative; boundary="000000000000e3e4a2061e3dfb2f"
Message-ID-Hash: RD77KTI34HNKDHJZ7UOTZAMD4V5PE5FD
X-Message-ID-Hash: RD77KTI34HNKDHJZ7UOTZAMD4V5PE5FD
X-MailFrom: andy@yumaworks.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-core.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "Thomas. Graf" <Thomas.Graf@swisscom.com>, draft-ietf-core-comi@ietf.org, core@ietf.org, Pierre Francois <pierre.francois@insa-lyon.fr>, Vivekananda Boudia <vivekananda.boudia@insa-lyon.fr>, benoit.claise@huawei.com
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [core] Re: Coreconf Notifications
List-Id: "Constrained RESTful Environments (CoRE) Working Group list" <core.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/Xx8HiP3pFl_v8Id6F6ca3i9oIMA>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Owner: <mailto:core-owner@ietf.org>
List-Post: <mailto:core@ietf.org>
List-Subscribe: <mailto:core-join@ietf.org>
List-Unsubscribe: <mailto:core-leave@ietf.org>

On Thu, Jul 25, 2024 at 1:58 PM Alex Huang Feng <
alex.huang-feng@insa-lyon.fr> wrote:

> Dear Carsten,
>
> Inline.
>
> On 25 Jul 2024, at 04:08, Carsten Bormann <cabo@tzi.org> wrote:
>
> On 2024-07-24, at 21:27, Thomas.Graf@swisscom.com wrote:
>
>
> We are proposing with
> https://datatracker.ietf.org/doc/html/draft-ahuang-netconf-notif-yang to
> define the transport agnostic notification header as mentioned in the last
> line of section 5 of charter 19.
>
>
> There is a rather ominous line in the YANG:
>
> Implementations must support time zones.
>
>
> This probably makes this YANG module inapplicable to CORECONF.
>
>
> “Implementations must support time zones” comes from RFC5277 [
> https://datatracker.ietf.org/doc/html/rfc5277#section-2.2.1]
> What draft-ahuang-netconf-notif-yang is trying to solve is defining the
> structure of the notification in a YANG model so that YANG tooling can use
> the YANG module to validate Notifications rather than relying on just text.
>


Can you explain how the 'notification' struct can be used for the
validation of any notification?

Here is an example from your draft:

<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
  <eventTime>2022-09-02T10:59:55.32Z</eventTime>
  <push-update xmlns="urn:ietf:params:xml:ns:yang:ietf-yang-push">
    <id>1011</id>
    <datastore-contents>
      <interfaces xmlns="urn:ietf:params:xml:ns:yang:ietf-interfaces">
        <interface>
          <name>eth0</name>
          <oper-status>up</oper-status>
        </interface>
      </interfaces>
    </datastore-contents>
  </push-update>
</notification>



The 'notification' struct does not allow the 'push-update' child node to be
present.
I do not understand why that is not clear.

Only the following pattern would validate OK:

<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
  <eventTime>2022-09-02T10:59:55.32Z</eventTime>
</notification>



Andy



> And the reason draft-ahuang-netconf-notif-yang goes up to RFC5277 is
> because YANG has until now relied on this RFC5277 to define how such
> notifications are encoded.
>
> Note also that in RFC6991, the date-and-time type, the timezone is
> included.
>
> Our comments to draft-ietf-core-comi are because in section 3.4 (
> https://datatracker.ietf.org/doc/html/draft-ietf-core-comi-18#name-event-stream)
> the authors reference 5277 even though the model is defined in XML only.
> So, we suggest to the authors to change that reference to
> draft-ahuang-netconf-notif-yang to have a common model also in CORECONF.
>
> Regards,
> Alex
>
>
> Does anyone know why this is in there?
>
> Grüße, Carsten
>
>
>