Re: [netmod] Comments on draft-ma-netmod-immutable-flag-06

Jürgen Schönwälder <jschoenwaelder@constructor.university> Tue, 25 April 2023 09:50 UTC

Return-Path: <jschoenwaelder@constructor.university>
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 3558BC1519A0 for <netmod@ietfa.amsl.com>; Tue, 25 Apr 2023 02:50:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.896
X-Spam-Level:
X-Spam-Status: No, score=-1.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, 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 (1024-bit key) header.d=jacobsuniversity.onmicrosoft.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 p1ONDHJy-JeK for <netmod@ietfa.amsl.com>; Tue, 25 Apr 2023 02:50:30 -0700 (PDT)
Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on20629.outbound.protection.outlook.com [IPv6:2a01:111:f400:7eaf::629]) (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 24252C151999 for <netmod@ietf.org>; Tue, 25 Apr 2023 02:50:27 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ayVVcvAZvrSdTJDq8feSUaj507nDBC8rZ4feIOFdb+aWjCa5MbvDyycyFurnfKrkr8Rr2X7Qm/vXOSLVOwp93UwtOK8L7L/68qtw5rW6/rDR52wVfHWLui45GCz9K16GgrD0qHJG9REh5MnTREjtm8H3MYDNLmHRSiCP3YLl2457mkJYusftZRlAYIq32Airufe7RvPRY5gHnIKcACnMZniUaLXbmgz+ZG1aaVTJEzlo4DAvEUqZgk0q5T3yK9XT9yihpB90jcUY9pf5L4KLxSx3BVwb1Lg4B6AVL3ve6atv+3xVVA2TQMh9DuxlLmAJDy7tdiJAw4o7V/b1RJXqfg==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fuM32Is0C8ZgseycTqh+jebus+xqqfR9Md5BhefJ6yE=; b=Pdw6LCghE1KLXc/tc2zC4coPzTEQN/DPjTmGySBJwW8XozupqJ5KcG5oRoFHmpG+4iMj2eiXKiaX0GYWGzqF05FGij1hYhKfNXozPv/xJBn3ilgMubh6Bjq9JsHnDkbC48j5J5XzwVBih2W2WBi3IxoE95EeKrp1A6Iqydu3T4CLLgd1GsL0g9IcwxS6SCzUF4ByoP41wTuZh1QxmdlFn06Zgmjh3ZCMxJxdkd86vpYTR+9L/FYpgTKflft/rWV44o18KhIQZa0AXXnUVdiJlvHJegI3IC4omUzJWcFCAYlGqlQSBakyxghDp74MdRPGpLBcPjSgF4Cz0vgZaAS0bg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=constructor.university; dmarc=pass action=none header.from=constructor.university; dkim=pass header.d=constructor.university; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jacobsuniversity.onmicrosoft.com; s=selector2-jacobsuniversity-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=fuM32Is0C8ZgseycTqh+jebus+xqqfR9Md5BhefJ6yE=; b=rzSLjn6mZuX76VeeHlKBtMpnRSwnArMU337UWy1XTNXf7sj70v+UeLLk+5dcuDLvV/kc5gBZkeEb4L2XfjPo4BomD+8T0YLooyxPvrI3QSLNI2tV9ItyehJr1xrRrKJIASb0jioMifZEOczpfzUJYarl9RGCqSxGCnNFD771FaU=
Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=constructor.university;
Received: from GVXP190MB1991.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:3::6) by AS4P190MB1782.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:4b2::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6319.33; Tue, 25 Apr 2023 09:50:21 +0000
Received: from GVXP190MB1991.EURP190.PROD.OUTLOOK.COM ([fe80::581b:1ec3:e89b:df50]) by GVXP190MB1991.EURP190.PROD.OUTLOOK.COM ([fe80::581b:1ec3:e89b:df50%8]) with mapi id 15.20.6319.033; Tue, 25 Apr 2023 09:50:21 +0000
Date: Tue, 25 Apr 2023 11:50:20 +0200
From: Jürgen Schönwälder <jschoenwaelder@constructor.university>
To: "maqiufang (A)" <maqiufang1=40huawei.com@dmarc.ietf.org>
Cc: Kent Watsen <kent+ietf@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>, "Jan Lindblad (jlindbla)" <jlindbla@cisco.com>
Message-ID: <20230425095020.areq7etekgquaqyi@anna>
Reply-To: Jürgen Schönwälder <jschoenwaelder@constructor.university>
Mail-Followup-To: "maqiufang (A)" <maqiufang1=40huawei.com@dmarc.ietf.org>, Kent Watsen <kent+ietf@watsen.net>, "netmod@ietf.org" <netmod@ietf.org>, "Jan Lindblad (jlindbla)" <jlindbla@cisco.com>
References: <59DAD4D3-754D-41E1-A4D4-0CA8FEA263F1@cisco.com> <BY5PR11MB41964C481FCE2619020F1D7AB5929@BY5PR11MB4196.namprd11.prod.outlook.com> <010001874900b5fd-f56744b5-974d-40b2-8177-221a23de41ca-000000@email.amazonses.com> <BY5PR11MB419677D444D44125DD69C91CB5909@BY5PR11MB4196.namprd11.prod.outlook.com> <0100018752302133-19bdf548-f01c-4b78-931e-6be80ec494fa-000000@email.amazonses.com> <b8e370d2ad5042c99c6f0d98345d3c5b@huawei.com> <C2D8A539-4AF9-44FA-92E8-9A9DC6CE7971@cisco.com> <d37925b807604b76b92cbf2f32341dab@huawei.com> <01000187ae695684-69ae4a4b-eeb9-4827-8b65-ff590ed52db7-000000@email.amazonses.com> <793be10da43c4958aa7565dd8c29f16c@huawei.com>
Content-Type: text/plain; charset="utf-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <793be10da43c4958aa7565dd8c29f16c@huawei.com>
X-ClientProxiedBy: AM0PR02CA0181.eurprd02.prod.outlook.com (2603:10a6:20b:28e::18) To GVXP190MB1991.EURP190.PROD.OUTLOOK.COM (2603:10a6:150:3::6)
MIME-Version: 1.0
X-MS-PublicTrafficType: Email
X-MS-TrafficTypeDiagnostic: GVXP190MB1991:EE_|AS4P190MB1782:EE_
X-MS-Office365-Filtering-Correlation-Id: a98195e8-5c3b-4375-f6df-08db45727c35
X-MS-Exchange-SenderADCheck: 1
X-MS-Exchange-AntiSpam-Relay: 0
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: Xbiq5DOAml37dyBzHnMSeSvBSaI6PClCVEQiv1fj8MASttL+tonUYjGzR/O8jwIvlCNodQzVxMBlSHVnIrXLNryeFcQDKyzODtdl1M2LnEjUMGhqMSn64bWrPPBdxFP39ofzIZPfow5OGp/809B8e6ElH9ZGtu43ndB+DPaVcu0hZ2XwHz0UzIf0VFdrN3bI9kS7yyN8sLHZXg2t/nHi05U/BmbDXkXCvoyAxzTQXcNwvy5RU8Yu3Kv290/6w7mFI00/CWPZda+08Iyq8agES4VuTmvW7iPus63FQh+XVnJ+qixJAlXvnJ+/+ImqFlzULz8x8wACc508JoGxCmiAOZfSkYXgDqb+A/I8aFdiKw54Wkkbuo2I91Lz4QckpflsXlTeLIiwmaX/r+BmJO+XSoez3I8OacPNYluxIS38jOSkHmBwoD6HcXWbAnf9b+WzbtawYGr2NwinVQaPOj9HW2iW5MqnKOqdydjS/n8NuELEZo23/6X696oNjpzZDCFAWZFJixVpdiCPGkhxiFnjhCk4ebD759Esg4aRfV7kBb09287AKFLvPeF4qZ0G6usM4h3L7dqduV4ba5Gnt2WTOLNMnkVWs4ZG0VEms7jhheWmG8eGnbZCKxhmQBP1Bng/
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:GVXP190MB1991.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(13230028)(7916004)(376002)(136003)(396003)(346002)(366004)(39860400002)(451199021)(26005)(1076003)(6506007)(6512007)(9686003)(186003)(33716001)(40140700001)(54906003)(86362001)(478600001)(8936002)(3450700001)(38350700002)(38100700002)(8676002)(5660300002)(316002)(786003)(66476007)(66556008)(66946007)(4326008)(41300700001)(2906002)(85202003)(6486002)(85182001)(52116002)(41320700001)(46492015); DIR:OUT; SFP:1101;
X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1
X-MS-Exchange-AntiSpam-MessageData-0: Cuw5e8NGsuZotzL3boHasvSCBFvDVVMqqeQb43Hd4Wy2vcjs4av5VAmuSkAFsIVhqUTUqF137tlgO2uI0d+HyYE+96fB51uPUXz93wWp0BVGfiA3TwZOyfvBmEuYC6f0ZICPWF3SGGd5oW8i4XM5zONkPWiDbCWfb8tLeVJm7RV9nLhpwKmqgGV2BjkERpyKZ3yAx6m0UyrGTaYdbw90FNB0Uahus+b0YKO+eVZnP41FGqvwtdVNYpE2l2a245KvT3luEspqV+y9dY3TAsizuXsC1Q6gr4U2nwa74dH4yLYJZYoPDOUSt9yNO2cIWwaS605s6bvJze89eNveQGkplqlQIp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045TtVSLq3X9D6OsUg0Zr93y312fvvFQ8EV5NNnkB98c5llTtPlgGnYAqUPD7XbY8HwwpFfnQtOKdzxNnT+ApK7bp6K1EaU4M9hv8J6Lfh4MHLowxTHg12Vf2uQaUkxgf9zo6iMtGUzarWSMGVBeaGEkZ/TKBiX0+oUPLbuQAHB09y34jU8lgziCi1VNgbZC8XqEQEZDyN/zGGrJ/yXXxCUi0vbuK6i3Xs=
X-OriginatorOrg: constructor.university
X-MS-Exchange-CrossTenant-Network-Message-Id: a98195e8-5c3b-4375-f6df-08db45727c35
X-MS-Exchange-CrossTenant-AuthSource: GVXP190MB1991.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Apr 2023 09:50:21.7682 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: f78e973e-5c0b-4ab8-bbd7-9887c95a8ebd
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: 93dfrZKxVi9kpXQhL1vkFubJgK7WOFPDtq+Qz+9G+BsHXKccVqzTLIZFKVxe5ZflS5u61Gf6MTzoxzGrNFjTn+0iV5YWqbQUvxNz51hq+O0=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS4P190MB1782
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/ePVYAJSQfqbt3iaWITPj8vEfGP4>
Subject: Re: [netmod] Comments on draft-ma-netmod-immutable-flag-06
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 25 Apr 2023 09:50:34 -0000

On Mon, Apr 24, 2023 at 08:50:02AM +0000, maqiufang (A) wrote:
> 
> 2) The "immutable" YANG extension statement (not the metadata annotation) designates, at the schema-level, config=true nodes that, when present in <running/startup/candidate>, are system-defined and hence immutable.
> Note that NMDA does allow clients to create an interface entry with an interface-type value which is not yet physically present. Only when the interface physically appears, the type cannot be modified with another value not matching the real value the device is actually in use.
>

My assumption so far is that an interface configuration is matched
against hardware and it is applied if there is matching hardware. In
other words, if an edit makes the interface configuration not match
the hardware anymore, then the config is simply not applied anymore
and the interface is left unconfigured. (The same would happen if you
replace an interface with another that does not match the current
config.) The idea that an interface configuration becomes partly
immutable once it is applied to a matching physical interface is not
really reflecting how I understand the design of N/Y. Also the notion
of immutable data in candidate, which is rather a scratchpad to
assemble bigger changes, seems odd to me.

/js

-- 
Jürgen Schönwälder              Constructor University Bremen gGmbH
Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
Fax:   +49 421 200 3103         <https://constructor.university/>