Re: [Idr] I-D Action: draft-ietf-idr-bgp-model-17.txt

Mahesh Jethanandani <mjethanandani@gmail.com> Fri, 08 September 2023 03:45 UTC

Return-Path: <mjethanandani@gmail.com>
X-Original-To: idr@ietfa.amsl.com
Delivered-To: idr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8FA17C1516F3 for <idr@ietfa.amsl.com>; Thu, 7 Sep 2023 20:45:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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_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=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 GGXKAh8O_N_u for <idr@ietfa.amsl.com>; Thu, 7 Sep 2023 20:45:09 -0700 (PDT)
Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) (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 2CC3DC1516FF for <idr@ietf.org>; Thu, 7 Sep 2023 20:45:09 -0700 (PDT)
Received: by mail-pf1-x42e.google.com with SMTP id d2e1a72fcca58-68bec3a1c0fso1411575b3a.1 for <idr@ietf.org>; Thu, 07 Sep 2023 20:45:09 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694144708; x=1694749508; darn=ietf.org; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=DQdfBBCuWOmPenyQSSPARLkP1g8VkF7KgDkfKSb0hcM=; b=iEZKPhKCRaLiI8SZtqpNV5xRbH6XEGoEcy9Sd9vzG7PZ9xJrh5OOm46F+OvDf/SmyX yy3rWaK2gfRjbO+4k9Pk3HHAwjgiq0cZwdNNzAbgN8W2+h2IhggRgypUNsXwkUFWnmvo OpegXi/QihLhdEF99YFiggs5hshsuz65bpe1y1PPrP7comjDbTXQcPG1gth8cAZPg7t0 k2IQ06lhd7xjdJ1vpt53cGorB9Ah28ZprmCkb9fOx1+4Z9EGZzE0gPyOcG0Y03gUVagf rTo9i0MEUGhQ+I3ql8H6rbOIVrQ3mlEuDhnb9zQR3Id90CZXCuSIKmVmwx6wAcxQ37xl vacg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694144708; x=1694749508; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=DQdfBBCuWOmPenyQSSPARLkP1g8VkF7KgDkfKSb0hcM=; b=HW5yvoBX9clXybFa8GBHmrx2ELLCLWenk7QTvuwGZQz7B6VV9daclIQQMjs+xxQ4Lb 80GodqQLwJx9fHjNQHMHCkHjHr3C2TF46DpOjVKJPdcWrDj/Kx6Jmsv3w5/F6BAp5VN2 2O6d6n4vkTPQI8mrfwTxLXmB5p6CcHCEafJGtx6iGmPHTPOtkpFUiva8fEBFbzHBagET cJzxAqR19MgNOGeFY0xc6UM5zqBLBFxHHZEFMu81eUwKHKbfk5ntAc9JV03IJsLoPHhY nRltIJwfM7UvKUge5NztXA1XU4Si3nZkSUvY9ZdEsHftUnFTc19ThzFup0UykzGCDMeN xSnw==
X-Gm-Message-State: AOJu0YwhqcBy2Z++xWErexrE0W9f0UJJPUKQ/ZPc/6MZS3bUvgW2fqCM oZLqSmCVvmaVGLnoViAImN1N7hqOQwdqoQ==
X-Google-Smtp-Source: AGHT+IGODQZCpbC3O9jNTt/M3P3KurJJyBz01XHfunoEWiCxMzHR2KQSRj1VDCrgMZQ+vCESxD426A==
X-Received: by 2002:a05:6a00:24c6:b0:68a:553a:c0da with SMTP id d6-20020a056a0024c600b0068a553ac0damr1365723pfv.24.1694144708079; Thu, 07 Sep 2023 20:45:08 -0700 (PDT)
Received: from smtpclient.apple (c-69-181-169-15.hsd1.ca.comcast.net. [69.181.169.15]) by smtp.gmail.com with ESMTPSA id n15-20020aa78a4f000000b006889664aa6csm404729pfa.5.2023.09.07.20.45.05 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 07 Sep 2023 20:45:06 -0700 (PDT)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
Message-Id: <BB3ED047-84B7-4CD3-947E-FC081C1A14B3@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_B8087927-577D-47B4-88F1-60FB6DF34CE3"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.120.0.1.15\))
Date: Thu, 07 Sep 2023 20:45:04 -0700
In-Reply-To: <14017f6a-c823-e701-98d2-bf61d45c1584@nic.cz>
Cc: idr@ietf.org
To: Maria Matejka <maria.matejka=40nic.cz@dmarc.ietf.org>
References: <168858172010.10429.757303738725261877@ietfa.amsl.com> <F06A9C0B-3A11-42C3-B466-933EC206194A@gmail.com> <14017f6a-c823-e701-98d2-bf61d45c1584@nic.cz>
X-Mailer: Apple Mail (2.3654.120.0.1.15)
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/wMXQb45fd9igGQN6kFBJ0H5XsiM>
Subject: Re: [Idr] I-D Action: draft-ietf-idr-bgp-model-17.txt
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Inter-Domain Routing <idr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/idr>, <mailto:idr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/idr/>
List-Post: <mailto:idr@ietf.org>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 08 Sep 2023 03:45:11 -0000

Hi Maria,

Have gone ahead and opened an issue for each of these items at:

https://github.com/mjethanandani/ietf-bgp-yang/issues <https://github.com/mjethanandani/ietf-bgp-yang/issues>

For any new issues feel free to create a new issue, and we will consider it in the next meeting of the authors.

Cheers!

> On Aug 29, 2023, at 3:25 AM, Maria Matejka <maria.matejka=40nic.cz@dmarc.ietf.org> wrote:
> 
> Hello!
> 
> I'm reiterating BIRD's issues with the BGP YANG model, like those sent here: https://mailarchive.ietf.org/arch/msg/idr/3rVyYyqVHIy9lMk12CPobFJ3CSo/ <https://mailarchive.ietf.org/arch/msg/idr/3rVyYyqVHIy9lMk12CPobFJ3CSo/>
> Shortly:
> 
> 1. Indexing BGP neighbors by their IP addresses is broken for routers handling multiple VRF's on legacy IPv4. Our suggestion is this:
> 
> [page 26] in `list neighbor` exchange `key "remote-address"` for `key "name"` and add `leaf name { type string; description "Name of this neighbor entry."; }`
> 
> This allows for BIRD to key configured neighbors by their names (which is what we do) and everybody else can simply put the IP address in the "name" field as well. (It's a string type anyway.)
> 
> 2. Regex on pages 112-113 representing `bgp-large-community-type` doesn't match `4199999999:0:0` which is an obvious bug. Our suggestion is to make it a container: 
> 
> container bgp-large-community {
>   leaf asn { type uint32; }
>   leaf data1 { type uint32; }
>   leaf data2 { type uint32; }
> }
> 
> This also aligns better with RFC 8092 where the large community is defined as a block of three uint32 values.
> 
> 3. The same regex bug occurs e.g. on page 116 in `route-origin` pattern. Our suggestion is to make the bgp-ext-community just a simple uint64 type.
> 
> 4. Another regex bug occurs on page 112 in `bgp-comunity-type` (sorry for jumping backwards, just spotted it) which incorrectly matches `66444:0`. Our suggestion is to keep it simple with uint32 type only.
> 
> 5. There is a completely big separate topic about the policy definitions but we're now tending to simply deviate from YANG in this completely and write our own YANG describing our filtering language as it may be much easier than trying to find a common ground.
> 
> This is _not_ an exhaustive list of our issues with the draft, I haven't completed its analysis yet.
> 
> Thank you for considering our issues.
> Maria
> 
> On 7/5/23 20:45, Mahesh Jethanandani wrote:
>> This version of the model addresses some of the comments that were received as part of LC.
>> 
>> For issues with this version of the draft, please feel free to discuss them here, open issues or contribute via a PR at:
>> 
>> https://github.com/mjethanandani/ietf-bgp-yang <https://github.com/mjethanandani/ietf-bgp-yang>
>> 
>> Thanks.
>> 
>>> On Jul 5, 2023, at 11:28 AM, internet-drafts@ietf.org <mailto:internet-drafts@ietf.org> wrote:
>>> 
>>> 
>>> A New Internet-Draft is available from the on-line Internet-Drafts
>>> directories. This Internet-Draft is a work item of the Inter-Domain Routing
>>> (IDR) WG of the IETF.
>>> 
>>>   Title           : YANG Model for Border Gateway Protocol (BGP-4)
>>>   Authors         : Mahesh Jethanandani
>>>                     Keyur Patel
>>>                     Susan Hares
>>>                     Jeffrey Haas
>>>   Filename        : draft-ietf-idr-bgp-model-17.txt
>>>   Pages           : 225
>>>   Date            : 2023-07-05
>>> 
>>> Abstract:
>>>   This document defines a YANG data model for configuring and managing
>>>   BGP, including protocol, policy, and operational aspects, such as
>>>   RIB, based on data center, carrier, and content provider operational
>>>   requirements.
>>> 
>>> The IETF datatracker status page for this Internet-Draft is:
>>> https://datatracker.ietf.org/doc/draft-ietf-idr-bgp-model/ <https://datatracker.ietf.org/doc/draft-ietf-idr-bgp-model/>
>>> 
>>> There is also an htmlized version available at:
>>> https://datatracker.ietf.org/doc/html/draft-ietf-idr-bgp-model-17 <https://datatracker.ietf.org/doc/html/draft-ietf-idr-bgp-model-17>
>>> 
>>> A diff from the previous version is available at:
>>> https://author-tools.ietf.org/iddiff?url2=draft-ietf-idr-bgp-model-17 <https://author-tools.ietf.org/iddiff?url2=draft-ietf-idr-bgp-model-17>
>>> 
>>> Internet-Drafts are also available by rsync at rsync.ietf.org::internet-drafts
>>> 
>>> 
>> 
>> 
>> Mahesh Jethanandani
>> mjethanandani@gmail.com <mailto:mjethanandani@gmail.com>
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> 
>> _______________________________________________
>> Idr mailing list
>> Idr@ietf.org <mailto:Idr@ietf.org>
>> https://www.ietf.org/mailman/listinfo/idr <https://www.ietf.org/mailman/listinfo/idr>
> -- 
> Maria Matejka (she/her) | BIRD Team Leader | CZ.NIC, z.s.p.o.
> _______________________________________________
> Idr mailing list
> Idr@ietf.org
> https://www.ietf.org/mailman/listinfo/idr


Mahesh Jethanandani
mjethanandani@gmail.com