Re: [netmod] [Lsr] I-D Action: draft-ietf-lsr-ospfv3-extended-lsa-yang-10.txt

Randy Presuhn <randy_presuhn@alumni.stanford.edu> Wed, 20 April 2022 18:34 UTC

Return-Path: <randy_presuhn@alumni.stanford.edu>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 955623A0CF0 for <netmod@ietfa.amsl.com>; Wed, 20 Apr 2022 11:34:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.905
X-Spam-Level:
X-Spam-Status: No, score=-1.905 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
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 4XbtjmImRvwW for <netmod@ietfa.amsl.com>; Wed, 20 Apr 2022 11:34:05 -0700 (PDT)
Received: from mail-pj1-f51.google.com (mail-pj1-f51.google.com [209.85.216.51]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 5C79F3A0C4B for <netmod@ietf.org>; Wed, 20 Apr 2022 11:34:05 -0700 (PDT)
Received: by mail-pj1-f51.google.com with SMTP id md20-20020a17090b23d400b001cb70ef790dso5671451pjb.5 for <netmod@ietf.org>; Wed, 20 Apr 2022 11:34:05 -0700 (PDT)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:references:from:in-reply-to :content-transfer-encoding; bh=qY/SLumVtcFeQxQ0nzfmd/frgy1j7Vr8fYuH0hBBM4k=; b=JGccSV4dtvzfFkWNe+20xS43hFqapWKl+EQ82ElQO5rmJJ5jv81FRjnQxLe10MSPxN fly1mhgpoDvnuLG+WSdcRWMx3B0v5PdgWRKjwvU9CFjZJ3QE8mUoGRwWfEqgYfCZUf+Q ri6idNVzolEWUiYOyREqgwZEyWyDrpCnwYEfaprpdEIHixneLPBZTQrUJH7Kj39Vok29 aNtjulZqL8xXdbNOd6cHRzpYZqBLFMjtu4XBwjdL1/k94LBqL4qk3VT0dMn3Lbeyjus1 A/PkmwE6L02PDzIQZuC/G6hoEWlV5Whd614rbHuDOl0hufTVXmiMxZ66snpFUWa6NQZf 3rSw==
X-Gm-Message-State: AOAM532san0Ki0jq+MhCFHQ6YpatZtns0SxU3FrQjWazDYnko6unvcRa sPb6Fd298ow41AW8d8EAxJNScg==
X-Google-Smtp-Source: ABdhPJx3cdHK7j3WET9Y/zDrxOXCV/dbj35NwuNFfK0FHRU7gY2dhD2IaRxIh9rf1el9c/N+IDjJ/w==
X-Received: by 2002:a17:90b:384a:b0:1d2:f7ba:8729 with SMTP id nl10-20020a17090b384a00b001d2f7ba8729mr6024988pjb.193.1650479644702; Wed, 20 Apr 2022 11:34:04 -0700 (PDT)
Received: from ?IPV6:2601:646:9300:607:7c81:df72:7a4a:c68d? ([2601:646:9300:607:7c81:df72:7a4a:c68d]) by smtp.gmail.com with ESMTPSA id k10-20020a056a00168a00b004f7e2a550ccsm21737120pfc.78.2022.04.20.11.34.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 20 Apr 2022 11:34:04 -0700 (PDT)
Message-ID: <79027b61-bc13-a3a0-fbff-162c5521e89e@alumni.stanford.edu>
Date: Wed, 20 Apr 2022 11:34:02 -0700
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.0
Content-Language: en-US
To: "lsr@ietf.org" <lsr@ietf.org>, "netmod@ietf.org" <netmod@ietf.org>
References: <BY5PR11MB41966C83474B52949C2B660FB5EF9@BY5PR11MB4196.namprd11.prod.outlook.com> <20220414.152331.1522036488630734842.id@4668.se> <20220414134730.62e3fyhl7e4pvuz4@anna> <20220414.160345.1807693114840953491.id@4668.se> <1347E93F-F193-4677-8070-5E28EDB2F14F@cisco.com> <CABCOCHTPZ+ieLeNRhDR7AmyYYhEgq2bjyHsW-ARM3_9sAip0vQ@mail.gmail.com> <20220414193836.ufqzfhnitb5l5w3h@anna> <CABCOCHQApdv7U15kYZFGopeFE8dR9Xr9SN9vSrwWobwoX-9jyg@mail.gmail.com> <20220414201304.mrx72eycemhb2q6q@anna> <CABCOCHQWhMD=kXZugUNZ6VwsDChC33tP3fPPHgWuQYpirdhOoQ@mail.gmail.com> <a3b12c7a-2d78-47f7-4729-a5e8f6b8b19d@alumni.stanford.edu> <CABCOCHTKQT03Q25Le1TiVobsiKgMe7-OABFEhTzkoTK4NbqqoA@mail.gmail.com> <AM7PR07MB62482308F03E31BDEFBAC60DA0EE9@AM7PR07MB6248.eurprd07.prod.outlook.com> <CABCOCHRT67BvKhqU1ApdCUziBF2bs9t+KXWPj6Wp5cdXj+Vnzw@mail.gmail.com> <79b9bda5-391d-e082-1acb-f87ccc0dd79e@alumni.stanford.edu> <BY5PR11MB419630D751A74A78BD3834B2B5F59@BY5PR11MB4196.namprd11.prod.outlook.com>
From: Randy Presuhn <randy_presuhn@alumni.stanford.edu>
In-Reply-To: <BY5PR11MB419630D751A74A78BD3834B2B5F59@BY5PR11MB4196.namprd11.prod.outlook.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/ce71dMKhjqZyabsQ6uKZZ_0vpLU>
Subject: Re: [netmod] [Lsr] I-D Action: draft-ietf-lsr-ospfv3-extended-lsa-yang-10.txt
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 20 Apr 2022 18:34:10 -0000

Hi -

If one accepts your arguments, you've made the case for defining
a new module with typedefs for ipv6-address, etc. with modified
syntax, semantics, and behavioral constraints to fit what has been
deployed, and that modules requiring those perhaps more felicitously-
named typdefs (because at its heart this kerfuffle is about the names)
should import the definitions from there, rather than the existing 
module.   That would seem the least disruptive path forward.

But I get the feeling that you may envision a world of Yang / Netconf
conformance testing that is far more rigorous than current reality,
at least as reported by those actively involved in tool development.
I'm no fan of the laissez-faire spirit of Netconf, but I fear that
tugging a loose strings like this will unravel the whole wad of yarn,
particularly if any expectations remain that it might support
what has traditionally been called configuration management.  What
happens when the next typedef is found that has been implemented
in a manner not totally consistent with its definition?  This seems
a really really really bad precedent to set.

Randy

On 2022-04-20 6:18 AM, Rob Wilton (rwilton) wrote:
> Hi Randy,
> 
> Thanks for summarizing, but I don't really agree with your 
> categorization for (1) or (3).
> 
> My interpretation of ip-address and the related v4/v6 types, based on 
> RFC 7950, is that implementations MUST allow clients to configure zoned 
> IP addresses to be fully complaint with the module definition.  If a 
> server implementation does not support zoned ip-addresses then it is 
> expected to use a deviation (e.g., to replace the type with 
> ip-address-no-zone) to indicate how it does not conform to the model.  I 
> don’t see that is being any different than an integer datatype with a 
> range “1..255” and the server only supporting the client configuring 
> values in the range “1..100”.
> 
> The "may include a zone index" in the ip-address definitions relates to 
> the client when writing a value (or server when returning a value), 
> i.e., they don't have to always provide zones for all IP addresses.  
> They can leave them out, and when the zone is left out the "default zone 
> of the device will be used".
> 
> E.g., considering the RFC 6991 and the IP RIB YANG model,
> 
>       typedef ipv6-address {
> 
>         type string {
> 
>           pattern '…’
> 
>         }
> 
>         description
> 
>          "The ipv6-address type represents an IPv6 address in full,
> 
>           mixed, shortened, and shortened-mixed notation.  The IPv6
> 
>           address may include a zone index, separated by a % sign.
> 
>           The zone index is used to disambiguate identical address
> 
>           values.  For link-local addresses, the zone index will
> 
>           typically be the interface index number or the name of an
> 
>           interface. *If the zone index is not present, the default*
> 
> *         zone of the device will be used.*
> 
>           The canonical format of IPv6 addresses uses the textual
> 
>           representation defined in Section 4 of RFC 5952 
> <https://www.rfc-editor.org/rfc/rfc5952#section-4>. *The*
> 
> *         canonical format for the zone index is the numerical*
> 
> *         format as described in Section 11.2 of RFC 4007 
> <https://www.rfc-editor.org/rfc/rfc4007#section-11.2>.";*
> 
>       |  |        +--rw v6ur:ipv6
> 
>       |  |           +--rw v6ur:route* [destination-prefix]
> 
>       |  |              +--rw v6ur:destination-prefix
> 
>       |  |              |       inet:ipv6-prefix
> 
>       |  |              +--rw v6ur:description?          string
> 
>       |  |              +--rw v6ur:next-hop
> 
>       |  |                 +--rw (v6ur:next-hop-options)
> 
>       |  |                    +--:(v6ur:simple-next-hop)
> 
> *     |  |                    |  +--rw v6ur:outgoing-interface?*
> 
> *     |  |                    |  |       if:interface-ref*
> 
> *     |  |                    |  +--rw v6ur:next-hop-address?*
> 
> *     |  |                    |          inet:ipv6-address*
> 
> So, considering the model above, if a link local IP address was provided 
> as the next-hop-address without a zone, then according to the type 
> definition, that link-local IP address is associated with the default 
> zone of the device, not the “outgoing interface” for the next hop!  If a 
> zone is returned with a link-local address (e.g., for a get request) 
> then my expectation is that servers return the data using the “interface 
> index number” (since that is the canonical form, this should be returned 
> even if it was configured using an interface name to identify the 
> zone).  Further, as far as I can tell, “interface index number” isn’t 
> really well specified in a YANG management API and is probably far less 
> meaningful that the interface name in a YANG context. I presume that 
> this is if-index in RFC 8343 but that doesn’t need to be supported if 
> the server doesn’t also support SNMP’s if-mib.
> 
> I suspect that the reason why ip-address (and the v4/v6) variants 
> haven’t caused any problems in practice is because implementations are 
> mostly wrongly treating them as ip-address-no-zone, and assuming that 
> the scope information is being provided by other context (e.g., 
> outgoing-interface in the example above), or perhaps most operators just 
> configure their devices using global IP addresses.
> 
> Some further comments inline …
> 
>  > -----Original Message-----
> 
>  > From: netmod <netmod-bounces@ietf.org> On Behalf Of Randy Presuhn
> 
>  > Sent: 15 April 2022 20:25
> 
>  > To: lsr@ietf.org; netmod@ietf.org
> 
>  > Subject: Re: [netmod] [Lsr] I-D Action: 
> draft-ietf-lsr-ospfv3-extended-lsa-yang-
> 
>  > 10.txt
> 
>  >
> 
>  > Hi -
> 
>  >
> 
>  > I took a fresh look at RFC 6991, and a couple of things that have
> 
>  > already been mentioned in this thread bear repetition.
> 
>  >
> 
>  > (1) in both the ipv4-address and ipv6-address typdefs, the zone
> 
>  > is only optionally present.  This is made clear both in the
> 
>  > string patterns as well as the descriptions, which state that
> 
>  > it "may" be present, and clearly specify how its absence is
> 
>  > to be understood.  Thus it's no surprise that their use has not
> 
>  > caused any problems.  If the definitions go unchanged, there's
> 
>  > no demonstrated need for any of the existing uses of these typedefs
> 
>  > to be revised to employ something else, even if other typedefs
> 
>  > are available that are more precisely targeted.
> 
>  >
> 
>  > (2) since both the ipv4-address and ipv6-address typdefs are
> 
>  > used in the ip-address typedef, which is in turn used in the
> 
>  > host typedef, any proposal changing the syntax or semantics
> 
>  > of ipv4-address or ipv6-address  needs to deal with the potential
> 
>  > collateral damage to any module (IETF or otherwise) employing
> 
>  > ip-address or host.
> 
>  >
> 
>  > (3) since the proposed change is to narrow the syntax / semantics
> 
>  > of a typedef (along with any other typdefs that directly or indirectly
> 
>  > incorporate that typedef), the consequence for interoperability is
> 
>  > that some values go from "MAY reject" (such is the nature of Netconf
> 
>  > servers - well-formedness is not sufficient to guarantee that a server
> 
>  > will accept an attempt to apply a particular value to a configuration)
> 
>  > to "MUST reject" (due to the narrowed pattern and description).  This is
> 
>  > where stuff breaks.
> 
> I agree that a NETCONF server might reject any config change but 
> rejecting a zoned IP address provided in an ip-address type still means 
> that the server is violating the data model.  Further, assuming that a 
> link-local IP address without a zone is associated with an interface 
> rather than the device’s default zone is violating the data model.
> 
>  >
> 
>  > (4) since ipv4-address-no-zone is derived from ipv4-address (by
> 
>  > narrowing the pattern), and ipv6-address-no-zone is likewise
> 
>  > derived from ipv6-address, the proposed change will also require
> 
>  > these typedefs to be changed, which will in turn bubble up to
> 
>  > ip-address-no-zone.
> 
>  >
> 
>  > It still makes no sense to me to engage in making such wide-ranging
> 
>  > changes affecting both specifications and implementations with a real
> 
>  > risk to interoperability in order to "fix" a non-problem.
> 
> As far as I can see it, interoperability is already broken:
> 
>   * Clients don’t really know whether a server is implementing
>     “ip-address” as the RFC 6991 definition or using the definition of
>     “ip-address-no-zone”, and potentially this could vary for different
>     leaves.
>   * If servers do support zones then returning the interface index as
>     the canonical representation of the zone, rather than the interface
>     name, seems wrong/unhelpful.
>   * If servers do support clients configuring link-local addresses
>     without a zone then I suspect that most of them would default to the
>     local interface scope (presuming the scope is provided/available)
>     and not the “default zone of the device”.
>   * IETF YANG models widely use ip-address when in many/most cases they
>     probably mean ip-address-no-zone.
> 
> OpenConfig recognized that the based definitions were wrong (i.e., not 
> intuitive) and fixed them.  If we have no way of fixing similar issues 
> in IETF YANG models and improving them over time then I don’t think that 
> leaves us in a good place.
> 
> Regards,
> 
> Rob
> 
>  >
> 
>  > Randy
> 
>  >
> 
>  > _______________________________________________
> 
>  > netmod mailing list
> 
>  > netmod@ietf.org <mailto:netmod@ietf.org>
> 
>  > https://www.ietf.org/mailman/listinfo/netmod 
> <https://www.ietf.org/mailman/listinfo/netmod>
>