[Idr] ietf-bgp@2023-07-05.yang: questions

Renato Westphal <renatowestphal@gmail.com> Thu, 14 March 2024 18:42 UTC

Return-Path: <renatowestphal@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 B831BC14F5F4; Thu, 14 Mar 2024 11:42:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.107
X-Spam-Level:
X-Spam-Status: No, score=-2.107 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] 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 fabf2762ozvj; Thu, 14 Mar 2024 11:42:26 -0700 (PDT)
Received: from mail-pj1-x1033.google.com (mail-pj1-x1033.google.com [IPv6:2607:f8b0:4864:20::1033]) (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 0649CC14F5F9; Thu, 14 Mar 2024 11:42:25 -0700 (PDT)
Received: by mail-pj1-x1033.google.com with SMTP id 98e67ed59e1d1-29c722a2e1aso970715a91.1; Thu, 14 Mar 2024 11:42:25 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710441745; x=1711046545; darn=ietf.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=oul8laKYPyYO1EB71h+58b5XEkD750y8CE27OUC7YJg=; b=Fz8+4ScTzOQp7itA+/ls0CtQCqnrUOKGow6aVdp5s1dmLU6kYsysawpV/0UFOSTLn7 cB/5wbp1UYyZ9NSCzLQ6wF/NdNTGNRXf3BDgtPejONhqUIVg2zfSBc+Gh1BHCO5MfU6V HnMNricMc5by1iITE0mHIve5P5hjdZBwc5tuzq1SKbwA7+Z3kIWqPN/mLjpgvaeZ75ci NT6IadBpPG5ZsxzS5xiWPgDlPehqNyL+UdDZhnj6eu3fOdf/S/NOjt/zR/Y3fS6hK9xa 0kRU6nI09BFiaf7SBgT74oxQtLy1JDjfWAcle3gXg2QRV97qgjQ/3lKx2tj+5KWS9jB+ bLJQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710441745; x=1711046545; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=oul8laKYPyYO1EB71h+58b5XEkD750y8CE27OUC7YJg=; b=sk6MuHpHQf0KVvvSE4b7UdPPANJS17/InWi5/SroNDGVANITDOHWn5apZMgDth1eGR ZOX/Zjdk5Y9mdWhujPPBgM2+KoGwWbaFn+wVvnL3KxhXXIdAy84dNN76CfHTxkIXafrG 2PPKQCeD7JupyFrNucdF9M91NpZuDBs8DIcMZMkLCKfXExHAh6HW87RWhExS8m/ipI7u EMjFlPbD+edDSbwxy7tQu0d0skjVlztwykVU7aVbxqZZ3myRI8CX3ffTptLz3EKS6OMn W+NZvOIvCjV3ct7RQECLQSNqm3/nkzAgPtkd+6laWrWFdmsXnxYEPXRe1F/q0942JWI5 1Xww==
X-Forwarded-Encrypted: i=1; AJvYcCVk1G7GIxlMRIJAoz4PwmBXOGiprD0fKmeqiC8+0wOiOteQRpjCIUDXp9DX3RSmziB+hxeMVOu95n2W5j4=
X-Gm-Message-State: AOJu0YzRIkELp3r5pfFMH8eqAKSqctZKBQxRyKIRykzKbqGJAWnJSf1p R1AWUsKFECmrBTMeTzAmhhocs+4yAMXZK1W6jk/xSbkg9dBXObxhEY4fNluKbRQghjSFzcs/IHX Kgeu/pthPra6IFW0d0S50gL8tSx1S9VFEEys=
X-Google-Smtp-Source: AGHT+IEYq4EG+Qu64tCgLT0CZmqhjiHZCwnfcgqQ7potXC/CSQ7cv9qRlafRvNeGD8uQCJ7HyyX+wOUVnbFFvjVAF/8=
X-Received: by 2002:a17:90a:8006:b0:29c:e2b:ace8 with SMTP id b6-20020a17090a800600b0029c0e2bace8mr2483827pjn.35.1710441744696; Thu, 14 Mar 2024 11:42:24 -0700 (PDT)
MIME-Version: 1.0
From: Renato Westphal <renatowestphal@gmail.com>
Date: Thu, 14 Mar 2024 15:42:13 -0300
Message-ID: <CAChaegkJHZVe7cUPPj2v9L+fm37xhEKMu973nDTCxHiBpJnXag@mail.gmail.com>
To: draft-ietf-idr-bgp-model@ietf.org, idr@ietf.org
Content-Type: multipart/alternative; boundary="0000000000009a101d0613a34051"
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/u_kTKdrdUcu43odgA7AsMd2WsPw>
Subject: [Idr] ietf-bgp@2023-07-05.yang: questions
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: Thu, 14 Mar 2024 18:42:26 -0000

Hi all,

I'm currently working on a new BGP implementation [1] and would like to ask
a few questions about the BGP YANG model, in addition to providing some
feedback. I apologize if some of these questions were already asked before,
but I couldn't find anything in the mailing list archives.

1 - Shouldn't the "bgp-adj-rib-common-attr-refs" and
"bgp-loc-rib-common-attr-refs" groupings include a leaf referencing the
"ipv6-ext-communities" attribute set corresponding to the route? Those
groupings already have "community-index", "ext-community-index" and
"large-community-index", but nothing for IPv6 extended communities.

2 - I think there needs to be some clarification on the presence of the
"apply-policy" container on various parts of the model hierarchy. For
instance, if an "import-list" is configured for the ipv4-unicast address
family of a neighbor, and another "import-list" is configured at the
top-level for the same neighbor, should the address-family "import-list"
take precedence, or should they be combined?

Also, what is the purpose of the "apply-policy" container at the routing
instance level, not associated with any neighbor?

3 - The "route-selection-options" container has the following description:
"Configuration and state relating to route selection options".

My understanding is that this container should contain only configuration
options related to the best-path selection algorithm.

However, the following leaves under that container seem more related to
route propagation instead:
* "advertise-inactive-routes": "Advertise inactive routes to external
peers. The default is to only advertise active routes.".
* "enable-aigp": "Flag to enable sending / receiving accumulated IGP
attribute in routing updates".
* "enable-med": "Flag to enable sending/receiving of MED metric attribute
in routing updates".

Maybe I'm being too picky, but the three leaves above differ substantially
from the others in the same container.

4 - The following three leaves appear in the Loc-RIB, Adj-RIB-In and
Adj-RIB-Out: "eligible-route", "ineligible-reason" and "reject-reason".
Shouldn't these leaves be omitted from the Loc-RIB and Adj-RIB-Out lists,
as routes in those tables are presumably valid?

5 -
"/rt:routing/rt:control-plane-protocols/rt:control-plane-protocol/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:afi-safis/bgp:afi-safi/bgp:prefixes/bgp:installed"

The description of this leaf is the following: "The number of advertised
prefixes installed in the Loc-RIB". Wouldn't "received prefixes" be a more
useful counter?

6 -
"/rt:routing/rt:control-plane-protocols/rt:control-plane-protocol/bgp:bgp/bgp:neighbors/bgp:neighbor/bgp:session-state"

Why can't this leaf be "config false" as one would expect? I don't
understand the comment about "notification does not like a non-config
statement".

7 -
"/rt-pol:routing-policy/rt-pol:policy-definitions/rt-pol:policy-definition/rt-pol:statements/rt-pol:statement/rt-pol:conditions/bp:bgp-conditions/bp:as-path-length"

The description of this container says the following: "[snip] The
as-path-length SHALL be calculated and SHALL follow RFC 4271 rules".

I assume by "RFC 4271 rules" the text refers to section 9.1.2.2, where it's
specified that an AS_SET counts as 1 (plus the changes from RFC 5065). To
prevent confusion, it might be good to update the container description to
be more precise.

8 - I think it would be nice if the BGP model augments
"/rt:routing/rt:ribs/rt:rib/rt:routes/rt:route" with BGP-specific route
attributes (e.g. AS_PATH), similar to what the OSPF model does.

9 - The term "NOTIFICATION PDU" appears several times in the BGP model,
where "NOTIFICATION message" would be more appropriate.

[1] https://github.com/holo-routing/holo

Best Regards,
-- 
Renato Westphal