Re: [netmod] 6991bis: address-with-prefix-length

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Tue, 02 April 2019 16:49 UTC

Return-Path: <rrahman@cisco.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 27690120169 for <netmod@ietfa.amsl.com>; Tue, 2 Apr 2019 09:49:41 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.501
X-Spam-Level:
X-Spam-Status: No, score=-14.501 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=MHQ3SgzJ; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=c4kov2Dg
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 fkHB7PJycB8B for <netmod@ietfa.amsl.com>; Tue, 2 Apr 2019 09:49:38 -0700 (PDT)
Received: from alln-iport-5.cisco.com (alln-iport-5.cisco.com [173.37.142.92]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C4E52120167 for <netmod@ietf.org>; Tue, 2 Apr 2019 09:49:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=13060; q=dns/txt; s=iport; t=1554223777; x=1555433377; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=TmN2QoQv0GAYg2pboMG6BX+1WHD72bC5LQpXb7KL7E4=; b=MHQ3SgzJ6bYIDZJf9qRNkRwnJrNuHLsjBfImcmkDLJ0QM9zI26SeralQ +LPuVLimfHwJX9Mqlod/kg/M3pq70hhzcLDNUAGFKUm1M2TEPZUVXRkrQ GZeMpWAqb3L/b6ShqnPV5n6OMfBYNDUmjSR/75gGF7Eb48zKSpKw2iQMX k=;
IronPort-PHdr: 9a23:McRWrRSZql+/AFHhFkLA+oJEPtpsv++ubAcI9poqja5Pea2//pPkeVbS/uhpkESXBdfA8/wRje3QvuigQmEG7Zub+FE6OJ1XH15g640NmhA4RsuMCEn1NvnvOjYgFcRHXVlN9HCgOk8TE8H7NBXf
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AHAABakaNc/40NJK1iAxkBAQEBAQEBAQEBAQEHAQEBAQEBgVMCAQEBAQELAYE9UANodAQLJ4QOg0cDjziCV4k4jVmBLoEkA1QOAQEYCwmDekYCF4UlIjYHDQEBAwEBCQEDAm0cDIVKAQEBAQMBASERDAEBLAsBCwICAgEIEAEEAQEBAgImAgICGQYGCxUICAIEAQ0FgyIBgV0DFQECDKMlAooUcYEvgnkBAQWBBQGDfw0LggwIBYEGJAGEXYZVF4FAP4ERJx+CTD6CGkcBAYFhFwomgkMxgiaKPhKCNYRDk1k2CQKMOINtg0EaggOJaIhNi0aHVYJriRwCBAIEBQIOAQEFgVQKJ4FWcBU7KgGCQQmCAYNuM4RhhQgBNnKBKI8xAQE
X-IronPort-AV: E=Sophos;i="5.60,301,1549929600"; d="scan'208";a="253951810"
Received: from alln-core-8.cisco.com ([173.36.13.141]) by alln-iport-5.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 02 Apr 2019 16:49:36 +0000
Received: from XCH-RCD-012.cisco.com (xch-rcd-012.cisco.com [173.37.102.22]) by alln-core-8.cisco.com (8.15.2/8.15.2) with ESMTPS id x32GnaOY002778 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 2 Apr 2019 16:49:36 GMT
Received: from xhs-rcd-003.cisco.com (173.37.227.248) by XCH-RCD-012.cisco.com (173.37.102.22) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Apr 2019 11:49:35 -0500
Received: from xhs-aln-003.cisco.com (173.37.135.120) by xhs-rcd-003.cisco.com (173.37.227.248) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Apr 2019 11:49:35 -0500
Received: from NAM05-DM3-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-003.cisco.com (173.37.135.120) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 2 Apr 2019 11:49:35 -0500
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector1-cisco-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=TmN2QoQv0GAYg2pboMG6BX+1WHD72bC5LQpXb7KL7E4=; b=c4kov2DgqmKIeP23zwDdEj0De545mEhrpBzW3Q3658eFliOHS9tOOD0PjxOcaaVhsEmerRQWx6dCwyJCMgiIR34iqsnGTeYynnWh+vL7xZxH17lpPfEa7Das/+ATrO/iAIauypyB8ZR1N5wz5Z+hvbsWViq6QBTLDfeb+Xn0/uM=
Received: from MN2PR11MB3695.namprd11.prod.outlook.com (20.178.252.156) by MN2PR11MB3599.namprd11.prod.outlook.com (20.178.251.89) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1750.19; Tue, 2 Apr 2019 16:49:33 +0000
Received: from MN2PR11MB3695.namprd11.prod.outlook.com ([fe80::8467:9ef7:d982:e972]) by MN2PR11MB3695.namprd11.prod.outlook.com ([fe80::8467:9ef7:d982:e972%2]) with mapi id 15.20.1750.017; Tue, 2 Apr 2019 16:49:33 +0000
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: "Rob Wilton (rwilton)" <rwilton@cisco.com>, "Acee Lindem (acee)" <acee@cisco.com>, Martin Bjorklund <mbj@tail-f.com>, "j.schoenwaelder@jacobs-university.de" <j.schoenwaelder@jacobs-university.de>, Kristian Larsson <kristian@spritelink.net>
CC: "netmod@ietf.org" <netmod@ietf.org>
Thread-Topic: [netmod] 6991bis: address-with-prefix-length
Thread-Index: AQHU6JixE50WqtrqYU6g5OtPDYXL9KYoym0AgAAInQCAAC+hAIAABEYAgAAHkgCAACnpAA==
Date: Tue, 02 Apr 2019 16:49:33 +0000
Message-ID: <3415BE6D-6D99-4BED-B270-C12FACF31FE6@cisco.com>
References: <7d368608-7c73-4287-bfa3-69a8db8576a2@Spark> <082d01d4e944$aae0e3a0$4001a8c0@gateway.2wire.net> <20190402121550.7da6lxd6n5qiphsd@anna.jacobs.jacobs-university.de> <20190402.144640.408659609107514722.mbj@tail-f.com> <ebdf44cb1f47475fb44a51e01c9a809e@XCH-RCD-007.cisco.com> <ABA52E74-E523-4E83-90FA-581EAEA3657F@cisco.com> <ac7c6d8ab85446dca55d6878af2b065b@XCH-RCD-007.cisco.com>
In-Reply-To: <ac7c6d8ab85446dca55d6878af2b065b@XCH-RCD-007.cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.10.6.190114
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rrahman@cisco.com;
x-originating-ip: [2001:420:2840:1250:2421:2f0a:1dbc:638e]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 926a6be2-055e-47f9-975c-08d6b78b2ef5
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600139)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7193020); SRVR:MN2PR11MB3599;
x-ms-traffictypediagnostic: MN2PR11MB3599:
x-ms-exchange-purlcount: 2
x-ld-processed: 5ae1af62-9505-4097-a69a-c1553ef7840e,ExtAddr
x-microsoft-antispam-prvs: <MN2PR11MB3599155685A227A46CF49ED6AB560@MN2PR11MB3599.namprd11.prod.outlook.com>
x-forefront-prvs: 0995196AA2
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(346002)(376002)(396003)(39860400002)(366004)(54094003)(51444003)(13464003)(199004)(189003)(71190400001)(71200400001)(97736004)(478600001)(53936002)(86362001)(81156014)(6306002)(6486002)(76176011)(6512007)(4326008)(6246003)(81166006)(83716004)(8936002)(8676002)(2906002)(68736007)(6116002)(14454004)(6436002)(93886005)(110136005)(33656002)(7736002)(5660300002)(82746002)(305945005)(316002)(2501003)(105586002)(966005)(256004)(11346002)(25786009)(486006)(46003)(446003)(58126008)(2616005)(561944003)(102836004)(476003)(106356001)(186003)(229853002)(6506007)(53546011)(36756003)(99286004); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB3599; H:MN2PR11MB3695.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: mSdk+HZ7HgAil4SwQa6XrNLlVx69AQywiQWCOaFJ+bqgNEauu8xzyLGo1mYikJ9VuoynFpvEIkS3ph90YZCQ/Qe4ibL4tRQHjCvu861AWZMDgz/c/K2cIzBBzp1QVbv4so9r1S2KNkQkhSADW46zHkRKnH9UZyvgKvr7JLPawq/lmD/89sgwvR+991oWtxpIcTW3+p84O1V0Z+fJXtDpY+LVGlt14qU9ozi9hVKXnhgOVVqDriR9F2jk3oEuGMUFX0DkPyJBAoux82mkipju96fl25zpTAUSyTxuJQpMvNTfRRb7ksXe89R+05HiDDbZq4UI4m+8/NKRq+GKUOwrf5YYeDblcjVwvqe0EH9fUZxWU4jLmjumqhDn8+sUhM2uxbdcaZZVoLvYgJt+V6dzwxqbZGH6pCx5DIrfEDWaJV8=
Content-Type: text/plain; charset="utf-8"
Content-ID: <A824A2C565E9B54FA8476E5A0C102559@namprd11.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 926a6be2-055e-47f9-975c-08d6b78b2ef5
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Apr 2019 16:49:33.3636 (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-Transport-CrossTenantHeadersStamped: MN2PR11MB3599
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.22, xch-rcd-012.cisco.com
X-Outbound-Node: alln-core-8.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/MzaE6sTTIu2vrVaKjS31x6JB3uk>
Subject: Re: [netmod] 6991bis: address-with-prefix-length
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: Tue, 02 Apr 2019 16:49:41 -0000

If we do go with this, seems to make sense to have "and" in the name, anyway the description will have the details if the name isn't self-explanatory. And this is just to be able to have 1 node instead of 2 nodes (1 IP address and 1 prefix-length), I should go back to the beginning of the thread...

Regards,
Reshad.

On 2019-04-02, 12:20 PM, "netmod on behalf of Rob Wilton (rwilton)" <netmod-bounces@ietf.org on behalf of rwilton@cisco.com> wrote:

    Hi Acee,
    
    Having re-read the thread, I think that "ip-address-prefix" is going to be confusing, since I had incorrectly assumed that the type being defined was an IP prefix, but as you have pointed out there is already a type for that.
    
    I think that we need to choose this name very carefully or otherwise I suspect that folks will accidentally use the wrong type.
    
    So having the type as "ip-address-and-prefix-length" or "ip-addr-and-prefix-len" now seems like a clearer choice to me.  I think that I also now agree with Martin that this is really merging two values into one leaf.
    
    Where is this type going to be used?  Is it only used for configuring host address/prefix?  Or are there other uses cases as well?
    
    Thanks,
    Rob
    
    
    > -----Original Message-----
    > From: Acee Lindem (acee) <acee@cisco.com>
    > Sent: 02 April 2019 16:52
    > To: Rob Wilton (rwilton) <rwilton@cisco.com>; Martin Bjorklund <mbj@tail-
    > f.com>; j.schoenwaelder@jacobs-university.de
    > Cc: netmod@ietf.org
    > Subject: Re: [netmod] 6991bis: address-with-prefix-length
    > 
    > Hi Rob,
    > 
    > On 4/2/19, 11:37 AM, "netmod on behalf of Rob Wilton (rwilton)" <netmod-
    > bounces@ietf.org on behalf of rwilton@cisco.com> wrote:
    > 
    > 
    > 
    >     > -----Original Message-----
    >     > From: netmod <netmod-bounces@ietf.org> On Behalf Of Martin
    > Bjorklund
    >     > Sent: 02 April 2019 13:47
    >     > To: j.schoenwaelder@jacobs-university.de
    >     > Cc: netmod@ietf.org
    >     > Subject: Re: [netmod] 6991bis: address-with-prefix-length
    >     >
    >     > Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
    >     > > If you go back ~20 messages, my proposal was ip-address-prefix,
    >     > > ipv4-address-prefix, and ipv6-address-prefix.
    >     >
    >     > Do we agree that this type really specifies two values in one?  If so I think
    > the
    >     > "and" is useful.
    > 
    >     Isn't an "IP prefix" made up of an "IP address" and a "prefix length"?
    > 
    > This was my confusion as well since the ipv4-prefix and ipv6-prefix types
    > (ietf-inet-types) have been used when they probably shouldn't have been.
    > Note that they both have the constraint of not allowing the host bits to be set
    > should they should be used in situations like interface address assignment.
    > 
    > Excerpted from RFC6991 ipv4-type definition (note the last sentence):
    >      description
    >         "The ipv4-prefix type represents an IPv4 address prefix.
    >          The prefix length is given by the number following the
    >          slash character and must be less than or equal to 32.
    > 
    >          A prefix length value of n corresponds to an IP address
    >          mask that has n contiguous 1-bits from the most
    >          significant bit (MSB) and all other bits set to 0.
    > 
    >          The canonical format of an IPv4 prefix has all bits of
    >          the IPv4 address set to zero that are not part of the
    >          IPv4 prefix.";
    > 
    >     So, I think that the names above are probably right, or otherwise if you
    > want the "and" then perhaps it should be "ip-address-and-prefix-length" -
    > which seems clunky?
    > 
    > I think the original suggestion of ipxx-address-prefix would be ok.
    > 
    > Thanks,
    > Acee
    > 
    >     Thanks,
    >     Rob
    > 
    > 
    >     >
    >     > Also note that the current text in RFC 6991 says:
    >     >
    >     >      The ipv4-prefix type represents an IPv4 address prefix.
    >     >
    >     > so having a type ipv4-address-prefix for something that is not (only) an
    >     > "ipv4 address prefix" is imo confusing.
    >     >
    >     >
    >     > /martin
    >     >
    >     >
    >     >
    >     >
    >     > >
    >     > > /js
    >     > >
    >     > > On Tue, Apr 02, 2019 at 11:13:09AM +0000, tom petch wrote:
    >     > > > ----- Original Message -----
    >     > > > From: "Jeff Tantsura" <jefftant.ietf@gmail.com>
    >     > > > To: <netmod@ietf.org>; "Kristian Larsson" <kristian@spritelink.net>
    >     > > > Sent: Monday, April 01, 2019 11:09 PM
    >     > > >
    >     > > > What Kristian has proposed makes sense, in favor.
    >     > > >
    >     > > > <tp>
    >     > > >
    >     > > > Yes, I support this idea and we should be able to come up with a
    >     > > > more user-friendly name;  address-prefix or address-length ?
    >     > > >
    >     > > > Tom Petch
    >     > > >
    >     > > > p.s.
    >     > > >
    >     > > >    identifier          = (ALPHA / "_")
    >     > > >                          *(ALPHA / DIGIT / "_" / "-" / ".")
    >     > > >
    >     > > > Cheers,
    >     > > > Jeff
    >     > > > On Apr 1, 2019, 1:09 PM -0700, Kristian Larsson
    >     > > > <kristian@spritelink.net>, wrote:
    >     > > > > Hello Mahesh,
    >     > > > >
    >     > > > > On 2019-04-01 21:40, Mahesh Jethanandani wrote:
    >     > > > > >
    >     > > > > > > On Apr 1, 2019, at 10:29 AM, Martin Bjorklund <mbj@tail-
    > f.com>
    >     > > > wrote:
    >     > > > > > >
    >     > > > > > > I know that this type is convenient, esp. if you use it for
    >     > > > > > > manual input, but I wonder if it really is good practice to
    >     > > > > > > squeeze two values into one.
    >     > > > > >
    >     > > > > > Agree. The combination makes sense for CLI, but for modeling the
    >     > > > address and prefix should be separate.
    >     > > > >
    >     > > > > Okay, then why do we have an ip-prefix data type at all? With the
    >     > > > > same line of argument you apply, it should be split up.
    >     > > > >
    >     > > > > So you're the third person bringing up CLI. I don't get this at
    >     > > > > all. I don't see how CLI are different from everything else. This
    >     > > > > is about
    >     > > > data
    >     > > > > modeling and data modeling is about expressing the world in a data
    >     > > > > modeling language. It's like painting a picture but instead of a
    >     > > > > brush you have a schema language like YANG. What do you see?
    >     > > > > Express it. It doesn't matter if the purpose is a CLI, a web page
    >     > > > > or just exposing it via NETCONF for another system to consume.
    >     > > > >
    >     > > > > I think address-and-prefix-length is natural. JUNOS uses this format.
    >     > > > XR
    >     > > > > uses this format (for IPv6 at least). Nokia SROS uses this format.
    >     > > > >
    >     > > > > We have written a bunch of models where the lack of this IMHO
    >     > > > > makes
    >     > > > them
    >     > > > > less elegant. I'd like for there to be an IETF standard data type
    >     > > > > to make those models more elegant.
    >     > > > >
    >     > > > > Kind regards,
    >     > > > > Kristian.
    >     > > > >
    >     > > > > _______________________________________________
    >     > > > > netmod mailing list
    >     > > > > netmod@ietf.org
    >     > > > > https://www.ietf.org/mailman/listinfo/netmod
    >     > > >
    >     > > >
    >     > > >
    >     > > > --------------------------------------------------------------------
    >     > > > ----
    >     > > > --------
    >     > > >
    >     > > >
    >     > > > > _______________________________________________
    >     > > > > netmod mailing list
    >     > > > > netmod@ietf.org
    >     > > > > https://www.ietf.org/mailman/listinfo/netmod
    >     > > > >
    >     > > >
    >     > > > _______________________________________________
    >     > > > 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
    >     > >
    >     >
    >     > _______________________________________________
    >     > netmod mailing list
    >     > netmod@ietf.org
    >     > https://www.ietf.org/mailman/listinfo/netmod
    > 
    >     _______________________________________________
    >     netmod mailing list
    >     netmod@ietf.org
    >     https://www.ietf.org/mailman/listinfo/netmod
    > 
    > 
    
    _______________________________________________
    netmod mailing list
    netmod@ietf.org
    https://www.ietf.org/mailman/listinfo/netmod