Re: [netmod] Follow-up: impact of changing an import statement

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Sat, 01 August 2020 18:47 UTC

Return-Path: <rrahman@cisco.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 4D22A3A0DBD for <netmod@ietfa.amsl.com>; Sat, 1 Aug 2020 11:47:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.62
X-Spam-Level:
X-Spam-Status: No, score=-9.62 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, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=FC760i3b; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=uLcejIiu
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 fkE9vtNp4TZ8 for <netmod@ietfa.amsl.com>; Sat, 1 Aug 2020 11:47:52 -0700 (PDT)
Received: from alln-iport-7.cisco.com (alln-iport-7.cisco.com [173.37.142.94]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 13D503A0DB4 for <netmod@ietf.org>; Sat, 1 Aug 2020 11:47:52 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3236; q=dns/txt; s=iport; t=1596307672; x=1597517272; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=oujhuo+T7046itthnWMBZLbv20F3NAK9ZyGpTQiTb/Q=; b=FC760i3bxuJKT7YCVsZ8jngO/xOTpLsFLwUVXGvdk0Vybq4WS9ODFW95 STw7A5Qh4Bb9W6Z2rILsIXOD3fnQJla5/NmGyZXcN6LAJBgaJOTw8fkWq iBmXC+FECuIWTnTu1vdFN7hhJ8Q/8ftWXIllM0xLW/V0EDZ7/puSrXc8q A=;
IronPort-PHdr: =?us-ascii?q?9a23=3AZlPEgx1Q7igClu0OsmDT+zVfbzU7u7jyIg8e44?= =?us-ascii?q?YmjLQLaKm44pD+JxWEtadvhVTOV56e9vRFlefMqKH8SCoM7MXJvHMDdclKUB?= =?us-ascii?q?kIwYUTkhc7CcGIQUv8MLbxbiM8EcgDMT0t/3yyPUVPXsqrYVrUry6w5DUVEA?= =?us-ascii?q?66KAx0OOnvAY/OnoK72rP695jaeQ4dgj27bPt7Jwm3qgOEsM4QjO4AYqY8wx?= =?us-ascii?q?fEuD1GYeNTkGhpPlmU2R3745S9?=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AfBwCBuCVf/4sNJK1dAxwBAQEBAQE?= =?us-ascii?q?HAQESAQEEBAEBQIFKgVJRB29YLywKhCuDRgONLCWYY4JTA1ULAQEBDAEBHw4?= =?us-ascii?q?CBAEBhEwCF4IcAiQ4EwIDAQELAQEFAQEBAgEGBG2FXAyFcQEBAQMBEhERDAE?= =?us-ascii?q?BNwENAgIBCA4CCAICJgICAhkXFRACBA4FIoMEAYJLAw4gAaZfAoE5iGF2gTK?= =?us-ascii?q?DAQEBBYJKgmMYgg4DBgWBCSqCcINfhj8agUE/gTgMEIJNPoQ9Fwomgk8zgi2?= =?us-ascii?q?PSoMrohiBBQqCYZoJAx6feoVzq1cCBAIEBQIOAQEFgWojgVdwFWUBgj5QFwI?= =?us-ascii?q?Njh+DcTOKI3Q3AgYBBwEBAwl8jycBgRABAQ?=
X-IronPort-AV: E=Sophos;i="5.75,423,1589241600"; d="scan'208";a="520904242"
Received: from alln-core-6.cisco.com ([173.36.13.139]) by alln-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 01 Aug 2020 18:47:45 +0000
Received: from XCH-RCD-004.cisco.com (xch-rcd-004.cisco.com [173.37.102.14]) by alln-core-6.cisco.com (8.15.2/8.15.2) with ESMTPS id 071Ili8e019187 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Sat, 1 Aug 2020 18:47:44 GMT
Received: from xhs-rcd-001.cisco.com (173.37.227.246) by XCH-RCD-004.cisco.com (173.37.102.14) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 1 Aug 2020 13:47:43 -0500
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by xhs-rcd-001.cisco.com (173.37.227.246) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 1 Aug 2020 13:47:43 -0500
Received: from NAM12-DM6-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Sat, 1 Aug 2020 13:47:43 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TF0njX+cJRrdn+YVfcQxAnVexYDUAG3NJGHNOfRHYQk87oZ+SS40vr2zaJOaOf4cgRZm3L/EZabt4faydev/2v/h+jMWnZ6uAYvJSY159m7nHFOqtWa4hpPcPm+p1MbGczrLHjdyxShZQiJ/RlW2EwKf07gXv3D76xO2i+PSZkgp05gehQeTZ+NlMuNLdjvPHN3jJ46/18Yqbl+OWJhbAsopXEmdrS6QLZ2GDi3MVwuFZh6fyP8IwQbbrrwI95KWl67hBFjQOoWm3YF3aBPKptFPDA2nRai3lE1K/YrAvgq+8XtysjvhHRPYxE7I/h51fbaYES1SX1xUStMVsEWHYw==
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-SenderADCheck; bh=oujhuo+T7046itthnWMBZLbv20F3NAK9ZyGpTQiTb/Q=; b=O7F2pdKPIQ9jqen5bvdHm79MVfwh1zWiHXviKGVicIfYPsqwp09mPK747oEg3gpMAGshUqixO4kP4gPhHIQJqcii6aaybRdx3f4PZkhdwbX9pSiyBcC1E8uFrsrEvdPJdCP1tkzQqTiJcAa4XC7L+kOohF9GKTAK/uryzjnlDoOr0bVcreumyz2TtNYh9uXKSge92AY+S1YcaDoN1B3sJ6ezL3ova6pHIeTqDGiQWjpIyApJKTtUEKfxtnuoezTwyDcZMoEBZVm5HrCyYrJzK8iUSy2lSoM4gve5Vjjeq9bnNwmZot6qfgdDwFZBhVhpFp2OE+7GAPduEalYBkE9eQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oujhuo+T7046itthnWMBZLbv20F3NAK9ZyGpTQiTb/Q=; b=uLcejIiu3fyhFv+vFZR7BHAG8QDMsVwR3RdN6uxRBZlKNvEqrmDL12nHaix/9bks2hZnhbxaTm3BIaMmR65qS8nyqay8+7Rcf2OC8f7AGbd2+DwkXvzG2XvPQmpUnz0E24W8DAVNn1N4F3hJWR3fcqhRgmH/MXMBpEdS71yWUso=
Received: from BN6PR11MB3875.namprd11.prod.outlook.com (2603:10b6:405:80::37) by BN6PR11MB4164.namprd11.prod.outlook.com (2603:10b6:405:82::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3239.18; Sat, 1 Aug 2020 18:47:42 +0000
Received: from BN6PR11MB3875.namprd11.prod.outlook.com ([fe80::3076:a505:335e:a8ff]) by BN6PR11MB3875.namprd11.prod.outlook.com ([fe80::3076:a505:335e:a8ff%6]) with mapi id 15.20.3239.020; Sat, 1 Aug 2020 18:47:42 +0000
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Follow-up: impact of changing an import statement
Thread-Index: AQHWZ6634XZdD3nh3kGPjRnP8If83akivMYAgACZRIA=
Date: Sat, 1 Aug 2020 18:47:42 +0000
Message-ID: <07335FA9-3D3A-4563-9B21-15F178EBBB99@cisco.com>
References: <E0547418-ACC4-4D92-8BA6-080A55B536AC@cisco.com> <20200801053906.n5cnacpzrknhkrnc@anna.jacobs.jacobs-university.de>
In-Reply-To: <20200801053906.n5cnacpzrknhkrnc@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.37.20051002
authentication-results: jacobs-university.de; dkim=none (message not signed) header.d=none;jacobs-university.de; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [142.113.229.50]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 1a86e780-240e-4204-137b-08d8364b5f6d
x-ms-traffictypediagnostic: BN6PR11MB4164:
x-microsoft-antispam-prvs: <BN6PR11MB4164C8130391096D584B1B1AAB4F0@BN6PR11MB4164.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: mG0uDdHb92I7NQIG4NfHBrtgfFZQEXRlgHRGwkdHnN6BmDNrdF+0yOsc0EPcwPk7Sq/IOl7ysoy228vN+Y5T48oyNHXTViwmRA1sQlzo65nGhsVApCfmET/FmSGLwOq4SYYQPhM4xh9OU/W0a3+e3ms/erYgY8vmCVH89TdUPigbKSqB/fqIMqMcMTwzTf+kbDoY/4o1RElzM69DZKYy8UjYJGgF26R//H463mjn/Opmu7G27Woa2Si40qu+tX44GmahlyUyIlmPwLL/eEAbA7LtM7FqW2l5vo113GARmazUb1pjxEJM/oBOh8AxlQIxw+5FXTQusy9k1ZwLNjIr1KNOKGNFp7LxITSI90n9ohb4OimX+LUE7D59o+prAA26nD1fJxyvdFEEkFcN8BnDvA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR11MB3875.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(366004)(396003)(346002)(376002)(39860400002)(136003)(66446008)(66476007)(66556008)(66946007)(76116006)(2906002)(5660300002)(6506007)(4326008)(33656002)(8676002)(91956017)(478600001)(6512007)(36756003)(2616005)(26005)(53546011)(86362001)(64756008)(6486002)(186003)(8936002)(83080400001)(71200400001)(316002)(6916009); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: m+OYcJCqckJcG0htSB6gyTot+kjYH7ABbCWmctqcgjiaAgvLJ5mvOGEac8jaMfBHsKdotbaxhVj7acI6iL2OBODazhbJNUoilM0A07T7vwtYuQyLG0xZXJNW3D71VSNduySqDTfXACGZTDWKIsErAQDGDE47GG9aWiVvO98DVVPngElGspyOiFtesspuvcyxE56j9tQvT9EhU0g/kfDQYJph4z4CsGOtXhibAILEaWuy+zKSPKlQOjCIi5L/iHykk2Mk61BRxgP7lCDBypesugD58ttZEpxBn4yT8HvXWN73WugjjcI2lEjjWkGFWzHwHeK8NhiFfOj6uuhb8Es4LCBcstwjU8zjcwjUY3oJakJWvUOAJF0ts2JZ5PvF9LyCAV9Sp0piyyQ2Tt+OI0iCNZzWwk892QoxCUiW1uNTOMhsT+oOAPvGmuGypfCIXPmqvNjB2M93xEYtjoUs8fYhQrQGY98/w8jQ/oTfJqvvyT2URJg93BxjqrnqOh9zCUzODbc9+mvBxYLplL1kzHhFodFqimg296e5Tbo+Foo39BjEr3to69sSqgaK1RMIigWxh8V/xiPxS+yrxjCbTFFwZZESipZV57nGOqtWpAAg3g9F4Zo0AJbXpKtOl0IWVhQc4VTaKxhdlrp5V+rRP9NVGw==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <DD6613F7957757448253FB110DC46869@namprd11.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BN6PR11MB3875.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 1a86e780-240e-4204-137b-08d8364b5f6d
X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Aug 2020 18:47:42.3166 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: uqn4EgDQXYaEAlWoC7LmxNz29erYUvH8O/o+IRESjfS2r+JfVegdsknG+nsWGkPbCnUVOVZ/PMOvEDQinQYHUQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB4164
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.14, xch-rcd-004.cisco.com
X-Outbound-Node: alln-core-6.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/FVN4dF5GH5ZRBX514QbTpfX1Ax4>
Subject: Re: [netmod] Follow-up: impact of changing an import statement
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: Sat, 01 Aug 2020 18:47:55 -0000

On 2020-08-01, 1:39 AM, "Juergen Schoenwaelder" <j.schoenwaelder@jacobs-university.de> wrote:

    On Sat, Aug 01, 2020 at 02:51:54AM +0000, Reshad Rahman (rrahman) wrote:
    > WG,
    > 
    > Following up from the discussions during NETMOD meeting on Thursday. One of the main open topics is what to do when an import stmt is changed, for example
    > 
    >   1.  Module A (1.0.0) imports module B using “2.0.0 or derived”. There is no version 3+ for module B so module A uses 2.Y.Z
    >   2.  A new revision 3.0.0 of module B is created AND there is a change in module A to import module B using “3.0.0 or derived”.

    What does "2.0.0 or derived" mean? Does it mean (i) any module >=
    2.0.0 or does it mean (ii) any (module >= 2.0.0 && < 3.0.0)?
It currently means (i). Kent asked about this on slide 12 during the meeting stating he believes it should be (ii). My response was that this has been discussed among the authors and there's no  agreement among us right now. I think Rob W has an AI from the WG meeting on this.
 
    > Authors/contributors have discussed 2 options and right now we don’t have unanimity:
    > 
    >   1.  Option A: depending on the impact on the importing module A, the import-stmt is deemed BC or NBC. E.g. if the only NBC change in the  imported module is  to a type which the importing module does NOT use, that’s a BC change for the importing module.
    >   2.  Option B: consider the import-stmt change as a BC change and resolve this elsewhere e.g. YANG-Packages or YANG-Library.

    Whether a change is BC or not always depends on which definitions have
    changed, how they have changed, and how these definitions are used. So
    the answer very likely must be option 1. Option 2 also seems to push
    the problem elsewhere (packages, library) without providing the
    details.
I agree.

We have discussed a bit how this would be done but that was right before the IETF. With YANG-Packages, the package version would be modified accordingly and a client would need to do schema comparison. 

Thanks for the input,
Reshad.

    /js

    -- 
    Juergen Schoenwaelder           Jacobs University Bremen gGmbH
    Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
    Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>