Re: [netmod] Request for improvement in ACL YANG Model: add prefix-list to the match

Oscar González de Dios <oscar.gonzalezdedios@telefonica.com> Wed, 31 March 2021 11:07 UTC

Return-Path: <oscar.gonzalezdedios@telefonica.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AD1A23A247A for <netmod@ietfa.amsl.com>; Wed, 31 Mar 2021 04:07:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level:
X-Spam-Status: No, score=-2.101 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=telefonica.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 4-TOlQjX1bpY for <netmod@ietfa.amsl.com>; Wed, 31 Mar 2021 04:07:14 -0700 (PDT)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2114.outbound.protection.outlook.com [40.107.21.114]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id DE3B03A2477 for <netmod@ietf.org>; Wed, 31 Mar 2021 04:07:11 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LnfAHvLraMR440J0A039NQ9flrGGsnhJ4LdQKzoSd7YMlthT2MQ6nVvtdejCO3I2rTM6Cyhx0wrD3wlus176fobDEm8OatJe1qfbJH8A3tuDEPMjBD0Yulca0Jrq4LMYTkK8kcJPmt2rnmAvyHSKOICV1vZwGFDUU23hm1U2ZuzwPn7QXWqdSMEViwikz7sJZp9i82C8Jqtyml3JDhLYWU6NcXFCMZUt+yXVHyYXO2zAR+0MsXADHNeTYNPDv1Pmm3e7AM2x8v39kOlCwzaiUgYl96htQrn82kSFG2w0yZTYZ/+xfhBFk7iKsUteZAqXloIkCFr570PSt9uYxo3Evg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RQNgxXO0WMDMpu11v1gfLOJ5u3mos00VOyrZISyvAhk=; b=Bf4zMoL06F86CcdylKObliaFFmc4RM4D55jbRgAuqzOM9CcvLFwJtL6Yrf3Deo0dGEkcHfqVd3OMsd5MbQB/GH1q8XzSg768GlLJU6cZIVEavJp+xUU5Tyl81vh3YY6SthXu2XXRhW9iCzevvTJspbSSby6irb6dlNq/7qD9hRDi23/ekCLBSiOy+j4UMDrJVLaB8lyFcCwecC4zTXjnJthChiAryzVHnMqZT8GbidvhkfSUjAKOOO1haFX7dQPAzJMDwl8q2R7rKAOOdwRwIHvesEG3vNt5dpaculwXQphQC2YiXgFMsNMB+pmBMRYxpXvt/cmFkGtRN9+z0RZpIw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=telefonica.com; dmarc=pass action=none header.from=telefonica.com; dkim=pass header.d=telefonica.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=telefonica.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=RQNgxXO0WMDMpu11v1gfLOJ5u3mos00VOyrZISyvAhk=; b=f2TYvH0vZeClglm7JP//d1R+mBaQoH6ECWvZYAUxxMpQuC3NKH4TIPvqKrUKYfvJx0nDbDfycsXUFmMG8v2ZXGYVF/MeutnHf7VdzF+sodUFNR/ZSfeTh2AwetuoBqFzlswM5a0q1qSt20r0GjtZohb9bhaTdvkUJkvLuV2OJCA=
Received: from PAXPR06MB7872.eurprd06.prod.outlook.com (2603:10a6:102:1a3::9) by PR3PR06MB6908.eurprd06.prod.outlook.com (2603:10a6:102:8b::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Wed, 31 Mar 2021 11:07:08 +0000
Received: from PAXPR06MB7872.eurprd06.prod.outlook.com ([fe80::35e1:a3ee:4530:78f2]) by PAXPR06MB7872.eurprd06.prod.outlook.com ([fe80::35e1:a3ee:4530:78f2%7]) with mapi id 15.20.3977.033; Wed, 31 Mar 2021 11:07:08 +0000
From: Oscar González de Dios <oscar.gonzalezdedios@telefonica.com>
To: "Aseem Choudhary (asechoud)" <asechoud@cisco.com>, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] Request for improvement in ACL YANG Model: add prefix-list to the match
Thread-Index: AdcbGExc8OTG49eVSoeJejnhX1jHZwAENNWA///CiICAAHf9AP//j5kA/+nm8rA=
Date: Wed, 31 Mar 2021 11:07:08 +0000
Message-ID: <PAXPR06MB78727F49ACA853AECA280C6EFD7C9@PAXPR06MB7872.eurprd06.prod.outlook.com>
References: <AM6PR06MB565375016D8E2511BD94483BFD6A9@AM6PR06MB5653.eurprd06.prod.outlook.com> <20210317122907.x6v65uspqvls6p3p@anna.jacobs.jacobs-university.de> <327D2A1F-A646-42C9-BEE7-0A3EA73D537E@cisco.com> <20210317155834.nz6cv4mefwxrjgmq@anna.jacobs.jacobs-university.de> <4BBA1D6B-F2CC-4099-A640-88F003327529@cisco.com>
In-Reply-To: <4BBA1D6B-F2CC-4099-A640-88F003327529@cisco.com>
Accept-Language: es-ES, en-US
Content-Language: es-ES
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: cisco.com; dkim=none (message not signed) header.d=none;cisco.com; dmarc=none action=none header.from=telefonica.com;
x-originating-ip: [79.152.139.53]
x-ms-publictraffictype: Email
x-ms-office365-filtering-ht: Tenant
x-ms-office365-filtering-correlation-id: 630825a4-5ace-4355-4748-08d8f4352085
x-ms-traffictypediagnostic: PR3PR06MB6908:
x-microsoft-antispam-prvs: <PR3PR06MB6908865B2B61708B139D2897FD7C9@PR3PR06MB6908.eurprd06.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: bG533iBXX1/dwCpjMBHdtRPJWnTo7615OQOXlUlnfutcFdKcYeUVMXtL35YUwqWSwodOAVNpNbqCmBi+agMBwl5HRGsc9HPT3tp330EnChun6BNQWcsCSi9+xXzbO//y7AORazPkY4UTjQvXEMAngA1U1uNKXflMoNZGpQCnboAPWi5VtHG5MDoA54uG9o932mGn+1AjEG1sbVjSRXQeaYMwIJbvVsjQ0akvc5RYiQ214ZN3LaI2fLr1AxJf+6U0BkXBMraYeLbZQD98t/uneshoM4J8kis7GF/a3jgIi0/ImUYwSX4UZRpUri8ad0LbC/X0NA4Lpp93kYz36iSpvoh6ltp8X/6vJ9qcqjjBCLojPoRrCrClSViX2lx9ZkIEM/OwhXqXNtztANOJOUnI8zECi6DDsny0CkOCpwc9aAShxUumWregwpKnJq13H16I83gtDEqBygEE0BHIqCFdR+rPP1YqVnXx/J2mTOJ2hhR7+iFj0VqEUoafMzZ81+PwWThCWyOihlme/awqewk9U3kmS4F/wA6AlLiXpL3SuH+JI7Kiaue1nifRG6jFlB5TBVdccW3PoWIcIR9Aze3Im0GUAR/NNqO6B4pQ12dVNaDy300XhXFw/95p1k+O4ySotVaeQZwQahguiFAFDIulkEYSlhpiRKRR/NkNpJl0+iFDIep3r42539lZcZAt2RXYGmUsRE70EiFztIP22SVDCAABw9aMYi9pdB7ccUqg93L1yZCMsCTZDJg+1SfL1m4rnF03imcW8xSAU213HuHkdA==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR06MB7872.eurprd06.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(39860400002)(136003)(396003)(366004)(376002)(346002)(2906002)(55016002)(186003)(9686003)(66574015)(478600001)(52536014)(85202003)(64756008)(86362001)(71200400001)(66446008)(66556008)(33656002)(26005)(85182001)(8936002)(4326008)(53546011)(6506007)(8676002)(38100700001)(316002)(5660300002)(83380400001)(966005)(76116006)(7696005)(786003)(110136005)(66946007)(66476007)(9010500006); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: ViV8hxs9Y92KEbb8ccadC2JupqKI8mCcNJUHgWqPgNMWEsnw2KFiCh3twsbZpPJcvod60qqOMzOfB9/pC2UI/MeQGfcd2UhOo8w1+qieHcWBrTv4gs0gkkHXNgBIHC+OH3o0GOQyvxPW7XORKOfcThQwP835+brts2fuFXD/dlkJBhb6oav99L8xBl5UO6+S0ZnVilriMszlwP3jhCK0Q3EpbvFOIAmu2VT+etcBR/dCDk/oxbMNb6Xk+F76OkWdljLsqsiHSxyKbta3lAigyDYLIA9dsyI8zUM1qPLQwjV0wdri62LIjUN4b1E6GpcqVNcgiIaA5AHgcn9nkm+Wl/E/dKJ8J6sOTldVJVzLeQ5QBVodQi+vIFSK39JYLQcamm88mrIBionLT4PHfwLtEivkS3VqVW4zJTx3irbEq4S4pkzPZ0maYKVW3YufDFSastVDgHJD6ENF7UT2u7zZz87iHxRYz5fV+HOjZvSdiTg2SuA/kV7s59/kneTYKHQD6KDpm6x5Oir1LhSGQZaaZ2lG+fBBc9/VYSj1/p6sJviQPvyUAWmYrRRd9cW/zQjTtIqmJgfK5MeYCt/+FfQGjnuC7zsCf7KNyG68biHV94j2RsR6tlC/XAaOC8PdAEOMZKACvm8M22N1/sKNjxPVJxo8hTVYgVKHtHIvS0UV9oOwwdT8gjgWUfnNOaUy/J487iJ7jITXxH4OhHs34CDSD1YR4kJSXJAQh/xymQ+O1E9IcbpywQ+yMduZ87PYSl9qccRomWo7JfGfpdhpdqn5oraJuQ6MmYCsN1No86Yxsl9rvrRApZl6ZoTrGqK8xWpRfc1/2jaH3SAvwpNFofX9iTqlK+gGxS4B/zxzrZSTb6O94FC/MS+5cJYlviUtmqGLI1AgucKectwQHYoL7CUvInOUN8Xt6+8P/g1RKVXxW/Lw5lnhW6fE27HbMW1Sjp9a0Fk6hEF/X7ZLejcw93n1rxeN9QniWUf8OLXl2b+pOt2AVvMf5IXHlleII3fKjRGEErxaz/zNauskeJPUWQN3swp4EHNMqI8j0sQkJZi3BjwWd3GkWNze5Kt1WjsHxPAIAwvo96VivjcogeH6vjCXFBQQMhge73DZOBN7m4fEtKChqd1ABPhsulbq9zlqLpQ/0VAmUg0wW2VlwPRQ9jEkCNdQ0/qd6DfPc100YcogBknUuVx6s2Sn06UoRlWBsshQ77HWfdUxnwkFYlKiqBgRlxJNxqvWXp/xzS4ueRacL4x1psCSEdiEDvfnAfEKJCljw6kEYMAvDqWZT5IgFEMGJa44rkAmDH4MqRiiF3WjJFKkBaWZr/GN+JWLcIfna0Ef
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: telefonica.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: PAXPR06MB7872.eurprd06.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 630825a4-5ace-4355-4748-08d8f4352085
X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Mar 2021 11:07:08.7441 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 9744600e-3e04-492e-baa1-25ec245c6f10
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 4lj2fEIK+obQ08atv5xLJww+NkKrVUBgdl7M5dR9779L0sIOa+42R+WKlyE5QcE/5t+OZp71EsFn7qf4CtR+C7x9uRkIS2k3NpjEfcsXvtKsh6ORUDxQsH+wVtmG1iAN
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PR3PR06MB6908
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/1yRV6JWbEIqK1cphs8txfBFVYEw>
Subject: Re: [netmod] Request for improvement in ACL YANG Model: add prefix-list to the match
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 31 Mar 2021 11:07:20 -0000

Agree too,

It makes sense to "generalize" the concept of sets that can be shared between ACLs, so they can be used with other fields beyond those already identified with our use cases (prefixes and ports/port ranges) .

So, question for Netmod WG chairs, what would be the procedure to include such feature in the ACL module, given that it is defined in  an already published RFC? Is it via a new draft describing just the extension and referencing the original RFC and including the updated yang? Or it is an update of the existing RFC adding the new functionality (full description and full yang)? I am assuming the work implies creating a new revision of the module.

Best Regards,

Oscar

-----Mensaje original-----
De: Aseem Choudhary (asechoud) <asechoud@cisco.com>
Enviado el: miércoles, 17 de marzo de 2021 17:16
Para: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
CC: Oscar González de Dios <oscar.gonzalezdedios@telefonica.com>; netmod@ietf.org
Asunto: Re: [netmod] Request for improvement in ACL YANG Model: add prefix-list to the match

I agree, a template based approach works well as it helps to share the set of fields between ACLs.

-thanks,
Aseem

On 3/17/21, 8:58 AM, "Juergen Schoenwaelder" <j.schoenwaelder@jacobs-university.de> wrote:

    I now understand that the original request was about two things:

    - allowing sets of prefixes in an ACL (instead of just a single)
    - sharing of sets of prefixes between ACLs

    And yes, if the WG goes there, then of course the same questions will
    come up for all the other possible header fields...

    - allowing sets of ports/port ranges
    - sharing of sets of ports/port ranges between ACLs

    [...]

    /js

    On Wed, Mar 17, 2021 at 03:49:11PM +0000, Aseem Choudhary (asechoud) wrote:
    > Hi,
    >
    > Similarly, there is NxM issue when there are more than one source and destination port/port ranges.
    >
    > -thanks,
    > Aseem
    >
    > On 3/17/21, 5:29 AM, "netmod on behalf of Juergen Schoenwaelder" <netmod-bounces@ietf.org on behalf of j.schoenwaelder@jacobs-university.de> wrote:
    >
    >     Hi,
    >
    >     let me check whether I understand your request correctly: I heard you
    >     saying that you would like to have
    >
    >             leaf-list destination-ipv6-network {
    >               type inet:ipv6-prefix;
    >               description
    >                 "Destination IPv6 address prefix.";
    >             }
    >
    >     instead of just
    >
    >             leaf destination-ipv6-network {
    >               type inet:ipv6-prefix;
    >               description
    >                 "Destination IPv6 address prefix.";
    >             }
    >
    >     (and similar changes for the other IP prefix related leafs).
    >
    >     While such a direct change may be difficult, given that the header
    >     fields are defined in a choice, it should be possible to add
    >     additional choices for sets of prefixes. So from the YANG side, this
    >     seems to be something possible to address without too much trouble.
    >
    >     Whether implementors are happy with supporting such a change is
    >     something others have to comment on.
    >
    >     /js
    >
    >     On Wed, Mar 17, 2021 at 10:31:10AM +0000, Oscar González de Dios wrote:
    >     > Dear netmod wg colleagues,
    >     >
    >     >                 The ietf-acl YANG model defined in RFC 8519 allows to create rules, and for each a rule, in case of IPv4/IPv6 you can specify in the match the source-network and destination-network. The source-network (or equally the destination network) is in the model an address prefix. In our use case in Telefonica we are specifying a prefix-list for source network and another prefix list for destination network. If you had to create this behavior using the ACL model, you would need to create NxM rules. Besides, the management of those rules would be more complex.
    >     >
    >     >                 The routing policy model has the concept of prefix-sets, but is a separate model (and a different use case).
    >     >
    >     >                 The functionality of specifying a prefix list for source and destination in access control lists is available in most vendors that I am aware today. Hence, it's a pretty standard functionality.
    >     >
    >     >                 Do you think it is useful to add this functionality to the ACL YANG model? If yes, what would be the procedure, given that ACL is already defined in an existing RFC?
    >     >
    >     >                 Best Regards,
    >     >
    >     >                                Oscar
    >     >
    >     >
    >     >
    >     >
    >     >
    >     > ________________________________
    >     >
    >     > Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.
    >     >
    >     > The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.
    >     >
    >     > Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição
    >
    >     > _______________________________________________
    >     > netmod mailing list
    >     > netmod@ietf.org
    >     > https://www.ietf.org/mailman/listinfo/netmod
    >
    >
    >     --
    >     Juergen Schoenwaelder           Jacobs University Bremen gGmbH
    >     Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
    >     Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
    >
    >     _______________________________________________
    >     netmod mailing list
    >     netmod@ietf.org
    >     https://www.ietf.org/mailman/listinfo/netmod
    >

    --
    Juergen Schoenwaelder           Jacobs University Bremen gGmbH
    Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
    Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>


________________________________

Este mensaje y sus adjuntos se dirigen exclusivamente a su destinatario, puede contener información privilegiada o confidencial y es para uso exclusivo de la persona o entidad de destino. Si no es usted. el destinatario indicado, queda notificado de que la lectura, utilización, divulgación y/o copia sin autorización puede estar prohibida en virtud de la legislación vigente. Si ha recibido este mensaje por error, le rogamos que nos lo comunique inmediatamente por esta misma vía y proceda a su destrucción.

The information contained in this transmission is privileged and confidential information intended only for the use of the individual or entity named above. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this transmission in error, do not read it. Please immediately reply to the sender that you have received this communication in error and then delete it.

Esta mensagem e seus anexos se dirigem exclusivamente ao seu destinatário, pode conter informação privilegiada ou confidencial e é para uso exclusivo da pessoa ou entidade de destino. Se não é vossa senhoria o destinatário indicado, fica notificado de que a leitura, utilização, divulgação e/ou cópia sem autorização pode estar proibida em virtude da legislação vigente. Se recebeu esta mensagem por erro, rogamos-lhe que nos o comunique imediatamente por esta mesma via e proceda a sua destruição