Re: [Netmod-ver-dt] Resolving package conflicts

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Wed, 11 September 2019 20:49 UTC

Return-Path: <rrahman@cisco.com>
X-Original-To: netmod-ver-dt@ietfa.amsl.com
Delivered-To: netmod-ver-dt@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 2D96D120227 for <netmod-ver-dt@ietfa.amsl.com>; Wed, 11 Sep 2019 13:49:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.499
X-Spam-Level:
X-Spam-Status: No, score=-14.499 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, 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=LovqcF/t; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=wtsN97Z9
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 syso8nRop0GP for <netmod-ver-dt@ietfa.amsl.com>; Wed, 11 Sep 2019 13:49:48 -0700 (PDT)
Received: from rcdn-iport-2.cisco.com (rcdn-iport-2.cisco.com [173.37.86.73]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 42319120289 for <netmod-ver-dt@ietf.org>; Wed, 11 Sep 2019 13:49:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=11471; q=dns/txt; s=iport; t=1568234988; x=1569444588; h=from:to:subject:date:message-id:mime-version; bh=2+QxZq1hBNzg89RsYwNYOcIDkn7rP+kMy1fCOwPWMrU=; b=LovqcF/tPQ7FAVcgGvDkWvPWZybTi8LtdvowpQ5cbz+Ds8+suMxYzoCE Lr1RzsVqDDeUCmSfYrbRI42UB0NfZpH3nc8R3OtubdQFDJQPutM0rOFEo W/owmZ93H5gTFTCNEIdabCud09uU0h73TOfn15eTrrfjTgp1voWaz55g4 s=;
IronPort-PHdr: 9a23:D9Rl+RbegH22b0rWtjx/IUj/LSx94ef9IxIV55w7irlHbqWk+dH4MVfC4el20gebRp3VvvRDjeee87vtX2AN+96giDgDa9QNMn1NksAKh0olCc+BB1f8KavwdSU6Gc1EfFRk5Hq8d0NSHZW2ag==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0DuBQA7XXld/4oNJK1lHAEBAQQBAQcEAQGBZ4EWL1ADbVYgBAsqhCGDRwOKZk2CD5MUhFyCUgNUCQEBAQwBAS0CAQGEPwIXgj4jOBMCAwkBAQQBAQECAQYEbYUuDIVKAQMDEhEdAQE4EQEIEQMBAigDAgQwFAkKBAESIoMAAYEdTQMdAQKgKgKBOIhhc4Eygn0BAQWCR4JDGIIWCYE0i3gYgUA/gTgfgkw+hGQWglUygiaPQIUhl2oKgiGMDwaIYhuZCo1/mG4CBAIEBQIOAQEFgWkhgVhwFTsqAYJBgkKDcopTc4Epjn8BAQ
X-IronPort-AV: E=Sophos;i="5.64,494,1559520000"; d="scan'208,217";a="632498245"
Received: from alln-core-5.cisco.com ([173.36.13.138]) by rcdn-iport-2.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 11 Sep 2019 20:49:45 +0000
Received: from XCH-ALN-012.cisco.com (xch-aln-012.cisco.com [173.36.7.22]) by alln-core-5.cisco.com (8.15.2/8.15.2) with ESMTPS id x8BKnjw2015158 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL) for <netmod-ver-dt@ietf.org>; Wed, 11 Sep 2019 20:49:45 GMT
Received: from xhs-rtp-003.cisco.com (64.101.210.230) by XCH-ALN-012.cisco.com (173.36.7.22) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 11 Sep 2019 15:49:44 -0500
Received: from xhs-rtp-002.cisco.com (64.101.210.229) by xhs-rtp-003.cisco.com (64.101.210.230) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 11 Sep 2019 16:49:44 -0400
Received: from NAM03-DM3-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-002.cisco.com (64.101.210.229) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 11 Sep 2019 16:49:44 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DUE6MP3OXq6Eb7g8Viy3oc2oq6/OG1TIUYLfl/ylrW9rEt+XQSVlY1er1wOhCh0uOw0Tjb30+I+LOHgyaBNF5fvyiO0PIqe++6EmMpQn9NpGpFF0HAV6xKQSu41wCNENLWvf1YMreeIpLwRmDeMH1rfvK0ETAab+FrRkGN7cTNMagBb5jz3kgd6nkWBzChJY1+eaL+PReb07QEAjoDf49l2tGYNGCBkBu5B13lAAe/RrmDYF9luMuvuTYv+amhdqu6F31YqC4mWk4kDgeWuDcTaIEaSD5brQgYzRAYtucAw6OJT0w14gsaaGEwDBudNRRp2kV3K/zRpnk+Fa6MUw8A==
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=2+QxZq1hBNzg89RsYwNYOcIDkn7rP+kMy1fCOwPWMrU=; b=GPJU0l1zOQWc82Vl8zZ+Bwyl04C1+W1iyj93RrXEthhcrMAWNzIE9AHz6fBE/25creebWMJRB5gZK1/8OkkxzwkrEMYciTVsVxgly29kYQxmkQ96N2miFyg4A7Qt3YYiBR4cHuz1yGKuYWC9E2cpSJmgayNjqQREOOVj1/CtVEVh1EysCEGDxaybmOdaw15rtAd3pWbUHe3WA2CtfItQzOELJEy+qS5ZDpIcvjrTb0hA3VAzM+FSaGP80r7Xdh/eiPh8wvvpUvq9K5yzt7rCJ0C8oJsrlXbxL4l4k34ViFykv/z7OImFY0HmstUGSjvI66rjq+hdyhNOlFcMMFr3WA==
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=2+QxZq1hBNzg89RsYwNYOcIDkn7rP+kMy1fCOwPWMrU=; b=wtsN97Z9OMpOlxxwncRa8YUXGCNTcj44NNakYehqnCcbwwsdsM7pebDh0V8/apn2hXEhUY7iXnLkGiqFPDrU3YlmCLUyAdcTBnkIN2D1UBimG8uyOsa2RUpO7Vxqj7vfYyxjm3GwuKRW4gtPVa1MG53AxzW6HL+AeolBK4ayNjk=
Received: from MN2PR11MB4157.namprd11.prod.outlook.com (20.179.150.223) by MN2PR11MB3694.namprd11.prod.outlook.com (20.178.253.214) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2241.18; Wed, 11 Sep 2019 20:49:43 +0000
Received: from MN2PR11MB4157.namprd11.prod.outlook.com ([fe80::a8d9:d313:49c9:9b40]) by MN2PR11MB4157.namprd11.prod.outlook.com ([fe80::a8d9:d313:49c9:9b40%5]) with mapi id 15.20.2241.018; Wed, 11 Sep 2019 20:49:43 +0000
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>, "netmod-ver-dt@ietf.org" <netmod-ver-dt@ietf.org>
Thread-Topic: [Netmod-ver-dt] Resolving package conflicts
Thread-Index: AQHVaOJws4r3/Q6aeUqDjXc3AqMGSA==
Date: Wed, 11 Sep 2019 20:49:42 +0000
Message-ID: <00DA18F2-59DD-4F33-BE60-011C7A52E9CF@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.1c.0.190812
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rrahman@cisco.com;
x-originating-ip: [2001:420:2840:1250:6900:eb73:e481:aee6]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 3591ee20-1096-48ec-e90e-08d736f992a2
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MN2PR11MB3694;
x-ms-traffictypediagnostic: MN2PR11MB3694:
x-ms-exchange-purlcount: 2
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <MN2PR11MB3694BDA63C2C1123929E0EDFABB10@MN2PR11MB3694.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0157DEB61B
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(366004)(376002)(346002)(136003)(396003)(189003)(199004)(8676002)(66476007)(66556008)(66446008)(7736002)(81156014)(81166006)(8936002)(64756008)(5660300002)(76116006)(86362001)(6306002)(54896002)(236005)(256004)(99286004)(6246003)(6512007)(53936002)(71190400001)(36756003)(71200400001)(25786009)(2501003)(58126008)(478600001)(6486002)(110136005)(316002)(102836004)(6506007)(53546011)(186003)(14454004)(486006)(46003)(476003)(2616005)(33656002)(6116002)(229853002)(2906002)(6436002)(66946007); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB3694; H:MN2PR11MB4157.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: lrmnZO1m7bBByUEX/1KX4haNLkRHkmRJydmAHfh9JJPFXRLBoCy4CDhAd7sxHVEX8gfL2LiOeje3TC62xmjoRuCRP57SC39nwi1WcYpR6tZ3N3HQe7z3F/hstaOGA2dCCdmg00czzokF03B3QRuQsNH2diy+2dzxHTTYVU1ldPogJawR20+UZq2H4bgKvZVGrn8UXpZDmUsScaWQNp0t+HatbcPwUE+/+AkQDnKYkc17ERK2fD7VdEsJla5K2w7aQ/Sp16A1KwXokzrgEupnhIwKlYrG7eYXBabiguzbAynM7qVXSafd7LQcDHvx/6v+I/tMcQDRQ1G2XWBr7C/3t85YgO/s69f5MCcjoVFmz5QMnLiCPpSxxrZS3mAfRF4vHTSo4Rj0XVciVg6YKLu9uOyDFVRi/HybvsAgYEfkc9E=
Content-Type: multipart/alternative; boundary="_000_00DA18F259DD4F33BE60011C7A52E9CFciscocom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 3591ee20-1096-48ec-e90e-08d736f992a2
X-MS-Exchange-CrossTenant-originalarrivaltime: 11 Sep 2019 20:49:43.0251 (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: nMWtz3/Pv8EjPp/9tHnWI1RGNypp9P9r7zuGmFEb550xGZTkeyPSFRBlivUAf3pbsUQEvn3+oEIGVSeJ5PA4Zw==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3694
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.22, xch-aln-012.cisco.com
X-Outbound-Node: alln-core-5.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod-ver-dt/gf9G1E5Lxd3FdlZJfLRpTSi1CYA>
Subject: Re: [Netmod-ver-dt] Resolving package conflicts
X-BeenThere: netmod-ver-dt@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NetMod WG YANG Model Versioning Design Team <netmod-ver-dt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod-ver-dt>, <mailto:netmod-ver-dt-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod-ver-dt/>
List-Post: <mailto:netmod-ver-dt@ietf.org>
List-Help: <mailto:netmod-ver-dt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod-ver-dt>, <mailto:netmod-ver-dt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 11 Sep 2019 20:49:50 -0000

No objections, makes sense.

From: Netmod-ver-dt <netmod-ver-dt-bounces@ietf.org> on behalf of "Rob Wilton (rwilton)" <rwilton@cisco.com>
Date: Wednesday, September 11, 2019 at 6:00 AM
To: "netmod-ver-dt@ietf.org" <netmod-ver-dt@ietf.org>
Subject: [Netmod-ver-dt] Resolving package conflicts

In the packages draft it is possible to for a package definition to combine modules from two separate packages which may conflict.  I.e. more than one version of a module might end up in the resultant package, or the import dependencies might need to be fixed.

This is OK, because the packages draft requires that these conflicts are always explicitly resolved by listing the specific module versions in the combined package, so the problem is solved.

But what about if we define a package ietf-base@1.0.0<mailto:ietf-base@1.0.0> that contains, say, 10 modules?

This package might be imported by a hypothetical ietf-routing@1.0.0<mailto:ietf-routing@1.0.0>.

Separately there might be a hypothetical ietf-l2vpn@1.0.0<mailto:ietf-l2vpn@1.0.0> package that has been published later and uses an updated version of ietf-base package, say ietf-base@1.5.0<mailto:ietf-base@1.5.0>, that may contain BC updates to several of the modules.

Say a device wants to implement a my-packages@0.5.0<mailto:my-packages@0.5.0> module that imports both ietf-routing@1.0.0<mailto:ietf-routing@1.0.0> and ietf-l2vpn@1..0.0<mailto:ietf-l2vpn@1.0.0>.  Currently the packages draft would require the my-packages definition to explicitly re-state each of the modules in ietf-base@1.5.0<mailto:ietf-base@1.5.0> that differed ietf-base@1.0.0<mailto:ietf-base@1.0.0> (because only a single version of a module can be implemented, and all conflicts must be explicitly resolved).

This works, but I’m wondering whether that might become overly verbose.  Hence, I’m thinking that it might be useful for the my-packages@0.5.0<mailto:my-packages@0.5.0> definition to explicitly list ietf-base@1.5.0<mailto:ietf-base@1.5.0> as a direct package import, stating that it is replacing ietf-base@1.0.0<mailto:ietf-base@1.0.0> (which is indirectly imported via ietf-routing@1.0.0<mailto:ietf-routing@1.0.0>).  Avoiding the need to explicitly list the conflicting modules.  In fact, we could require that all conflicting imported package versions must also be explicitly resolved, just like for modules.

Does anyone have any objections to this?

Thanks,
Rob