Re: [OPSAWG] Last Call: <draft-ietf-opsawg-l2nm-15.txt> (A YANG Network Data Model for Layer 2 VPNs) to Proposed Standard

mohamed.boucadair@orange.com Wed, 18 May 2022 10:41 UTC

Return-Path: <mohamed.boucadair@orange.com>
X-Original-To: opsawg@ietfa.amsl.com
Delivered-To: opsawg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 99138C14F73B; Wed, 18 May 2022 03:41:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.095
X-Spam-Level:
X-Spam-Status: No, score=-2.095 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, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001, URIBL_BLOCKED=0.001, 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=orange.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 Kl69HjS32l3O; Wed, 18 May 2022 03:41:47 -0700 (PDT)
Received: from relais-inet.orange.com (relais-inet.orange.com [80.12.66.41]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 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 B3349C14F72D; Wed, 18 May 2022 03:41:46 -0700 (PDT)
Received: from opfedar05.francetelecom.fr (unknown [xx.xx.xx.7]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by opfedar22.francetelecom.fr (ESMTP service) with ESMTPS id 4L38gF144Tz2xf0; Wed, 18 May 2022 12:41:45 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=orange.com; s=ORANGE001; t=1652870505; bh=LJiYvsJ1MoIJ+3E/5b2aLTlzGo8/V/oIWtCUuJ5iAN4=; h=From:To:Subject:Date:Message-ID:Content-Type: Content-Transfer-Encoding:MIME-Version; b=s2EEw19+B9J66Ia7/yYBENa7kZRMtMGZCM1RtsOPouOdw6+fNZn/BcfDOC8Fzgz99 ievqVMXoc6W79Se8XD1+TzBi1DL22Udswey06JZhdLlbn1yfqNgF6FSYCyAp6/mCXj As3qRqYHwsyRq5PRuVmPetPBpo2tSrJ0i1f047d/Dxb2KcSSz9rP709n6c7eXubWz5 XytZHX30bRUEAcI1ezv9py3xfATKoFHcwwjGh5XuWkAumxmwaS5yvJsUCckE+DIqGC Q/LqbbDdlAFmCdmtOr7dmhS27//DwTDt6TQRoNvHlqWNRoq3UpULHeWDbclPoYn6nJ faNCXQUlV1DMg==
From: mohamed.boucadair@orange.com
To: tom petch <daedulus@btconnect.com>, "last-call@ietf.org" <last-call@ietf.org>
CC: "adrian@olddog.co.uk" <adrian@olddog.co.uk>, "opsawg@ietf.org" <opsawg@ietf.org>, "opsawg-chairs@ietf.org" <opsawg-chairs@ietf.org>, "draft-ietf-opsawg-l2nm@ietf.org" <draft-ietf-opsawg-l2nm@ietf.org>
Thread-Topic: Last Call: <draft-ietf-opsawg-l2nm-15.txt> (A YANG Network Data Model for Layer 2 VPNs) to Proposed Standard
Thread-Index: AQHYapLfz9BXXbmcI0KbUx6ReYNJiK0kV82A
Content-Class:
Date: Wed, 18 May 2022 10:41:44 +0000
Message-ID: <16510_1652870504_6284CD68_16510_440_1_f8aa8f593f7247ee94aeb2cb81f58aa3@orange.com>
References: <165124323213.7379.13149514636739448316@ietfa.amsl.com> <6284B0D5.2080105@btconnect.com>
In-Reply-To: <6284B0D5.2080105@btconnect.com>
Accept-Language: fr-FR, en-US
Content-Language: fr-FR
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
msip_labels: MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_Enabled=true; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_SetDate=2022-05-18T09:05:58Z; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_Method=Privileged; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_Name=unrestricted_parent.2; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_SiteId=90c7a20a-f34b-40bf-bc48-b9253b6f5d20; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_ActionId=5dab48a0-f781-45df-b954-d4996c496bee; MSIP_Label_07222825-62ea-40f3-96b5-5375c07996e2_ContentBits=0
x-originating-ip: [10.115.26.50]
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/opsawg/i4jjru20s98xvA-ehGddclazTR4>
Subject: Re: [OPSAWG] Last Call: <draft-ietf-opsawg-l2nm-15.txt> (A YANG Network Data Model for Layer 2 VPNs) to Proposed Standard
X-BeenThere: opsawg@ietf.org
X-Mailman-Version: 2.1.34
Precedence: list
List-Id: OPSA Working Group Mail List <opsawg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/opsawg>, <mailto:opsawg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/opsawg/>
List-Post: <mailto:opsawg@ietf.org>
List-Help: <mailto:opsawg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/opsawg>, <mailto:opsawg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 18 May 2022 10:41:50 -0000

Hi Tom, 

Thank you for the comments. 

Please see inline. 

Cheers,
Med

> -----Message d'origine-----
> De : tom petch <daedulus@btconnect.com>
> Envoyé : mercredi 18 mai 2022 10:40
> À : last-call@ietf.org
> Cc : adrian@olddog.co.uk; opsawg@ietf.org; opsawg-chairs@ietf.org;
> draft-ietf-opsawg-l2nm@ietf.org
> Objet : Re: Last Call: <draft-ietf-opsawg-l2nm-15.txt> (A YANG
> Network Data Model for Layer 2 VPNs) to Proposed Standard
> 
> On 29/04/2022 15:40, The IESG wrote:
>  > The IESG has received a request from the Operations and
> Management Area  > Working Group WG (opsawg) to consider the
> following document: - 'A YANG  > Network Data Model for Layer 2
> VPNs'
>  >    <draft-ietf-opsawg-l2nm-15.txt> as Proposed Standard
> 
> Two more YANG quirks, belatedly.

[Med] Comments are still welcome as we still have two weeks before the IESG telechat. 

> 
> s.7.6 has
>                         |        +--:(evpn-bgp)
>                         |           +--rw df-preference?
> uint16
>                         |           +--rw vpws-service-instance
> while s.7.6.2 has
>                 |        +--:(evpn-bgp)
>                 |           +--rw vpws-service-instance
> df-preference is present in the YANG module so I think that the
> approach in s.7.6 is preferable to that of s.7.6.2.

[Med] 7.6.2 does not aim to provide the full structure as it only zooms into "EVPN-VPWS Service Instance" part that wasn't expanded in 7.6:

                       |        +--:(evpn-bgp)
                       |           +--rw df-preference?     uint16
                       |           +--rw vpws-service-instance
                       |              ...       <============

I updated 7.6.2 to re-list "df-preference", though. 

> 
> 
> s.7.5.2 has
>    +--rw (signaling-option)?              choice
>        |     +--:(bgp)                            case
>        |     |  ...                                choice bgp-type
>        |     +--:(ldp-or-l2tp)                    case
> 
> so I expect to see
>   choice signaling-option   which I do on page 87
>   case bgp                  also on page 87
>   ....
>   case ldp-or-l2tp          nowhere to be seen.

[Med] ACK. We do basically have the following choices: 

       7.5.2.  Signaling Options . . . . . . . . . . . . . . . . . .  27
         7.5.2.1.  BGP . . . . . . . . . . . . . . . . . . . . . . .  29
         7.5.2.2.  LDP . . . . . . . . . . . . . . . . . . . . . . .  30
         7.5.2.3.  L2TP  . . . . . . . . . . . . . . . . . . . . . .  31

As discussed during the AD review, ldp-or-l2tp are bundled because they share a set of common attributes. This is why we do have this part repeated in both 7.5.2.2 and 7.5.2.3:

            |     +--:(ldp-or-l2tp)
            |        +--rw ldp-or-l2tp
            |           +--rw agi?
            |           |       rt-types:route-distinguisher
            |           +--rw saii?                      uint32
            |           +--rw remote-targets* [taii]
            |           |  +--rw taii         uint32
            |           |  +--rw peer-addr    inet:ip-address
            |           +--rw (ldp-or-l2tp)?
 
If we don't bundle them, we will have to use distinct names to refer to the same parameter to comply with rfc7950#section-4.2.7, which is unfortunate:

   YANG allows the data model to segregate incompatible nodes into
   distinct choices using the "choice" and "case" statements.  The
   "choice" statement contains a set of "case" statements that define
   sets of schema nodes that cannot appear together.  Each "case" may                                                    
   contain multiple nodes, but each node may appear in only one "case"
                           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 
   under a "choice".
   ^^^^^^^^^^^^^^^^

I updated the draft to call this out: 

NEW:
   Note that LDP and L2TP choices are bundled ("ldp-or-l2tp") because
   they share a set of common parameters that are further detailed in
   Sections 7.5.2.2 and 7.5.2.3.


> In fact, there is no case, rather there is a container with that
> identifier on page 93.  This is valid  YANG - a container can
> stand in
> for a case - but with six pages of YANG in-between, this is hard
> to
> follow.  I would suggest /container/case/ or if there is a reason
> for
> not using case, then add a comment to that effect in the YANG
> module
> prior to the container statement.
> 
> Tom Petch
> 
> >
> > The IESG plans to make a decision in the next few weeks, and
> solicits final
> > comments on this action. Please send substantive comments to the
> > last-call@ietf.org mailing lists by 2022-05-13. Exceptionally,
> comments may
> > be sent to iesg@ietf.org instead. In either case, please retain
> the beginning
> > of the Subject line to allow automated sorting.
> >
> > Abstract
> >
> >
> >     This document defines an L2VPN Network YANG Model (L2NM)
> which can be
> >     used to manage the provisioning of Layer 2 Virtual Private
> Network
> >     services within a network (e.g., service provider network).
> The L2NM
> >     complements the Layer 2 Service Model (L2SM) by providing a
> network-
> >     centric view of the service that is internal to a service
> provider.
> >     The L2NM is particularly meant to be used by a network
> controller to
> >     derive the configuration information that will be sent to
> relevant
> >     network devices.
> >
> >     Also, this document defines a YANG module to manage Ethernet
> segments
> >     and the initial versions of two IANA-maintained modules that
> defines
> >     a set of identities of BGP Layer 2 encapsulation types and
> pseudowire
> >     types.
> >
> >
> >
> >
> > The file can be obtained via
> > https://datatracker.ietf.org/doc/draft-ietf-opsawg-l2nm/
> >
> >
> >
> > No IPR declarations have been submitted directly on this I-D.
> >
> >
> >
> >
> >
> > _______________________________________________
> > IETF-Announce mailing list
> > IETF-Announce@ietf.org
> > https://www.ietf.org/mailman/listinfo/ietf-announce
> > .
> >

_________________________________________________________________________________________________________________________

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.