Re: [netmod] 6991bis: address-with-prefix-length
Mahesh Jethanandani <mjethanandani@gmail.com> Mon, 01 April 2019 20:51 UTC
Return-Path: <mjethanandani@gmail.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 29A4F1201E0
for <netmod@ietfa.amsl.com>; Mon, 1 Apr 2019 13:51:32 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001,
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 72gtlkmekxia for <netmod@ietfa.amsl.com>;
Mon, 1 Apr 2019 13:51:29 -0700 (PDT)
Received: from mail-ot1-x329.google.com (mail-ot1-x329.google.com
[IPv6:2607:f8b0:4864:20::329])
(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 6C5E21201B5
for <netmod@ietf.org>; Mon, 1 Apr 2019 13:51:29 -0700 (PDT)
Received: by mail-ot1-x329.google.com with SMTP id e80so9953511ote.5
for <netmod@ietf.org>; Mon, 01 Apr 2019 13:51:29 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
h=mime-version:subject:from:in-reply-to:date:cc
:content-transfer-encoding:message-id:references:to;
bh=Au7jqhayns+pWFERpJACqBQ5OMR2Pw8Df/5P++Z8g4c=;
b=HEpV4i/xXtT4UbbNB0Jasux7eLeGulkxwJmEw6B5HSAi8Dyo9V9TidwWtQ62/jyc7l
G1jUsj3GxHoxVQ3jZps/J0LrBRt57E08ZY5kQGJCmdWM6ROKdM9sfZYlWtDighubLQoS
0Di8/vqmhPe1WAWuxHoo5bWl1iLYQ/18GgLwFWhLjjEqMXpAYunx6v/7iNcIdvQUgHXk
QpUpDD3g9CZKu4OILcQfWq9DaAVKPLsi3iZwedhVgNqUM+ox7NpKpEDAvu54H56S/4Nf
wlD5Si6vCqOVmpM9PVDrIQfRgm9ZmMJSi2Fccm0hWKE6hw3gS7Xt3y3XoRx/7NKD+acN
+d6w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc
:content-transfer-encoding:message-id:references:to;
bh=Au7jqhayns+pWFERpJACqBQ5OMR2Pw8Df/5P++Z8g4c=;
b=XOP1enlfYEDpjVX9s9Z/P1ut8mOEtEn0wqNVd8vQoOcyPsLaVS0vNGGgv/9wMts/Qx
nLIxMD1QI+SGmUrjJEZGvN9NflBxERHU+7u2Gj67QxYbnoM1xBUi5RbiIa3HgbmUvrMN
fXkSMRDNii/+jrUP+YLHulgUwsGl0rEVabpCrkn9zGv8MFGYZ3cyKPwY0nWATnSgNU2z
BcE//c568r3F10a6+/8Ah3fjS2TDgwet7Rm8Z5DQiQW5Xrcw/zEWQLedEowd0QXsSY9b
a5sTKgAL/Iy5jfRKTaLabsCGUZBqb+ZVM+nJ64g5Q6KTMTkZnYY3xxhV9zv/SH6qT/jw
R/Aw==
X-Gm-Message-State: APjAAAXnSmIt29f7r4slCGdelGAC9X6pnQQNj9PKoftECeUroPkEC9dS
NzSz6bgX563WVIzLmSNNjb4=
X-Google-Smtp-Source: APXvYqwtYYAqvMaNTCSL4kRuE3Y339OOHNYPbYApe9ed3068QvbVItgvgJDubLQBjZvysaGxUH3lkw==
X-Received: by 2002:a9d:7302:: with SMTP id e2mr41575772otk.115.1554151888541;
Mon, 01 Apr 2019 13:51:28 -0700 (PDT)
Received: from [192.168.106.157] ([69.239.249.38])
by smtp.gmail.com with ESMTPSA id x89sm5819824ota.30.2019.04.01.13.51.27
(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
Mon, 01 Apr 2019 13:51:28 -0700 (PDT)
Content-Type: text/plain;
charset=utf-8
Mime-Version: 1.0 (1.0)
From: Mahesh Jethanandani <mjethanandani@gmail.com>
X-Mailer: iPad Mail (16A404)
In-Reply-To: <af1cadb6-a4da-1504-698a-fa8aec463eb8@spritelink.net>
Date: Mon, 1 Apr 2019 13:51:26 -0700
Cc: Martin Bjorklund <mbj@tail-f.com>, acee@cisco.com, netmod@ietf.org
Content-Transfer-Encoding: quoted-printable
Message-Id: <9BD4DA95-38DF-4394-B6EF-D3FAED736DBF@gmail.com>
References: <20190401161321.seiodlfsmjjvjcp5@anna.jacobs.jacobs-university.de>
<F1537180-6BF3-40C7-BCFA-3AAE0290AE9D@cisco.com>
<A0F7987F-AA67-4A63-8FEE-3B74B5B47CF1@cisco.com>
<20190401.192951.1060904547331848297.mbj@tail-f.com>
<af1cadb6-a4da-1504-698a-fa8aec463eb8@spritelink.net>
To: Kristian Larsson <kristian@spritelink.net>
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/_YBhztQfy0N-yjApkXZza4eKatQ>
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: Mon, 01 Apr 2019 20:51:32 -0000
> On Apr 1, 2019, at 12:37 PM, Kristian Larsson <kristian@spritelink.net> wrote: > > > >> On 2019-04-01 19:29, Martin Bjorklund wrote: >> Hi, >> The request was for a combined type that contains both an ip address >> *and* a prefix length in one value. Hence the name >> "ip-address-and-prefix-length" :) > > Right you are, though I'm open to other names but let's first agree on use case / need :) > > >> 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. > > Dunno how "manual" has any bearing. This is IMHO just about natural data modeling. > > You say it's two values but when one can't be used without the other, are they so separated? You can't configure an interface with just an address or just a subnet mask. You need both - they belong together. That can be modeled into the data module, I.e. that you have to specify both the address and the prefix length. The reason Martin mentioned two values is because even if they are modeled with a ‘/‘ character, the end system will consume them as two separate values. > > Similarly, in a routing table you have prefixes, which consist of an address and a length - it got its own data type yet you could apply your argument to it and say they should be separated. It's just that *that* data type forbids bits to be set in the mask portion of the address, which is correct for the routing table use case, but means it can't be used to describe an interface address and mask. > > kll Mahesh Jethanandani mjethanandani@gmail.com > > > > >> /martin >> "Acee Lindem (acee)" <acee@cisco.com> wrote: >>> Ok, now I'm confused. I see that the ietf-inet-type model already has the types ipv4-prefix and ipv6-prefix. How are these any different??? >>> Thanks, >>> Acee >>> >>> On 4/1/19, 12:31 PM, "Acee Lindem (acee)" <acee@cisco.com> wrote: >>> >>> I believe the "address-" could be omitted from the type identifiers. At least within the routing area, "ipv4-prefix" is unambiguous. >>> Thanks, >>> Acee >>> On 4/1/19, 12:14 PM, "netmod on behalf of Juergen Schoenwaelder" <netmod-bounces@ietf.org on behalf of j.schoenwaelder@jacobs-university.de> wrote: >>> This is the right time for this and I would call these >>> ip-address-prefix, ipv4-address-prefix and ipv6-address >>> prefix. >>> /js >>>> On Mon, Apr 01, 2019 at 04:38:34PM +0200, Kristian Larsson wrote: >>>> Hello, >>>> >>>> seeing that 6991 is up for a refresh I wonder if this would be the time to >>>> suggest the addition of a type for address-and-prefix-length, for example >>>> like 192.0.2.1/24? >>>> >>>> I find that it's the most natural way express the address and prefix-length >>>> to configure on an interface or for some other use. We currently have an >>>> ip-prefix type which allows CIDR style prefixes but since all bits to the >>>> right of the mask is to be 0 it is only possible to use for describing the >>>> IP prefix / network address itself - not the address of a host in that >>>> network. >>>> >>>> I actually wish the interface-ip modules would have used a combined leaf for >>>> these settings rather than the dual-leaf approach it currently has, but I >>>> suppose that ship has sailed :/ >>>> >>>> Regardless, can we add such a type? Is this the document and time to do it? >>>> :) >>>> >>>> Kind regard, >>>> Kristian. >>>> >>>> _______________________________________________ >>>> 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] 6991bis: address-with-prefix-length Kristian Larsson
- Re: [netmod] 6991bis: address-with-prefix-length Juergen Schoenwaelder
- Re: [netmod] 6991bis: address-with-prefix-length Acee Lindem (acee)
- Re: [netmod] 6991bis: address-with-prefix-length Acee Lindem (acee)
- Re: [netmod] 6991bis: address-with-prefix-length Martin Bjorklund
- Re: [netmod] 6991bis: address-with-prefix-length Acee Lindem (acee)
- Re: [netmod] 6991bis: address-with-prefix-length Michael Rehder
- Re: [netmod] 6991bis: address-with-prefix-length Martin Bjorklund
- Re: [netmod] 6991bis: address-with-prefix-length Michael Rehder
- Re: [netmod] 6991bis: address-with-prefix-length Kristian Larsson
- Re: [netmod] 6991bis: address-with-prefix-length Kristian Larsson
- Re: [netmod] 6991bis: address-with-prefix-length Mahesh Jethanandani
- Re: [netmod] 6991bis: address-with-prefix-length Kristian Larsson
- Re: [netmod] 6991bis: address-with-prefix-length Acee Lindem (acee)
- Re: [netmod] 6991bis: address-with-prefix-length Mahesh Jethanandani
- Re: [netmod] 6991bis: address-with-prefix-length Kristian Larsson
- Re: [netmod] 6991bis: address-with-prefix-length Christian Hopps
- Re: [netmod] 6991bis: address-with-prefix-length Jeff Tantsura
- Re: [netmod] 6991bis: address-with-prefix-length tom petch
- Re: [netmod] 6991bis: address-with-prefix-length Juergen Schoenwaelder
- Re: [netmod] 6991bis: address-with-prefix-length Rob Wilton (rwilton)
- Re: [netmod] 6991bis: address-with-prefix-length Kristian Larsson
- Re: [netmod] 6991bis: address-with-prefix-length Rob Wilton (rwilton)
- Re: [netmod] 6991bis: address-with-prefix-length Martin Bjorklund
- Re: [netmod] 6991bis: address-with-prefix-length Juergen Schoenwaelder
- Re: [netmod] 6991bis: address-with-prefix-length Rob Wilton (rwilton)
- Re: [netmod] 6991bis: address-with-prefix-length Acee Lindem (acee)
- Re: [netmod] 6991bis: address-with-prefix-length Rob Wilton (rwilton)
- Re: [netmod] 6991bis: address-with-prefix-length tom petch
- Re: [netmod] 6991bis: address-with-prefix-length Rob Wilton (rwilton)
- Re: [netmod] 6991bis: address-with-prefix-length Reshad Rahman (rrahman)
- Re: [netmod] 6991bis: address-with-prefix-length Martin Bjorklund
- Re: [netmod] 6991bis: address-with-prefix-length Mahesh Jethanandani
- Re: [netmod] 6991bis: address-with-prefix-length Juergen Schoenwaelder
- Re: [netmod] 6991bis: address-with-prefix-length Christian Hopps
- Re: [netmod] 6991bis: address-with-prefix-length Alex Campbell
- Re: [netmod] 6991bis: address-with-prefix-length Christian Hopps
- Re: [netmod] 6991bis: address-with-prefix-length Kristian Larsson
- Re: [netmod] 6991bis: address-with-prefix-length Kristian Larsson
- Re: [netmod] 6991bis: address-with-prefix-length Juergen Schoenwaelder
- Re: [netmod] 6991bis: address-with-prefix-length Kristian Larsson
- Re: [netmod] 6991bis: address-with-prefix-length Juergen Schoenwaelder
- Re: [netmod] 6991bis: address-with-prefix-length Ladislav Lhotka
- Re: [netmod] 6991bis: address-with-prefix-length Kristian Larsson
- Re: [netmod] 6991bis: address-with-prefix-length Ladislav Lhotka
- Re: [netmod] 6991bis: address-with-prefix-length Juergen Schoenwaelder
- Re: [netmod] 6991bis: address-with-prefix-length Martin Bjorklund
- Re: [netmod] 6991bis: address-with-prefix-length Juergen Schoenwaelder
- Re: [netmod] 6991bis: address-with-prefix-length Martin Bjorklund
- Re: [netmod] 6991bis: address-with-prefix-length Per Hedeland
- Re: [netmod] 6991bis: address-with-prefix-length Juergen Schoenwaelder
- Re: [netmod] 6991bis: address-with-prefix-length Martin Bjorklund
- Re: [netmod] 6991bis: address-with-prefix-length Kristian Larsson
- Re: [netmod] 6991bis: address-with-prefix-length Kristian Larsson
- Re: [netmod] 6991bis: address-with-prefix-length Martin Bjorklund
- Re: [netmod] 6991bis: address-with-prefix-length Rob Wilton (rwilton)
- Re: [netmod] 6991bis: address-with-prefix-length tom petch
- Re: [netmod] 6991bis: address-with-prefix-length Ladislav Lhotka
- Re: [netmod] 6991bis: address-with-prefix-length Kristian Larsson