Re: [yang-doctors] question regarding conditional/optional statements
Andy Bierman <andy@yumaworks.com> Thu, 17 August 2017 19:03 UTC
Return-Path: <andy@yumaworks.com>
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 488A71324D2 for <yang-doctors@ietfa.amsl.com>; Thu, 17 Aug 2017 12:03:01 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=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=yumaworks-com.20150623.gappssmtp.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 8WfjE1VdcL92 for <yang-doctors@ietfa.amsl.com>; Thu, 17 Aug 2017 12:02:59 -0700 (PDT)
Received: from mail-wr0-x22d.google.com (mail-wr0-x22d.google.com [IPv6:2a00:1450:400c:c0c::22d]) (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 EC96E1200F3 for <yang-doctors@ietf.org>; Thu, 17 Aug 2017 12:02:58 -0700 (PDT)
Received: by mail-wr0-x22d.google.com with SMTP id 5so27254284wrz.5 for <yang-doctors@ietf.org>; Thu, 17 Aug 2017 12:02:58 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=MMp4AdTgpSY/Ty7oJgxusuTxGUBK1/RLwIdwDy/Zty4=; b=BeAnjf4ra86wShFWfyE3Jgu1+016dtwaDzo6O9KRKcRn7/k/PXMecXEq+5uSVV9Shk k2d78tPBN9Kb4VfNBryFJNuW9+ubIclfsrl1YPXC0+8tyoasjS4sdIyh9aOoPCBuEZ1g Z/nDa9z+FI6YQi9t7IlYrBsU/mnWdHWARwl4P2jB8qaov8XX1nZIau5F2V+2SrEiazLW sjii6BU70IRxv9jCMTIKH+uHg0xskpwiqfCwtylo0G15VDD6g9ZTp7uMStfqOlL0/RBe E1HfV78o7sw5T4EVLut+iBNhuP2XqVasuiy+WzvbhZ2xD0OCINugaju2CBK2jXHz5/3l 0D+w==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=MMp4AdTgpSY/Ty7oJgxusuTxGUBK1/RLwIdwDy/Zty4=; b=EcdZbyTrT+HP8SVp+kMEGwPWulTKVFxgMX75k5exDbiyJ5Rmx5mXg4KMjQ1nR7dDkS y0U/l9tpZgWMaJv4eZvZv2/kjwhZ4/ytskCN7pioMMo2kxEMKwB2Jm8m9BTdpLajUsZ/ sylQ9g4asiB3oxZXUM6Ja5UzTeB0fnI19Vvo8YX2PtP6xw8JxtH3+UH5ovVSW0pSvxo0 UtRT61lYwWwE85Tl7RuFHWQmU6wzbdk2eBwAkihnqwDagCwRPpYEsaxTbvjlFqBmygva +TyB4UyApJxWgF8M2ZYNaaApQSsvP4DOwtfuhEkdTuAbHEcFbWQrW5xH6r8Y2TYnoLLQ CvRg==
X-Gm-Message-State: AHYfb5gldMB8jbK9ApMb6WZlhu7CVZXlNasumasb+jh0+5a4GE8yhgXV y99L79yOtcyxznMcbBtOWrlD0RSCLkVS
X-Received: by 10.223.169.71 with SMTP id u65mr4022932wrc.244.1502996577480; Thu, 17 Aug 2017 12:02:57 -0700 (PDT)
MIME-Version: 1.0
Received: by 10.223.164.129 with HTTP; Thu, 17 Aug 2017 12:02:56 -0700 (PDT)
In-Reply-To: <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> <DC062E7E-7422-4037-82E4-52B17422B33E@juniper.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Thu, 17 Aug 2017 12:02:56 -0700
Message-ID: <CABCOCHQJOBXrYLntdg_7iL3wqy9Fkcd10f0ArwPJUNKo9dZAVQ@mail.gmail.com>
To: Kent Watsen <kwatsen@juniper.net>
Cc: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>, Jan Lindblad <janl@tail-f.com>, "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>
Content-Type: multipart/alternative; boundary="f403045cf6e4198e520556f7a9c8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/4Z6fxoQU8qJJXSsgFruQvPrVjLw>
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 19:03:01 -0000
On Thu, Aug 17, 2017 at 11:17 AM, Kent Watsen <kwatsen@juniper.net> wrote: > > > > > 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? > > good points. They all apply equally to deviations and features. I think the way you used features in the client-server set of modules is a good example for solving this sort of problem. The if-feature-stmts are on containers, not individual leafs. I don't think special objects that return which other objects are implemented is good because it is not a generalized solution. A better approach would be to enhance the protocols so "not-implemented" and "temp-unavailable" exceptions can be returned on request (ala with-defaults) > Kent > > Andy > _______________________________________________ > yang-doctors mailing list > yang-doctors@ietf.org > https://www.ietf.org/mailman/listinfo/yang-doctors >
- [yang-doctors] question regarding conditional/opt… Ing-Wher Chen
- Re: [yang-doctors] question regarding conditional… Kent Watsen
- Re: [yang-doctors] question regarding conditional… Juergen Schoenwaelder
- Re: [yang-doctors] question regarding conditional… Jan Lindblad
- Re: [yang-doctors] question regarding conditional… Martin Bjorklund
- Re: [yang-doctors] question regarding conditional… Juergen Schoenwaelder
- Re: [yang-doctors] question regarding conditional… Jan Lindblad
- Re: [yang-doctors] question regarding conditional… Juergen Schoenwaelder
- Re: [yang-doctors] question regarding conditional… Jan Lindblad
- Re: [yang-doctors] question regarding conditional… Andy Bierman
- Re: [yang-doctors] question regarding conditional… Jan Lindblad
- Re: [yang-doctors] question regarding conditional… Giles Heron (giheron)
- Re: [yang-doctors] question regarding conditional… Andy Bierman
- Re: [yang-doctors] question regarding conditional… Giles Heron (giheron)
- Re: [yang-doctors] question regarding conditional… Norm Strahle
- Re: [yang-doctors] question regarding conditional… Andy Bierman
- Re: [yang-doctors] question regarding conditional… Kent Watsen
- Re: [yang-doctors] question regarding conditional… Andy Bierman
- Re: [yang-doctors] question regarding conditional… Norm Strahle
- Re: [yang-doctors] question regarding conditional… Kent Watsen
- Re: [yang-doctors] question regarding conditional… Juergen Schoenwaelder
- Re: [yang-doctors] question regarding conditional… Juergen Schoenwaelder
- Re: [yang-doctors] question regarding conditional… Acee Lindem (acee)
- Re: [yang-doctors] question regarding conditional… Juergen Schoenwaelder
- Re: [yang-doctors] question regarding conditional… Benoit Claise
- Re: [yang-doctors] question regarding conditional… Ing-Wher Chen
- Re: [yang-doctors] question regarding conditional… Acee Lindem (acee)
- Re: [yang-doctors] question regarding conditional… Ing-Wher Chen
- Re: [yang-doctors] question regarding conditional… Acee Lindem (acee)