Re: [netmod] yang-instance-file include-defaults leaf

Balázs Lengyel <balazs.lengyel@ericsson.com> Tue, 13 July 2021 15:07 UTC

Return-Path: <balazs.lengyel@ericsson.com>
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 4C96B3A15B6 for <netmod@ietfa.amsl.com>; Tue, 13 Jul 2021 08:07:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.551
X-Spam-Level:
X-Spam-Status: No, score=-2.551 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.452, 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_BLOCKED=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=ericsson.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 Hxim8tkMqUrJ for <netmod@ietfa.amsl.com>; Tue, 13 Jul 2021 08:07:39 -0700 (PDT)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2048.outbound.protection.outlook.com [40.107.21.48]) (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 AD5093A15B5 for <netmod@ietf.org>; Tue, 13 Jul 2021 08:07:38 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PJhnqWbB4vhNnWOkQ+OK8WQMZYNQb/RG3OjhJAZWGTfnHcBomy/w7ofX8qVvb+2Y1uBI/xgcKP7IVcqMXwTJLc+JlqSXehvwz8S/ych3CgJ+BH9eSp56Xfa1q9nndn+ny/wR2atqHxb8F3JIHCbLNMjUlnLCvi7HO0BWWeCai9u6g7fky/7uNVHDzdxWdZ8mUQ8tGuJXKswThaJFzz8rZYGuL9TVsSloRznBxE3mDzNyJHVC/eqyPqnh0Csw2crag+Lvykfxvy+MXtFn/qrtmicOxRUSgv9NsYUikwFCvAV+gapxS7Ygtgme+hgfyx1XPTR2efd2hjWIBkd4zdQjQw==
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=BDMRRcS4R7eP6kQK4mKmvVnJewlxJy16dtyMXqgZi1g=; b=hIJfF/qNG/0LQFOcvXtmRyJxBexNDn5gUf9cDKaBHJ2xhx5WbRcdVW8D2JKrzl5Gqm9e7ZAS+325Oj8wH6r8oAO5+BedFCa9mOVMkxPdcsFyItqzOl5sWeg8L1lbrKV7Jm+2RZajzSZP0uRJoT1HwWTD2FoRiHTOdZBDx91CCzcROtR6ov+wGKlRXlsJxoLCPScdNHOw9v8fGdcf+cUCD/sb/8bd2A8LE3HNX8mqlQrlsE9Dkj+tU39ZovNF81DGIzsrXOdfPVG0UmvaLkZrcd3LBGwOt0ct50MUlr9dgwbc+UBckSIqrPZYPfD5WIFUWHCGlEF7GmAGY0ZSdgO6SQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=ericsson.com; dmarc=pass action=none header.from=ericsson.com; dkim=pass header.d=ericsson.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BDMRRcS4R7eP6kQK4mKmvVnJewlxJy16dtyMXqgZi1g=; b=nzSdlYSjeDstda/d03lVhNSrUO9w3PBf2nBk9VAVlsXU2Uf4DIa2U++MWzHBD0EllNBbMBZbLkUwC65Zhbbyqf137k+HxkIkkNMipCs64IX13YSKDj/G3WSM0xMzBfGSUCFeAGM7ZBbT0BdbK+1VbRpyp1PLgGm+wUee18FHfMA=
Received: from AM8PR07MB8230.eurprd07.prod.outlook.com (2603:10a6:20b:325::15) by AM8PR07MB8189.eurprd07.prod.outlook.com (2603:10a6:20b:320::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4242.9; Tue, 13 Jul 2021 15:07:35 +0000
Received: from AM8PR07MB8230.eurprd07.prod.outlook.com ([fe80::dd5e:8a67:d8c3:4625]) by AM8PR07MB8230.eurprd07.prod.outlook.com ([fe80::dd5e:8a67:d8c3:4625%9]) with mapi id 15.20.4331.021; Tue, 13 Jul 2021 15:07:35 +0000
From: Balázs Lengyel <balazs.lengyel@ericsson.com>
To: Andy Bierman <andy@yumaworks.com>, NetMod WG <netmod@ietf.org>
Thread-Topic: [netmod] yang-instance-file include-defaults leaf
Thread-Index: AQHXdB0ScDY6rhEwiUCIGrL2qSijE6tA7UVg
Date: Tue, 13 Jul 2021 15:07:35 +0000
Message-ID: <AM8PR07MB8230EF47ED0DB9E7B575E2A0F0149@AM8PR07MB8230.eurprd07.prod.outlook.com>
References: <CABCOCHQB8=kAXRejif=04ThzbSn87oqvDLB5=oJ2FVcAKrSg4Q@mail.gmail.com>
In-Reply-To: <CABCOCHQB8=kAXRejif=04ThzbSn87oqvDLB5=oJ2FVcAKrSg4Q@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: yumaworks.com; dkim=none (message not signed) header.d=none; yumaworks.com; dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 0e4bb91b-2ec3-44eb-0a42-08d9460ff27b
x-ms-traffictypediagnostic: AM8PR07MB8189:
x-microsoft-antispam-prvs: <AM8PR07MB8189D5606046E0EA8F118B82F0149@AM8PR07MB8189.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: E2D4955LwMMHgcRioLMV3Do7qUFehjFY27KtTwUODjifYBSG6n0LbTmReNCGbZxDMRTNG2/ZTu7KahoryRzT/nr9zy6NT7uE4TY8SH8CZEAFgcfVz9E5rRtswssSv0WuvtKIHPOIX2iQws1u1/YLGgp/QF8X9b5EViinMPaEruR/Fh2x4R5nit47iI1DOwft7HcRs0VJA1ctlQy16oCRogqMMGSHvVS2dIEuD05/mrxIwrJ1MBgFC4GjgmCtkGsMbbzRaBb/Y/ILiO52+Adjj8KXePqnk/qE5nPq2fv0zS3FptczD4XyzK6USgdQ/EkGQk8tvZ3dW2GT8v4IGMV2qTMlPZ00uOGXEWMSvJ4IX/o0h2KUQJZpGB5fE0fQPXygviiVX5ag5t/7kDuIXx9mTU6Tb2dxkZ43K4Oa7ploccqJjuj9kqrrJqnevVWOXw7W7simFc/PQOCmqM1AMHgMpdfj2X42wLzyMolk4ptNE1TRA51/Yv/bPPxt5PYBCaT8PdRVSs//VAq1Eewy1EXMYQPMVZ3RNJc+kVpvPj1MsxhTp3gKYwCilLFLgfuCAXZQbR2INpnx5mWyM+pZnAMbTYYr9IDtbtwWJHRHH9kSTwNMoD/UrFyX3AZeks7Pb6FLr5hHJDmfZZ8mjXcBlDLv/065K8J3ugsLjWpyGy1Jmyw=
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR07MB8230.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(346002)(376002)(39860400002)(136003)(396003)(366004)(186003)(55016002)(26005)(6506007)(9326002)(110136005)(9686003)(8936002)(66446008)(316002)(85202003)(64756008)(66476007)(85182001)(66946007)(86362001)(66556008)(66616009)(53546011)(76116006)(7696005)(99936003)(122000001)(2906002)(33656002)(8676002)(38100700002)(71200400001)(5660300002)(52536014)(478600001)(66574015); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: RqRvZIQmYQ+0Nh2vttBLNdaDlxaA6e2HGiSpJc24MYnbJyIhxzpzoeQdFeG9eyabgwAHpfOpwf39inR71gMaFjD3LfLkoSIntYrIr1BT6I5nbOoOm6Q0B0bEzddLqHcLj7c4t61NNz/w42QO1C0Iq40ySzad0FFmjcQp/eYx5cGHwA01/dzMTdMdX3VSofKTYRX6msHjnm2txVcSacg+QUdkn/355CpdPQBaBynKYAzOdC20GnRU/kW8sSnKQfekfHDWPnZtaCrJ9yNf2yAjJIZH23wzMnepS7g7R6QI+tFTRy7WomDUHpyeQoZEgKWrbs/+tAgEf+iQwF5gP+1x7si0XhdIOiCY71q5W4cqIeCow7/Z9tCmvMDsClEiQQ9PGBwR9bX6+ufZthUFXTqr3bu5TUlM1Cw6CHQsLAjsKO0Dl6HxQfzv5gm5B/eKW/u4XzoqkfIIBRAuhNUFTcQTJBeMvhTjNDqLLR3vkW6AOd9LmCzHToM7dOaH2roNWcpSxlgTCsl+MZGrweSFiaYG0wBVdvpzQy3a/3BDjVdN4//Y5LnN6DFYhvd6tJRCf64x6MCbewU/IA1hs0D28k4h4x9FpD5fNTO9rWAsuPRp5nZNIRYxWuVEe0k8PU+vHH8KM6RfTOcIIAmgXElqFGL00OegM36L8/L7JoZaC9KLYoaYSjl98s1O9oc1O/ch5jJYXaMt0ng+WcqTGV3OgvbHBOCB3IS06eke5NfqDmTSEQc=
x-ms-exchange-transport-forked: True
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="SHA1"; boundary="----=_NextPart_000_0066_01D77809.91DDCCF0"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM8PR07MB8230.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 0e4bb91b-2ec3-44eb-0a42-08d9460ff27b
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jul 2021 15:07:35.5164 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: LOKSFOpalzu3mMQZ/ywlKdGDoS+iae/43son62C3aIKrxZzlA65SnvxBoQc8F3B2LnaapU/6KHvTFiHQ76PzqWHVzOKI7vsZ3wVAOwCDfnM=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR07MB8189
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/o9x44Q8CgJqNDhNRq7FVzh_sMRk>
Subject: Re: [netmod] yang-instance-file include-defaults leaf
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: Tue, 13 Jul 2021 15:07:44 -0000

Hello Andy,

Looking through the use-cases I think the producer will always know whether it includes default values or not. This is the case if the instance data set is produced by the server e.g. in UC4, UC5,  or if it created by some design activity UC1, UC2, UC3, UC8. (UC6 and UC7 are so broad and loosely defined it is hard to say much about them.)

 

Once the producer knows whether defaults are included or not it can set the include-defaults accordingly, so the default value for include-defaults is not so important. However, I chose trim as the default because:

*	during the WGLC the draft explicitly stated that defaults SHOULD NOT be included and the WG was happy/ok with that
*	IMHO It is better to have short files, 

 

Note, I used the term producer, as IMHO the above is true in all cases whether the server produces the file or some design activity creates the server.

Regards Balazs

 

From: netmod <netmod-bounces@ietf.org> On Behalf Of Andy Bierman
Sent: 2021. július 8., csütörtök 19:16
To: NetMod WG <netmod@ietf.org>
Subject: [netmod] yang-instance-file include-defaults leaf

 

Hi,

 

The module has this object:

 

    leaf includes-defaults {
       type enumeration {
         enum report-all {
           value 1;
           description
             "All data nodes SHOULD be included independent of
               any default values.";
         }
         enum trim {
           value 2;
           description
             "Data nodes that have a default defined and where
               the actual value is the default value SHOULD
               NOT be included.";
         }
         enum explicit {
           value 3;
           description
             "Data nodes that have a default defined and where
               the actual value is the default value SHOULD NOT be
               included. However, if the actual value was set by
               a NETCONF client or other management application
               by the way of an explicit management operation the
               data node SHOULD be included.";
         }
       }
       default trim;
 

The draft is extremely server-centric, like most IETF standards, but this

leaf is too server-centric to ignore.

 

Consider the possibility that the source of the file is NOT a NETCONF server.

This data may not be known so the default of "trim" may not be correct.

 

IMO this leaf is noise because any tool that knows the schema will also

know the YANG defaults.  The solution is incomplete anyway because

the presence of a leaf that has a YANG default is not enough.

The  "report-all-tagged" mode must be used to identify defaults.

IMO this leaf should be removed, but at least add an enum called "unknown".

 

 

Andy