Re: [Teas] WG Last Call: draft-ietf-teas-actn-vn-yang-19

Dhruv Dhody <dhruv.ietf@gmail.com> Mon, 23 October 2023 05:42 UTC

Return-Path: <dhruv.ietf@gmail.com>
X-Original-To: teas@ietfa.amsl.com
Delivered-To: teas@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 828A4C14CEFF; Sun, 22 Oct 2023 22:42:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 ZMBPY9P_Wq_6; Sun, 22 Oct 2023 22:42:15 -0700 (PDT)
Received: from mail-vs1-xe30.google.com (mail-vs1-xe30.google.com [IPv6:2607:f8b0:4864:20::e30]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id F0C69C1516E1; Sun, 22 Oct 2023 22:42:14 -0700 (PDT)
Received: by mail-vs1-xe30.google.com with SMTP id ada2fe7eead31-457c057bdb5so1044259137.0; Sun, 22 Oct 2023 22:42:14 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698039733; x=1698644533; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=TXYr5LUuZ4zbrBoA78NGaTAUVYOZcjGYAuujNsQQ/ic=; b=eUNkl2ZtkAyKZDrzqPN379vpbVf5g7zGrPc/01gp44vpvEcReE2EubF2kigTYNmbZ1 KXm564FNfnYcY1J01ntRE9SKLTxhtFHhghhA7HVuyYP94oVcuUL11VPRE6wL+zrUvBpl AMiluE52kJAEaCy86NTn1/GwpFxJpY9PfLC/cdn5nj/v1izNcYlACIq36CMzrJkzdcJe pP7r8J9fs2oA1Z3KBJOBURrSGd434uZ0+qb8YANjbYskyqirIpMVj1BsjyR34CIZrx9s deKtfO63TiXy63SaIAp9GeuyYmQLoXjIBHqwfgzmRj/6uU+ZoAEWA5YmUXLO6xwFCEB1 xP8w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698039733; x=1698644533; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=TXYr5LUuZ4zbrBoA78NGaTAUVYOZcjGYAuujNsQQ/ic=; b=k2oE5dJ11NEfr1dosOSXETz+Gg1RvCoBJXREn/9RjZnT/cQEAnCgI/AT1vhC+Aw/Xi zhaJJMS5NPnSV6cft8NQrs+QfDP6QtcucHtSrPHyfc8tkYIKDrN5Tzcjk5nAypABfC/v xOMtpTElWo4gjv2MWn2+s5Xil61i0i8WnUl+NPPrDF+tQlpRgYyDfOOMcDbclDcPfLM+ r8elkrYXMxTvBOH/2UApySHRBcqWEOLQ5hHuiRZ2DI+ZLWN4IBVyTkC1WNvNnMZO1XUz PQF7yt9E70nM75v6fTtz9z8dpwjZnKsvnhmg/0qCo4sM9aAE0gV5151TJBgk6gfhjZW+ lflQ==
X-Gm-Message-State: AOJu0YyS/XvycDh0TZShty8s2b1p9UtY+7Qi8julL/FeQr81i+3im7Dt F0PdQJAHHZ9pfiCZnggXhpOziw/r7n5KqXTI+Ac=
X-Google-Smtp-Source: AGHT+IEvspHuSUWy2056C4tyYGKiN+sKhVjr0XgV+nx3zg6a3KWk7DwYbJtQw5Cv6AaSjeWkakAsGQPyoNmJi+AcPgI=
X-Received: by 2002:a67:c399:0:b0:457:e587:a195 with SMTP id s25-20020a67c399000000b00457e587a195mr7895785vsj.10.1698039733307; Sun, 22 Oct 2023 22:42:13 -0700 (PDT)
MIME-Version: 1.0
References: <CA+YzgTvKRaj0mc-Uu_PR=a3f3FdQm8i4iWDVs-ngEgDz1JWYYA@mail.gmail.com> <AM0PR07MB54905E4FFA0D92FEAD94989491D7A@AM0PR07MB5490.eurprd07.prod.outlook.com> <DB7PR07MB5546035A65E303BD6EEB6B7DA2D7A@DB7PR07MB5546.eurprd07.prod.outlook.com> <DU2PR02MB10160C7A9F099726D6F37BD8888D6A@DU2PR02MB10160.eurprd02.prod.outlook.com> <DB7PR07MB5546B2FC6D254F497F0ED909A2D5A@DB7PR07MB5546.eurprd07.prod.outlook.com> <DU2PR02MB10160B97524C1605C7D4946EF88D5A@DU2PR02MB10160.eurprd02.prod.outlook.com> <DB7PR07MB5546FB1A949C9A7EE0A7BD58A2D4A@DB7PR07MB5546.eurprd07.prod.outlook.com> <4e2d47d0281544b1bd09651fba77c13c@huawei.com>
In-Reply-To: <4e2d47d0281544b1bd09651fba77c13c@huawei.com>
From: Dhruv Dhody <dhruv.ietf@gmail.com>
Date: Mon, 23 Oct 2023 11:11:36 +0530
Message-ID: <CAB75xn4THb9qgQq3A-+EGvZ0sZBd4zPZrxp8evNWBRYCisWiEw@mail.gmail.com>
To: Italo Busi <Italo.Busi=40huawei.com@dmarc.ietf.org>
Cc: tom petch <ietfa@btconnect.com>, "mohamed.boucadair@orange.com" <mohamed.boucadair@orange.com>, "Sergio Belotti (Nokia)" <sergio.belotti@nokia.com>, Vishnu Pavan Beeram <vishnupavan@gmail.com>, TEAS WG <teas@ietf.org>, TEAS WG Chairs <teas-chairs@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000001e4fba06085baf9e"
Archived-At: <https://mailarchive.ietf.org/arch/msg/teas/t5pKHuYRSc9rj8L_tWHuhIPgflM>
Subject: Re: [Teas] WG Last Call: draft-ietf-teas-actn-vn-yang-19
X-BeenThere: teas@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Traffic Engineering Architecture and Signaling working group discussion list <teas.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/teas>, <mailto:teas-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/teas/>
List-Post: <mailto:teas@ietf.org>
List-Help: <mailto:teas-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/teas>, <mailto:teas-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 23 Oct 2023 05:42:19 -0000

Hi,

Based on the example of node-id that I have seen in the wild (for instance
here in ODL -
https://docs.opendaylight.org/projects/bgpcep/en/latest/bgp/bgp-user-guide-topology-provider.html),
the use of dotted-quad string for URI is common in implementations.

But if I look at the ABNF of URI at
https://datatracker.ietf.org/doc/html/rfc3986#appendix-A, that is
incorrect. And YANG tools are unlikely to flag it.

I am happy to make the change that Med suggests, I am also open to any
guidance from netmod/YANGdoctors if they have it.

--

And to answer Tom's original question, we need to include both node-id
and "ietf-te-topology:te-node-id",
and I tried to simplify things by using the same value for both and thus
leading to the confusion that you had...

--

@ Med - Maybe I can sit with you during the IETF week/hackathon to sort out
the yang validation via Yangson? I did a test with yanglint earlier...

Thanks!
Dhruv






On Mon, Oct 23, 2023 at 4:11 AM Italo Busi <Italo.Busi=
40huawei.com@dmarc.ietf.org> wrote:

> Tom, Med,
>
> I have few comments about this discussion
>
> The node-id is mandatory since it is the key for the node list as defined
> in RFC8345
>
> The te-node-id is also mandatory when the te presence container is present
> under the node as specified in the must statement in RFC8795
>
> In past discussions I have been told that a dotted-quad string is a valid
> URI so the node-id can be set equal to the te-node-id but it does not have
> to (that's why in some case node-id is set to 'D1' and in other cases is
> set as a dotted-quad values equal to te-node-id)
>
> However, I have not been able to find any definitive answer (e.g., an
> on-line validation tool) that confirms or contradicts that a dotted-quad
> string is a valid URI: do you know some reference?
>
> Last comment: in other documents, I have got the comment that we need to
> use values in the reserved range defined in RFC5737 also for the
> dotted-quad identifiers used in the examples
>
> My 2 cents
>
> Italo
>
> > -----Original Message-----
> > From: tom petch <ietfa@btconnect.com>
> > Sent: giovedì 19 ottobre 2023 12:15
> > To: mohamed.boucadair@orange.com; Sergio Belotti (Nokia)
> > <sergio.belotti@nokia.com>; Vishnu Pavan Beeram
> > <vishnupavan@gmail.com>; TEAS WG <teas@ietf.org>
> > Cc: TEAS WG Chairs <teas-chairs@ietf.org>; dhruv.ietf@gmail.com
> > Subject: Re: [Teas] WG Last Call: draft-ietf-teas-actn-vn-yang-19
> >
> > From: mohamed.boucadair@orange.com
> > <mohamed.boucadair@orange.com>
> > Sent: 18 October 2023 09:47
> >
> > Hi Tom,
> >
> > > But is node-id the correct leaf?
> >
> > It is correct as the parent is "ietf-network:networks". te-specific data
> nodes
> > are prefixed with "ietf-te-topology" (e.g.,
> "ietf-te-topology:te-node-id").
> >
> > <tp>
> > I disagree.  'node-id' does not appear anywhere else in the I-D and
> 'te-node-
> > id' does and the example used to contain 'te-node-id'  so while the YANG
> > heirarchy may be correct for 'node-id', I suspect that authors have the
> > wrong leaf and so the wrond YANG heirarchy.
> >
> > Tools will not detect such an error if error it is.
> >
> > Tom Petch
> >
> >
> > Anyway, I recommend the authors to run yangson against all the examples
> > (in addition to fixing all the uri entries as per the erratum I shared
> earlier).
> >
> > Cheers,
> > Med
> >
> > > -----Message d'origine-----
> > > De : tom petch <ietfa@btconnect.com>
> > > Envoyé : mercredi 18 octobre 2023 10:29 À : BOUCADAIR Mohamed
> > > INNOV/NET <mohamed.boucadair@orange.com>; Sergio Belotti (Nokia)
> > > <sergio.belotti@nokia.com>; Vishnu Pavan Beeram
> > > <vishnupavan@gmail.com>; TEAS WG <teas@ietf.org> Cc : TEAS WG Chairs
> > > <teas-chairs@ietf.org>; dhruv.ietf@gmail.com Objet : Re: [Teas] WG
> > > Last Call: draft-ietf-teas-actn-vn-yang-19
> > >
> > > From: mohamed.boucadair@orange.com
> > <mohamed.boucadair@orange.com>
> > > Sent: 17 October 2023 12:45
> > >
> > > Hi Tom, all,
> > >
> > > >             "node-id": "192.0.2.1",
> > >
> > > Changing to "example:192.0.2.1" would make it a valid URI.
> > >
> > > The same fix applies to many similar data nodes in Section 7.
> > >
> > > BTW, please note that even the examples in RFC8345 with data nodes of
> > > type uri are wrong (see for example
> > >
> > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
> > > rfc-
> > >
> > editor.org%2Ferrata%2Feid6900&data=05%7C01%7Cmohamed.boucadair%
> > 40orang
> > >
> > e.com%7C6b4f6e40f41c4dcf214e08dbcfb453bf%7C90c7a20af34b40bfbc48b
> > 9253b6
> > >
> > f5d20%7C0%7C0%7C638332145624887074%7CUnknown%7CTWFpbGZsb3d
> > 8eyJWIjoiMC4
> > >
> > wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7
> > C%7C%7
> > >
> > C&sdata=iCVk8eJKCSdtxNdAlsTZE4oLt3yH%2FhjocyofkCl1zDA%3D&reserved
> > =0).
> > >
> > > <tp>
> > >
> > > But is node-id the correct leaf?
> > >
> > > A few years ago, the example had both node-id and te-node-id leaves,
> > > the former with a value of 'D1', the latter with a value of '2.0.1.1'
> > >
> > > I note that everywhere else in the I-D there are references to te-
> > > node-id and none to node-id.
> > >
> > > Tom Petch
> > >
> > >
> > > Cheers,
> > > Med
> > >
> > > > -----Message d'origine-----
> > > > De : Teas <teas-bounces@ietf.org> De la part de tom petch Envoyé :
> > > > lundi 16 octobre 2023 13:11 À : Sergio Belotti (Nokia)
> > > > <sergio.belotti@nokia.com>; Vishnu Pavan Beeram
> > > > <vishnupavan@gmail.com>; TEAS WG <teas@ietf.org> Cc : TEAS WG
> > Chairs
> > > > <teas-chairs@ietf.org>; dhruv.ietf@gmail.com Objet : Re: [Teas] WG
> > > > Last Call: draft-ietf-teas-actn-vn-yang-19
> > > >
> > > > Picking a related e-mail to tack my comment onto
> > > >
> > > > From: Teas <teas-bounces@ietf.org> on behalf of Sergio Belotti
> > > (Nokia)
> > > > <sergio.belotti@nokia.com>
> > > > Sent: 16 October 2023 10:00
> > > >
> > > > Hi Pavan, WG,
> > > >
> > > > I support this work (as contributor) and think that it is  ready to
> > > > move forward as soon as Adrian's comments have been successfully
> > > > addressed.
> > > >
> > > > <tp>
> > > > I am confused.  Looking at the example in e.g. 7.2 I see
> > > >
> > > > {
> > > >   "ietf-network:networks": {
> > > >     "network": [
> > > >       {
> > > > ....
> > > >         },
> > > >         "node": [
> > > >           {
> > > >             "node-id": "192.0.2.1",
> > > > If this is the node-id of RFC8345 then that is of type node-id which
> > > > is a URI.  I am not used to seeing URI in this format.
> > > >
> > > > If I search the rest of the I-D, I do not see node-id.  Rather s.3.1
> > > > has te-node-id which is a different YANG type.
> > > >
> > > > This confuses me.
> > > >
> > > > I do have some more, more editorial, comments but am stuck on this
> > > > one.
> > > >
> > > > Tom Petch
> > > >
> > > >
> > > > Thanks
> > > > Sergio (as contributor)
> > > >
> > > >
> > > > From: Teas <teas-bounces@ietf.org> On Behalf Of Vishnu Pavan Beeram
> > > > Sent: Tuesday, September 12, 2023 2:19 PM
> > > > To: TEAS WG <teas@ietf.org>
> > > > Cc: TEAS WG Chairs <teas-chairs@ietf.org>
> > > > Subject: [Teas] WG Last Call: draft-ietf-teas-actn-vn-yang-19
> > > >
> > > >
> > > > CAUTION: This is an external email. Please be very careful when
> > > > clicking links or opening attachments. See the URL nok.it/ext for
> > > > additional information.
> > > >
> > > >
> > > > All,
> > > >
> > > > This starts a two-week working group last call on
> > > >
> > >
> > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fdata
> > > >
> > > %2F&data=05%7C01%7Cmohamed.boucadair%40orange.com%7C6b4f6e4
> > 0f41c4dcf21
> > > >
> > >
> > 4e08dbcfb453bf%7C90c7a20af34b40bfbc48b9253b6f5d20%7C0%7C0%7C63
> > 83321456
> > > >
> > >
> > 24887074%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoi
> > V2luMzIiL
> > > >
> > >
> > CJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Uidlg8ivXIt
> > 48ATDJj
> > > > lcbpOEgrqXu4iV9cTA%2FYMq8jY%3D&reserved=0
> > > > tracker.ietf.org%2Fdoc%2Fdraft-ietf-teas-actn-vn-
> > > >
> > >
> > yang%2F&data=05%7C01%7Cmohamed.boucadair%40orange.com%7Cd37cf
> > deb47e743
> > > >
> > >
> > 9fcc4b08dbce3893db%7C90c7a20af34b40bfbc48b9253b6f5d20%7C0%7C0
> > %7C638330
> > > >
> > >
> > 514615737399%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLC
> > JQIjoiV2luM
> > > >
> > >
> > zIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=isc5aJp9
> > gX5UlZ
> > > > CweI%2BYW3B4k5YTFHvzXItnxfREEB4%3D&reserved=0
> > > >
> > > > The working group last call ends on September 26th, 2023.
> > > > Please send your comments to the working group mailing list.
> > > >
> > > > Positive comments, e.g., "I've reviewed this document and believe it
> > > > is ready for publication", are welcome!
> > > > This is useful and important, even from authors.
> > > >
> > > > Note: IPR has been disclosed on this document
> > > >
> > > > Thank you,
> > > > Pavan, Lou and Oscar
> > > >
> > > > _______________________________________________
> > > > Teas mailing list
> > > > Teas@ietf.org
> > > >
> > >
> > https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww%
> > >
> > 2F&data=05%7C01%7Cmohamed.boucadair%40orange.com%7C6b4f6e40f4
> > 1c4dcf214
> > >
> > e08dbcfb453bf%7C90c7a20af34b40bfbc48b9253b6f5d20%7C0%7C0%7C638
> > 33214562
> > >
> > 4887074%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV
> > 2luMzIiLC
> > >
> > JBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=EyREJi%2Be
> > wo3aUl8ym
> > > 6kdDAVy%2BsHNgH4Glm2qgnFOnEY%3D&reserved=0.
> > > >
> > >
> > ietf.org%2Fmailman%2Flistinfo%2Fteas&data=05%7C01%7Cmohamed.bouc
> > adair%
> > > >
> > >
> > 40orange.com%7Cd37cfdeb47e7439fcc4b08dbce3893db%7C90c7a20af34b4
> > 0bfbc48
> > > >
> > >
> > b9253b6f5d20%7C0%7C0%7C638330514615737399%7CUnknown%7CTWFp
> > bGZsb3d8eyJW
> > > >
> > >
> > IjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C
> > 3000%
> > > >
> > >
> > 7C%7C%7C&sdata=9YMjzkWS1RrsNOCwO9ZkH%2BFVgoP65xUM0lkE4%2Bb
> > VzuU%3D&rese
> > > > rved=0
> > >
> > ________________________________________________________________
> > ______
> > > ______________________________________
> > > Ce message et ses pieces jointes peuvent contenir des informations
> > > confidentielles ou privilegiees et ne doivent donc pas etre diffuses,
> > > exploites ou copies sans autorisation. Si vous avez recu ce message
> > > par erreur, veuillez le signaler a l'expediteur et le detruire ainsi
> > > que les pieces jointes. Les messages electroniques etant susceptibles
> > > d'alteration, Orange decline toute responsabilite si ce message a ete
> > > altere, deforme ou falsifie. Merci.
> > >
> > > This message and its attachments may contain confidential or
> > > privileged information that may be protected by law; they should not
> > > be distributed, used or copied without authorisation.
> > > If you have received this email in error, please notify the sender and
> > > delete this message and its attachments.
> > > As emails may be altered, Orange is not liable for messages that have
> > > been modified, changed or falsified.
> > > Thank you.
> >
> > ________________________________________________________________
> > ____________________________________________
> > Ce message et ses pieces jointes peuvent contenir des informations
> > confidentielles ou privilegiees et ne doivent donc pas etre diffuses,
> exploites
> > ou copies sans autorisation. Si vous avez recu ce message par erreur,
> veuillez
> > le signaler a l'expediteur et le detruire ainsi que les pieces jointes.
> Les
> > messages electroniques etant susceptibles d'alteration, Orange decline
> toute
> > responsabilite si ce message a ete altere, deforme ou falsifie. Merci.
> >
> > This message and its attachments may contain confidential or privileged
> > information that may be protected by law; they should not be distributed,
> > used or copied without authorisation.
> > If you have received this email in error, please notify the sender and
> delete
> > this message and its attachments.
> > As emails may be altered, Orange is not liable for messages that have
> been
> > modified, changed or falsified.
> > Thank you.
> >
> >
>
> _______________________________________________
> Teas mailing list
> Teas@ietf.org
> https://www.ietf.org/mailman/listinfo/teas
>