Re: [Netconf] [yang-doctors] YANG Doctor question: empty mandatory choice?
tom petch <ietfc@btconnect.com> Tue, 07 August 2018 08:47 UTC
Return-Path: <ietfc@btconnect.com>
X-Original-To: netconf@ietfa.amsl.com
Delivered-To: netconf@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id BCD1B130F63; Tue, 7 Aug 2018 01:47:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 3.188
X-Spam-Level: ***
X-Spam-Status: No, score=3.188 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RATWARE_MS_HASH=2.148, RATWARE_OUTLOOK_NONAME=2.95, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, URIBL_BLOCKED=0.001] autolearn=no 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 p2WP6HYSYWn4; Tue, 7 Aug 2018 01:47:46 -0700 (PDT)
Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on070b.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe1e::70b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id D1F39130DDE; Tue, 7 Aug 2018 01:47:45 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector1-btconnect-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dM6uSeP0gse8f4dVt8HfEWOUOt49+2j0VHIPKFGzXBc=; b=ehPOseUeSJEPUdYSxUmR1xgufsP7OfYRT214kCUY9efUXMoQZaEVERXLqOf93kzquXjv/vlnlwUVC7jvxJz9OaZWQxMOln0O5LLD69z7hUJgZPSTq7TMNENUyXSc/yDWjEV7aG83zcj5M01ZNd45LXWtvd6VbWFmfiSbAgrl4KU=
Received: from VI1PR07MB0831.eurprd07.prod.outlook.com (10.161.107.154) by VI1PR07MB4288.eurprd07.prod.outlook.com (20.176.6.157) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.13; Tue, 7 Aug 2018 08:47:43 +0000
Received: from VI1PR07MB0831.eurprd07.prod.outlook.com ([fe80::6d94:2d16:29ed:70d9]) by VI1PR07MB0831.eurprd07.prod.outlook.com ([fe80::6d94:2d16:29ed:70d9%9]) with mapi id 15.20.1038.013; Tue, 7 Aug 2018 08:47:43 +0000
From: tom petch <ietfc@btconnect.com>
To: "rwilton=40cisco.com@dmarc.ietf.org" <rwilton=40cisco.com@dmarc.ietf.org>, Martin Bjorklund <mbj@tail-f.com>
CC: "yang-doctors@ietf.org" <yang-doctors@ietf.org>, "netconf@ietf.org" <netconf@ietf.org>
Thread-Topic: [Netconf] [yang-doctors] YANG Doctor question: empty mandatory choice?
Thread-Index: AQHULitKkGMu2yMjBUuTi0X/7UEA6g==
Date: Tue, 07 Aug 2018 08:47:42 +0000
Message-ID: <03f501d42e2a$da6f0500$4001a8c0@gateway.2wire.net>
References: <05ee68cd-ccc0-6803-6c71-b3952ee5608d@cisco.com> <CABCOCHRtg9jB0=b5bPPT3MS0QJcwgAY24Fg0RewXhPMR8Y+O0w@mail.gmail.com> <958669b9-c523-3c43-eca4-fbc255fc1bc8@cisco.com> <20180805.111123.2123994471181114333.mbj@tail-f.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-clientproxiedby: AM6PR03CA0009.eurprd03.prod.outlook.com (2603:10a6:20b::22) To VI1PR07MB0831.eurprd07.prod.outlook.com (2a01:111:e400:508e::26)
x-ms-exchange-messagesentrepresentingtype: 1
x-originating-ip: [86.165.128.211]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; VI1PR07MB4288; 6:ya24gw2PbV9UNPwtQnQZ1pBDFV0LuCe4cN6vEbnIVxaCgYNOXsed0hkdd6cu/yB77Hq6okmWlY3jAPdbRnmU/0c6MzS1GQ796L8Awjio/0Oftniql+SDnXOEIY420aWdYOCzdH9Q5SPL/rM8gXVF9Hir/S8EOTKdQtKBBgDWzo1i43tVhhPD6eaySP2Lx3jCgMvo1sDAvY4uPc7HWyP/Z5sGFynyu0vWt1Qk0mMOUWxuG0+8zyJVkrzBLAQem0L4FyWX4IrWT+D47oPju7KD5v7CIbT4aHojMq6qljpJt9uRb2cGGso37Xq/pWpQKAQIr0yhSB3RwwASCQUQehrOKk+nzFeCPiHi1nrFQVfOb0pV7Bjk0NT/zehYVoTW3V6HOL+1/c5F8VnX1Vyth0us4Tuvk3e/MK5M+H3hUu2dn8JY5dTr4S56HMYCa3rxtZzf8N0CWP2fTzEB2yqTzzdeEw==; 5:D6LrYppNhzk9rk+R3TGDD6UE0cuZ4jC2vQ3shb9rdAk/a58++TRC+NGbXQAPXFSehQlpqHd4676b01m79sqQ9784G710XpvvH3ZAqdXcNcTO0r/Xs6Ksk5e0okTWpdbZvcoCZ6Q+cxjnSQe5mOzNVnsiU8nIoPDdc7oNpPXWh6c=; 7:qyzXFOoNFQyL8jkdFubbmfGk5ZtdvX4xKGSrVirMbr0ob0xBE7KdTfzdqnVCegRiUbZtHsphz4B68JO50mSEFyYnlD+zLlzicohE6VjFqkqTMh11/Kq8fEytjd8tkPWhzMIPIDjp9A3hThbMhKB3TXCGdj6RCo8uFMdPYFCULSNmad6ZMB7Ot+L65U9UyaAKTFxofWa8D3VEXwVa76vBFzXV9+TDuR83tXDLWHgS9us4lr0NbmPCI0HRphbhW587
x-ms-office365-filtering-correlation-id: 7fcafc4d-131e-49d1-fde6-08d5fc426ced
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7193020); SRVR:VI1PR07MB4288;
x-ms-traffictypediagnostic: VI1PR07MB4288:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ietfc@btconnect.com;
x-microsoft-antispam-prvs: <VI1PR07MB42882C4C17F20EE390B40D71A0270@VI1PR07MB4288.eurprd07.prod.outlook.com>
x-exchange-antispam-report-test: UriScan:(95692535739014);
x-ms-exchange-senderadcheck: 1
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(8121501046)(5005006)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011)(7699016); SRVR:VI1PR07MB4288; BCL:0; PCL:0; RULEID:; SRVR:VI1PR07MB4288;
x-forefront-prvs: 0757EEBDCA
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(136003)(346002)(376002)(366004)(396003)(13464003)(199004)(189003)(97736004)(6246003)(4326008)(84392002)(6512007)(9686003)(25786009)(14454004)(256004)(8676002)(1556002)(8936002)(81166006)(14496001)(305945005)(81156014)(53936002)(93886005)(106356001)(86152003)(478600001)(66066001)(105586002)(68736007)(2906002)(26005)(2900100001)(6436002)(99286004)(446003)(7736002)(76176011)(33896004)(476003)(54906003)(102836004)(5660300001)(110136005)(52116002)(6486002)(44736005)(316002)(86362001)(53546011)(5250100002)(186003)(229853002)(3846002)(486006)(6116002)(6506007)(386003); DIR:OUT; SFP:1102; SCL:1; SRVR:VI1PR07MB4288; H:VI1PR07MB0831.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:0; MX:1;
received-spf: None (protection.outlook.com: btconnect.com does not designate permitted sender hosts)
x-microsoft-antispam-message-info: rX1KOwkwN9sHzGQ3NBET5k+UosbmR6IErgRMCL+5nw2SpoMWmM0+cbMf3g4cMJAtxyjvY4154hIAjBwOS0MoyS3CWVpRY8EXOqtKvk/LteJ7NZgmNMsNsLM+Dxp1ixwyJazZCmlr6Zh8HFl9+kZnnhu2W8aQSzfna0sC0tAoozsX0BaCALRZ0IjiePgAWWfpnVEvlWqBLk3f2lZQ5D3PL9hWePdfYdOxZgzthZySrnY9MnhKVJ41P9dr5D/OKpPa1ZX0xXZ7XxpSXqe170P5kglbNTmIyL9LQWAFQtvjvAFi8q+RaRZ01S40PeDZB3YOtulxS90FvgNGP4erlvU6azs8cDp6n40ASd+zZ0FCAWc=
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="iso-8859-1"
Content-ID: <AB05CDCD3C8EF14BA026BD2A9C0D2386@eurprd07.prod.outlook.com>
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 7fcafc4d-131e-49d1-fde6-08d5fc426ced
X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2018 08:47:42.9163 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB4288
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/XVpX1nianDpMdATmK8Si4CY2BFQ>
Subject: Re: [Netconf] [yang-doctors] YANG Doctor question: empty mandatory choice?
X-BeenThere: netconf@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: Network Configuration WG mailing list <netconf.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netconf>, <mailto:netconf-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netconf/>
List-Post: <mailto:netconf@ietf.org>
List-Help: <mailto:netconf-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netconf>, <mailto:netconf-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 07 Aug 2018 08:47:49 -0000
----- Original Message ----- From: "Martin Bjorklund" <mbj@tail-f.com> Sent: Sunday, August 05, 2018 10:11 AM Robert Wilton <rwilton=40cisco.com@dmarc.ietf.org> wrote: > On 01/08/2018 17:09, Andy Bierman wrote: > > > > On Wed, Aug 1, 2018 at 9:01 AM, Robert Wilton <mailto:rwilton@cisco.com>> wrote: > > On 31/07/2018 21:31, Andy Bierman wrote: > >> On Tue, Jul 31, 2018 at 12:39 PM, Eric Voit (evoit) wrote: > >>> From: Juergen Schoenwaelder, July 31, 2018 1:48 PM > >>> On Mon, Jul 30, 2018 at 08:41:42PM +0200, Martin Bjorklund wrote: > >>>> <snip> In this case, or if the choice is mandatory, the model would require the client to configure an address if the transport is 'example-udp', which is what we want. But if the choice is marked as mandatory, *all* transports MUST define some transport-specific parameters, even if that is not needed (unclear if this will ever happen...) Thus, I prefer Eric's original model w/o the choice. The choice is supposed to be clever, but might end up being confusing, and I don't think it adds any value anyway. <tp> which I think it the key point. Look at the discussion that has been generated on this list, where there is more YANG expertise than almost anywhere else, and wonder how the average implementer will cope with a mandatory, empty choice. Clever, yes, good idea, err no, not for an RFC. Tom Petch /martin <snip>
- Re: [Netconf] [yang-doctors] YANG Doctor question… Andy Bierman
- Re: [Netconf] YANG Doctor question: empty mandato… Kent Watsen
- Re: [Netconf] YANG Doctor question: empty mandato… Andy Bierman
- Re: [Netconf] [yang-doctors] YANG Doctor question… Robert Wilton
- Re: [Netconf] [yang-doctors] YANG Doctor question… Andy Bierman
- Re: [Netconf] YANG Doctor question: empty mandato… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Robert Wilton
- Re: [Netconf] [yang-doctors] YANG Doctor question… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Andy Bierman
- [Netconf] YANG Doctor question: empty mandatory c… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Juergen Schoenwaelder
- Re: [Netconf] [yang-doctors] YANG Doctor question… Kent Watsen
- Re: [Netconf] [yang-doctors] YANG Doctor question… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Juergen Schoenwaelder
- Re: [Netconf] [yang-doctors] YANG Doctor question… Juergen Schoenwaelder
- Re: [Netconf] [yang-doctors] YANG Doctor question… Robert Wilton
- Re: [Netconf] [yang-doctors] YANG Doctor question… Robert Wilton
- Re: [Netconf] [yang-doctors] YANG Doctor question… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Juergen Schoenwaelder
- Re: [Netconf] [yang-doctors] YANG Doctor question… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Juergen Schoenwaelder
- Re: [Netconf] [yang-doctors] YANG Doctor question… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Andy Bierman
- Re: [Netconf] [yang-doctors] YANG Doctor question… Kent Watsen
- Re: [Netconf] [yang-doctors] YANG Doctor question… Andy Bierman
- Re: [Netconf] [yang-doctors] YANG Doctor question… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Martin Bjorklund
- Re: [Netconf] [yang-doctors] YANG Doctor question… Martin Bjorklund
- Re: [Netconf] [yang-doctors] YANG Doctor question… Martin Bjorklund
- Re: [Netconf] [yang-doctors] YANG Doctor question… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Kent Watsen
- Re: [Netconf] [yang-doctors] YANG Doctor question… Martin Bjorklund
- Re: [Netconf] [yang-doctors] YANG Doctor question… Martin Bjorklund
- Re: [Netconf] YANG Doctor question: empty mandato… Kent Watsen
- Re: [Netconf] YANG Doctor question: empty mandato… Kent Watsen
- Re: [Netconf] YANG Doctor question: empty mandato… Martin Bjorklund
- Re: [Netconf] [yang-doctors] YANG Doctor question… Juergen Schoenwaelder
- Re: [Netconf] YANG Doctor question: empty mandato… Juergen Schoenwaelder
- Re: [Netconf] YANG Doctor question: empty mandato… Alexander Clemm
- Re: [Netconf] [yang-doctors] YANG Doctor question… Martin Bjorklund
- Re: [Netconf] [yang-doctors] YANG Doctor question… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Andy Bierman
- Re: [Netconf] [yang-doctors] YANG Doctor question… Kent Watsen
- Re: [Netconf] [yang-doctors] YANG Doctor question… Andy Bierman
- Re: [Netconf] [yang-doctors] YANG Doctor question… Robert Wilton
- Re: [Netconf] [yang-doctors] YANG Doctor question… Eric Voit (evoit)
- Re: [Netconf] YANG Doctor question: empty mandato… Kent Watsen
- Re: [Netconf] YANG Doctor question: empty mandato… Andy Bierman
- Re: [Netconf] YANG Doctor question: empty mandato… Einar Nilsen-Nygaard (einarnn)
- Re: [Netconf] YANG Doctor question: empty mandato… Einar Nilsen-Nygaard (einarnn)
- Re: [Netconf] YANG Doctor question: empty mandato… Henk Birkholz
- Re: [Netconf] YANG Doctor question: empty mandato… Andy Bierman
- Re: [Netconf] YANG Doctor question: empty mandato… Andy Bierman
- Re: [Netconf] YANG Doctor question: empty mandato… Kent Watsen
- Re: [Netconf] YANG Doctor question: empty mandato… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Martin Bjorklund
- Re: [Netconf] YANG Doctor question: empty mandato… Martin Bjorklund
- Re: [Netconf] [yang-doctors] YANG Doctor question… Kent Watsen
- Re: [Netconf] [yang-doctors] YANG Doctor question… Martin Bjorklund
- Re: [Netconf] [yang-doctors] YANG Doctor question… tom petch
- Re: [Netconf] [yang-doctors] YANG Doctor question… Kent Watsen
- Re: [Netconf] [yang-doctors] YANG Doctor question… Kent Watsen
- Re: [Netconf] [yang-doctors] YANG Doctor question… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Martin Bjorklund
- Re: [Netconf] [yang-doctors] YANG Doctor question… Kent Watsen
- Re: [Netconf] [yang-doctors] YANG Doctor question… Eric Voit (evoit)
- Re: [Netconf] [yang-doctors] YANG Doctor question… Martin Bjorklund