[yang-doctors] The use of must and error message for config false!
Dhruv Dhody <dd@dhruvdhody.com> Thu, 17 November 2022 13:23 UTC
Return-Path: <dd@dhruvdhody.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 67368C14CE40 for <yang-doctors@ietfa.amsl.com>; Thu, 17 Nov 2022 05:23:33 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.893
X-Spam-Level:
X-Spam-Status: No, score=-1.893 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=dhruvdhody-com.20210112.gappssmtp.com
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 hJ9PhRDs8sXo for <yang-doctors@ietfa.amsl.com>; Thu, 17 Nov 2022 05:23:28 -0800 (PST)
Received: from mail-vs1-xe2d.google.com (mail-vs1-xe2d.google.com [IPv6:2607:f8b0:4864:20::e2d]) (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 EBC97C1524C1 for <yang-doctors@ietf.org>; Thu, 17 Nov 2022 05:23:28 -0800 (PST)
Received: by mail-vs1-xe2d.google.com with SMTP id n68so1498006vsc.3 for <yang-doctors@ietf.org>; Thu, 17 Nov 2022 05:23:28 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dhruvdhody-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=omc2xe7IyVzU0/rw2TUBq+G9ijlgptSyp0FgCj11SQ8=; b=taWJ/XLvKHjPVLQNC/F8t3FZKToGRvDiA4avRSxPadky+S0NnforNVBrRVblB6ALjK A+qis2qye1sbjojInablWWo9wWar21nBfqpXBinDcvhpwnwGbYz7CUK83iGMoZfnkYD4 CoTzl0E/Y0cvu4/LAbnqKbJ7Wean3vOZ3XC2Bw8EWbrxsbNKlll6K24ijYFGSh/UoYol iDwcuUIycpykPQe+hjIBTaPKj1/VKoNFtHpT4bzbUYbD7NUWI43pbFAGC/6I7IozgBSa GqsnzkKiTPVoBp9lx3RaQD2Hg61ofCaR1IpDU9GjeWpWruevN4O8DxAmpA+pWySTBBqM m5QA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=omc2xe7IyVzU0/rw2TUBq+G9ijlgptSyp0FgCj11SQ8=; b=vB5JKjnNFMjh21kLN79/Tchopj7GfmONrLO9MdW0fCS40OtUs1Kk60BEwmFXTdkh7B C4YvMQfTA33PHvMr0Nq2ngkW3vvMSh4HpADxTRb6Pj4TrFiN7g7aeW5JccTFLNamfJsh VKVAWelSy5EbRGMFVkvmH/dwQGFk3iiXqu8MuPRBh1E+BzikeQ/psYJq3qo3qzyl9ktr 9H+VLBK4I4Pl/OewMtgTOQ/f7rXc2pENMJxnCkT7AaWUrTwIzwM4HR+5QL/PrLfGyzhp jUEiTecfGDm7GIhk46/f9Ph0yxUJAIxeZ3lBbYwFWnTgppY1IhHTtyGuYAjU6uWg36qZ y9uA==
X-Gm-Message-State: ANoB5pnxqmIUcZXq3uohTW0stAfdc8XyuianBZFL9lRlfIRm3iT4CO4j aBXa6QDA+/UlmICevWX0Cjn1OjkXa5URToX4xKohK9DPBOLja7aF
X-Google-Smtp-Source: AA0mqf5QqmSq7OwOHSMR9YIfzonkvf6pqvDNTu9OesGeZlLgtNdDtZl5PEq+k90QOQg6nIWBtXdfBwwRAb5h4AwuHkE=
X-Received: by 2002:a67:6084:0:b0:3a7:cc39:35c3 with SMTP id u126-20020a676084000000b003a7cc3935c3mr1632487vsb.83.1668691407754; Thu, 17 Nov 2022 05:23:27 -0800 (PST)
MIME-Version: 1.0
From: Dhruv Dhody <dd@dhruvdhody.com>
Date: Thu, 17 Nov 2022 13:22:51 +0000
Message-ID: <CAP7zK5Y5fGS3zNyPX49LZcjmXbuWcWPQcDEGudgcqA=Fi1DDNg@mail.gmail.com>
To: yang-doctors@ietf.org
Cc: tom petch <ietfc@btconnect.com>, pce-chairs <pce-chairs@ietf.org>, draft-ietf-pce-pcep-yang@ietf.org
Content-Type: multipart/alternative; boundary="000000000000996d3505edaa7ed9"
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/gWnXnyNHPVv_nZB1PQjThAwP1JY>
Subject: [yang-doctors] The use of must and error message for config false!
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 Nov 2022 13:23:33 -0000
Hi, Tom (in cc) gave this comment on draft-ietf-pce-pcep-yang regarding the use of must and error-message for config false nodes-> > I do not understand the use of must + error-message for config false. I > am used to it for validating an update and cannot see when this message > will be generated. This occurs in a number of places. > > My reply was -> -- https://www.rfc-editor.org/rfc/rfc7950.html#section-7.5.3 says "The constraint is enforced according to the rules in Section 8 <https://www.rfc-editor.org/rfc/rfc7950.html#section-8>." where https://www.rfc-editor.org/rfc/rfc7950.html#section-8.1 says "If the constraint is defined on state data, it MUST be true in a valid state data tree." I did not see any guidance on what happens with error-message in this case. I have kept this comment pending for now. I will check with YANG experts! -- And thus this email! Any suggestions? Thoughts? Thanks! Dhruv