Re: [yang-doctors] [I2nsf] Need YANG Doctor reviewing the YANG module of draft-ietf-i2nsf-sdn-ipsec-flow-protection which I2NSF is about to call WGLC

Ladislav Lhotka <lhotka@nic.cz> Mon, 08 April 2019 17:22 UTC

Return-Path: <lhotka@nic.cz>
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 540C01200FF; Mon, 8 Apr 2019 10:22:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7
X-Spam-Level:
X-Spam-Status: No, score=-7 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nic.cz
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 6uLbK8SX1ne8; Mon, 8 Apr 2019 10:22:39 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (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 C766F12002F; Mon, 8 Apr 2019 10:22:38 -0700 (PDT)
Received: from birdie (unknown [IPv6:2a01:5e0:29:ffff:ffc6:c393:cdb9:8db1]) by mail.nic.cz (Postfix) with ESMTPSA id B5416601B9; Mon, 8 Apr 2019 19:22:35 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1554744155; bh=X5SJYqPfluhwlPVlMxNioUmx7OFlwFhVi0Sf8nwEFoE=; h=From:To:Date; b=iHdSWjTd+Ktqor2hZKn2SGd8OBBn/NVLeec7oc7ABf9mra3KXknlueKYXRNG0KOtF kd6kgsT3j78jvycZvH688SBkn8oaTDuAr1IX2tTWT7QJ6BJ2wJEZLdIWrJjlr/toO5 Wq4cIeHe58hD/uRYFPOLolwYR5BpJtdm1hnQefY4=
Message-ID: <7bbceae8076103225e1ba33ce55c116b1cb09d97.camel@nic.cz>
From: Ladislav Lhotka <lhotka@nic.cz>
To: "Acee Lindem (acee)" <acee@cisco.com>, Yoav Nir <ynir.ietf@gmail.com>, Andy Bierman <andy@yumaworks.com>
Cc: "i2nsf@ietf.org" <i2nsf@ietf.org>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>, Linda Dunbar <linda.dunbar@huawei.com>
Date: Mon, 08 Apr 2019 19:22:35 +0200
In-Reply-To: <E08B6E5E-4C9C-4773-BD19-D9CA4EC75FF4@cisco.com>
References: <4A95BA014132FF49AE685FAB4B9F17F66B363EB2@sjceml521-mbs.china.huawei.com> <420D3E9A-9E3C-4575-9C92-200CAA0B868C@gmail.com> <CABCOCHRf3iGUt9wb3htpDYGJ+pAKErvq8OrozndgELUVKYT4Kg@mail.gmail.com> <80347D5B-C4DB-4F0C-BD73-A927585442BF@gmail.com> <87mul04kdd.fsf@nic.cz> <E08B6E5E-4C9C-4773-BD19-D9CA4EC75FF4@cisco.com>
Organization: CZ.NIC
Content-Type: text/plain; charset="UTF-8"
User-Agent: Evolution 3.32.0
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: clamav-milter 0.99.2 at mail
X-Virus-Status: Clean
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/cKZJYJgbQnzX4GyT_8Rmqk2wRS4>
Subject: Re: [yang-doctors] [I2nsf] Need YANG Doctor reviewing the YANG module of draft-ietf-i2nsf-sdn-ipsec-flow-protection which I2NSF is about to call WGLC
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
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, 08 Apr 2019 17:22:43 -0000

On Mon, 2019-04-08 at 15:18 +0000, Acee Lindem (acee) wrote:
> 
> On 4/8/19, 10:55 AM, "yang-doctors on behalf of Ladislav Lhotka" <
> yang-doctors-bounces@ietf.org on behalf of lhotka@nic.cz> wrote:
> 
>     Yoav Nir <ynir.ietf@gmail.com> writes:
>     
>     > At this point I’m wondering if it would not be a better strategy to
>     > avoid all enumerations of algorithms, whether they are spelled out or
>     > imported from draft-ietf-netconf-crypto-types, and instead use the
>     > numbers from the IANA registry for IPsec.
>     >
>     > That does not help us deprecate old algorithms, but it solves the
>     > other issue, which is what to do when a new algorithm is added to
>     > IPsec. We don’t want to have to publish a new i2nsf document whenever
>     > that happens, and if the algorithm identifier is just a number, new
>     > values can be added by IANA.
>     
>     IMO the best option is to combine an enumeration and numbers in a union
>     type. We used this approach in this draft:
>     
>     https://tools.ietf.org/html/draft-lhotka-dnsop-iana-class-type-yang-01
> 
> For iana-routing-types (RFC 8294), we just used enums with the IANA assigned
> values. We went back and forth with identities but settled on this when 

If the number is only the "value" parameter of each enum, then one is still
restricted to the assigned values (and mnemonic enum names in JSON and XML
representations). The trick with uint8/16 as the other union member allows for
using the numeric value in the protocol, and for both assigned and unassigned
values.

Lada

> another SDO said they'd only use our model if we have the actual values in an
> enum. For these types, nobody has complained. 
> 
> https://www.rfc-editor.org/rfc/rfc8294.txt
> 
> Thanks,
> Acee
> 
> 
>     
>     Lada
>     
>     >
>     > Yoav
>     >
>     >> On 5 Apr 2019, at 20:42, Andy Bierman <andy@yumaworks.com> wrote:
>     >> 
>     >> Hi,
>     >> 
>     >> I think conformance for identities is handled very poorly in YANG.
>     >> There is an if-feature-stmt allowed inside an identity in YANG 1.1.
>     >> This implies that any identity without if-feature is mandatory-to-
> implement.
>     >> 
>     >> If the identities are in a separate module, the server can list it as
> an imported module,
>     >> which tells the client the server does not implement any of the
> identities.
>     >> 
>     >> There is no standard way for the server to inform the client which
> identities it supports
>     >> for a given identityref data node.
>     >> 
>     >> The common implementation strategy is to completely ignore YANG
> conformance for identities
>     >> (as Mahesh explained). You just try setting the leaf and see if the
> server accepts it.
>     >> 
>     >> Andy
>     >> 
>     >> 
>     >> On Fri, Apr 5, 2019 at 10:33 AM Mahesh Jethanandani <
> mjethanandani@gmail.com <mailto:mjethanandani@gmail.com>> wrote:
>     >> Hi Linda,
>     >> 
>     >> 
>     >>> On Apr 5, 2019, at 9:51 AM, Linda Dunbar <linda.dunbar@huawei.com
> <mailto:linda.dunbar@huawei..com>> wrote:
>     >>> 
>     >>> Dear YANG Doctor:
>     >>>  
>     >>> We need your help in reviewing the YANG model in draft-ietf-i2nsf-sdn-
> ipsec-flow-protection which I2NSF WG is about to call WGLC.
>     >>>  
>     >>> In particular, we need your advice on the following issue:
>     >>>  
>     >>> draft-ietf-i2nsf-sdn-ipsec-flow-protection-04 imports from draft-ietf-
> netconf-crypto-types, which appears to be a generic list of algorithms.
>     >>> The problem is that the list in draft-ietf-netconf-crypto-types could
> contain algorithms that are not suitable for IPsec (such as secp192r1 for key
> agreement), and right now it seems to lack some older algorithms that have
> fallen out of fashion (3DES) but is still needed in IPsec.  
>     >> 
>     >> All the algorithms in draft-ietf-netconf-crypto-types are defined as
> identities. If you do not find the algorithm you are looking for in the list
> of defined algorithms, you can go ahead and define your own in your own draft,
> using the same base identity from the ietf-crypto-types module.
>     >> 
>     >>>  
>     >>>  
>     >>> Questions to the YANG Doctor:
>     >>> 1.       Is it better to list the IPsec specific algorithms in draft-
> ietf-i2nsf-sdn-ipsec-flow-protection (which is a subset of draft-ietf-netconf-
> crypto-types? Or to import all crypto algorithms many of which are not
> relevant to IPsec? What is the common practice? 
>     >> 
>     >> Importing ietf-crypto-types does not mean you have to implement every
> algorithm listed in the module. You can import the module and chose to
> implement the algorithms you want to implement, including defining any new
> ones.
>     >> 
>     >>> 2.      If we do import from draft-ietf-netconf-crypto-types, does it
> mean draft-ietf-i2nsf-sdn-ipsec-flow-protection cannot be published until
> draft-ietf-netconf-crypto-types is published?
>     >> 
>     >> Yes. The i2nsf draft will hit the state of MISSREF in the RFC Editor
> queue. But that should not prevent anyone from starting implementation of the
> module. As a side note, the NETCONF WG is planning on sending the crypto-types 
> draft to IESG shortly. What you do not want is to duplicate the definition of
> the algorithms in your own draft.
>     >> 
>     >> HTH.
>     >> 
>     >>>  
>     >>>  
>     >>> Thank you very much, 
>     >>>  
>     >>> Linda & Yoav
>     >>>  
>     >>> _______________________________________________
>     >>> yang-doctors mailing list
>     >>> yang-doctors@ietf.org <mailto:yang-doctors@ietf..org>
>     >>> https://www.ietf.org/mailman/listinfo/yang-doctors <
> https://www.ietf.org/mailman/listinfo/yang-doctors>
>     >> Mahesh Jethanandani
>     >> mjethanandani@gmail.com <mailto:mjethanandani@gmail.com>
>     >> 
>     >> 
>     >> 
>     >> _______________________________________________
>     >> yang-doctors mailing list
>     >> yang-doctors@ietf.org <mailto:yang-doctors@ietf.org>
>     >> https://www.ietf.org/mailman/listinfo/yang-doctors <
> https://www.ietf.org/mailman/listinfo/yang-doctors>
>     >> _______________________________________________
>     >> I2nsf mailing list
>     >> I2nsf@ietf.org <mailto:I2nsf@ietf.org>
>     >> https://www.ietf.org/mailman/listinfo/i2nsf <
> https://www.ietf.org/mailman/listinfo/i2nsf>
>     > _______________________________________________
>     > yang-doctors mailing list
>     > yang-doctors@ietf.org
>     > https://www.ietf.org/mailman/listinfo/yang-doctors
>     
>     -- 
>     Ladislav Lhotka
>     Head, CZ.NIC Labs
>     PGP Key ID: 0xB8F92B08A9F76C67
>     
>     _______________________________________________
>     yang-doctors mailing list
>     yang-doctors@ietf.org
>     https://www.ietf.org/mailman/listinfo/yang-doctors
>     
> 
-- 
Ladislav Lhotka
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67