Re: [babel] [netmod] NULL value for ip-address

tom petch <ietfc@btconnect.com> Wed, 15 September 2021 16:13 UTC

Return-Path: <ietfc@btconnect.com>
X-Original-To: babel@ietfa.amsl.com
Delivered-To: babel@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D9B973A206A; Wed, 15 Sep 2021 09:13:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, 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=btconnect.onmicrosoft.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 o0dtOxtPj-3X; Wed, 15 Sep 2021 09:13:13 -0700 (PDT)
Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20133.outbound.protection.outlook.com [40.107.2.133]) (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 5F5E13A2069; Wed, 15 Sep 2021 09:13:13 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=haQL0s3QTetko0qpkPAPR1gOcgGaEn3pYcqHhpuWFuTw+fKrLe6ZxsxxcBWDixIGZti7/bQQhmzzjaJeWskIuv2ZchgpePBUjVxaTM/tk9xw2NDUO7OQgQjs2hyRGYCvBDzWCQEePJixH0Y5m3dKA6TzvKv0QX2bqfkUcu8XjJqEl9sWZpJluryyOvcAdqn/EuyEvu65qcT7e1la3pdWrUABIKjGyfqtinu9W4aYOUVXadMznqYDqAH0r8TxFUceGdGsHsXQ9aE4c2JbDIyqvfdBAoq0x1lX5cGhmx1TPriX6qHU/N2OH/ONEf5sx50dEjiUDOf/oeyiDiBBAtbItQ==
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; bh=iixOBudQTXww2HrI/NoiOdlFNsOtwh9VTQGxWIiW6lc=; b=WMWZURy6fxk0SWIHMKgvcZmV8A3aIZ21zpmrI9cEGXLXoXg5Q+OhxFnaejWP9K3vDoXCjvcKbdIKZimb+7zwadhHaSyB+WOxU0Yp/D6+FZ8yqibFHaLQRRK4tS0wfN7/fibsyeNMmZ4DxtSkqadLRtIU1tTTxPe7HUn0Exe1eqhkaKM3SsV1TtzWR/r62Br3lhC0N6szH77HDRGFEOcxycXf5dJh7OTur57I3E2KqU0VYRdP5gY4R1FT9wW+j+ji3CUqnzh7iP511qr1mHtCTPJcor90TmFcU3dOs+axO8Xo+RaW2hb39+sVvLr8CWWQj7bjV42LJKbetQHrERDx+g==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=btconnect.com; dmarc=pass action=none header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=iixOBudQTXww2HrI/NoiOdlFNsOtwh9VTQGxWIiW6lc=; b=qYFomyKsIGgH/tY19EPYJIBAFI9SYs9fqUBbQmQh54GyQ1y9IuVCt5iiLYzOTEdNCs7YNRvFAvJfbNVrk16yj8CUbIWoQcXwmSp3LIMySog8LW+nbSy6cb28c4n56yfI/FgNZQAvqn7QGA27k35/HmhBYQQoGCAKPARyroriWMQ=
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com (2603:10a6:20b:134::11) by AM5PR0701MB2371.eurprd07.prod.outlook.com (2603:10a6:203:e::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4523.9; Wed, 15 Sep 2021 16:13:10 +0000
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com ([fe80::b9c8:47dd:34f0:7180]) by AM7PR07MB6248.eurprd07.prod.outlook.com ([fe80::b9c8:47dd:34f0:7180%6]) with mapi id 15.20.4523.014; Wed, 15 Sep 2021 16:13:10 +0000
From: tom petch <ietfc@btconnect.com>
To: "STARK, BARBARA H" <bs7652@att.com>, 'Carsten Bormann' <cabo@tzi.org>, 'Juergen Schoenwaelder' <j.schoenwaelder@jacobs-university.de>
CC: "'netmod@ietf.org'" <netmod@ietf.org>, 'Babel at IETF' <babel@ietf.org>
Thread-Topic: [netmod] [babel] NULL value for ip-address
Thread-Index: AQHXqiCqgDJcR3KJe0SBfixmaEpJDqulDHMAgAA1G50=
Date: Wed, 15 Sep 2021 16:13:10 +0000
Message-ID: <AM7PR07MB6248C70640A35E12ADF903BFA0DB9@AM7PR07MB6248.eurprd07.prod.outlook.com>
References: <20210910200902.bic4rhyhp75bgsjz@anna.jacobs.jacobs-university.de> <BBC6AA9F-86C1-4A9C-86FD-AD77668CA9D9@gmail.com> <20210913200455.xot7lihpmqiemm5c@anna.jacobs.jacobs-university.de> <DM6PR02MB69248D2780D5C880CC647783C3D99@DM6PR02MB6924.namprd02.prod.outlook.com> <AM7PR07MB6248BBB558136D1E6F8C1549A0DA9@AM7PR07MB6248.eurprd07.prod.outlook.com> <DM6PR02MB692446F49506791E90B0D23EC3DA9@DM6PR02MB6924.namprd02.prod.outlook.com> <20210914171729.ph5q77zm46z3zvxi@anna.jacobs.jacobs-university.de> <FAE5986C-BE56-44A9-A6A5-1A37D9539F61@tzi.org> <20210914191618.khcicr6o4x5sdki3@anna.jacobs.jacobs-university.de> <21E40C00-5C1B-4C54-9CDB-B99AC14B1F3E@tzi.org> <20210914235319.is4x5nzuqdz26dv4@anna.jacobs.jacobs-university.de> <AM7PR07MB62485B09ECE52AE1C4154B29A0DB9@AM7PR07MB6248.eurprd07.prod.outlook.com> <AM7PR07MB6248B7058FA3C5E05114E8B4A0DB9@AM7PR07MB6248.eurprd07.prod.outlook.com> <DM6PR02MB6924E84032C48A44B55BE6CEC3DB9@DM6PR02MB6924.namprd02.prod.outlook.com>
In-Reply-To: <DM6PR02MB6924E84032C48A44B55BE6CEC3DB9@DM6PR02MB6924.namprd02.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
suggested_attachment_session_id: 88e9f7ff-5149-78dd-ff42-76cbb9669e5b
authentication-results: att.com; dkim=none (message not signed) header.d=none;att.com; dmarc=none action=none header.from=btconnect.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: f9a5c920-b6b4-433f-d727-08d97863b672
x-ms-traffictypediagnostic: AM5PR0701MB2371:
x-microsoft-antispam-prvs: <AM5PR0701MB2371BBB7D90D4AB67BDFA74DA0DB9@AM5PR0701MB2371.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 7oV3iwmYM9pDfllAAz0tWZJIYAJjkg+rKmXLtKwRTzckemcUW5z+GJ/MfoLiKWimYDJGa2gRBBYuGvdl6QSc3hDHqy0Qj4jzwcdyGqFYgPvx7tPAVsSJSFQfWZR0kdPFt21nPoh34GC0kGT8+PurkRWtdLwf5cVsAmtZ3KILVTy9v0zeCI8G4M88US8zhs3cTFmau8IZ+HYnIxvW5h0g9nhFr+/OTV01ObMZGc/vJnTl/Qcd9z8WdpLDq6GsPKT6OsK7mwfNBIr0y3JyaGbEoA/YenqnQIxfTx2mFG786xLF6O5YhTJvQlNgGEfRarzePNsT8Rs8ERUkiOOeKXk2FRzPtjjUtbEuBH+de/s0bL6OJeOXjasF3SIvK+3wEq7LnT810M2UW8IPJeDfE9eTHrUeNYGfntWaoKlLgX/foweHcq/Fl1b5i3xaLrZov2cznAa9/kVnF9mpfPcW7RBlqPWqz66EZEudNM6mBQYSXjjKfcZA39rYFe8GVLZSVkUdDKkpgLU56J9a3u4YJ4mjvhNfDfHntrlP8CmXa+/YCVJx5k0g0j88Sbzu6JcVVTmna1jlOXDvKylrekJcbt0RjhNWYmTYEvcpZyx08Vz113HJUpyIogJbZ1P8fP1suuqhZoXWzuYFK/CEKORdPIuDVqL1gDjQDaTRaKGA0+Ci1z3loLlPUzC0U/We8ryx/o9YM3lorQDMIeKUO7E9XyfkPw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR07MB6248.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(9686003)(76116006)(66446008)(64756008)(91956017)(122000001)(38100700002)(8936002)(110136005)(33656002)(66556008)(66946007)(71200400001)(316002)(66476007)(86362001)(54906003)(6506007)(2906002)(5660300002)(26005)(52536014)(55016002)(4326008)(38070700005)(66574015)(508600001)(7696005)(186003)(8676002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: pk+2FZvl69EJc7zeDu2OcV6lUUDKPNwAWetDzaF7ihZijs23+YPR+TCklBI7zEHsdQL8oeOvihSKjKeRnVsFLoikMT0ylJ3sP+Me4vcX1KA/0dCjjOoqcKPu5lYdU8NnPpEF3kHVdUn6LoLTx4CQEHq9oUNK+UNo8ewEJg6ZmhqgqDeOZrySio/qfw5r3tL3+9nk5QMPoL46Rt7A2gC6zCntAtc83ScF907MU/bI87+j39OXE7V5Vctb300N68gExpAk5gP0J4BNuRM6HpZcrvdHJsLu4GcYB3qE2PdF9pSyICiihMufUFlFn5CvyUivbIDeLBs+afGDRedEZYoHnlGOOANwE9rE2Pg0S7vPpY10bvEqA3UlluLrhRYxypOwxKqAUIruq15ZOiXaoyHSCc6sioZIKWYSezn4WZMARf19CCu8pbpLi2Cex8o+q9JnoNwlMjQchz5zXRHGqxzv6PdZvuySzCdZqIRtokgJyb6slRXkrpwCuQUlH7Ie+0PevAvRMvaK7oz1eeRgjzVTgTppajRN1e8l/x7djLlbqKJjO41xuvl8v1eM4KjoCIPMEvOCi8MatXBeKEQ6sd+J+XwuFKD0IzvATdbBrwFi19WEEPYL1ofIQRLVJu8MkaCvRYK+AykcrZH4UpnuYdP4XCIq0VilPgaVUMY8b0kwHHxR1DyRk0MtpXmXM6kPkuARGoUgOsBO3Wd1Irh7uLqFkBerLg9WQLafOZ9cbodeHMvXPX/cg46vUGJFrr4hQLmRaWFkHJ0waYfGD4BrxXCBabC7pkxQyDboFcdcjoa5TzFo5FsZwIQgdLQqDF3J/81w0Lvs2V6A2LIoA2KhU0Jx/8ggVG4sL1xz7ct7nFvlz2ajifT1aKFENdc0FogRIwR42VZk0URa6/NqZI+OLihKPXF5AJcqhgQ+W3ARjkZWjcAs2jFM4cKbOrAqhmYmGUK4nXuWhW7z6nY58T77S4KLFf8mK8YC2xqxp1p4X74cdBmlcPVW/cBYkh2WXW/c0lNne4BCPyyldjUXOa2hrfaFYF0QaY6oH4HrokEz1KFqeBNOCo0JhIYYv9W2JupUy0fWwIDyAXgGq17EAtjc/6RsAaoopJZ5uTZQdc8rQRknLV3cHRP9cA2/zWsbJize0q8+yAMtQFyJaTrCJULiWq6TjanvraOZCDEO/ZO5n+4un6MYlTNlwvrFvAi6VSp9Vu7gVkAnYXvtnTCYTDYHU/6QY6qUGo+npyoqzYy7nNcw0qxObFXPbXSpyvYNrwh4pSoyuwm4BWaTxge+uED5s1CC8sdLhpIT4EXhSUbYZnrcDKU=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM7PR07MB6248.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: f9a5c920-b6b4-433f-d727-08d97863b672
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Sep 2021 16:13:10.6117 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: Oupqr7gJ7jpRhb6BnpHql8FH5//5EA7+fYWRn4q9ZH4K0sOwrq7NsSFi+s6ig2/T2dEsaDdJNEwJrqFt4rYc4w==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0701MB2371
Archived-At: <https://mailarchive.ietf.org/arch/msg/babel/uTEayFNEPd3-WBDpp6sJrhNXckA>
Subject: Re: [babel] [netmod] NULL value for ip-address
X-BeenThere: babel@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "A list for discussion of the Babel Routing Protocol." <babel.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/babel>, <mailto:babel-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/babel/>
List-Post: <mailto:babel@ietf.org>
List-Help: <mailto:babel-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/babel>, <mailto:babel-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Sep 2021 16:13:19 -0000

From: STARK, BARBARA H <bs7652@att.com>
Sent: 15 September 2021 13:51

> Barbara
>
> Top posting a slightly different question.
>
> Belatedly doing my homework, I see that not all the NULL are uint16.  One,
> next-hop, is ip-address.  We have the options discussed for uint16 but could also
> use zero (or some other value) to mean NULL.  Zero is of course the way the
> default is commonly represented.
>
> How is this handled in TR-181?  How would you like it handled in YANG?
>
> Tom Petch

Hi Tom,
In discussion with Mahesh, he has indicated preference for union with a "null" enumeration to handle the uint16 cases. He's also indicated he would prefer to do that for the ip-address.
I see the YANG ip-address type is a union of ipv4-address and ipv6-address types, both of which are strings.
In BBF, there is the IPAddress datatype which is a string(45) with IPv4 and IPv6 formats allowed. There are also IPv4Address and IPv6Address datatypes that are defined as derivatives of the IPAddress datatype. An empty string is used for "unspecified or inapplicable addresses". Strings, unlike ints, have the luxury of being empty.
I'm perfectly fine with Mahesh's choice to use the union with a "null" enum in all cases. It seems like a good solution.

<tp>

OK.

Two digressions.  One is that the RFC6991 YANG ip-address includes a zone, a string of indeterminate length and flexible syntax, both for IPv4 and IPv6 so when this is specified, I wonder if the author is aware of this and the -no-zone alternative which, on occasions, is more appropriate.

Second, left field. when I first posted, I had great difficulty in specifying the e-mail addresses I was sending to (still do:-(.  I included the document shepherd, and you because I knew what your address is and it is easy to type correctly:-)  The addresses I might have included, but did not,  were your fellow author (who is now on the thread); and the WG Chairs, the address for the I-D and perhaps the AD.  I trust that these others will be involved when needed.

Tom Petch


Thx,
Barbara

> From: netmod <netmod-bounces@ietf.org> on behalf of tom petch
> <ietfc@btconnect.com>
> Sent: 15 September 2021 10:04
>
> From: netmod <netmod-bounces@ietf.org> on behalf of Jürgen Schönwälder
> <j.schoenwaelder@jacobs-university.de>
> Sent: 15 September 2021 00:53
>

<snip>