Re: [tcpm] Comments for draft-ietf-tcpm-yang-tcp-00

tom petch <ietfa@btconnect.com> Thu, 05 November 2020 17:13 UTC

Return-Path: <ietfa@btconnect.com>
X-Original-To: tcpm@ietfa.amsl.com
Delivered-To: tcpm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 242373A186F for <tcpm@ietfa.amsl.com>; Thu, 5 Nov 2020 09:13:02 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=btconnect.onmicrosoft.com
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 uWMne_1m9t9Y for <tcpm@ietfa.amsl.com>; Thu, 5 Nov 2020 09:13:00 -0800 (PST)
Received: from EUR05-DB8-obe.outbound.protection.outlook.com (mail-db8eur05on2109.outbound.protection.outlook.com [40.107.20.109]) (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 C7A163A1933 for <tcpm@ietf.org>; Thu, 5 Nov 2020 09:12:59 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FjugT6LZ1nO1a8fD9JcppGR384Ju/UU4eLh1OLC+z9y7YEpIhf4NqxK7vooh0hau4TPBgAS1tyD7FCBWyfjbCMGXuOJgbzrHxgNyacXfDeGdSw1Pa/TvWso/qg8HuhS/nJPcWL5VV4kvF20yK/ouEjzWbyEbobifj6DgfL/w0p85fDBO+0ASXdN9UzaH5b+yoQoxwgUCATipGhatiMUvI5qiq++M7JXhehulfYalTfGHJ/vRhUyC7v2OX8lWL2kURFrly7qkFDSbQsCOTL0NKuBtRAdi7yyuB7NshxrcUR0IP9jnDPv9fbqreXShpUboxfrkZa/S/9XXGXl+RMRa6g==
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=c4W3zz5ijvUBfKYNJKj6KxwJHNROEYVnTGsFepRrOE4=; b=M+mSS3VZidRVfUK1H2k5jh6Hu8XI2jlM0hRBi+ZlKOU/iJyBEXWiTNHtL1Lp8I7Nboktwb5Oh8u8wo9RURGDatEjpSSsve1DaZEJSjfd9tbORGHRnCCInPm0pwlqLfYX2fZURKexEFL7UFLz2Fl0ZnpRsZWS7GS5NqKJuTn2go0TblpS79QlIp9/Rp9zCuK+J39A9XIjMO246VtSQv3gaWmzHCCgVVlYWjz6OpaXo7E4ka5EVPHCe7/tOyNwfFHokV8If3iyfTtnovNRat7exLGlcfSvsADPZexb2tMgDxuzJeD7d4PoNSf9BovqKdEtxggDfPN/YAkLP5iIR909nQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=btconnect.com; dmarc=pass action=none header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c4W3zz5ijvUBfKYNJKj6KxwJHNROEYVnTGsFepRrOE4=; b=Yd84xqir5Kg5vUdjRWYCr1akJScJ6E1U+yGdBGSZhhhxBMZAACYQ4tQnjFE4RPgKVATUSmcrskf9N63hCxpB4vspTRmMPHhxPv1eFNjRBbnCQjy+HqovM3aOQxEWsJghxKcV9erpbVz7/Vo8Qi1Dd05Rtsq8fAty76+XDPrQ4cI=
Received: from AM6PR07MB5784.eurprd07.prod.outlook.com (2603:10a6:20b:95::29) by AM6PR0702MB3543.eurprd07.prod.outlook.com (2603:10a6:209:4::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3541.13; Thu, 5 Nov 2020 17:12:57 +0000
Received: from AM6PR07MB5784.eurprd07.prod.outlook.com ([fe80::8826:83d6:417f:4897]) by AM6PR07MB5784.eurprd07.prod.outlook.com ([fe80::8826:83d6:417f:4897%5]) with mapi id 15.20.3541.015; Thu, 5 Nov 2020 17:12:57 +0000
From: tom petch <ietfa@btconnect.com>
To: Joseph Touch <touch@strayalpha.com>
CC: Juhamatti Kuusisaari <juhamatk@gmail.com>, tcpm IETF list <tcpm@ietf.org>
Thread-Topic: [tcpm] Comments for draft-ietf-tcpm-yang-tcp-00
Thread-Index: AQHWsCX8yotO44JUg0uIKWvSPHlD0Km2qIaAgADJDwCAARMdAIAA4AKygABMRQCAABkYFQ==
Date: Thu, 05 Nov 2020 17:12:56 +0000
Message-ID: <AM6PR07MB57840B1AE43C67C776499709A2EE0@AM6PR07MB5784.eurprd07.prod.outlook.com>
References: <CACS3ZpBJOfctZjW0qUD+2p1vw63p9KeJ+ie15SHE=k_fk6suTw@mail.gmail.com> <CACS3ZpD7dL=gbZd_mqA21+qX2nvKh7TDj3cx3xJvEUc_bnRZfg@mail.gmail.com> <EB42CDCE-2BF5-462D-8CBF-0589998AC883@gmail.com> <CACS3ZpCj+1XZC+RkQcGUaC90XcGBUF_OR_qor8V4Zn0nTSGrRg@mail.gmail.com> <340D363A-3C02-4A64-9DF4-A335B69CC87F@strayalpha.com> <AM6PR07MB5784C86531CE986F91431D4CA2EE0@AM6PR07MB5784.eurprd07.prod.outlook.com>, <C90E5EDB-0532-4D01-A4DD-AEECC49FFDF9@strayalpha.com>
In-Reply-To: <C90E5EDB-0532-4D01-A4DD-AEECC49FFDF9@strayalpha.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: strayalpha.com; dkim=none (message not signed) header.d=none;strayalpha.com; dmarc=none action=none header.from=btconnect.com;
x-originating-ip: [86.146.121.140]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 10ac377d-1032-4dc0-9852-08d881ae0a59
x-ms-traffictypediagnostic: AM6PR0702MB3543:
x-microsoft-antispam-prvs: <AM6PR0702MB354362174C46E497A7645C2EA2EE0@AM6PR0702MB3543.eurprd07.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: D8oM2DFK2Owo4ohjo1mE5A+1+BmCpO9FncE/f9ZqUncNNzg2NyxKNNPoMu60fVt8FrFkgZFCXIzFWDnIpSYmkoqBfKr4oTs+q1igqtzD4XogH2EymjZTHLGRND9teNxN/WKwnOYcSf11WOZMOfiV7c8d1jqbHU0yLXTwq7C1GKEdetqCejMPVorkaTZ8KNNTVkU9Z0PEQ3zpEKMXSSwCaT4z8HhjdBgXVUGvADDKBLLZznngdd4CUn5Wstu9goISZNlLBmdM0BlAeAFiVLKARYx5djRhkDuHFsjSDhlMwEA+yMM0DuT+ZKTkoOxEVcHIm6rgj/+vWCGEUzLsPM7eXQ==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM6PR07MB5784.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(39860400002)(376002)(396003)(346002)(366004)(66556008)(8676002)(26005)(83380400001)(86362001)(6916009)(7696005)(66476007)(66946007)(316002)(53546011)(64756008)(2906002)(76116006)(8936002)(66446008)(186003)(54906003)(71200400001)(91956017)(6506007)(33656002)(52536014)(55016002)(5660300002)(4326008)(9686003)(478600001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: yYvk++kkwZZcjf2D85t8Rf39chlWVrqAtvi95wmRf0soNoKB/tGTvyMT2UR7lU2/Iji5LvvWQ72SOHKfWt5zBwddTEg03NsXzHvLBwz7P9NJqWZhcd2dLts94dxumIGZf8Il5KWcmADiQmtlL6ILiZjgL3DBx9HjUVTDcrL8keB+sET3CKmfzqAWpV5DelCHV3V630T8ty4r/FnIcq/IYQx31EZFds3tyu3WQyBl9DOZ2lVFmcHPY6/YkJ8E2SW/rmc1Yg9Vf2Z+aumdXj4Q5yCgBIn9uNRqQBzVqDStWZtKCYyMTDVZnBz9M0hlu2wmGnbpmD76GPpECjTEPV8GyoPhAsMJSvDh2bCV5mkCD3MbfYXAQ5vBWVRSvdGZPqKCwDq2T+BV5Pfh4aQKbKAbqqSwNmxlHQSGKUUTIcAU+CyKSXKb9esbIyFcrZK1RktDnVo1oqdYZWzVdHl5X9UCPO+Cbfkbs/e0UZe9hwfmjCNB2afkoFxp1uy2NRm0nefn5IE0C7UkpnWSRqVqWQLh1l/5oX1Xk74dobCmNE9ktQbQEiLBN/NZ5oBAhCX2JP8iNeszES/aY801MbCmU2qHBZ5g7lavwyOsxva8uPEzmlZks2ZFLiAQnrujOHMzX333ags6dARohxAwwccmhp8xFbp3XHExIvhelrYz5TPzHkg0om1oeOsCzskw4DtSE62COiQGyj4kUnY3FQnfZ89BDAGRmD6alxvAmmfALO54/6VbtoFFP8vi96c0n7mDqnT4Qh5mGX0/Unj9PX9uEy1ifjCYq99JQGtL7cRblmvGz30Lk2gaNtm7JH41bNOx28i+NX6/I2YrIT+SAeZpLj8GQzRbFjwWwjzXRZBLKtocTlxXCi3k7AMF3eiMiBLt91K2LPWn6snIQUuuMVpYJSG4DA==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM6PR07MB5784.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 10ac377d-1032-4dc0-9852-08d881ae0a59
X-MS-Exchange-CrossTenant-originalarrivaltime: 05 Nov 2020 17:12:56.9692 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: xnptprvVL9RlsTGS2QRNjbzKmasmi/onmtwXUBFGqqjSHCysvFq1NIAmf+Sd+rhOvgO1VOsSWH/bqHDgu2UnGQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM6PR0702MB3543
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/3SzMDhvmaDWZnKq0XKG9uoxCHOU>
Subject: Re: [tcpm] Comments for draft-ietf-tcpm-yang-tcp-00
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpm/>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 05 Nov 2020 17:13:02 -0000

From: Joseph Touch <touch@strayalpha.com>
Sent: 05 November 2020 15:30
> On Nov 5, 2020, at 3:04 AM, tom petch <ietfa@btconnect.com> wrote:
>
> From: tcpm <tcpm-bounces@ietf.org> on behalf of Joseph Touch <touch@strayalpha.com>
> Sent: 04 November 2020 21:36
> Is there a convention in YANG for such situations?
>
> I personally would not expect all values to have “default=true” or “on" everywhere. Sometimes you’re actively turning on something that is typically disabled (default=false or off).
>
> I think the “include-tcp-options” matches the way it’s described in the doc (TCP option flag, where true implies includdd) and the default=true would match better.
>
> <tp>
> From a YANG, rather than TCPM, perspective, I am not clear what you are asking.

The question is whether toggles are typically true by default or false by default. It doesn’t appear so.

<tp>
Ah yes, clear now.  I agree that there is no such convention in YANG.  Simplifying, if you want a default, then the default must be explicitly specified in the model.  If there is no default and the leaf is not set to a value e.g. by Netconf, then the leaf does not exist in the YANG data tree, for Booleans as for anything else.  If you want the leaf always to be present, then YANG constraints allow you to enforce that.  As I said, given the wording in the RFC I would see default true as appropriate here.
As an aside the issue of defaults caused much discussion in Netconf as to whether or not they should be returned in a get and this led to three different processing options for retrieval but the YANG side of things has stayed the same.

Tom Petch

>  In this case RFC5925 - which the leaf would benefit from as a reference to - seems clear to me
> 'by default including options'
> in which case I would expect the YANG to default true.
> I think it good practice to be explicit in any YANG description clause of a boolean as to what true means or false or ideally both).
> Also, I think the choice of 'include' in the leaf identifier unfortunate given that 'include' is a YANG technical term that appears in every YANG module.

It doesn’t need to be; the term could be “options-covered-by-MAC”, default=true

>  I know that it used in RFC5925 but still see it as unfortunate.

The YANG model and TCP-AO had overlapping development periods. It’s impossible to expect either to have taken the other completely into account.

Joe