Re: draft-ietf-rtgwg-policy-model default reject-route

Jeff Tantsura <jefftant.ietf@gmail.com> Mon, 27 September 2021 23:37 UTC

Return-Path: <jefftant.ietf@gmail.com>
X-Original-To: rtgwg@ietfa.amsl.com
Delivered-To: rtgwg@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8ABBF3A11EB; Mon, 27 Sep 2021 16:37:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PsaAcy0-iHUa; Mon, 27 Sep 2021 16:37:03 -0700 (PDT)
Received: from mail-pj1-x102e.google.com (mail-pj1-x102e.google.com [IPv6:2607:f8b0:4864:20::102e]) (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 6C6AA3A11E4; Mon, 27 Sep 2021 16:37:03 -0700 (PDT)
Received: by mail-pj1-x102e.google.com with SMTP id nn5-20020a17090b38c500b0019af1c4b31fso1337798pjb.3; Mon, 27 Sep 2021 16:37:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=cx4dcmEDYQrcs6RqHjEPw3wCc1RsFXZsuENJPny3g+o=; b=m+RBZvhZvAZXUbAN+WUnJBbU5ozx8yjduZi0qIFvYphqVgI2AWTcwb3TETDiW2S9dB bl3HnElYVkX96CPnozFFySdc7/WgaWMh7dqx4CQqdU+kpsrYNErJ0QJ9dum4SBjwj2Yp iIhoachImBDEDf2anQ/cEmQEgolD113CAnK0d4kvo5nGt7nusEtOCFyBPY+9yyFIf/2v IVeIUDsC4LQMEtOJvO7dC+zYRAjkKfhFaI/50H+0o8LUp/ZydM/W9wPAKvVyNbAIviba njNh3ILmuWtxxcm8VT3Pav9eExByP5fvxV19LXfXKAigE8fE+gMpU1/VksY61nATshfy WGHw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=cx4dcmEDYQrcs6RqHjEPw3wCc1RsFXZsuENJPny3g+o=; b=NowexzKL/zrcANZf6gLfLq2BCk4zGcFUlm8lQyDJF1YhQXtTbKti6+O8ndXbYPg0JZ SWOA56drJGRPYboIpMiZlL9Q5CGnhefypGfdj7KyUC8awluROQFlUr8UkmfwHQAMXd6C NJ4MeeABr46UJIpcId3g4yw8nVfI9CdRX4fY14+AFfyiIEnNWDiIneMcmRi0ghy10XtC d2AP6h59+GppSbqTMWTK65I5Rpj3fsD/Jia6ZKWcykLuXhuV5096RY+mPpYtCnWPFNlH Iow2rjZ3sghD8lrCCO9WE7mBpTsL7E0ZZpS8ZP00sY6j+UhN46xuFLhhP8nPduX1o5zL bSsQ==
X-Gm-Message-State: AOAM532MJm7HS3Cfj31wUvkJhNPmZnHZc5pDY1j2CcCUgYGG5ITl8yo2 wYv53keaHOidTcdwXkkhiPs=
X-Google-Smtp-Source: ABdhPJw6/xB0PLuLQp9i8OtXDssETtlLHPvjrU9Uq6DJswF0ynxBW0kVyIY4P16g2Q6jsSyJsdPGPQ==
X-Received: by 2002:a17:90b:4d05:: with SMTP id mw5mr1761082pjb.175.1632785822750; Mon, 27 Sep 2021 16:37:02 -0700 (PDT)
Received: from smtpclient.apple ([2607:fb90:8714:597d:8da5:b3d1:2c1f:4fe1]) by smtp.gmail.com with ESMTPSA id p52sm17934436pfw.132.2021.09.27.16.37.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 Sep 2021 16:37:02 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
From: Jeff Tantsura <jefftant.ietf@gmail.com>
Mime-Version: 1.0 (1.0)
Subject: Re: draft-ietf-rtgwg-policy-model default reject-route
Date: Mon, 27 Sep 2021 16:37:00 -0700
Message-Id: <0AB0B79B-58C8-4A1E-A58A-54DBCBE6A510@gmail.com>
References: <544490BF-093A-4775-A293-95DADBCAC0BC@amsl.com>
Cc: "Acee Lindem (acee)" <acee@cisco.com>, Kris Lambrechts <kris@netedge.plus>, draft-ietf-rtgwg-policy-model@ietf.org, rtgwg@ietf.org, Alvaro Retana <aretana.ietf@gmail.com>, RFC Editor <rfc-ed@rfc-editor.org>
In-Reply-To: <544490BF-093A-4775-A293-95DADBCAC0BC@amsl.com>
To: Chris Smiley <csmiley@amsl.com>
X-Mailer: iPhone Mail (19A346)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtgwg/KI24Ed7j36TUBQgMfIOAbDKHoug>
X-BeenThere: rtgwg@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Routing Area Working Group <rtgwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtgwg>, <mailto:rtgwg-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtgwg/>
List-Post: <mailto:rtgwg@ietf.org>
List-Help: <mailto:rtgwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtgwg>, <mailto:rtgwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 27 Sep 2021 23:37:09 -0000

Agree.

Cheers,
Jeff

> On Sep 27, 2021, at 16:20, Chris Smiley <csmiley@amsl.com> wrote:
> 
> 
> Adding rfc-editor@rfc-editor.org
> 
> 
>> On Sep 27, 2021, at 11:58 AM, Acee Lindem (acee) <acee@cisco.com> wrote:
>> 
>> Hi Kris, 
>> I agree with your analysis and proposal. Do others have comment? If not,  we should remove during AUTH48 (Chris Smiley copied). 
>> Thanks,
>> Acee
>> 
>> On 9/17/21, 10:55 AM, "rtgwg on behalf of Kris Lambrechts" <rtgwg-bounces@ietf.org on behalf of kris@netedge.plus> wrote:
>> 
>>   Hi,
>> 
>>   I have been working on an implementation of
>>   ietf-routing-policy@2021-08-12.yang and
>>   ietf-bgp-policy@2021-07-11.yang and I'm struggling to implement a
>>   pattern that I think is very common among routing policies.
>> 
>>   The problem I'm seeing is with the policy-result leaf under actions.
>>   It is of type policy-result-type meaning that it can be either
>>   accept-route or reject-route with a default of reject-route. As per
>>   section 5.  Policy evaluation, all processing ends when either of
>>   these is encountered. That would mean only one statement in a policy
>>   can ever be processed. The first paragraph of section 5 suggests the
>>   presence of those actions is optional however:
>>> If the actions include either accept-route or reject-route actions, evaluation of the current policy definition stops, and no further policy statement is evaluated.
>> 
>>   In any vendor implementation I'm familiar with it is possible, and
>>   common in practice, to combine actions (i.e. set a BGP community or
>>   local-preference) from various statements which are processed in order
>>   by either implicitly or explicitly continuing on to the next
>>   statement.
>> 
>>   So my proposal here is to remove the default statement from the
>>   policy-result, which would signify an implicit continuation to the
>>   next statement. Or with the same net effect, you could add a
>>   next-statement enum to the policy-result-types to make the choice
>>   explicit.
>> 
>>   I feel like either change would make it much easier to write elegant,
>>   compact and easy-to-understand policies (and to port existing
>>   policies). Still, if this goes against your intended design, it would
>>   be good to fix any wording in the draft that implies that these
>>   actions are optional.
>> 
>>   Thank you,
>> 
>>   Kris Lambrechts
>> 
>>   _______________________________________________
>>   rtgwg mailing list
>>   rtgwg@ietf.org
>>   https://www.ietf.org/mailman/listinfo/rtgwg
>> 
>