Re: [Netmod-ver-dt] Version selection

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Wed, 23 October 2019 22:32 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 A80AD12008B for <netmod-ver-dt@ietfa.amsl.com>; Wed, 23 Oct 2019 15:32:20 -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=IfCaPBOz; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=D96Q1T2f
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 TbyGnyrsVP16 for <netmod-ver-dt@ietfa.amsl.com>; Wed, 23 Oct 2019 15:32:18 -0700 (PDT)
Received: from rcdn-iport-7.cisco.com (rcdn-iport-7.cisco.com [173.37.86.78]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3DC5212001A for <netmod-ver-dt@ietf.org>; Wed, 23 Oct 2019 15:32:18 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=21065; q=dns/txt; s=iport; t=1571869938; x=1573079538; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=82dhXbXY/GrHS0QHY4mIDRCON9vwzkb+aM/uB2ezSRE=; b=IfCaPBOzenijVUdbFuMsdoxluIeSRHpJpWlHnY9+UjvdS6D+4fGPUI6Y s1S0ccoQFeR9WobWDueAYINcb+JdFM2KubjYJ63sOKDxoOTCn94XLU7J0 /jHAqoNslzXu9IKvCaROleuoDqyebRewMKsvkRVA2ScKBbtyh/z43WckC w=;
IronPort-PHdr: 9a23:Fl2I3xCCA8wsby1vwhNjUyQJPHJ1sqjoPgMT9pssgq5PdaLm5Zn5IUjD/qs13kTRU9Dd7PRJw6rNvqbsVHZIwK7JsWtKMfkuHwQAld1QmgUhBMCfDkiuNuTjbykzGuxJVURu+DewNk0GUMs=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0APAADG07Bd/5FdJa1lGgEBAQEBAQEBAQMBAQEBEQEBAQICAQEBAYFoBAEBAQELAYEbL1AFbFcgBAsWFAqEHYNHA4pcgjklkyKEYYEugSQDVAkBAQEMAQEtAgEBhEACF4MdJDUIDgIDCQEBBAEBAQIBBQRthTcMhVABAQEBAxIRHQEBKQ4BDwIBBgIRAwECKAMCAgIwFAkIAgQOBSKDAAGBeU0DLgGXVZBiAoE4iGF1gTKCfgEBBYJJgkMYghcJgTYBjA4YgUA/gTgME4JMPoQvHRkWgloygiyPeIU6JIkPjn4KgiSVJxuCO4dUj0GPdZgJAgQCBAUCDgEBBYFUAjWBWHAVOyoBgkFQEBSDBoNzilN0gSmNegGBKQEB
X-IronPort-AV: E=Sophos;i="5.68,222,1569283200"; d="scan'208,217";a="646022408"
Received: from rcdn-core-9.cisco.com ([173.37.93.145]) by rcdn-iport-7.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 23 Oct 2019 22:32:17 +0000
Received: from XCH-ALN-002.cisco.com (xch-aln-002.cisco.com [173.36.7.12]) by rcdn-core-9.cisco.com (8.15.2/8.15.2) with ESMTPS id x9NMWG5K004845 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL) for <netmod-ver-dt@ietf.org>; Wed, 23 Oct 2019 22:32:17 GMT
Received: from xhs-aln-001.cisco.com (173.37.135.118) by XCH-ALN-002.cisco.com (173.36.7.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 23 Oct 2019 17:32:16 -0500
Received: from xhs-aln-001.cisco.com (173.37.135.118) by xhs-aln-001.cisco.com (173.37.135.118) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Wed, 23 Oct 2019 17:32:16 -0500
Received: from NAM04-BN3-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-001.cisco.com (173.37.135.118) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Wed, 23 Oct 2019 17:32:15 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LU5qdTtJUjd88YDUdZQZtJ3FZUlRp7zUuzvqgnNciGBdLJFSQPzg/krAfOifWPVGKqcyyia7iaP+BDcvmJwscyppYN0jaO8JY5K9HcCBM5fuVOxAFEIbGrzENcnRIu1OkGqyameTmZJvtS0FQLCmyTjq34AeLSmmURfZnEL5IWjFBbSkWz/zXozAMXwmd4W/k+52Z9czXhneKYWUnEoVNRMy9mLIHkN2hkljcaBfZWwFNOGnW6sw8TWe8Z3yZ88cfd/kZnilHRkvkuqfjeFraVgTA8phzY0p7GcqxnOjdREHz1dJWtll9MVj03IVgC++YEYl4M6eqfgO2I8f30mP6Q==
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=82dhXbXY/GrHS0QHY4mIDRCON9vwzkb+aM/uB2ezSRE=; b=UINXvGzkxIAoqGcpOGp5THRWia5BbWNHrtcO1Wi8Qilw+yewHC+tulyUWT+omhv6uLkSNt7xnFw5Zy9Vct0Dm/ea90e+r1/OXuN1E3UBtt4RQNU4p9dtFbOpurvVTYGL7QNOAgsoW6ii16RUSWYZSxZEAUdEpyvpuFfEjl+oXVL2E94HBIG1tmYEnMMYOF1ozBmXIROp5420RZoYn+ofLQtL6vDkbG4YkATJXLVLZfZT4F8wvt8A1EcpiwlgxFMdU8hdWHRnHSiNYBWe5rEgRzAJFaDOBfiKtA23xyAIf2B245NWkEh0qFUVKbOF/Xi/Q8UZmFgJCVryOvhojpAgxg==
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=82dhXbXY/GrHS0QHY4mIDRCON9vwzkb+aM/uB2ezSRE=; b=D96Q1T2fdf+IlbkroJ0UJ/vEMCC8wRNq5PrO7CGozxuXXMZkIr/nX5UcLix9PS/LFngV61I8uEgZp0C1Br+nEmf8JctVW8iaB/Z3vbLtDFTQypGGyz7Y9+ZaSqQ6qEp/6mawEMp7Q5tulpNtuGAQxw0BivZ6whyeoY3vGPXDoz4=
Received: from MN2PR11MB4157.namprd11.prod.outlook.com (10.255.181.213) by MN2PR11MB3935.namprd11.prod.outlook.com (10.255.180.93) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2387.22; Wed, 23 Oct 2019 22:32:14 +0000
Received: from MN2PR11MB4157.namprd11.prod.outlook.com ([fe80::88cb:fcc7:df90:124]) by MN2PR11MB4157.namprd11.prod.outlook.com ([fe80::88cb:fcc7:df90:124%5]) with mapi id 15.20.2387.021; Wed, 23 Oct 2019 22:32:14 +0000
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: "Joe Clarke (jclarke)" <jclarke@cisco.com>
CC: "netmod-ver-dt@ietf.org" <netmod-ver-dt@ietf.org>
Thread-Topic: [Netmod-ver-dt] Version selection
Thread-Index: AQHViQkOvI26xPMrfUK7KEA4CIpe+adotQgA///ZRoA=
Date: Wed, 23 Oct 2019 22:32:14 +0000
Message-ID: <8452E8A5-FC99-4331-B88E-FE823F3242ED@cisco.com>
References: <E1941124-CBFE-4522-9DB2-37F8C92D44FF@cisco.com> <574B4CEA-3B6E-43D0-88DB-E2EE53CDC0DB@cisco.com>
In-Reply-To: <574B4CEA-3B6E-43D0-88DB-E2EE53CDC0DB@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: [173.38.117.68]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 60d89d7e-81b1-480e-e1ba-08d75808dac3
x-ms-traffictypediagnostic: MN2PR11MB3935:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <MN2PR11MB3935CA08A18F81C63C8478C9AB6B0@MN2PR11MB3935.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 019919A9E4
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(39860400002)(396003)(136003)(366004)(346002)(376002)(189003)(199004)(33656002)(6636002)(6246003)(25786009)(236005)(486006)(81156014)(6512007)(54896002)(6306002)(8936002)(36756003)(86362001)(58126008)(6862004)(37006003)(316002)(7736002)(14454004)(4326008)(478600001)(6486002)(186003)(6436002)(14444005)(256004)(2906002)(66066001)(6116002)(3846002)(229853002)(76176011)(76116006)(66446008)(64756008)(66946007)(66476007)(66556008)(2616005)(476003)(8676002)(5660300002)(81166006)(11346002)(446003)(71190400001)(26005)(102836004)(6506007)(53546011)(71200400001)(99286004)(547064002); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB3935; 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: BCL:0;
x-microsoft-antispam-message-info: Ly4EJqOySnzs1Cw1Gqxsst955CmK3MTHvcwv5MUCQ+G/x1Nb587eZSgWLQJBBJy3sCEyoYmvSQYOdljonim8ladVUbIzFAx0HR0OEBZz5MZ1wFWqauUrrRlYA1dg5A1LOX6JVLT3pI9K87MZkmD7Va+Qh8OATXDNZr3GbkPcOKLTCQ2UYvPcfQgnSfqpIQpEvBmNejjZc8x0ANsje4lZLNXCifEoQrH6faupGIGch3JNeRrpXu5d+323u4T8dFi+US+hk5wo4Aaxu9HtkeNzydhucrn/Koc1eltDnJGoyUNyOH1TsFakdSi4BPL7zsEbrWWod67s9uV2/Y6/ZJ3gLvtKpUgvrsu4bLhsFAKh8GRna0+3yxgheaiVml1R0hFY7yz6lZ4mc6oC9VttD04eHljtvjHN/jG3y+yEUeBOrGz7RYRgZj1ccC+sFE2FfWoM
Content-Type: multipart/alternative; boundary="_000_8452E8A5FC994331B88EFE823F3242EDciscocom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 60d89d7e-81b1-480e-e1ba-08d75808dac3
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2019 22:32:14.7678 (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: Ytteqb+CmiID6k6C+4B/bC8kg3mHou7Dg3rrGrY2+ujZQoYK2iioJGu6/BucehJj6cZZ6BUmQ6FV4KI1/skLww==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB3935
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.12, xch-aln-002.cisco.com
X-Outbound-Node: rcdn-core-9.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod-ver-dt/P4Z_zRR1k5XSCjSIoXuzqWNK_QQ>
Subject: Re: [Netmod-ver-dt] Version selection
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, 23 Oct 2019 22:32:21 -0000

Thanks Joe.

From: "Joe Clarke (jclarke)" <jclarke@cisco.com>
Date: Wednesday, October 23, 2019 at 4:50 PM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
Cc: "netmod-ver-dt@ietf.org" <netmod-ver-dt@ietf.org>
Subject: Re: [Netmod-ver-dt] Version selection



  1.  NETCONF experts please take a look at the NETCONF update.

Not saying I’m an expert, but the RPC looks funny to me.  Why can’t the package by CDATA?  How will you define an element for each and every package?  That is, should the RPC look more like:
<RR> Good point, right now it’s only for 1 top-level package. And yes what you have below is better than what I sent.

<rpc message-id="101"
             xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
          <select-package>
            <yang-package-version>
              example-ietf-routing@1.3.1
            </yang-package-version>
          </select-package>
        </rpc>

Also, I don’t see the RPC defined in the included YANG module.  Are you waiting for feedback before doing that?
<RR>Yes and I ran out of time ☺

One other thing I noticed is that you say the following in Section 5.1.2:

Used by a client to select a YANG package version which
   has been advertised by the server via the mechanism described above
   in Section 5.1.1.  The YANG package version is selected for the
   lifetime of the NETCONF session, unless a different version of the
   YANG package is subsequently selected via this operation.

Then later:

Negative response: An <rpc-error> element is included in the <rpc-
   reply> if the request cannot be completed for any reason.  A <select-
   package> operation can fail for a number of reasons, such as the YANG
   package version is not supported by the server, or a different
   version of the YANG package has already been selected by another
   client.

How can a different client affect the current client’s session?  Meaning, if you and I are two clients both operation on the same server and you first set your package version, and then I set mine, why would mine fail simply because you set yours?

Now, it may be that only one version of a package can be used at a time across the entire server, but then that would break the per-session semantics.
<RR> Yes this is for the case where either a) package version can be selected once and after that is sticky OR b) different versions cannot be supported concurrently.


  1.
  2.  I’ve used @ as the separator for YANG package and version, e.g. example-ietf-routing@1.3.1<mailto:example-ietf-routing@1.3.1>, this is because @  cannot be in the revision-label and looks like it can’t be in the package-name either (pkg-identifier is of type yang:yang-identifier)

I’m fine with this notation.  I assume that whatever is in the “version” field of the package header would be used here?
<RR> Yes, this should be mentioned in the draft.



  1.
  2.  Joe had raised the issue of default package version if none is selected. Any suggestions on how to advertise the default version(s) in capabilities, what about @D after the revision-label e.g. “example-ietf-routing@1.3.1<mailto:example-ietf-routing@1.3.1>@D”? Rob, I don’t think your YL extensions has default for YANG package versions right now?

Make it bold in the capabilities list? :-D

Could another delimiter be used after the version like ‘;’ and then you can have:

?list=example-ietf-routing@1.1.0,example-ietf-routing@2.0.0;default

Right now, we’ll have to make sure ‘,’ doesn’t exist in a revision-label.
<RR> Works for me.

Regards,
Reshad.

Joe