[netconf] Re: YANG Model for the NETCONF default attribute

Per Andersson <per.ietf@ionio.se> Mon, 01 July 2024 15:35 UTC

Return-Path: <perkietf@gmail.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8EC7BC18DBA6 for <netconf@ietfa.amsl.com>; Mon, 1 Jul 2024 08:35:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.655
X-Spam-Level:
X-Spam-Status: No, score=-1.655 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.001, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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] autolearn=no autolearn_force=no
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 oYx9MraCwviJ for <netconf@ietfa.amsl.com>; Mon, 1 Jul 2024 08:35:47 -0700 (PDT)
Received: from mail-oa1-f42.google.com (mail-oa1-f42.google.com [209.85.160.42]) (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 02A0AC18DB9B for <netconf@ietf.org>; Mon, 1 Jul 2024 08:35:47 -0700 (PDT)
Received: by mail-oa1-f42.google.com with SMTP id 586e51a60fabf-25c4d8ae511so1586323fac.2 for <netconf@ietf.org>; Mon, 01 Jul 2024 08:35:46 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719848146; x=1720452946; h=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=Pf9TsgfLKNMCch0IBSYWsjJXVMpjnH81GWK3TqisBRI=; b=h7c0UtKenzEeVLkiFRzi9Y32jV37PpYE7cc3KZEKSlhoGje/SizzcCGvu6B1+rK4t1 8SdTy+g4Qd+uNSg4NeLjQQc3BF7N/fkhZKfzvocdc9+RVWtMMyO24XtVo2wwSWTtMHgW IGxOZ1fLyJgsSEs955ChnPhaxYDREFljwAEHUIF8+YR33RLd3XL2wiZZvA8p0KFai7Yv KoO8uYDB2OLc9RHUZndYDZeqnS0isvBI8hzRlmXoyxfU8OidOYkyw+mhJB8e5M1ffClS tzOzQG34rPnRHSv3QbD3Q4fdNJz9asBWe4kmGzCrVv1CJqcPqW4XPyKpERInwuh4yhKU 0rdA==
X-Gm-Message-State: AOJu0Ywi2Xjw0iea+qq+JDJgUoJRT7ObIcdxNZD+EqiajdOhbhsuSHDU RnB2srYzvOrxA+l8ZbhTyX99DmF4aHmOFNaNpP13jLRKJEo9tEzi75Gib7RS
X-Google-Smtp-Source: AGHT+IEl7ys4+QafmDoWr2+4LzBAzOhnPUNCq9zwGvNrgYUb1+bO7TCguiUgQD35X+Et3EQ3L41TWQ==
X-Received: by 2002:a05:6870:164b:b0:25d:7896:e2a1 with SMTP id 586e51a60fabf-25db361da14mr6130668fac.50.1719848146042; Mon, 01 Jul 2024 08:35:46 -0700 (PDT)
Received: from mail-pf1-f182.google.com (mail-pf1-f182.google.com. [209.85.210.182]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7080205ebbcsm6653753b3a.40.2024.07.01.08.35.45 for <netconf@ietf.org> (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 01 Jul 2024 08:35:45 -0700 (PDT)
Received: by mail-pf1-f182.google.com with SMTP id d2e1a72fcca58-706738c209bso1749136b3a.3 for <netconf@ietf.org>; Mon, 01 Jul 2024 08:35:45 -0700 (PDT)
X-Received: by 2002:a05:6a20:1a19:b0:1be:f039:c15b with SMTP id adf61e73a8af0-1bef624add8mr3891294637.62.1719848145498; Mon, 01 Jul 2024 08:35:45 -0700 (PDT)
MIME-Version: 1.0
References: <CACvbXWHz+n1aZdyC8pSd2S_zfUpz4SMU9SNhWmJZGZYpWKjGxA@mail.gmail.com>
In-Reply-To: <CACvbXWHz+n1aZdyC8pSd2S_zfUpz4SMU9SNhWmJZGZYpWKjGxA@mail.gmail.com>
From: Per Andersson <per.ietf@ionio.se>
Date: Mon, 01 Jul 2024 15:35:33 +0000
X-Gmail-Original-Message-ID: <CACvbXWEb9PBwo+gZmNtKvifkV0zQBMU5GmaJ9wktTBwjOj8n=w@mail.gmail.com>
Message-ID: <CACvbXWEb9PBwo+gZmNtKvifkV0zQBMU5GmaJ9wktTBwjOj8n=w@mail.gmail.com>
To: netconf@ietf.org
Content-Type: text/plain; charset="UTF-8"
Message-ID-Hash: GK6E77YJB5TXDPHFDCS3QMDJHTS6IAX5
X-Message-ID-Hash: GK6E77YJB5TXDPHFDCS3QMDJHTS6IAX5
X-MailFrom: perkietf@gmail.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-netconf.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [netconf] Re: YANG Model for the NETCONF default attribute
List-Id: NETCONF WG list <netconf.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/52RpwSWDJut8I2wQCk3-TP0IWWA>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Owner: <mailto:netconf-owner@ietf.org>
List-Post: <mailto:netconf@ietf.org>
List-Subscribe: <mailto:netconf-join@ietf.org>
List-Unsubscribe: <mailto:netconf-leave@ietf.org>

Hi!

This draft is not necessary since it is already defined that the
"ietf-netconf-with-defaults" module name MUST be used for
the RESTCONF JSON encoding with the "default" attribute.

See RFC 8040 Section 4.8.9. The "with-defaults" Query Parameter:

   If the "with-defaults" parameter is set to "report-all-tagged", then
   the server MUST adhere to the default-reporting behavior defined in
   Section 3.4 of [RFC6243].  Metadata is reported by the server as
   specified in Section 5.3.  The XML encoding for the "default"
   attribute sent by the server for default nodes is defined in
   Section 6 of [RFC6243].  The JSON encoding for the "default"
   attribute MUST use the same values, as defined in [RFC6243], but
   encoded according to the rules in [RFC7952].  The module name
   "ietf-netconf-with-defaults" MUST be used for the "default"
   attribute.


--
Per