Re: [RTG-DIR] RtgDir review: draft-ietf-rtgwg-policy-model-16

"Acee Lindem (acee)" <acee@cisco.com> Mon, 13 July 2020 17:47 UTC

Return-Path: <acee@cisco.com>
X-Original-To: rtg-dir@ietfa.amsl.com
Delivered-To: rtg-dir@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D91C23A15F4; Mon, 13 Jul 2020 10:47:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.62
X-Spam-Level:
X-Spam-Status: No, score=-9.62 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, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=mIXK5QHc; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=La74Cg1q
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 mMWwUByzcfUN; Mon, 13 Jul 2020 10:47:34 -0700 (PDT)
Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 361DE3A15DF; Mon, 13 Jul 2020 10:47:34 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=3696; q=dns/txt; s=iport; t=1594662454; x=1595872054; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=getC+yE9Izvp0nIu7j1AJv4oJjPLh1jdP1VLyRzOpNY=; b=mIXK5QHcviH+eH1RlKJBH8REnCv+5G/o7UWTaDqCfaVHOQBpX6MspZj2 j0oD5iQxRzyUdSoJcBLk22QWaLQmkWOhZFj7xBMFQG4mWvBe5OP5HjIGw SwsIVMEPUb84b3gc30J3X2CJaoYiHy4Gkre/G7ea8BZrov6BSMXXMQWS1 A=;
IronPort-PHdr: 9a23:dIfCoh//4nr+dP9uRHGN82YQeigqvan1NQcJ650hzqhDabmn44+7ZhaN7+lmi1nPUI7HrflDjrmev6PhXDkG5pCM+DAHfYdXXhAIwcMRg0Q7AcGDBEG6SZyibyEzEMlYElMw+Xa9PBtfBM35YVvfqWH05jkXSV3zMANvLbHzHYjfx828y+G1/cjVZANFzDqwaL9/NlO4twLU48IXmoBlbK02z0jE
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0DUAACKnQxf/4wNJK1gGgEBAQEBAQEBAQEDAQEBARIBAQEBAgIBAQEBQIFKgVJRB4FHLywKhCmDRgONLSWYXoJTA1ULAQEBDAEBLQIEAQGETAIXggMCJDgTAgMBAQsBAQUBAQECAQYEbYVbDIVvAQEBAQMSEREMAQE3AQ8CAQgRAwEBAQMCJgICAjAVCAgCBAENBSKDBIJMAy4Bnn8CgTmIYXaBMoMBAQEFhTQYgg4JgQ4qAYJpg1WCL4QEGoIAgTgMEIJNPoJcBIFFgy4zgi2SQ6JdCoJdjwKKVgMenyqRbJ50AgQCBAUCDgEBBYFqI4FXcBVlAYI+UBcCDY4eDBeDTopWdAI1AgYBBwEBAwl8jToBgRABAQ
X-IronPort-AV: E=Sophos;i="5.75,348,1589241600"; d="scan'208";a="788198085"
Received: from alln-core-7.cisco.com ([173.36.13.140]) by rcdn-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 13 Jul 2020 17:47:32 +0000
Received: from XCH-ALN-003.cisco.com (xch-aln-003.cisco.com [173.36.7.13]) by alln-core-7.cisco.com (8.15.2/8.15.2) with ESMTPS id 06DHlXlA004031 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 13 Jul 2020 17:47:33 GMT
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by XCH-ALN-003.cisco.com (173.36.7.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 13 Jul 2020 12:47:32 -0500
Received: from xhs-rcd-002.cisco.com (173.37.227.247) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 13 Jul 2020 12:47:32 -0500
Received: from NAM10-BN7-obe.outbound.protection.outlook.com (72.163.14.9) by xhs-rcd-002.cisco.com (173.37.227.247) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 13 Jul 2020 12:47:31 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RfKcdRffRm31IPbOtanRdj/8R3xk86V79E5Jr4LEQ0zzllfNkigagaXSD3vC55TGBAKfmCFwbEL9xeM6lxMNCBwhGv3LvpQWnaPH9j6RxmqCXOPr54fbbCmI+GbDkyWLYttwOOkd9lq/vjX6xXmFfp7s/jtBQl1j4tqd8wWp6oJoMftdh+udzTPrJkDNo/cpO4+V+Jpb3BfuQiWeDl0oJnn31jxyCBrsGRDCvKySaKZcKFPT5ZPDLIx7pHCFaAsjOwf8uNC8T5hODLFkbEMy1Ap5ZMMMAYlCgt4bozwR2uvy9+552f3bOaYw+maXYpSkWGC5cG0biO0T20UdqGjYZQ==
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=getC+yE9Izvp0nIu7j1AJv4oJjPLh1jdP1VLyRzOpNY=; b=ld12wAqXQXqcxdQVbjeHJddf5Yu/wfxOv8gWJMoqUq9o5fLXp+sWwAf6lcayTl5MRueDswvOIaz5+sraVkI4Hi7GoPYEe3Z/zjT1AazvnblXVY/5PXibGIIA4pvIO/t3SjHmRpZZpAUAdDEDguf4KsYMuac41xQSCNoajnURJr94WzAtdeza7+nLfq/x75wdtJX0k3xgOeioxBEJdUFPl9zAJNR0Ai6G2tC/KhK4aE3yUPpHM0XiJSY+OJiC5WJ1HJIi0RZU2HI+JZ9K+uQl27i0Z5jHNODmOCbiHjQoyfuVUu6PTfLOYBNum5tlu4XE+R/5mu0jlIPpj9RFHGVKew==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=getC+yE9Izvp0nIu7j1AJv4oJjPLh1jdP1VLyRzOpNY=; b=La74Cg1qn8mYwl1D/CoMrgSbQ9wTtqzCVrZ6uoZHFIy1XPjkBscBAF9a+TGnVxM7UQxMnDlVgaKHV/ZX6OA/8Jhh8GvLF9fMoGXftfQMaAlHSwweswolhYhk4ipLlS8g8C2C73OyOuHSj/aMFbyzo7j93hQZGmSvNSJXL4fA0XY=
Received: from BYAPR11MB2887.namprd11.prod.outlook.com (2603:10b6:a03:89::27) by BYAPR11MB3832.namprd11.prod.outlook.com (2603:10b6:a03:ff::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3174.22; Mon, 13 Jul 2020 17:47:30 +0000
Received: from BYAPR11MB2887.namprd11.prod.outlook.com ([fe80::70a6:bb5b:16b:4f9b]) by BYAPR11MB2887.namprd11.prod.outlook.com ([fe80::70a6:bb5b:16b:4f9b%7]) with mapi id 15.20.3174.025; Mon, 13 Jul 2020 17:47:30 +0000
From: "Acee Lindem (acee)" <acee@cisco.com>
To: tom petch <ietfa@btconnect.com>, Yingzhen Qu <yingzhen.qu@futurewei.com>, John Scudder <jgs@juniper.net>, "John G. Scudder" <jgs@bgp.nu>
CC: "rtg-ads@ietf.org" <rtg-ads@ietf.org>, "rtg-dir@ietf.org" <rtg-dir@ietf.org>, RTGWG <rtgwg@ietf.org>, "draft-ietf-rtgwg-policy-model.all@ietf.org" <draft-ietf-rtgwg-policy-model.all@ietf.org>, "Acee Lindem (acee)" <acee=40cisco.com@dmarc.ietf.org>
Thread-Topic: [RTG-DIR] RtgDir review: draft-ietf-rtgwg-policy-model-16
Thread-Index: AQHWU+A6nTbEfqVBRUGyDP1DTaqhSaj7HgOAgAERb4D//8jjgIAASEWAgAAIpYD//7c1gIABkbtjgAf+WoA=
Date: Mon, 13 Jul 2020 17:47:29 +0000
Message-ID: <7E117402-CFCF-4AF3-8246-8CA4F74D4A1B@cisco.com>
References: <D0B93C7C-BA13-42B5-B6CF-FCCC4BCAD880@bgp.nu> <D69DC25E-3D50-4F66-AF73-EB9316A990A0@juniper.net> <B1218178-1663-4892-912C-C8196EE4C45D@futurewei.com> <DB7PR07MB53401222772CC290B7E7A9CFA2670@DB7PR07MB5340.eurprd07.prod.outlook.com>
In-Reply-To: <DB7PR07MB53401222772CC290B7E7A9CFA2670@DB7PR07MB5340.eurprd07.prod.outlook.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.38.20061401
authentication-results: btconnect.com; dkim=none (message not signed) header.d=none;btconnect.com; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [136.56.133.70]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 08d0faca-3ec3-437f-b398-08d82754d0cf
x-ms-traffictypediagnostic: BYAPR11MB3832:
x-microsoft-antispam-prvs: <BYAPR11MB383293DBAED2E5C88B2B8D31C2600@BYAPR11MB3832.namprd11.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: paepgwL46oestAKwvfQpN90jOHt+pySBJQ1dD16CN8mm8N2p80nwBG/pvKyY/yVO+Ch7pUOfESrYvST05a4uAZc36CTUztgXih+CVbjKekrJPAEzLmVN0jO0vLzkZujYALmNlL5s9pSTz3I6FzwphwGn5JrhUzwuGgCwe0uaKrYCjliFdPvjs03Ve+q6PijpP5DdpbYX49mWIPi1EMnRqb946Skt1sAy2Dj9ViHhH5T4AakT1ZqxGMosjhpu+zIImuANaKfb9WiCbL1B0iLWe0YP7fI9DJ3hyX37B5Zk23KIcRIlszVLClNfQ0rKjzTv4lYxbQVfgomW/WfHQn+Z2w==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB2887.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(346002)(396003)(366004)(376002)(136003)(39860400002)(86362001)(2616005)(54906003)(186003)(2906002)(478600001)(6512007)(36756003)(6506007)(71200400001)(4326008)(8936002)(33656002)(53546011)(91956017)(83380400001)(66946007)(64756008)(66556008)(8676002)(110136005)(66476007)(66446008)(76116006)(316002)(296002)(26005)(6486002)(5660300002); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: JdR662MuMq8/4WFa3Msb1Tsi8u+3p5e30eFdOg811JeW2p8QKkAeiDMDe8NHobiJVv2F2jVgrinRQNS9oVQVPx8NvRuU43sxIOQ/+qe8awsXEFIkELm5qFfvVa5uj1GFYyoCke7h6XMEV5Sbtkqb0IZtR23gMEynXbi5nYK7limerHLyzTRqJjsZW/c1j5rmmWLjhOd5Slf5ef9v7eKmg+Zo7s50p/+REZmy/1Yb88wU8AMFuMgB+hGwm3Hm84ANE+qcw2OWaIB+7SJ0+douxTTJMDofQduoQryNuWmiBpA1EblRn75iwYRqLbCBOnFt1g+G30FqcE1TMYydmqGIVPh0drhlErLKVgcfnvaF7nloff0jlNFufQQa6N5J2jfYKRKB0T5YPqI3VvKIYWXeQVy3Xb7RwobtXMYTJm3tDlNAnNywYGJrubtD+/6QXWTnQDk63JE4dFd9+B2xb6lDCFCQPY3/Mjm1kI+IqB5HyxhM1CMxQcXEfVrE/ffc9jiE
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-ID: <520731386BA5BF4588DE6E3201AE9CAD@namprd11.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2887.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 08d0faca-3ec3-437f-b398-08d82754d0cf
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Jul 2020 17:47:29.8808 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 6j0SKPCDsvTMp9nNZ0HnW+MwpoRofIUp137nif0iASoGjGRRzdhCxw55LDU67WfY
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3832
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.13, xch-aln-003.cisco.com
X-Outbound-Node: alln-core-7.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-dir/GVBsCZ6gR4BlF8x8SwgpYZl_sc8>
Subject: Re: [RTG-DIR] RtgDir review: draft-ietf-rtgwg-policy-model-16
X-BeenThere: rtg-dir@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Routing Area Directorate <rtg-dir.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-dir>, <mailto:rtg-dir-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtg-dir/>
List-Post: <mailto:rtg-dir@ietf.org>
List-Help: <mailto:rtg-dir-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-dir>, <mailto:rtg-dir-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 13 Jul 2020 17:47:36 -0000

Hi Tom, et al, 
In the latest version, -17, we have used the standard IETF ip-prefix type and specified the constrain in the text. 
Thanks,
Acee

On 7/8/20, 7:53 AM, "tom petch" <ietfa@btconnect.com> wrote:

    From: rtgwg <rtgwg-bounces@ietf.org> on behalf of Yingzhen Qu <yingzhen.qu@futurewei.com>
    Sent: 07 July 2020 19:45

    Hi all,

    Thank you all for the discussions and comments.

    If we’re to do error-checking in the YANG module, here’re the two issues:

    Ip-prefix is a union of “ipv4-prefix” and “ipv6-prefix”. The mask-length-upper is 32 for IPv4 and 128 for IPv6, so we either have to separate ipv4 and ipv6 in order to add a constraint or it will be up to the server to reject the config.

    “ipv4-prefix” and “ipv6-prefix” are defined as a string, so the mask-length is part of the string. I don’t know an easy way to add a constraint if mask-length-lower needs to be verified against mask-length.

    Any comments and suggestions are welcome.

    <tp> 
    As I said before, it is possible to make more checks with YANG but as you point out, they are complex.  For me, it is not worth the added complexity and I would just make sure that the description is clear to such as RTG-DIR.  'must' be present, and max>= min I think fine, but that is as far as I would go.

    Where ipv4 goes one way and ipv6 goes another then YANG choice case case comes to mind but probably not worth it here.

    Tom Petch

    Thanks,
    Yingzhen

    From: John Scudder <jgs@juniper.net>
    Date: Tuesday, July 7, 2020 at 9:06 AM
    To: "John G. Scudder" <jgs@bgp.nu>
    Cc: "Acee Lindem (acee)" <acee=40cisco.com@dmarc.ietf.org>, Yingzhen Qu <yingzhen.qu@futurewei.com>, "rtg-ads@ietf.org" <rtg-ads@ietf.org>, "rtg-dir@ietf.org" <rtg-dir@ietf.org>, "draft-ietf-rtgwg-policy-model.all@ietf.org" <draft-ietf-rtgwg-policy-model.all@ietf.org>, RTGWG <rtgwg@ietf.org>
    Subject: Re: [RTG-DIR] RtgDir review: draft-ietf-rtgwg-policy-model-16

    On Jul 7, 2020, at 11:35 AM, John G. Scudder <jgs@bgp.nu> wrote:

    Hi Acee,


    On Jul 7, 2020, at 11:16 AM, Acee Lindem (acee) <acee=40cisco.com@dmarc.ietf.org> wrote:
    Yes. I’d say we should just use the ip-prefix type from RFC 6021. This type has the right semantics.
    However, I’m wondering how we do the mask-length-lower checking with the union. I imagine it should be possible.

    How would you test the constraint on mask-length-upper if you use ip-prefix?

    Duh, that’s what you said, s/upper/lower/. I don’t see a way to do it, but if you can work it out I agree it otherwise seems like the right approach.

    —John