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

Andy Bierman <andy@yumaworks.com> Thu, 08 July 2021 17:16 UTC

Return-Path: <andy@yumaworks.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 000C53A094E for <netmod@ietfa.amsl.com>; Thu, 8 Jul 2021 10:16:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.888
X-Spam-Level:
X-Spam-Status: No, score=-1.888 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks-com.20150623.gappssmtp.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 HvDGiOkEXSmP for <netmod@ietfa.amsl.com>; Thu, 8 Jul 2021 10:16:44 -0700 (PDT)
Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 172693A094A for <netmod@ietf.org>; Thu, 8 Jul 2021 10:16:43 -0700 (PDT)
Received: by mail-lj1-x22c.google.com with SMTP id a6so3617177ljq.3 for <netmod@ietf.org>; Thu, 08 Jul 2021 10:16:43 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:from:date:message-id:subject:to; bh=E+JCrdQvMrz2F3ronk+Va0Z7oNXLtwkUG5YnDotBCss=; b=TvtbUAWYEO3+TdVia3yCO99gZPcrJuHA5YaP3QLhVeKPQhKDnKJmkYxJg8LnGARSiH 7fg47EbwrRICoRMYeOEI9hIDI9uNlLJRn/jW7mI7ej6ON1mVjb8Pw7rP33NUzk6j20II vGPsuAYND05tzx8rPZzUbMJMs3s6Z893Lht2FLfyEreN6f8zyFWJx+zhNvQrGUhQKzC8 vumc7JwLuF4keIspxbFHUtGRH+jZBYdHAO9Nm+rfbkfbPiKidvqDAEn+8r/Lm/eK4e9C 5hDQP9iZ8uSFGSLt7gvRoM31ij+5lwjQwcfkZXdzmlXEinveQi8OykBqSQXf4ymILdCu wV2g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=E+JCrdQvMrz2F3ronk+Va0Z7oNXLtwkUG5YnDotBCss=; b=fU3YSaujC+DBpjbAR1km4xuW22HcBr1w+OLRi33m9iITkcPnGquZ+M8/wU3/bX1TVG 7eglQ8zOzekSx7/q4PL5Fekk6cRzQjZfcVKTu1RrSazeWuDEQ9uDfcMtfz+9/ADmrST2 aN3PpQQ4mwcz71j+afWVrog2WrVaBU8TzWeRnHknH4vdIJDJdgy3oDlRmZ96aVO8rfv2 DEXAT1aT4sNlnsHlgJ8J5NANDeVo8BVvYL2szYfD8+3R3+h18hnQivzkP6uUbcJ+tcA4 UfnJ3KqQjYXXpiTdOtUw4XUREsnjpoP2NtDF/OL3mPewcNCO0qg8MRD9OcPGQ8Cg90oL gCtA==
X-Gm-Message-State: AOAM531xYHPM8LnnthITDK1viLaQtbZQScvY05kxxTAZyheg+rLzpLg/ uadh3oSrEHpmI3bvEgO6xW90ymbnQ7Cd7p13Ms63W954QQK+eA==
X-Google-Smtp-Source: ABdhPJwJFM2tCtpmaJ0UyUlmbRvOVHy0XCvs5njrQ/uv7yhsaJfc9cIVxuXDxan06oYOkwfugkdjywszYs57G1KYOUY=
X-Received: by 2002:a05:651c:544:: with SMTP id q4mr24766328ljp.105.1625764600342; Thu, 08 Jul 2021 10:16:40 -0700 (PDT)
MIME-Version: 1.0
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 08 Jul 2021 10:16:29 -0700
Message-ID: <CABCOCHQB8=kAXRejif=04ThzbSn87oqvDLB5=oJ2FVcAKrSg4Q@mail.gmail.com>
To: NetMod WG <netmod@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000007dfe1a05c69fd17a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/hQ3nfeqKPAPx7H4mrUcwu89LVLA>
Subject: [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: Thu, 08 Jul 2021 17:16:46 -0000

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