Re: [yang-doctors] [netmod] Operational State usage of YANG choices and constraints (fix draft address)

Andy Bierman <andy@yumaworks.com> Mon, 22 January 2024 19:19 UTC

Return-Path: <andy@yumaworks.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id DEAA3C151536 for <yang-doctors@ietfa.amsl.com>; Mon, 22 Jan 2024 11:19:09 -0800 (PST)
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=unavailable 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 qOFwJlgwkxmK for <yang-doctors@ietfa.amsl.com>; Mon, 22 Jan 2024 11:19:05 -0800 (PST)
Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (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 EE820C151984 for <yang-doctors@ietf.org>; Mon, 22 Jan 2024 11:19:05 -0800 (PST)
Received: by mail-pj1-x1030.google.com with SMTP id 98e67ed59e1d1-29051f5d5e8so1373673a91.0 for <yang-doctors@ietf.org>; Mon, 22 Jan 2024 11:19:05 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1705951145; x=1706555945; 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=KzvKZgg01I7z3nISpRWayzTfan6Bq/F5OLSu+AcY7Kc=; b=F/wRMg5i8WzHlhGPJCQ30+T8ZLMYejC22z3vjTAgbMwRpgS3foTGT7y+evuMjIHKWd x8opU280PngkJypXecvnm9q4/72nbwNGL1MZoopB2NHwil2/KQIaIOkMzJDby81pyTAx dDqln4xxjWq78SPJQusey8aRbNOcx7YPKZ21PP1/7fdQVn1p+AqMwihxkbK0WVSM+7Xl y2ZafajpRkC1lSGryAkAVyQuUCSVe5CaZzRhIJ9H3eizm5hgXW/nWhtVcYEJaAggKEhW x7IlTGJNT13La9QP/osGefgWwJ4Vm2jf66atOKWC7YBa97ZdKdKFwp4Mq0Ty2cmHlPla Grqg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705951145; x=1706555945; 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=KzvKZgg01I7z3nISpRWayzTfan6Bq/F5OLSu+AcY7Kc=; b=a9Hncv0TDZExpnmKXOmwnlRo/xgOKG4J5H5qCnfmvzWCcBQ2R3bI0bGokw3TwbUQWB Ra6+0EtDjzlnZnv3aQJT0Qy2ajQ1w5X9/1Y3+p6AVXKqDxfchcGyrzZqSLkjoX8uj9+Z rulHP+eWqCsd1FG41uSBU9WyjFt7VgizDwlzFVGZw6FWFnIlz1eAbe2ZfeFZbopel5gN Z9HIxF65TfQPPGx+pYEGqYuwATvoGP2Jl17NGfzuWHhY31wgRAje0HsanLjg2OzWEwl1 PJjDesMda2djqZrhaNIJcjsgBTHvPASfO/CfjSKDTjALEppUpk/Y+mR6+djmtyWKvN2k BY6g==
X-Gm-Message-State: AOJu0YxycurCz7wyqHQg2mkhviPJ2YGTV5ke9d24r7MzgIEa+slqsW9y qwZuBxEJfdo/KU3x4N0Zf3I3bcoitMGfeEHbVK1nU+MIIZXHa+IGMxHRMY/+YDWxGuC8RE8Jo7H vtP0FxePBYOFXFfsmWlWt49i2C5ceEv3ADzja2A==
X-Google-Smtp-Source: AGHT+IEjSmL81J18r4kbtUYC7LGVoP5//rn6y6C9XozTCNxchI6Bsmf8N5CBE761h8j+D6kZSuYFdpwyngOA0Jsc4Dw=
X-Received: by 2002:a17:90b:216:b0:290:2921:6bcc with SMTP id fy22-20020a17090b021600b0029029216bccmr1735606pjb.74.1705951145042; Mon, 22 Jan 2024 11:19:05 -0800 (PST)
MIME-Version: 1.0
References: <C1B843D2-D178-4E83-AEF8-6C726BD22597@gmail.com> <0100018c92fb0b64-5950acf7-2b47-4062-a35a-c2ca8fab14ce-000000@email.amazonses.com> <ZYXlOcZv8GUcfoBI@alice.eecs.jacobs-university.de> <ED9E8589-26F0-4434-AF93-F3EFC781EF97@gmail.com> <CABCOCHQxAj7VAX1X8qTc3oiErmv=+6kBgw1ys5Ve-CspZU3d1Q@mail.gmail.com> <A2E743CE-9D29-4782-9970-AE8CF97DC603@gmail.com> <DU2PR02MB101602ABD2EC1558BEFC9B29488752@DU2PR02MB10160.eurprd02.prod.outlook.com> <8094CE60-24B5-4C4A-92E7-9B808DE615F3@gmail.com>
In-Reply-To: <8094CE60-24B5-4C4A-92E7-9B808DE615F3@gmail.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 22 Jan 2024 11:18:54 -0800
Message-ID: <CABCOCHRYa63DHsmAJ-9k2v5nQ14jvz8phKTv-yBTtrSJx2Fn3w@mail.gmail.com>
To: Mahesh Jethanandani <mjethanandani@gmail.com>
Cc: mohamed.boucadair@orange.com, YANG Doctors <yang-doctors@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>, "draft-ietf-netmod-rfc8407bis@ietf.org" <draft-ietf-netmod-rfc8407bis@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000001348f060f8db44d"
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/-uZfFsPlajbkgPFTSaGVBr72Oq4>
Subject: Re: [yang-doctors] [netmod] Operational State usage of YANG choices and constraints (fix draft address)
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 22 Jan 2024 19:19:10 -0000

Hi,

On Mon, Jan 22, 2024 at 8:42 AM Mahesh Jethanandani <mjethanandani@gmail.com>
wrote:

> Hi Med,
>
> On Jan 21, 2024, at 11:44 PM, mohamed.boucadair@orange.com wrote:
>
> Hi Acee,
>
> > I think these points are worth addressing in RFC8407 BIS.
>
> We do already have the following in the bis, which I think covers your
> initial question about “mandatory true” data nodes for operational state”:
>
>    Section 8.1 of [RFC7950] includes a provision for defining a
>    constraint on state data and specifies that the constraint must be
>    true in a valid state data.  However, Section 5.3 of [RFC8342]
>    softens that behavior by allowing semantic constraints to be violated
>    under some circumstances to help detecting anomalies.  Relaxing
>    validation constraints on state data is meant to reveal deviations of
>    the observed behavior vs. intended behavior of a managed entity and
>    hopefully trigger corrective actions by a management system.  From
>    that perspective, it is RECOMMENDED to avoid defining constraints on
>    state data that would hinder the detection by a management system of
>    abnormal behaviors of a managed entity.
>
>
> [mj] When I read this, it tells me that it is ok to put constraints on
> state data.
>
> What I am hearing on the mailing list, by Juergen and others, is
> questioning the use of constraints on state data. What I am interested in
> understanding is, would there be a problem in dropping/ignoring constraints
> on state data?
>
>
The text in question is in sec 8.1

https://datatracker.ietf.org/doc/html/rfc7950#section-8.1

What is a "valid state data tree"?
Any representation of <operational> that is filtered in any way or
incomplete in any way
is not a valid state data tree, so this section does not apply.




   o  If the constraint is defined on state data, it MUST be true in a
      valid state data tree.




Andy

Thanks.
>
>
> No?
>
> Cheers,
> Med
>
> *De :* netmod <netmod-bounces@ietf.org> *De la part de* Acee Lindem
> *Envoyé :* vendredi 19 janvier 2024 18:47
> *À :* Andy Bierman <andy@yumaworks.com>
> *Cc :* Jürgen Schönwälder <jschoenwaelder@constructor.university>; YANG
> Doctors <yang-doctors@ietf.org>; netmod@ietf.org;
> draft-ietf-netmod-rfc8407bis@ietf.org
> *Objet :* Re: [netmod] [yang-doctors] Operational State usage of YANG
> choices and constraints (fix draft address)
>
> Hi Andy,
>
>
> On Jan 19, 2024, at 12:17, Andy Bierman <andy@yumaworks.com> wrote:
>
>
>
> On Fri, Jan 19, 2024 at 9:02 AM Acee Lindem <acee.ietf@gmail.com> wrote:
>
> Along the same lines, what is the sentiment for “mandatory true” data
> nodes for operational state (i.e., “config false” nodes)? Does this make
> sense to identify data nodes the must be returned if the parent node is
> returned?
>
>
>
> What does "must be returned" mean?
>
> Obviously, it does not mean returning the data even if the filters do not
> select that node. (I hope)
> I used to think it meant conformance  (whether the server must implement
> or may implement).
> I was told years ago that is not the case. Use if-feature for that. No
> if-feature == mandatory-to-implement.
>
> If a client requests the parent subtree, then how would it know the
> difference between config=false
> nodes that are not present vs. the server just decided not to return them
> (even though conformance
> to the retrieval operation requires them)?
>
> IMO the mandatory-stmt for config=false nodes does not make any sense at
> all.
>
>
> I’m fine with that - we just need to make sure that this is reflected in
> our IETF models. I think these points are worth addressing in RFC8407 BIS.
>
> Thanks,
> Acee
>
>
>
>
>
>
>
> Thanks
> Acee
>
>
> Andy
>
>
> > On Dec 22, 2023, at 2:36 PM, Jürgen Schönwälder <
> jschoenwaelder@constructor.university> wrote:
> >
> > On Fri, Dec 22, 2023 at 07:22:55PM +0000, Kent Watsen wrote:
> >> With limited experience wrt the impact on servers, as a client, it’s
> always best for the opstate data to be modeled as accurately as possible,
> for better processing and user experience.
> >>
> >
> > What is accurate?
> >
> > I think the answer is "it depends". There are states that a model
> > allows to represent and there are states it does not allow to
> > represent. If a device ends up in a state that the model can't
> > represent, then the device has a problem, From a debugging point of
> > view, the worst is a device in a state that can't be represented
> > propoerly reporting a valid state it is not in.
> >
> > So like everything else, it is a modeling decision, like picking types
> > and everything else. I am not sure that 'as accurate as possible" is a
> > helpful guideline; for operational state I prefer to see as much as
> > possible the device's true state. (But even picking data types for
> > leaves restricts what can be represented, so it is a judgement call.)
> >
> > /js
> >
> > --
> > Jürgen Schönwälder              Constructor University Bremen gGmbH
> > Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> > Fax:   +49 421 200 3103         <https://constructor.university/>
>
> _______________________________________________
> yang-doctors mailing list
> yang-doctors@ietf.org
> https://www.ietf.org/mailman/listinfo/yang-doctors
>
> ____________________________________________________________________________________________________________
> 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.
>
> _______________________________________________
> yang-doctors mailing list
> yang-doctors@ietf.org
> https://www.ietf.org/mailman/listinfo/yang-doctors
>
>
>
> Mahesh Jethanandani
> mjethanandani@gmail.com
>
>
>
>
>
>
> _______________________________________________
> netmod mailing list
> netmod@ietf.org
> https://www.ietf.org/mailman/listinfo/netmod
>