Re: [Netconf] [yang-doctors] YANG Doctor question: empty mandatory choice?

Andy Bierman <andy@yumaworks.com> Thu, 02 August 2018 01:42 UTC

Return-Path: <andy@yumaworks.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 280E7130DD1 for <netconf@ietfa.amsl.com>; Wed, 1 Aug 2018 18:42:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.91
X-Spam-Level:
X-Spam-Status: No, score=-1.91 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, T_DKIMWL_WL_MED=-0.01] autolearn=unavailable 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 UfiSNnWsSdb3 for <netconf@ietfa.amsl.com>; Wed, 1 Aug 2018 18:42:07 -0700 (PDT)
Received: from mail-lj1-x235.google.com (mail-lj1-x235.google.com [IPv6:2a00:1450:4864:20::235]) (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 B89C8130DCA for <netconf@ietf.org>; Wed, 1 Aug 2018 18:42:06 -0700 (PDT)
Received: by mail-lj1-x235.google.com with SMTP id u7-v6so471675lji.3 for <netconf@ietf.org>; Wed, 01 Aug 2018 18:42:06 -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=xP196//9kv5k5Y18I2vbzp0hZnSPUAqhSsPG5KXpnIc=; b=ZVmB+T+6LGzyW//KeqN61EKG1Pux3w0nQT+l42DU8Z3tdLlqOu0bRqrBC7LEGQzWcr SCQ89l/YIXQatQzpDz/nGNuafauceyuL/JoBSTMwrr00z720VnFEbrmGkpvWR9GgoOL2 41icwpeQ2fQFkn8CTEjsCaQTZe0RG29nU6k3xf3SMpG9YfRZxt8qOyuleRatvkjQVYCi qZ7DUcyaoqheVKIQRGGmCv0HB9S8ORqGwCkWsRjs7cFE9ELGcykoc4dQiRrBW2x1Z7WM FGmulVpv94fz0eT8xLLRQB+ombcNZrzOQutqi/OUn0b/hW1c76UAx9osRn8DVLpfyuqD nUzg==
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=xP196//9kv5k5Y18I2vbzp0hZnSPUAqhSsPG5KXpnIc=; b=qiEHsUB5xuOxM3aX/1OxfP7LWBRR3fWmbRhAhQPW9atAWROvtomI0OrgKoWsFbQK1d RYueFLJZ9htJykGo4vWfXcRGp80Pt3cPTp96uTGBthhackfABy7uRAjidTaz4gMmi1S0 QL/VHYTYlv4hz90j4nbyXRik5ji63QfAQR0bxWL1+eZ/9XSUNuUJha+7pAjD3UJcUEfo VT5uTNTktr3p9OV5cO2jAnX9gErVlGagoE6EsNH9cYcXYuedAYeLxsOAv6Q9gjukXS3q o2ZQyr8DjzQTKH03515neIF0wihm13+/Znv5THJyRbrQet7lr2WmCM8/VAEfnawC7fyk 923g==
X-Gm-Message-State: AOUpUlGDCr3ks+DCV/1RJq7neNSnR+IQTxkRUziWjY6MW7FvdF+sGxFs AXVrJ3Kc9/Ek3llQAIxnEnl0czg96NkJ4ysnf+KObg==
X-Google-Smtp-Source: AAOMgpf8PJLpYejRPaA+zK/cFGpi7LOpXYnBP3Pl05jtkqcnlDzMZKWhWR+GU64ZOEL4yKtURhV7kDZbiEIshY7MIDA=
X-Received: by 2002:a2e:1dc8:: with SMTP id w69-v6mr466644lje.110.1533174124854; Wed, 01 Aug 2018 18:42:04 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a19:aa46:0:0:0:0:0 with HTTP; Wed, 1 Aug 2018 18:42:03 -0700 (PDT)
In-Reply-To: <91F96417-7820-42C0-AC6F-3A21694B7A95@juniper.net>
References: <727ae35abd394a85812168615acce2d3@XCH-RTP-013.cisco.com> <20180729.175356.1841285666617255654.mbj@tail-f.com> <77080682bf90495caec48436453e4750@XCH-RTP-013.cisco.com> <20180730.204142.1505732335534077415.mbj@tail-f.com> <20180731174827.n5r2jebon45s2cxy@anna.jacobs.jacobs-university.de> <b8dc903dc04a46088bcca106ac45c4fc@XCH-RTP-013.cisco.com> <CABCOCHQPYyWgXS8Y_n5PN-AEQ5myQXX5s0KvkjQnfAh4VOMbrA@mail.gmail.com> <05ee68cd-ccc0-6803-6c71-b3952ee5608d@cisco.com> <CABCOCHRtg9jB0=b5bPPT3MS0QJcwgAY24Fg0RewXhPMR8Y+O0w@mail.gmail.com> <958669b9-c523-3c43-eca4-fbc255fc1bc8@cisco.com> <CABCOCHRv9VGTwkvcnQz+VZDXK=+5pp-mdxQjdRmE=kXZPSDSXQ@mail.gmail.com> <91F96417-7820-42C0-AC6F-3A21694B7A95@juniper.net>
From: Andy Bierman <andy@yumaworks.com>
Date: Wed, 01 Aug 2018 18:42:03 -0700
Message-ID: <CABCOCHTKLC8hBXLQ=55LkhVJ=0YDV1RRjmyWWCgXU+ucKt2b-Q@mail.gmail.com>
To: Kent Watsen <kwatsen@juniper.net>
Cc: Robert Wilton <rwilton@cisco.com>, "yang-doctors@ietf.org" <yang-doctors@ietf.org>, "Eric Voit (evoit)" <evoit@cisco.com>, "netconf@ietf.org" <netconf@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000175191057269eb96"
Archived-At: <https://mailarchive.ietf.org/arch/msg/netconf/HAbNVP0cwY1sQ7JC9fSaRYSxm3Q>
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: Thu, 02 Aug 2018 01:42:09 -0000

On Wed, Aug 1, 2018 at 6:34 PM, Kent Watsen <kwatsen@juniper.net> wrote:

>
>
> > It just seems strange that the model designers are positive the solution
> belongs in a
>
> > case-stmt inside this choice.  So positive that MUST is in order, which
> means harm
>
> > to the Internet will happen if this choice is not provided, with no
> possibility of any
>
> >  exception ever.
>
>
>
> Disagree.  As Robert pointed out, the yang update rules allow mandatory
> true to
>
> become mandatory false.  In my view, choosing to do the "mandatory true"
> now
>
> is the conservative choice.
>
>
>
> PS: I do not believe it is possible to have a receiver that does not
> define a transport.
>
>        If that were allowed, then it would be vendor magic.
>
>
>


OK -- I do think it is a huge burden for a vendor to provide an augment,
even if it is just to indicate "my real transport config is over there
or it is not in YANG".



> Kent // contributor
>
>
>

Andy