Re: [netmod] Questions about how to assign default values with YANG

Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Wed, 10 March 2021 16:15 UTC

Return-Path: <J.Schoenwaelder@jacobs-university.de>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 4B2F63A126C for <netmod@ietfa.amsl.com>; Wed, 10 Mar 2021 08:15:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, MSGID_FROM_MTA_HEADER=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=jacobsuniversity.onmicrosoft.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YdlUk6Fm3Jmr for <netmod@ietfa.amsl.com>; Wed, 10 Mar 2021 08:14:58 -0800 (PST)
Received: from EUR05-AM6-obe.outbound.protection.outlook.com (mail-am6eur05on2082.outbound.protection.outlook.com [40.107.22.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 255E23A126B for <netmod@ietf.org>; Wed, 10 Mar 2021 08:14:58 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=g3LVnlNOHSnB6x2EMqBPQTt2cL3g/QZQmVzp0N2t2yGLO2buxF7C+VoN/9dooBMIJTsK9v6cE1XpHezfD96OuM3L8ArqWA/mP+0/KsTDioCaJzQf+nuamr21M3yxodRinC4wV/RTK7U6QDWusjrq1H7lfcDNho8b3t2gCmjZvApZlsij0A+fTFd9FlrAhRj5IVIF1oGCwj5ZF3ju1yg+ltFGkhmTwLiH9Clhul12BQUL9hA4buCt2AaG3y1xFxYoRikKwcsQ2zhY5nftU07YoanoAxY7xVWCTv5w79Q2oj+hcm4X8ro2yxP+p88mDvd84lc6SgQ/E5Ezd2C01NcDbQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SlF/zQRkE5hkybsHszk4nHMi0U2Qv0J7MQWA2z+JV7Q=; b=mgD/W9SBdXz7dF1IcRhzLMCGOoUREfMHzbIptAs2MZHdHMICwWYRhLVe9lGHSKfCXMhEA/sFw0KGVYV02o3HJlQviOpaFvLrDdX/T7wl2ovnLcapWeAKciNZaDp2ZCEKQQaTNYc2QfbTVu3RoMpQ8M0vyALloupmwmfHo01ngX3kNy/3W1yZ60tYflpSfKgWifUvAJH21a7rojFUio8qNvuzS+8IiXlUt7q5Qet6DHD7rXXak/LAL98TAQYB71jHZ5NVnyrObOmmN0Tcc48LNGTPMjS0JCQg63dksAz20uu5zCSngISVkSzQ5EFGl3ZApYRKY/VgjsZRuvbiQ0GMZQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=jacobs-university.de; dmarc=pass action=none header.from=jacobs-university.de; dkim=pass header.d=jacobs-university.de; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jacobsuniversity.onmicrosoft.com; s=selector2-jacobsuniversity-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SlF/zQRkE5hkybsHszk4nHMi0U2Qv0J7MQWA2z+JV7Q=; b=OXJ/hjX1Tatdb3RlwdE4BBTdpCo+rFsn8i+Jd+26Lcp7sB+zrquulMsAcllItRrPb8WcPRa8Q7wTeGhtbzWny9lCtbH3ZuekCiTJyiEttqrX948jiPj6xcDgdcqSVMbRwLKXVzkM3hGzybBjPpQtvSRS34eYSjLxQIvJMY5RomU=
Authentication-Results: huawei.com; dkim=none (message not signed) header.d=none;huawei.com; dmarc=none action=none header.from=jacobs-university.de;
Received: from AM0P190MB0641.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:194::23) by AM9P190MB1187.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:264::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3912.17; Wed, 10 Mar 2021 16:14:56 +0000
Received: from AM0P190MB0641.EURP190.PROD.OUTLOOK.COM ([fe80::e8a2:9886:8dfa:41c6]) by AM0P190MB0641.EURP190.PROD.OUTLOOK.COM ([fe80::e8a2:9886:8dfa:41c6%4]) with mapi id 15.20.3912.030; Wed, 10 Mar 2021 16:14:55 +0000
Date: Wed, 10 Mar 2021 17:14:54 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Italo Busi <Italo.Busi@huawei.com>
Cc: "netmod@ietf.org" <netmod@ietf.org>
Message-ID: <20210310161454.du65fbe4kot7jrfd@anna.jacobs.jacobs-university.de>
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
Mail-Followup-To: Italo Busi <Italo.Busi@huawei.com>, "netmod@ietf.org" <netmod@ietf.org>
References: <2384a8f549c94ea0ac46d6c772fbca43@huawei.com> <20210120114446.ovih63db7vmv7c7s@anna.jacobs.jacobs-university.de> <0ed5638881af42148720dd7f4843c3e6@huawei.com> <20210120160517.hsg5dnpidvrprtso@anna.jacobs.jacobs-university.de> <521a9ccd02e14d178a6e62971b4809ea@huawei.com> <20210309195241.k5lfmdnw2zqq6b4o@anna.jacobs.jacobs-university.de> <CABCOCHQkTsToyZ3qW3am41s3m7VLYt=pAdjBMuR0cMCwahbekg@mail.gmail.com> <bbbd4244a0474c48b3fdecb791cb936a@huawei.com> <CABCOCHTpfX6DDZM3Lhd+wx6ZFCgpsWp+Yb2jDTUYa9Zd8tvWqA@mail.gmail.com> <3a5eea68b8554cbe9ed3e8bc63652ffc@huawei.com>
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <3a5eea68b8554cbe9ed3e8bc63652ffc@huawei.com>
X-Originating-IP: [212.201.44.244]
X-ClientProxiedBy: FRYP281CA0007.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10::17) To AM0P190MB0641.EURP190.PROD.OUTLOOK.COM (2603:10a6:208:194::23)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from localhost (212.201.44.244) by FRYP281CA0007.DEUP281.PROD.OUTLOOK.COM (2603:10a6:d10::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3933.13 via Frontend Transport; Wed, 10 Mar 2021 16:14:55 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: df2e6ad0-da78-474c-9fd0-08d8e3dfa4e8
X-MS-TrafficTypeDiagnostic: AM9P190MB1187:
X-MS-Exchange-Transport-Forked: True
X-Microsoft-Antispam-PRVS: <AM9P190MB1187B8BD8D96BC98E0ADCC3DDE919@AM9P190MB1187.EURP190.PROD.OUTLOOK.COM>
X-MS-Oob-TLC-OOBClassifiers: OLM:9508;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: 1l1yf7Wbhx/Mf0KFDQ7yumJKMOER9R8MtNVZhCjntNP2I5uDD9PLPVAyhan1R9SFF5jc3ExNnmTvnlduCScRfSdLwaDKhW2Yzd2YyBN55+fg0Br+Poo0B7YYvJMNOpScw93pUnSa8S/q+VQvIl8g7QIunaoojg7jTu4mAFoiRwT4efEXwkYzcXDhxvRxABQzXOe7LSxjBOi41n+BII187Dk4t7sh1UATetl8HEDyWXMZe+k5sRwR0JQNjHEyO9kK1hRvkcmAsXRJbffWl6/WhrFcDbrZmkCBo/dOpvlTlBXjydNIq6y126Nh9AuDEuZigDHeSILzMDL+B31aoOsXpfL8yTNaHLmoFJVVGPvHKza1IbuEhEtsm27Ht6piwOfr0bEjKHni/blTtFPuZKFJP3Y9pyuAi2IIrAdW8tEPTZfN/7StMVKRvhnPXHSa6rbG/pDgHmZ20TFCdpP4xthxtvGVopb06uba5Y3dZ4bYTZL/kGS4N+EIj7GR+1fXaP1l3OpyHj/g+GOMPlZCx5/xNAdEiNZ7b18LhCt28PRvvHwnXejql7D+7Xgwof8va7+tS3xm5ufreZ4u+VpXxKKb3Q2keeSxqTLHC3lCgOaYQ0k=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM0P190MB0641.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(366004)(136003)(396003)(376002)(39850400004)(346002)(6496006)(8676002)(6486002)(8936002)(2906002)(1076003)(4326008)(3450700001)(52116002)(6916009)(53546011)(66476007)(66556008)(66946007)(956004)(5660300002)(186003)(83380400001)(16526019)(786003)(26005)(966005)(316002)(86362001)(478600001)(30864003); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData: CG2/R4bkGP6z5fLzB710r3+0ITLFtGLZ68L1EcFLZyz2a132qjaqdkIH2wd311hCC1TXmL6EQiFnEc3HkCigpsf4jrlE8K+8dn716dXiKOiFSYLZIr/TYxGx3KxPJA46U4044JMI/Nw1HVxOsTBk1Jxe6K5yCyq86ni3D1NC4IIwQsFEqMV0jmBBn40PCWKzXoe4w/xAG2tlTj6aqsgCVEUKJ0++qJxWTaRwAlkdx5LWeBl2qIUeT0upi6Zebos63Mj9J8Iszh+dGogKMtF+3692HzsFtwJaO5SnVusjc1/TohaoCMlxkFmG6lDY5WNLlG4lLfwJ55TqV95ygiN1rqwXfYdZjw1tAnH5bTDXmckYXQHjxmMjrIom7qsz/2e+KietjhMPQK8GezbQRiAHSEZzcsPMu7K1mcQhUsaByGakKGsu2Ub4zLAoR4Icgf2I6qQQlgKoumX/HNPVMLVswbhZh0TDJ83D1OnHlFLdPvpWM/rcMdmRxZg880o+7jQs6WmAmkMyTwP8pTU+38UJiSvVzA6pEPgQA+I8cDaMWLS5GcfQTxYUceDIoOwieF4LPnfca+pEsT9Mv9JA7J1T9+ZCZEQRoBPanIjCAQUROt87qLnZRi9/J3xQSae9e7uE3V+341lvQNixmPXPwrtvaOpl7V6imKu7Z1RaByKwP/Zjm8WykuT2Zz2XWMXShM9HRrxol6iS2lnVwGf43ZOxyDqu464RQYdSRjsQy+B5e9c0o4Yq6NB1wP8PDbj5s8BCQcnyrvP8+RjyW+oHnxktE+kqQU7V5Tc+eRwdmbU3tqUIDj9uAPnPZd+6xGK9bCisO4oYywssHh1Xm7ObCOlsdtmlejdAD++6jPkxoA5YnTw8M+e0FAaBfQ+eg/2IfElCJPNXTZfbKHp3C52w5/fQRyNmIpShSc0YCu842douPb3rMcvaPbsUkGwR49OEGbgGRveX76/d3LAX+Kid+e8YRk9wgDLrHimJ9NdriBW3r+6q480+c1F/5aYc54RB6Qjistq5/9z6zMDUsP8ejSwNE+UJfDw4Qw68kR/eYsOuR5yIUDeGR9dzPcZ0s1uPvCVpLZwKYdbseZhSxy8kVk/QfhTRnNZF+HuiSywnfn79ns520MVWPXuVkd3wvBl85wclpcX7lWtv1xFz2Ch5lKWSpk0mnO7cq/gfEZqYGEuGHGkkuRZLYGhGWABM4JC/2Ct/pISVJ93UsiVTTtcu66Ki91nWXbOxz3wnMZHMKilycHVm8S5SdecedNmcJyCMsg2sbEGDXe3/+ySKS468GWxhsh12/9HuzI6usm7js6dCszI/HPzdtSAJCj+IgODDbhDe
X-OriginatorOrg: jacobs-university.de
X-MS-Exchange-CrossTenant-Network-Message-Id: df2e6ad0-da78-474c-9fd0-08d8e3dfa4e8
X-MS-Exchange-CrossTenant-AuthSource: AM0P190MB0641.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 10 Mar 2021 16:14:55.8319 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: f78e973e-5c0b-4ab8-bbd7-9887c95a8ebd
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: m4StEHKYPbDZ+Up9DYyBTbW3xTLeFkCwHfSpST6jH2tVze4TKBBAMV1T0fI9KbUNILA1G3lp1VSKQTz0No9HjoCuMiSuoiE6beakgzS9kBA=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9P190MB1187
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/3CFNkOfdaLZnfSDqcaumoDzG4mc>
Subject: Re: [netmod] Questions about how to assign default values with YANG
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 10 Mar 2021 16:15:01 -0000

I do not understand where the problem is.

a) If a leaf says my default is 0, then the default is 0 and you can't
   change that by creating other leafs somewhere else that says
   something different.

b) If a leaf says that is has a default value but the value is
   determined in some magic way not defined here, then you can add
   additional leafs that detail the magic for certain contexts

The point is that a) tells clients they can safely assume the default
value is 0 while b) tells clients that they can assume that there is a
default but the exact default value they will not know unless they
understand magic.

If a data model author thought the default is always 0 and later
he/she realizes that in some contexts the default should be something
different, then you have to resolve that by creating new leafs (in the
current version of YANG) or you declares a non-backwards compatible
new version of the definition of the leaf (if the versioning work gets
standardized).

/js

On Wed, Mar 10, 2021 at 03:25:13PM +0000, Italo Busi wrote:
> Hi Andy,
> 
> I see your point,
> 
> At the beginning of this thread, I have had a doubt about how to reconcile sec. 7.6.1 of RFC7950 with sec. 5.3 of RFC8342:
> 
>    Requests to retrieve nodes from <operational> always return the value
>    in use if the node exists, regardless of any default value specified
>    in the YANG module.  If no value is returned for a given node, then
>    this implies that the node is not used by the device.
> 
> My understanding that the client will always get the applied value independently on whether it is 0 or 10 or another value.
> 
> Anyway, it seems to me that the issue is mainly about the keyword “default” so let me take a step back and try to define the issue I am trying to solve, without assuming any solution.
> 
> What I need is to find a solution that allows a client to request the server to apply the value 10 for the leaf foo in the operational DS without “explicitly” writing the value 10 in the running DS but “implicitly” by writing another leaf bar in the running DS, even if the leaf foo has a YANG default statement defining 0 as its default value.
> 
> I think that the NMDA architecture is quite flexible and could be leveraged to resolve this issue.
> 
> Stepping away from defining default values, one possibility could be that the applied configuration of the value of foo is defined by the system before applying the intended configuration in the operational DS, as a side effect of applying the configuration of the leaf bar.
> 
> Another alternative which is just jumping to my mind, could be that the value of 10 for the leaf foo is set by the system in the intended DS, applying a sort of template. Should in this case the definition of the leaf bar be interpreted as a template configuration or how should the required template configuration be provided?
> 
> Could any of this option be used to resolve this issue?
> 
> Italo
> 
> From: Andy Bierman [mailto:andy@yumaworks.com]
> Sent: mercoledì 10 marzo 2021 15:16
> To: Italo Busi <Italo.Busi@huawei.com>
> Cc: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>; netmod@ietf.org
> Subject: Re: [netmod] Questions about how to assign default values with YANG
> 
> 
> 
> On Wed, Mar 10, 2021 at 12:54 AM Italo Busi <Italo.Busi@huawei.com<mailto:Italo.Busi@huawei.com>> wrote:
> Andy, Juergen,
> 
> I am not sure I understand the issue with a client that does not understand the augment.
> 
> When this client writes in the running DS, it will not set the bar attribute (which is also defined in the augment module) and therefore the default value 0 will be applied by the system, as expected by the client.
> 
> When this client reads from the operational DS the applied configuration, provided by another client which understands the augment, it will see that the applied configuration for the leaf foo is 10.
> 
> This is a valid applied configuration if the other client had explicitly configured the value 10 in the running DS.
> 
> The only difference would be that when the value 10 is explicitly configured by the other client the origin is set to intended while when “implicitly” configured using the attribute bar, the origin can be set to system (I think it would not be correct to set the origin to default in this case).
> 
> BTW, I agree that this is not the most elegant/clean design and that the best approach would be not to define any default value in the base model. I am just willing to understand if a work-around is possible, without breaking any client, to allow re-using an existing module which has already defined a default value.
> 
> 
> Read sec. 7.6.1 again, especially this part:
> 
>    When the default value is in use, the server MUST operationally
> 
>    behave as if the leaf was present in the data tree with the default
> 
>    value as its value.
> 
> 
> 
> 
> 
> Your proposal violates this MUST because the default is in use according to the rules
> 
> 
> 
> 
> 
> Italo
> 
> 
> Andy
> 
> 
> From: Andy Bierman [mailto:andy@yumaworks.com<mailto:andy@yumaworks.com>]
> Sent: martedì 9 marzo 2021 21:12
> To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de<mailto:j.schoenwaelder@jacobs-university.de>>; Italo Busi <Italo.Busi@huawei.com<mailto:Italo.Busi@huawei.com>>; netmod@ietf.org<mailto:netmod@ietf.org>
> Subject: Re: [netmod] Questions about how to assign default values with YANG
> 
> 
> 
> On Tue, Mar 9, 2021 at 11:52 AM Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de<mailto:j.schoenwaelder@jacobs-university.de>> wrote:
> Changing the semantics of a definition via augments is bad design.
> 
> A system that does not understand the augment will believe the default
> is 0. Since there is no way to force an existing implementation to
> understand a certain augmentation, different implementation will
> rightfully disagree on the default value in effect.
> 
> 
> deviation /ex:example/ex:foo {
>     delete {
>        default 0;
>      }
> }
> 
> IMO it was a bad idea to say deviations MUST NOT appear in standard modules.
> Here is a use-case for it.
> 
> The old-client does not know about the new dynamic default but it could know
> that the old YANG default is not being used.
> 
> 
> /js
> 
> Andy
> 
> 
> On Mon, Mar 08, 2021 at 08:19:39PM +0000, Italo Busi wrote:
> > Hi Juergen,
> >
> > Thanks again for your clear explanation on this topic
> >
> > I have found a similar but slightly different issue. In this case, a YANG default statement exists in the base module but the intention with the augmentation is to "overwrite" the default value on the basis of another attribute, defined in the module which augments the base module.
> >
> > For example, I am wondering whether such a code is valid:
> >
> > module example-base {
> >   container example {
> >     leaf foo {
> >       type uint8;
> >       default 0;
> >     }
> >   }
> > }
> >
> > module example-augment {
> >   import example {
> >     prefix ex;
> >   }
> >
> >   augment "ex:example" {
> >     leaf bar {
> >       type empty;
> >       description
> >         "When present, the default value for foo is 10.";
> >     }
> >   }
> > }
> >
> >
> > In this case, when the leaf foo is not configured but the leaf bar is present, the value of foo in the operational datastore should be 10 (rather than 0).
> >
> > In this case, I think that it would be better/cleaner if the origin is marked as system.
> >
> > Maybe a better YANG description for bar could be: "When present, the system overrides the default value of foo to 10."
> >
> > What is your and/or WG opinion?
> >
> > Thanks again
> >
> > Italo
> >
> > > -----Original Message-----
> > > From: Juergen Schoenwaelder [mailto:j.schoenwaelder@jacobs-university.de<mailto:j.schoenwaelder@jacobs-university.de>]
> > > Sent: mercoledì 20 gennaio 2021 17:05
> > > To: Italo Busi <Italo.Busi@huawei.com<mailto:Italo.Busi@huawei.com>>
> > > Cc: 'netmod@ietf.org<mailto:netmod@ietf.org>' <netmod@ietf.org<mailto:netmod@ietf.org>>
> > > Subject: Re: [netmod] Questions about how to assign default values with
> > > YANG
> > >
> > > On Wed, Jan 20, 2021 at 02:41:39PM +0000, Italo Busi wrote:
> > > >
> > > > What about the case the leaf is not conditional (but still mandatory false
> > > since a YANG default statement is defined)?
> > > >
> > > > May the server still decide not to use/implement this leaf in the operational
> > > datastore?
> > > >
> > > > For example, in appendix C.1 of RFC8342, auto-negotiation is enabled by
> > > default.
> > > > What should be the behavior of a system which does not implement auto-
> > > negotiation?
> > > > Return the value false or no value (in the operational datastore)?
> > > >
> > >
> > > Here are some of the rules I personally like:
> > >
> > >  - <operational> is the ground truth about what a system has and does
> > >  - do not implement leafs that do not apply
> > >
> > > Hence, interfaces supporting auto-negotiation have either auto-
> > > negotiation/enabled = true or auto-negotiation/enabled = false in
> > > <operational>. And interfaces not supporting auto-negotiation have nothing
> > > to report about auto-negotiation. Yes, I do not want to see auto-
> > > negotiation/enabled = false on a loopback interface.
> > >
> > > My historic Ethernet interface from the last century would also not report
> > > auto-negotiation/enabled in <operational>. You may hit applications that love
> > > to have auto-negotiation/enabled available on all Ethernet interfaces and then
> > > you end in a debate where the application developers tell you that no
> > > information in <operational> may have many reasons (instrumentation not
> > > implemented, access control rules, whatever and by reporting enabled=false
> > > you do them a favor) but the true answer in such a debate is often that
> > > modeling things as a boolean is simplistic since there are often more than
> > > exactly two states (in this case, enabled, disabled, failed, not-available, ...).
> > > So you settle on blaming the model writer. ;-)
> > >
> > > /js
> > >
> > > --
> > > Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> > > Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> > > Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
> >
> 
> --
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
> 
> _______________________________________________
> netmod mailing list
> netmod@ietf.org<mailto:netmod@ietf.org>
> https://www.ietf.org/mailman/listinfo/netmod

-- 
Juergen Schoenwaelder           Jacobs University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>