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

Balázs Lengyel <balazs.lengyel@ericsson.com> Mon, 23 August 2021 12:17 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 BF17A3A10E2 for <netmod@ietfa.amsl.com>; Mon, 23 Aug 2021 05:17:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.542
X-Spam-Level:
X-Spam-Status: No, score=-2.542 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_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_SPF_HELO_TEMPERROR=0.01, 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 FrTBAFTbM7g5 for <netmod@ietfa.amsl.com>; Mon, 23 Aug 2021 05:17:31 -0700 (PDT)
Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-eopbgr150054.outbound.protection.outlook.com [40.107.15.54]) (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 D93913A10DB for <netmod@ietf.org>; Mon, 23 Aug 2021 05:17:30 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eqDOBIygrYa76HUzjsQyyD/PYrT4su/78y3F0zfyfrP8dTJSQbQFokodu26VRqflBfO/ByKIJiqb4mLFjr+G2LodDz2qWxIarKD/zeRnsqSkJXIh123rR7MWwJKIBWDvUq+zTtXCSp4DZD0ZopaFtfLKwV/ahgS/BfcHoqRIKuhPqu5OL/+ZHw/8xb+vHTYislzksWKY9GJ2x4y6CU04rA2XrseV2gCrTQExQVhlYTtdI0Q/3VQ2x/bCtcCEKzN0ZVFCYw/fncRRfTDT+4lAENacGpzvosHiXWqP6A/5+PEhLybsCZsletpsIlKbeoQNXCEkq3K7c/ao7tYuQseKZA==
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=EOXv07xyJKB7nWjgJ1YM56Y24PT+nHAzwwcpV36AE10=; b=B4HXVhex/o64t3sb6KmRr6l7uunhNbeOqgyTF82mficyzoy0BhJH5rIDefdjmPELywQWgGJ0R1YkuCyAoHQCNV6fUevOvsjmFVMRy/mFQt3kz+hH1s1R1GezjMa79mEbeyCB/8DYVy/ZCN6WuMFdJEiwLIsKg9w51BRQMeZ76g996FFDzmFgXpjGuK2GhuqRfpHdGlmJhdCh7nsBkQgdFo47gZLFjKzJ1zpDOyihxv2CPH7gzaPlAymPUBjfox5PGcBG51hWr2SptBEdb0ST6s2/T7t8IkubSGT1u3EY5I6CumQmGeiHkcpMQV54dgA7Qhm0NpKD9MdTGVmN7fT1RA==
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=EOXv07xyJKB7nWjgJ1YM56Y24PT+nHAzwwcpV36AE10=; b=TjkKVT0+r+y6/7mQshw+rorighGAsf8a/OX90NAQ57ruiYobDnS9xNzoLskjr66hIR4vN/tOpfZkfBguImgjUIiZw0qgyYdG0bCigj2xy/Y+TF5dLZZWg/BM4fBBTtc4xg67MbR3WNQwSLIIqOJKkP/pGMNZ8WSAM5QQNxZqnzs=
Received: from AM8PR07MB8230.eurprd07.prod.outlook.com (2603:10a6:20b:325::15) by AM8PR07MB8140.eurprd07.prod.outlook.com (2603:10a6:20b:36f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4457.5; Mon, 23 Aug 2021 12:17:24 +0000
Received: from AM8PR07MB8230.eurprd07.prod.outlook.com ([fe80::c4ed:5ded:f1a0:dafd]) by AM8PR07MB8230.eurprd07.prod.outlook.com ([fe80::c4ed:5ded:f1a0:dafd%3]) with mapi id 15.20.4436.017; Mon, 23 Aug 2021 12:17:24 +0000
From: Balázs Lengyel <balazs.lengyel@ericsson.com>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>, Andy Bierman <andy@yumaworks.com>, NetMod WG <netmod@ietf.org>
Thread-Topic: [netmod] yang-instance-file include-defaults leaf
Thread-Index: AQHXdB0ScDY6rhEwiUCIGrL2qSijE6s6kiOAgAHaXQCAGqYDAIAB/JVwgCgblQCAAByt4A==
Date: Mon, 23 Aug 2021 12:17:24 +0000
Message-ID: <AM8PR07MB82307EB8EBBE614C60DC8D1CF0C49@AM8PR07MB8230.eurprd07.prod.outlook.com>
References: <CABCOCHQB8=kAXRejif=04ThzbSn87oqvDLB5=oJ2FVcAKrSg4Q@mail.gmail.com> <DM4PR11MB5438F5874CDEB4D78C9A5695B5189@DM4PR11MB5438.namprd11.prod.outlook.com> <CABCOCHRwzRajMmSd2mArLeLr8OOxTdLEid3bEDdVH0vgNysTfg@mail.gmail.com> <DM4PR11MB5438FBF7837C1147D786964CB5E99@DM4PR11MB5438.namprd11.prod.outlook.com> <AM8PR07MB8230BEFDC5A967AB6293C794F0EA9@AM8PR07MB8230.eurprd07.prod.outlook.com> <DM4PR11MB543824EB074422075681CA9AB5C49@DM4PR11MB5438.namprd11.prod.outlook.com>
In-Reply-To: <DM4PR11MB543824EB074422075681CA9AB5C49@DM4PR11MB5438.namprd11.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach: yes
X-MS-TNEF-Correlator:
authentication-results: cisco.com; dkim=none (message not signed) header.d=none;cisco.com; dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: ce198923-ddeb-49e6-4ac5-08d9662ff718
x-ms-traffictypediagnostic: AM8PR07MB8140:
x-microsoft-antispam-prvs: <AM8PR07MB81408EE75724D8BE446BFDBBF0C49@AM8PR07MB8140.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8273;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 76P4R/Yk4CyaQVlAgB+6PMU6o7WrDyolUfSIYjEXsDoq4Rb5Sf3sHEGIYhudGAMT6QoMBKDNyzoHs9wjORB+0zZDvDgEl+u4OzVpN5H3JWBa4lTemkp7c18n1SATKjU6a5cz99YvXlhHpw/G2TeYfxHXLpmnVpaLg26srtQuy98LRzthPFypvTkIOw1i/HWKbeK2i+e4omOagTZC2Yfc5N1OA/Ejv1y6a8B/XnrlWrnvKdPZYR0GV0Pion/soKkqmKKHQqTyrga1yxhHXsvXoHPY4maqz99aaVOaBeks7m38uBMvrSjWDxee9u7lW+Rga8auoeD1fgUailWLaPZZ7Wro1fFoKMR0HyX8AjXvh8nTMXJKDLavxL7JyfgasPfS2GW17Eyyzh+xFZZEIbuWog2idWSgj6xd94CjftvbO6ZQQr8PPv/BvABzJbEY2UI1UyqU7QQD6hk9DDuwuQXKIHgdnN4wEoJ6yujJqc499DfojIV0zkmivZ1yNmB6RVv6aFAdruGTzZGh/+mxqj9ZyhHTTeKpvIrGUaRK3wLjJcEe2x8DB8cXwZLdJWgj43argrU37dWnmgdEustH4OQzCTsBrG++ckHpHDiAQaAed7XO/PxTjfxauedU0yl1eOPOcLzX0WFqxOghcxn9vln4gTMcTaLynY9QLI2aSBmIclIElLB008i8eo3yvquMG+vIO7ckHQF+VEF/BcpU/1viqw==
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)(136003)(366004)(396003)(346002)(376002)(39860400002)(52536014)(85202003)(2906002)(7696005)(8936002)(83380400001)(38070700005)(26005)(66574015)(186003)(9686003)(9326002)(122000001)(8676002)(66946007)(99936003)(316002)(71200400001)(6506007)(66556008)(66476007)(33656002)(53546011)(76116006)(86362001)(55016002)(66616009)(5660300002)(85182001)(66446008)(38100700002)(478600001)(64756008)(110136005)(579004)(559001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: j3oUDXui65LCQ+14zn3lOUNPnNa/RD61fN6vGnOZog405EGuuPOr+XUjdjVgWmN0sPycFFulLbPlbwpSm8JizPIq7upiw4+yzHY52szzfP39V0frax5CcpZ8WIV2fWFaLBSuryZJzBRfFKjA9vcuDB3yk8Ox2lpoCdDYQG138Ij6aUjSpDiQW5JJ5PL99ao6XLAilyozhtmo3ZrG4tN4x40ewsdxRZDqtJ0bIqpqvoIuRsiY+kU4nnMIp4jXZYrbQC2S76t8JMeoc+nhG1ihOl7ACBckM3SRm8ysLx+3uJsgiz7kEMGkIZRv2eLC1gzpcmQX9P9OuMH8kXpS8pU/DgHxwFILhl5aqpJpRWJHbAV3Q0YbJGSkV5yKpAKx48oUTIyEb4/N5XdZ/zo7spvT3I+FnQAVC9Hcf9O364eNmLaIXeW3U2i9bZzpZ3/5m6d0EICIXLCKiARpa/UKhAU97CCxI5/BXP/y+FNvr0XeV8EqwKErZeBmKVMMQyrd8sEvqL/h0IdNhPw3GT165EcOlue1g5gtKvF0hik7NWE24dXQllLNPapiGrB+pfMO/6ccNoT/W39TuRKiOSe0xITRcE5iPvSmFKVZ804nHDaiXRHv2f/hiaT6mDlUGQeSnm1H8ROiMqx46GxbDV1uJGxRq72Cy0l/qv8RGH9fDCH5gbMqjPZjS1hqPBtQ5YA0IzNQFDiLVicFZ3cgnOQMAc0kGk1AT73szylfVTNsD4nn9apnFCXlCWw+o34yTjiOdpvz4+W8HhZgk8+fv9e8xNETlhwkS0IQfRFcRajP6ZzN8psFHOe+LB4oSrdcf1NJ5elfSTfrrVMTvcN6Cccr27B64fI4Hvm6pkTtPLK4ufw4l8jk1OcZrTLVvRvKfWdiQEK+8DQdItrOjfuELHBmBFBNEeOWcxsz8+IoRoCpXX0I50N93Usivv7PIawmWS+UK6eWlVND8+2W99tVEtU1iRpspghWgz9gSXxf1Jih46sHfZKdYO6WhPVj3pRa6Q9yseJd2z13eomNhf+xBp5Nffrfy9xAZ1uZNUzGw4C7hu2jyufZRB/pnxurQOiAnUctQ9SkXJ7uNzBGPxoAc+hhyxzKuyzr4Lv0gyK6gwjL80fjjzNirMe0yEo/qPF8qNDVP+T49OF+Gq9vZlMHf7Fi8suYToy2pB8oUmER14icWJ6O+2u7qDU/+7+E0I4LtHoQSdHV+UDaEiQz1f1dVJ/I0eH9gpYEBavVQnVCU0kkpB2rU4dTo4asC/jovRZb7jautPfQyRmu/+QlSGFwo+xEI4XeLnMJGLtyyaC2sfnnijxOLXo=
x-ms-exchange-transport-forked: True
Content-Type: multipart/signed; protocol="application/x-pkcs7-signature"; micalg="SHA1"; boundary="----=_NextPart_000_006E_01D79829.9719F1E0"
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: ce198923-ddeb-49e6-4ac5-08d9662ff718
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Aug 2021 12:17:24.3929 (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: 3/GcC7lriyGkIqqkaT8yfTg5dIR8o2H8V+879KR+dgYrS10frDLvfsmd9Tz/O+PxGghDiqu8kCiwfSJ/tDgySp2X9KaDpt6z6xvYA/DLxJw=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR07MB8140
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/36apP6b7o0VP_uSZ1H3sDrcNCxA>
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: Mon, 23 Aug 2021 12:17:38 -0000

Hello Rob,

I think this won’t fly. 

In sections 1.2 and 2 we state:

“Instance data files MAY contain partial data sets.”
Which is important for many use-cases.  This means you cannot say that a default value will or must be included, as they might be omitted because they are not part of the partial data set.
In a way it is difficult to separate between leaves that are missing because
-        They are not part of the partial data-set
-        They are omitted because they have the default value and one of the trim or explicit options is used
If this becomes important the report-all options shall be used.
 
This is the reason I used the SHOULD word.
Regards Balazs

 

From: Rob Wilton (rwilton) <rwilton@cisco.com> 
Sent: 2021. augusztus 23., hétfő 12:27
To: Balázs Lengyel <balazs.lengyel@ericsson.com>; Andy Bierman <andy@yumaworks.com>; NetMod WG <netmod@ietf.org>
Subject: RE: [netmod] yang-instance-file include-defaults leaf

 

Hi Balazs, Andy, Netmod,

 

Sorry for the delayed response.  I would still like to strength the description of the defaults.  E.g., RFC 6243 uses MUSTs rather than SHOULDs.

 

Hence, I have generated some proposed alternative descriptions, that are somewhat stricter, but also more generically focussed only on the default values.

 

With these definitions, I think that we could define the “include-defaults” default value to be “explicit”, since if the leaf if not included, then I think that this effectively what the meaning would be anyway.

 

 

In particular, I would propose changing the descriptions as follows:

 

       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.";

           }

         }

      

Proposed:

 

       leaf includes-defaults {

         type enumeration {

           enum report-all {

             value 1;

             description

               "The instance data set includes all data nodes,

                including those that contain the schema default.”;

           }

           enum trim {

             value 2;

             description

               "The instance data set excludes all data nodes

                that contain the schema default.";

           }

           enum explicit {

             value 3;

             description

               "The instance data set may include some data nodes

                that match the schema default and may exclude some

                data nodes that match the schema default.”;

           }

         }

         description

           "This leaf provides an indication of how default data

            is presented within an instance data set, modelled on

            RFC 6243.

 

            Interpretation of the use of defaults depends on the

            context of what the instance data set represents.

 

            E.g., if the instance data set represents configuration,

            Then include-defaults aligns to the meaning of the

            default-handling basic modes in RFC 6243.  If the

            instance data set represents operational data from the 

            operational state datastore [RFC 8342], then

            include-defaults aligns to the definition of that

            datastore in RFC 8342.”;

 

Would text along these lines work?

 

Thanks,

Rob

 

 

From: Balázs Lengyel <balazs.lengyel@ericsson.com <mailto:balazs.lengyel@ericsson.com> > 
Sent: 28 July 2021 23:08
To: Rob Wilton (rwilton) <rwilton@cisco.com <mailto:rwilton@cisco.com> >; Andy Bierman <andy@yumaworks.com <mailto:andy@yumaworks.com> >
Cc: NetMod WG <netmod@ietf.org <mailto:netmod@ietf.org> >
Subject: RE: [netmod] yang-instance-file include-defaults leaf

 

Hello Rob,

Removing the “default trim;” will address Andy’s comment.

 

Your in-use-values is very specific to one of the use-cases: reading/documenting operational values. It is not useful for the other use-cases. I think the “documenting operational datastore” use-case could be handled by indicating the includes-defaults=report-all. Case (i) would contain the value case (ii) will not.

Regards Balazs

 

From: Rob Wilton (rwilton) <rwilton@cisco.com <mailto:rwilton@cisco.com> > 
Sent: 2021. július 27., kedd 17:38
To: Andy Bierman <andy@yumaworks.com <mailto:andy@yumaworks.com> >; Balázs Lengyel <balazs.lengyel@ericsson.com <mailto:balazs.lengyel@ericsson.com> >
Cc: NetMod WG <netmod@ietf.org <mailto:netmod@ietf.org> >
Subject: RE: [netmod] yang-instance-file include-defaults leaf

 

Hi Andy, Balazs,

 

So, the reason that I want a flag to indicate whether default values are in use is because of this definition of operational in RFC 8342:

 

   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.

 

It was written this way because otherwise a consumer of operational data cannot differentiate between:

(i)               This value is not present because it matches the default value specified in the YANG module, and

(ii)              This value is not present because the server has failed to return it for some reason (e.g., perhaps the daemon that would have provided this value is down or not available, or perhaps it is a bug, or perhaps it is not implemented and is a missing deviation).

 

So, I think that in some cases, the absence of a data node does not necessarily mean that the default value is in effect, and I wanted the instance-data document to be able to contain and correctly report this data.

 

I think that this behaviour could be captured by a single leaf.  Another way of articulating this would be:

 

leaf in-use-values {

  type boolean;

  default false;

  description

    “Only if set to true, the absence of a value in the

     instance data for a given data node implies that the

    node is not used rather than implicitly taking the

     default value specified by any corresponding

    ‘default’ statement specified in the YANG schema.”;

}

 

With this, I’m not sure whether we need the “includes-default” leaf currently specified in the draft, but if we do, then I would think that leaf should be entirely optional, i.e., without the default “trim”.

 

Regards,
Rob

 

 

From: Andy Bierman <andy@yumaworks.com <mailto:andy@yumaworks.com> > 
Sent: 10 July 2021 17:41
To: Rob Wilton (rwilton) <rwilton@cisco.com <mailto:rwilton@cisco.com> >
Cc: NetMod WG <netmod@ietf.org <mailto:netmod@ietf.org> >; Balázs Lengyel <balazs.lengyel@ericsson.com <mailto:balazs.lengyel@ericsson.com> >
Subject: Re: [netmod] yang-instance-file include-defaults leaf

 

 

 

On Fri, Jul 9, 2021 at 5:23 AM Rob Wilton (rwilton) <rwilton@cisco.com <mailto:rwilton@cisco.com> > wrote:

Andy,

 

Yes, when I suggested this, I was thinking that a boolean flag might be sufficient.  My point being that automatically filtering out default values isn’t always the right thing to do.

 

 

 

The solution is simple.

Get rid of the inappropriate "default trim" statement.

 

If the leaf is present then it identifies the basic-mode that was used to include defaults.

If not then the information is either not known, not applicable, or defaults were not added.

 

The "default" statement is a bug because there is no default basic-mode.

All of the basic-modes are in use in deployments and no camp has ever

been able to convince the others that theirs is right.

 

 

Andy

 

E.g., something along these lines:

 

leaf exclude-defaults {

  type boolean;

  default true;

  description

    “Can be used to reduce the size of the content data file.

 

      When unset or set to true, data nodes that have a default defined and

      where the actual value is the default value are excluded from the content

      data.

 

      When set to false, data nodes with default value are not filtered, and

      may appear in the content data.”

}

 

Would this satisfy your concern?

 

Regards,
Rob

 

 

From: netmod <netmod-bounces@ietf.org <mailto:netmod-bounces@ietf.org> > On Behalf Of Andy Bierman
Sent: 08 July 2021 18:16
To: NetMod WG <netmod@ietf.org <mailto: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