[netmod] Re: Regarding RFC 7950 Mandatory validation

Andy Bierman <andy@yumaworks.com> Mon, 16 September 2024 20:23 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 BDB40C1522A0 for <netmod@ietfa.amsl.com>; Mon, 16 Sep 2024 13:23:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=yumaworks.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 xAnIoNszUwiy for <netmod@ietfa.amsl.com>; Mon, 16 Sep 2024 13:23:17 -0700 (PDT)
Received: from mail-pj1-x102d.google.com (mail-pj1-x102d.google.com [IPv6:2607:f8b0:4864:20::102d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AE27FC151524 for <netmod@ietf.org>; Mon, 16 Sep 2024 13:23:17 -0700 (PDT)
Received: by mail-pj1-x102d.google.com with SMTP id 98e67ed59e1d1-2d88a8c66b7so406039a91.1 for <netmod@ietf.org>; Mon, 16 Sep 2024 13:23:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks.com; s=google; t=1726518197; x=1727122997; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=nWyt3Kep6akCfKa217y3L05dDfL06QD8HpxvSk4hHQQ=; b=q94qeIzVaPNz9h8WLrfabkE+EdBRN4qnYpjq4tLy9xgMivSCIQNZMhaOXmx3SHjpH7 5MM/r4xUTDcKX44HiOpf+YzJJqZbQii+ciXfeWos8iK4QhvDxiAdv1r2cVoHNC1GVgmp 3q0wJA6B9ENbJ9zGet4EgGk8D9FGWH5EeroZSM6+NB3erKPxk3lZNcR8I56Xfo+irBYc f4OWpx6xbtj/6HjCpVIYbizxMJjKASI88ps5qZ4B1m5VqgwQ5fgKnpJu1IQFu+6fl4A5 pglWTA+FFUrGdtdM8WxWfv5RfF++0h2DKTiFFgjc1rNqhqi5PHMr1/ufCWA526UepQwn ycBA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726518197; x=1727122997; h=cc: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=nWyt3Kep6akCfKa217y3L05dDfL06QD8HpxvSk4hHQQ=; b=gZ9JrU793/Br6qZiLVtMZwF4AeXQxdLR7K10xIaHXSKEfvkp9yHhS3LUJyUtF82rFG 1oremNKKV8QahJY6tSY4aUOF4Hw0n8iAjMHdlOP8543biH2DqUUJhOmHST/gfOPFauZy 5UaJ0pVYouWaT60efbu0FB6JeD6Iei8rP/LEA3WXXvq2juSRYGqPSKcVgyXyt8BHzBh2 bXd9Yi+Ps5WDPHF3GF0Cpl0mXDsGnEUndsuynvp/aj/e10w4RggGdGS5oR2CznGM2vcc IrvZHoUW/IwndEl7O/cZF+aVxsnntucp0nQm94HS9ep0ENzlMsKtuhzuT30oRzrp1zQE 2lIg==
X-Gm-Message-State: AOJu0YxkR2KAMs69kFKzxJtwrk0BvsTn5fhnqFnBR3gedZQGK4SddtV1 eLEpIgBWgZHM/XyxEuaeTP3q++GvqY7Z6WgQHXL032cOFzqUxeWOBxPKERcFQ08mCuUHFu2+ncn ZBMWIaV5GdQ/6njFevc9wygfGBvyUeqVYEkBPdJ/yYz3jMKUywts=
X-Google-Smtp-Source: AGHT+IE3e4xSL+rHKCMlhY5bkYMgQ4HkfwCWkyqvRyo71vt3hjfe1t4utlTjlHeonKs0ppZOdN22lWv2qdTwxN96+fk=
X-Received: by 2002:a17:90b:1281:b0:2da:6fc9:1a52 with SMTP id 98e67ed59e1d1-2db9fe865b6mr8235256a91.0.1726518197038; Mon, 16 Sep 2024 13:23:17 -0700 (PDT)
MIME-Version: 1.0
References: <OS3PR01MB5848ECB03174DF2A56B8B81BF19E2@OS3PR01MB5848.jpnprd01.prod.outlook.com>
In-Reply-To: <OS3PR01MB5848ECB03174DF2A56B8B81BF19E2@OS3PR01MB5848.jpnprd01.prod.outlook.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Mon, 16 Sep 2024 13:23:05 -0700
Message-ID: <CABCOCHT2BFSZGxixH32Oovo+go1oBdq=mKVbk=35qk60hNVjvg@mail.gmail.com>
To: "Parthasarathy.R@fujitsu.com" <Parthasarathy.R=40fujitsu.com@dmarc.ietf.org>
Content-Type: multipart/alternative; boundary="000000000000d55423062242576a"
Message-ID-Hash: V6PEYNYHU643NGVYRR7KT3Y4USOG4V5O
X-Message-ID-Hash: V6PEYNYHU643NGVYRR7KT3Y4USOG4V5O
X-MailFrom: andy@yumaworks.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-netmod.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "netmod@ietf.org" <netmod@ietf.org>
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [netmod] Re: Regarding RFC 7950 Mandatory validation
List-Id: NETMOD WG list <netmod.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/a1NMSEXofBp9gyzyLHd1V4MHZAw>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Owner: <mailto:netmod-owner@ietf.org>
List-Post: <mailto:netmod@ietf.org>
List-Subscribe: <mailto:netmod-join@ietf.org>
List-Unsubscribe: <mailto:netmod-leave@ietf.org>

On Mon, Sep 16, 2024 at 10:26 AM Parthasarathy.R@fujitsu.com
<Parthasarathy.R=40fujitsu.com@dmarc.ietf.org> wrote:

> Hi,
>
>             I am a Software Engineer working in Fujitsu’s NMS product
> supporting Netconf devices. I want a clarification in RFC 7950 on the
> behavior of constraint validation in an edit-config request enforced by
> ‘mandatory’ statement. I referred to section 8 in RFC 7950 regarding this
> and from what I see, all edit-config requests should include the
> mandatory leafs. There is no special behavior mentioned on edit-config’s
> operation type as ‘create’ or ‘merge’ or ‘delete’ in the validation section
> of RFC.
>
>
>
>             This ends up in two different interpretations:
>
>    1. All edit-config requests must always include the mandatory
>    attributes irrespective of the operation type is create/merge
>    2. Edit-config requests must include the mandatory attributes only if
>    operation type is create and it can choose to skip if the attribute is
>    already present in Datastore due to previous edit-configs.
>
>
>
> Kindly confirm which interpretation holds good. Also, I would like to
> understand, if, ‘mandatory’ check applies to the payload during Payload
> Parsing stage (mentioned in section 8.3.1 of RFC 7950) for every edit
> config and that all edit config operations must include the mandatory
> attributes into the payload, even if the operation is merge and the
> mandatory attribute exists in the candidate store.
>
>
>
>             Kindly help to clarify.
>
>
>

I do not think this is correct.
The 'mandatory' validation applies to a datastore.
The YANG validation done on the edit-config request ignores the 'config'
contents.
This rpc input parameter is anyxml.
The contents are applied to a datastore in an implementation-specific
manner.



Thanks & Regards,
>
> Partha.
>

Andy


> _______________________________________________
> netmod mailing list -- netmod@ietf.org
> To unsubscribe send an email to netmod-leave@ietf.org
>