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

Maria Matejka <maria.matejka@nic.cz> Tue, 29 August 2023 10:25 UTC

Return-Path: <maria.matejka@nic.cz>
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 DB111C15152C for <idr@ietfa.amsl.com>; Tue, 29 Aug 2023 03:25:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.196
X-Spam-Level:
X-Spam-Status: No, score=-2.196 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, HTML_MESSAGE=0.001, NICE_REPLY_A=-0.091, 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 (1024-bit key) header.d=nic.cz
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 VgfzwnsWXTuy for <idr@ietfa.amsl.com>; Tue, 29 Aug 2023 03:25:14 -0700 (PDT)
Received: from mail.nic.cz (mail.nic.cz [IPv6:2001:1488:800:400::400]) (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 F28F1C151094 for <idr@ietf.org>; Tue, 29 Aug 2023 03:25:13 -0700 (PDT)
Received: from [IPV6:2001:1488:fffe:6:50ad:afe4:e55e:3bf5] (unknown [IPv6:2001:1488:fffe:6:50ad:afe4:e55e:3bf5]) by mail.nic.cz (Postfix) with ESMTPSA id 2DE8B1C070E for <idr@ietf.org>; Tue, 29 Aug 2023 12:25:10 +0200 (CEST)
Authentication-Results: mail.nic.cz; auth=pass smtp.auth=maria.matejka@nic.cz smtp.mailfrom=maria.matejka@nic.cz
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=nic.cz; s=default; t=1693304710; bh=LqLAtMOrOEkYmnvNg9yVeVF+HgB/Mo/Qcuo1gPV9f3I=; h=Date:Subject:To:References:From:In-Reply-To:From:Reply-To:Subject: To:Cc; b=tD5UB1IHZjKkFco6T29jJUBtAKKROE+pKOYqNxPeuGAVth+1mb6MnKpbTpPo0BiNF 1z9k9nF6D5yD1pCxlNmceGvnu2r4lnWb+ySntwb9KeFoSYmrvW56D7sxsxIEO+WXqm X34vV/QTgrodViiYZQsmzJ2wG0mEVw5L0uUB4GVs=
Content-Type: multipart/alternative; boundary="------------APanbVaJuN26PAxYMAM9QOri"
Message-ID: <14017f6a-c823-e701-98d2-bf61d45c1584@nic.cz>
Date: Tue, 29 Aug 2023 12:25:09 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0
Content-Language: en-US, cs
To: idr@ietf.org
References: <168858172010.10429.757303738725261877@ietfa.amsl.com> <F06A9C0B-3A11-42C3-B466-933EC206194A@gmail.com>
From: Maria Matejka <maria.matejka@nic.cz>
In-Reply-To: <F06A9C0B-3A11-42C3-B466-933EC206194A@gmail.com>
X-Virus-Scanned: clamav-milter 0.103.7 at mail
X-Virus-Status: Clean
X-Spamd-Result: default: False [-0.10 / 20.00]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; WHITELISTED_IP(0.00)[2001:1488:fffe:6:50ad:afe4:e55e:3bf5]; FROM_HAS_DN(0.00)[]; ASN(0.00)[asn:25192, ipnet:2001:1488::/32, country:CZ]
X-Rspamd-Pre-Result: action=no action; module=multimap; Matched map: WHITELISTED_IP
X-Rspamd-Action: no action
X-Rspamd-Queue-Id: 2DE8B1C070E
X-Rspamd-Server: mail
X-Spamd-Bar: /
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/mABe9mQgfktOLBPJBeRcOdeepQU>
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: Tue, 29 Aug 2023 10:25:18 -0000

Hello!

I'm reiterating BIRD's issues with the BGP YANG model, like those sent 
here: 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
>
> Thanks.
>
>> On Jul 5, 2023, at 11:28 AM, 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/
>>
>> There is also an htmlized version available at:
>> 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
>>
>> Internet-Drafts are also available by rsync at 
>> rsync.ietf.org::internet-drafts
>>
>>
>
>
> Mahesh Jethanandani
> mjethanandani@gmail.com
>
>
>
>
>
>
>
> _______________________________________________
> Idr mailing list
> Idr@ietf.org
> https://www.ietf.org/mailman/listinfo/idr

-- 
Maria Matejka (she/her) | BIRD Team Leader | CZ.NIC, z.s.p.o.