Re: [yang-doctors] [Lsr] draft-ietf-isis-sr-yang and draft-ietf-ospf-sr-yang

tom petch <ietfc@btconnect.com> Mon, 04 December 2023 12:24 UTC

Return-Path: <ietfc@btconnect.com>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 60A10C14F609; Mon, 4 Dec 2023 04:24:56 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.911
X-Spam-Level:
X-Spam-Status: No, score=-1.911 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] 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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FPmMPJfZgGCT; Mon, 4 Dec 2023 04:24:54 -0800 (PST)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2119.outbound.protection.outlook.com [40.107.21.119]) (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 6B3AAC14F603; Mon, 4 Dec 2023 04:24:52 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PAtP5+5+wWhQtY6sJHjKHJw1yb3efbqvilGvJkFdSITTiUYVEW9DspMA28rJ0DZDLjbtVhiFw7bg08KyWpTZHiKbmr6bhsh1HwSuLVnbDiJVnxFTg4jR2CRHwWWw6OinPlErhX9wS4mWG7lhGDgn4gatvkfz34XIH+kdOFrdXneRVp35TF71EqVNYOQUYWfvKKxZx3cNI8twNqU3fTnQETC/Py1dIIovsJRAMYDIsdq8vPXgrH/atXATenIDMm4gNCfECqSDc/Xhbl92SWg4x+UTgehq6BxAvfjZIsBeg3jFR/9YvLbWBCc2qXhxKi+xWDdXSZuL1Kv9z+HNQmvVEw==
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=0B6LEWnZ825+KIoYo0ZP24JMXR/dq5JLwoRhqxgdhdQ=; b=ESbClCPk8tdhkPiKW+lsqOF2v8oIEInQwkvp5brqTlhzvUJWBXe1M3dWI99yW2rhoBNQykpvHN518ryTP/Opi4Y2tCHurw+AVx0XuTY+Di3RI4ED507VS0GPJkIE9Kqp+OaeRI4+sPT997vztQsoeofv/BgB6/0Imt/aDZslgarbvtufl/LOCoPTgtj+ZVW1M6ZlSdu/Gxe0QgBwUGxFtfYAZnpyypRTWSXdmPIoVCDPVJf8i0K+ObNqUdlA/SW5mK3+MX6kabsyd1SC7+Wjfqw/GMVqKpNdrtkT2nUuHjoSF1tEPUlWz+dEuSqbfjEYoagugTlsa73hlfs3U506iQ==
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=0B6LEWnZ825+KIoYo0ZP24JMXR/dq5JLwoRhqxgdhdQ=; b=H3ZaffuCpVj5WM5DEeQL/Gkd0oLHdyYNQjMC4IDpLQ6RVmNaXSIMXcQEb7Yd6664zo/TD6ZUJNXhVlMvoYHfavHF0v3XRmVy5U5ABhPpndiwGwmgJEr7tYN2v64sGHn0ULcxAPhHo0+1A3lLfsni1dCtOQ65ZaRl2Z3Ge+ZG4ys=
Received: from VI1PR07MB3181.eurprd07.prod.outlook.com (2603:10a6:802:1c::30) by AS8PR07MB7224.eurprd07.prod.outlook.com (2603:10a6:20b:256::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7046.33; Mon, 4 Dec 2023 12:24:50 +0000
Received: from VI1PR07MB3181.eurprd07.prod.outlook.com ([fe80::944a:2c33:94ce:2fdd]) by VI1PR07MB3181.eurprd07.prod.outlook.com ([fe80::944a:2c33:94ce:2fdd%4]) with mapi id 15.20.7046.033; Mon, 4 Dec 2023 12:24:50 +0000
From: tom petch <ietfc@btconnect.com>
To: Acee Lindem <acee.ietf@gmail.com>, Reshad Rahman <reshad@yahoo.com>
CC: Lsr <lsr@ietf.org>, "Jan Lindblad (jlindbla)" <jlindbla@cisco.com>, YANG Doctors <yang-doctors@ietf.org>
Thread-Topic: [Lsr] [yang-doctors] draft-ietf-isis-sr-yang and draft-ietf-ospf-sr-yang
Thread-Index: AQHaFwzQ39NHgceQE0S5G7mFggmWHLB6DryAgB8OfNA=
Date: Mon, 04 Dec 2023 12:24:50 +0000
Message-ID: <VI1PR07MB318192A5F876A79DA920140BA086A@VI1PR07MB3181.eurprd07.prod.outlook.com>
References: <519166882.977244.1698850736652.ref@mail.yahoo.com> <519166882.977244.1698850736652@mail.yahoo.com> <647196989.1856562.1699973710099@mail.yahoo.com> <5AB7A387-3119-4529-B82B-85ED13B84388@gmail.com> <410720176.1896450.1699982237670@mail.yahoo.com>
In-Reply-To: <410720176.1896450.1699982237670@mail.yahoo.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=btconnect.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: VI1PR07MB3181:EE_|AS8PR07MB7224:EE_
x-ms-office365-filtering-correlation-id: 894246d0-253a-43eb-8908-08dbf4c402d4
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: qy8KPhqYSfXGa/23vF/UwKCXjCJnDqNmuKz/8Ilesgf5uKFYSFwv8ZqjwMBq9oLr+YgM+XsT/2knSY60bqOJUYTscwbulFdjEHB1PrI4+7H7/AsiJNa1yRP1nguoLOE89C6YCfIe7e+tRQXYl/LyE5GYM9SBXs4o3qqVMMHbM8MbHXMO6WovbXBbBnEgfAnbn4S2yeIPLDvwBUW5DTUzlrZelJ+R5AK5FJIyZMlRi1ePAVaNds8fRl43jNXpxPXBmRfGa0EyYd1J9kDP1jv171JKImoHEgH1Xfw1PmxXNQ3wb5culXPA+JIyqqg0w605NQwxT9KMzpD4F5NLhNfW6dJg6wlO7BRagN2iP6lAO2t72B3oPG37aO9ue3iVja82TJWnFcKyJAbk5Z2haLMGFvbibDmrvDhjyInepjot5Yg1W9hpFsJ8kHwBh118/ifa6q9fPTVynbpOkaCzpmvJCSAwUTXgkX512oxuC8l5TZlFbV8+aY8EjaBCDCR8FGaFM+eGBNeAgpLD2csdk1I+kgmLnaCJVxp5rBmsFNeOIlJqG+WDkjGMmZDGd4R9NolPrO/gYcGJnwHR3tEaWjH4gTTJKczJSfVdi7uaJ40VCd5MuSrzcTw7c79s5MjnRfHiOn0OAwCMTBhyG7GqmHFlRMv0FjgiW6C0Y38Lfk/YK/xDjr4BYZA7500Roc2dR9b+5THWGaLOyXNsTpOfwyz5JA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:VI1PR07MB3181.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230031)(39860400002)(346002)(136003)(396003)(366004)(376002)(230373577357003)(230922051799003)(230473577357003)(451199024)(64100799003)(186009)(1800799012)(52536014)(5660300002)(2906002)(82960400001)(38070700009)(33656002)(86362001)(41300700001)(53546011)(7696005)(6506007)(478600001)(71200400001)(9686003)(55016003)(38100700002)(122000001)(83380400001)(26005)(66574015)(316002)(76116006)(66946007)(66556008)(66476007)(54906003)(64756008)(66446008)(91956017)(110136005)(4326008)(8936002)(8676002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: HeOrbwcBWeZhpnK++Wn9nJgzhVAPgguG7O5XhUVXxZyDFB4SkJiGI3bmt2biiTAiIoYjXgxULNqASWpURAkIIhrNFSVCN2sDloQ8SnsF3oaf5WrQHGMkWIs4R3E9mBP9IKmfAYftjnvnmzRBkVDcf7TQsSqc4HFvgxhw2x5AiIFJONAx7CRW2o/8rzcyAVJGZJMCYx6hQ+BjAAiv8urWdlp6AvZ2kSmsokgWc/AdcZZ8ecViGhwpZiy+KzXp+R/X95nPIS8qzWmQSvtDq/Mlvs+6LXGA5O+0AY1Yha9DcQ/452Px0PP19OnTb0ix1q8SliZbnkxWHG+TwZ0TjeRJ80a0FAgLpfvGpzvnuryaJ4DgS2lRpefaAZaARnDXgs/RdwLZBV3Rhtxm+BtcLObClOj4JCdNw20y4XqlAoYUvdKIsTVsf27gbwjtE8eG6LT23Qew3LQNwD6QmsnUBVx7pVn61CyAAGRqouUFEj5YOG/7bH39tTIQDix/wpWtl/osGQfiTCzZfEdRw1fDV3AKZ3uPlzglWqBdkdhltQwX9uxPai+cpirJxJL4rdaeljdDndFxwVwhrXVKwasaDlN/qbl4aowMdjnX3ARmzTHvv8N0y8YRXI3Jv7xJl67WfspO5EhwJAfsHpvf7GBwElkVFEso0Pq/7amZA7O/507w9UkpAxcU+C/Pj7gMRdrL5VKHFU3HNyQre7AywtFpqxrIBFL7J8C4/4rCasNCtT88xjDcmGWQX6Hy60NPnmyIKL+FxsD8ehbNOKFKmu86QGv90pj6oTlDXaX/0UVGtAx+Hv7oatBDXGKFjvXiu8zoHzJL0M2Ahgx+zg9pcKhtrwPvKpMJ9FLgYTIc8eNDc4Z4vCFHD89JD++81U3J6r8jIZU+7gFqLPqdU3VEvF7S8aXmZlt2nznwwoOUK/8TNHUse7ohxaR/tt2Si67rQVYwpvppt/jXnnMLqx6S07EYroECKRyXo2IdM0slhBYSX5EMgNA73QucH4bhByjwAFnBxOR2G4Dn2M0F1WwHrGHx83meXBH8tqSJwiBcS2LiGviCjaxIGHEFKSLlTUlLnMbayq1FKUJ6T7Dee4o3aylbjYYXJDW8y3N89ogTn+wEGQyZQhfE+ya/4kz9wTC5FY1K63ePq5ou0Kv0rPt1MAVvR1WFpOglPgmxm79ynbD8QJijF3O8znHb6HUtVI8mtdLG2r9q+MMK6CQpSSQoW95pFBzrhRYSNhEdz4t9Q4vDWHXP/RYGj91IH/luDMr72cnv+Vya5Aq9nL/4Ug4OZfl73yIIZXKzGif27FHmebRLf2ttGzbaK5AIvxOFlOmU4jZUSMjfVHM12txxFAeqVc2wKPoU8MH83NjIKLk296aFBSYdNznKmML7e+Vc7gj1t6JF0p4oIYiPIRCGK/oM6jTTZN6YiYS2HAHNd6+p2N58GTWxalRSIn54yzH3+N3shsQgOOLoqWLDXZyLPt71KKHjDIZhuC2tjDWFwc+nBM2ZOzqJsAqi956zbrEtkVyMsJvIhUzGqT8iJJ42OGH48bJEVHU+VC9V4Mj9fmYshAwvmi0AeZs=
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: VI1PR07MB3181.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 894246d0-253a-43eb-8908-08dbf4c402d4
X-MS-Exchange-CrossTenant-originalarrivaltime: 04 Dec 2023 12:24:50.1099 (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: ZmHdHcV1n/fPNqa8lXCdZ2h48yeOeT361mbAO/thKSXM9Eq2rBran+1/5b6pTKQaJ2TIN20464w5u7Ve5EnvvQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7224
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/tDABGPLllsVDg8Y9o_q71Vva9N8>
Subject: Re: [yang-doctors] [Lsr] draft-ietf-isis-sr-yang and draft-ietf-ospf-sr-yang
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 04 Dec 2023 12:24:56 -0000

An independant review draft-ississ-sr-yang so top posting.

Not Ready is my take for two major issues (was three but I m confused).

The I-D defines a raft of identity for the SR flags; it uses different names to those used in the base documents, it gives no explanation why it has done this and it gives no references.  Even without the name changes, I think the references should be to RFC and section for each flag.  Many YANG modules do this and this one should do too.

The I-D imports from sr-mpls and uses this in XPath to control augmentations.  The title of the I-D is not 'MPLS' but the abstract is.  My first take was that this has nothing to do with MPLS. I do see a lot of noise about IPv6 dataplane and was expecting both to be included but reading the module it does seem to be for an MPLS dataplane only [I note that SRv6-yang is an expired I-D)  I first thought that the augmentations were for all SR not just MPLS even if the import is from SR-MPLS.  Then the SPRING WG did put what seems to be a common grouping in an MPLS module.  Perhaps it would be better for this module not to use this import; I notice too that while most routing protocol augments define a presence container. as RECOMMENDED in RFC9349, this does not, again a reason to DIY.  So I got confused and would change at least the title in case there is another I-D for IPv6 and also say something about other dataplanes e.g for future study.

Thirdly, this I-D uses the term 'perfix' which I have not come across before as in
=================================
         container perfix-sid-flags {
           leaf-list bits {
             type identityref {
               base prefix-sid-bit;
=================================
Perhaps one for Terminology

Some minor issues.

Common practice is to make a YANG module a section on its own for ease of reference.  Here it is preceded by other information which I think should be a separate section.

        Author:    Yingzhen Qu
                   <mailto:yingzhen.ietf@gmail.com.com>
is not the mail address I see on the list

"IS-IS will not advertise nor receive any mapping server..."
'not receive' implies a filter for such traffic.  Perhaps not act upon.

/allows to advertise/advertises/

/allows to enable/controls/

"     /* Notifications */ "
probably redundant or else something missing

On to OSPF (so much simpler)

Tom Petch

________________________________________
From: Lsr <lsr-bounces@ietf.org> on behalf of Reshad Rahman <reshad=40yahoo.com@dmarc.ietf.org>
Sent: 14 November 2023 17:17

Hi Acee,

Couple of other differences (I didn't dig to see whether they are justified):
- Naming discrepancies e.g. TLV suffix is used more in OSPF (local-blocks v/s local-blocks-tlv)
- No global blocks in ISIS
- No capabilities in OSPF

Regards,
Reshad.

On Tuesday, November 14, 2023, 10:11:02 AM EST, Acee Lindem <acee.ietf@gmail.com> wrote:


Thanks Reshad - are there any other notable discrepancies?

Thanks,
Acee

> On Nov 14, 2023, at 9:55 AM, Reshad Rahman <reshad=40yahoo.com@dmarc.ietf.org> wrote:
>
> My suggestion is that authors of these 2 documents spend some time together to try to align the 2 documents. After that we can do YD review.
>
> Regards,
> Reshad.
>
> On Wednesday, November 1, 2023, 10:58:56 AM EDT, Reshad Rahman <reshad@yahoo.com<mailto:reshad@yahoo.com>> wrote:
>
>
> Hi,
>
> Background: those 2 documents have just been assigned YD review, I am reviewing OSPF and Jan is reviewing ISIS.
>
> Was an effort made to keep those 2 documents aligned/in-sync where possible/desirable? My expectation is that the SR specifics would be near-identical in the 2 documents. e.g. shouldn't the capabilities for the 2 protocols be very similar.
> Here are some differences which don't seem justified:
> - sr-algorithm in ISIS is a uint8 and in OSPF is an identityref
> - range-size is a uint32 in ISIS and is a uint24 in OSPF
>
>
> augment /rt:routing/rt:control-plane-protocols
> /rt:control-plane-protocol/isis:isis/isis:database
> /isis:levels/isis:lsp/isis:router-capabilities:
> +--ro sr-capability
> | +--ro sr-capability
> | | +--ro sr-capability-bits* identityref
> | +--ro global-blocks
> | +--ro global-block* []
> | +--ro range-size? uint32
> | +--ro sid-sub-tlv
> | +--ro sid? uint32
> +--ro sr-algorithms
> | +--ro sr-algorithm* uint8
> +--ro local-blocks
> | +--ro local-block* []
> | +--ro range-size? uint32
> | +--ro sid-sub-tlv
> | +--ro sid? uint32
> +--ro srms-preference
> +--ro preference? uint8
>
> augment /rt:routing/rt:control-plane-protocols
> /rt:control-plane-protocol/ospf:ospf/ospf:areas/ospf:area
> /ospf:interfaces/ospf:interface/ospf:database
> /ospf:link-scope-lsa-type/ospf:link-scope-lsas
> /ospf:link-scope-lsa/ospf:version/ospf:ospfv2/ospf:ospfv2
> /ospf:body/ospf:opaque/ospf:ri-opaque:
> +--ro sr-algorithm-tlv
> | +--ro sr-algorithm* identityref
> +--ro sid-range-tlvs
> | +--ro sid-range-tlv* []
> | +--ro range-size? rt-types:uint24
> | +--ro sid-sub-tlv
> | +--ro sid? uint32
> +--ro local-block-tlvs
> | +--ro local-block-tlv* []
> | +--ro range-size? rt-types:uint24
> | +--ro sid-sub-tlv
> | +--ro sid? uint32
> +--ro srms-preference-tlv
> +--ro preference? uint8
>
> Disclaimer: I don't follow LSR...
>
> Regards,
> Reshad.