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

Yingzhen Qu <yingzhen.ietf@gmail.com> Tue, 28 September 2021 01:04 UTC

Return-Path: <yingzhen.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 6D6E33A0BDA; Mon, 27 Sep 2021 18:04:34 -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 78fKsXmNHQyO; Mon, 27 Sep 2021 18:04:29 -0700 (PDT)
Received: from mail-pg1-x535.google.com (mail-pg1-x535.google.com [IPv6:2607:f8b0:4864:20::535]) (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 EFA003A0BD5; Mon, 27 Sep 2021 18:04:28 -0700 (PDT)
Received: by mail-pg1-x535.google.com with SMTP id y186so8115458pgd.0; Mon, 27 Sep 2021 18:04:28 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wJ9lWXmQbWu/Hy2DfhUY9osAdHI/s6GAT+XBIDgs/pA=; b=ZF3/PBeONfryyE4AgKs1tpJXPdsbxvMDnne9EqJnJhehi+VBkw9qujApTDDzgwjunH 6XJoV9VxF0dchXiZJ5Wq/2fZroOwT1bg2xQijcHzwkfRfzhlEPPcAh6jg6rsugC+FGlo WaZQc38uZcQ9vZKrvbseZwbDpNPZa4PJHPk3f5pwDvUqzyOBr080A8DwpXAa0d40Haji plGauOIA81C4ElR7piJSqKkwyeWQO5Y7zx856d4IMz1pm8BsumPqjJ8SbllXu2Iq16vD CY4SHWmPuqtf99XG78WVxcDhy16Sbt+gvfPUEE4+3zrGOg9kTGS0FaRxvmdSNpDd8gdO 9b+Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=wJ9lWXmQbWu/Hy2DfhUY9osAdHI/s6GAT+XBIDgs/pA=; b=2nfJj7k45bZUqiOV8dDg1lt9fH5h6GtiMPfaLEVrG5i6PCxEYD4YqAxfHwWFr+zACN vbb/nz5ec1pb13LjcNxnOiZ2ihmzFW+4Y89k0QfdAgLvVtkDNF4tBIkqVI+zY5c2oWLo 52ZnEYU+M4hn0ER2hCK1mAFOAa6U8JfmwCLmR1IRyzPGIppgCCwGhPltsE+xD1PqrOf/ Kv4R4sJD68RWGE6wT00Mm97Jr8UwpUb87nIn4UEQIR3hozFX9qDysm7WQMbxpOkKDgHG ghH3s0uZ9LxH8C+eKN1cAXzdQxe8dfB5OimsIYJMkACv8tpXW9cJCNq94HMxmUtY+lVH p0NQ==
X-Gm-Message-State: AOAM531AEPAlBfD+LhRL+/meLyVsa33RknhILhIRSgdDNai3u+pck8O3 1DG+TwxW1ElRhlWwXwM3IGfQB6Ph9pez
X-Google-Smtp-Source: ABdhPJxUBqULF1EsRkCDofyGyEhWb48R6wdUiMpY4qYabCb5x1XMBVpOt9EqY3Kzkh0L5Rdgx4+4Og==
X-Received: by 2002:a62:cf02:0:b0:447:d4d5:db39 with SMTP id b2-20020a62cf02000000b00447d4d5db39mr2852074pfg.67.1632791068047; Mon, 27 Sep 2021 18:04:28 -0700 (PDT)
Received: from ?IPv6:2601:646:9702:c61:4d33:d960:e544:43ef? ([2601:646:9702:c61:4d33:d960:e544:43ef]) by smtp.gmail.com with ESMTPSA id e11sm14650809pfm.28.2021.09.27.18.04.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Sep 2021 18:04:27 -0700 (PDT)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 14.0 \(3654.40.0.2.32\))
Subject: Re: draft-ietf-rtgwg-policy-model default reject-route
From: Yingzhen Qu <yingzhen.ietf@gmail.com>
In-Reply-To: <0AB0B79B-58C8-4A1E-A58A-54DBCBE6A510@gmail.com>
Date: Mon, 27 Sep 2021 18:04:26 -0700
Cc: Chris Smiley <csmiley@amsl.com>, draft-ietf-rtgwg-policy-model@ietf.org, RFC Editor <rfc-ed@rfc-editor.org>, rtgwg@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <D646D6F5-70E1-44C4-82B6-CE0E4BBB0A28@gmail.com>
References: <544490BF-093A-4775-A293-95DADBCAC0BC@amsl.com> <0AB0B79B-58C8-4A1E-A58A-54DBCBE6A510@gmail.com>
To: Jeff Tantsura <jefftant.ietf@gmail.com>
X-Mailer: Apple Mail (2.3654.40.0.2.32)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtgwg/vOiV_SodP1r42JDdqAICAoQPLZw>
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: Tue, 28 Sep 2021 01:04:35 -0000

I agree with the change. 

Thanks,
Yingzhen

> On Sep 27, 2021, at 4:37 PM, Jeff Tantsura <jefftant.ietf@gmail.com> wrote:
> 
> 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
>>> 
>> 
> 
> _______________________________________________
> rtgwg mailing list
> rtgwg@ietf.org
> https://www.ietf.org/mailman/listinfo/rtgwg