Re: [yang-doctors] question regarding conditional/optional statements

Kent Watsen <kwatsen@juniper.net> Thu, 17 August 2017 18:17 UTC

Return-Path: <kwatsen@juniper.net>
X-Original-To: yang-doctors@ietfa.amsl.com
Delivered-To: yang-doctors@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 881271320BB for <yang-doctors@ietfa.amsl.com>; Thu, 17 Aug 2017 11:17:12 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.021
X-Spam-Level:
X-Spam-Status: No, score=-2.021 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=juniper.net
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 u_b_W4kAgRUC for <yang-doctors@ietfa.amsl.com>; Thu, 17 Aug 2017 11:17:10 -0700 (PDT)
Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0134.outbound.protection.outlook.com [104.47.42.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8206D12426E for <yang-doctors@ietf.org>; Thu, 17 Aug 2017 11:17:10 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=juniper.net; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=RnA/4YEz3hdMUu+A1D4o9zjoiyNf4WRHvUHXfYo6KUY=; b=TJA8Q6zSy2m0zm0o+tQO2mvBZF8tH9zDcVQHFoFyK4LuAcbnTqvNN0WzhXUsoNJZYCbyUCBraT26n6MBqSkafy92WI7WgC0tEcR064l5zZhzUuQlVmeABLgyz5Y4aAUweRC+MQiQHeIb1915m/omeZNTMl3zvSDtttQ46r+d1HY=
Received: from BN3PR0501MB1442.namprd05.prod.outlook.com (10.160.117.151) by BN3PR0501MB1522.namprd05.prod.outlook.com (10.161.217.12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.1362.12; Thu, 17 Aug 2017 18:17:09 +0000
Received: from BN3PR0501MB1442.namprd05.prod.outlook.com ([10.160.117.151]) by BN3PR0501MB1442.namprd05.prod.outlook.com ([10.160.117.151]) with mapi id 15.01.1385.003; Thu, 17 Aug 2017 18:17:08 +0000
From: Kent Watsen <kwatsen@juniper.net>
To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Jan Lindblad <janl@tail-f.com>
CC: "yang-doctors@ietf.org" <yang-doctors@ietf.org>, Ing-Wher Chen <Ing-Wher_Chen@jabil.com>, Norm Strahle <nstrahle@juniper.net>, "Aseem Choudhary (asechoud)" <asechoud@cisco.com>
Thread-Topic: [yang-doctors] question regarding conditional/optional statements
Thread-Index: AdMWuspFVk5k9TDdRCeshA4HU2pVBgAW9agAAAZRqwAAAQt6gAAL2xKA
Date: Thu, 17 Aug 2017 18:17:08 +0000
Message-ID: <DC062E7E-7422-4037-82E4-52B17422B33E@juniper.net>
References: <BN1PR0201MB0833B05FB5307BDEF2E8E3F5C3820@BN1PR0201MB0833.namprd02.prod.outlook.com> <20170817050647.apfeuvfhfw23ws6n@elstar.local> <BCE95ECB-360D-46E0-B062-371931C0F46A@tail-f.com> <20170817083739.u4vfbtkm34vf5utw@elstar.local>
In-Reply-To: <20170817083739.u4vfbtkm34vf5utw@elstar.local>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/f.20.0.170309
x-originating-ip: [66.129.241.13]
x-ms-publictraffictype: Email
x-microsoft-exchange-diagnostics: 1; BN3PR0501MB1522; 6:DGmvv/BdEmH5zRSr0CPkhpdhxjBDXCacbbtO5MvHtTatcfgfJFPRTQiDKKGTT6gRrTw7xCrRLF3ldJd1Ji/Kkpy0vuEQcsyqaBK/LzlLhpNDGrlF48S3pJGViqV+HlFh5Qxpou5u+uXEWIQiyc1RgCB4GeVoxUGPxlw45qdrN8wyeMMI6i2eynX3wm4qMJ3IOjrKLTcfyhZpFTHU6q8Hi7ibFTlMjGiOSt9ZpMi9JaRXNDpRTfgyZ8kE1ObwT2FBdq+3eENqgqqaOF8yW/SG+h/8h/oL5elbBJFF0aKk6TcVogPPBiI0Rit1qhQn6PZCOVyeztjD+M0TBFLMe2R8Zg==; 5:ncl92eFyuhL01wFyZMzmvOQL0oZcL9ZAe58wDhJm7F02BLYAb+ggDzyEfwOpD3sg4uIe4ysBRLY0uaJGTPN/DZ0yqfve3C3dTtSFY9XVlTou2elKXaPjrSSSAf//PTekSszh+p8Rqm1s1ZHZEJ/UQQmwYaH1YfvpPfJ5SxHrg4w=; 24:VuMIslIHiD75LVw2OQGpws6eZh4X7AiDH3YwyMlIhY3slMZfP/OiqIEZWa2O5pAbWVVlSBTBhBMVlt/8hEGGE51G97lZTk/Kos1ZwcuIGp8=; 7:UlqfXWU5PIuE4Z79SAzl5J7OAkYkcxCMO9eMNC7PuMW2mT8tKwJq7ouoQI3Cgw/BLjsnH34I58Ye4DHicvilSbCwlhdcrTy9yQRUApxQ7isQ7fvnQzhuHBpS0xPcjm9WuJrUgsvZ1mfuaxC6TsXbFxTnEZ1smybIGaOmXHBhtuAHSfAIv/pz/oUWYWbF9KU26deI+mcQ/wBOCKy6EmsOoYD2JuR1N9UE4AbWQdKLVxk=
x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR;
x-forefront-antispam-report: SFV:SKI; SCL:-1; SFV:NSPM; SFS:(10019020)(6009001)(39860400002)(199003)(189002)(25786009)(3660700001)(86362001)(2906002)(83716003)(6436002)(3280700002)(99286003)(189998001)(6116002)(102836003)(3846002)(6512007)(4326008)(5660300001)(4001350100001)(97736004)(82746002)(93886005)(68736007)(54906002)(229853002)(83506001)(14454004)(6486002)(77096006)(6506006)(36756003)(2950100002)(66066001)(50986999)(2900100001)(305945005)(7736002)(101416001)(54356999)(76176999)(53936002)(8936002)(81166006)(33656002)(6246003)(105586002)(478600001)(106356001)(8676002)(81156014); DIR:OUT; SFP:1102; SCL:1; SRVR:BN3PR0501MB1522; H:BN3PR0501MB1442.namprd05.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en;
x-ms-office365-filtering-correlation-id: cf0b93f4-9a3c-41c5-fd5f-08d4e59c2c36
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(48565401081)(2017052603157)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BN3PR0501MB1522;
x-ms-traffictypediagnostic: BN3PR0501MB1522:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kwatsen@juniper.net;
x-exchange-antispam-report-test: UriScan:(190756311086443)(158342451672863);
x-microsoft-antispam-prvs: <BN3PR0501MB152275D5848FA7C281B08602A5830@BN3PR0501MB1522.namprd05.prod.outlook.com>
x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(100000703101)(100105400095)(3002001)(6055026)(6041248)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123555025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR0501MB1522; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR0501MB1522;
x-forefront-prvs: 0402872DA1
received-spf: None (protection.outlook.com: juniper.net does not designate permitted sender hosts)
spamdiagnosticoutput: 1:99
spamdiagnosticmetadata: NSPM
Content-Type: text/plain; charset="utf-8"
Content-ID: <C9F90CA05191FD4EA7C336B610CC70C6@namprd05.prod.outlook.com>
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: juniper.net
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Aug 2017 18:17:08.4136 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: bea78b3c-4cdb-4130-854a-1d193232e5f4
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0501MB1522
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/OZ-TuHxWfgYD41UxrC5HJ9tWvvA>
Subject: Re: [yang-doctors] question regarding conditional/optional statements
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Email list of the yang-doctors directorate <yang-doctors.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/yang-doctors/>
List-Post: <mailto:yang-doctors@ietf.org>
List-Help: <mailto:yang-doctors-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/yang-doctors>, <mailto:yang-doctors-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 Aug 2017 18:17:12 -0000



> I believe a feature for every counter is a misuse of YANG feature
> statements, it will get horribly ugly. I recently observe an increase
> of feature statement usage in order to accomodate server
> implementations and the ultimate solution is a feature statement for
> every leaf, list, rpc, action, notification and perhaps even certain
> value sets. This is ridiculous, but a feature for every counter is
> getting damn close to it.

This is a programmatic API.  I appreciate the concern for a bloat of
bits on the wire, but recall that features are listed in yang-library,
a very special module that has a built-in ETag-like hashing mechanism
to allow for efficient comparisons.  I don't see the bloat issue here.

Having feature statements everywhere may be ridiculous, but not illegal.
Implementations need to be able to handle it already, right?

Kent