[yang-doctors] 2 yang beginner questions

Toerless Eckert <tte@cs.fau.de> Sat, 31 March 2018 03:07 UTC

Return-Path: <eckert@i4.informatik.uni-erlangen.de>
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 D9C3F12778E for <yang-doctors@ietfa.amsl.com>; Fri, 30 Mar 2018 20:07:46 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.96
X-Spam-Level:
X-Spam-Status: No, score=-3.96 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_MED=-2.3, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 J_SqZ3YIQk5z for <yang-doctors@ietfa.amsl.com>; Fri, 30 Mar 2018 20:07:44 -0700 (PDT)
Received: from faui40.informatik.uni-erlangen.de (faui40.informatik.uni-erlangen.de [131.188.34.40]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3C0A81275FD for <yang-doctors@ietf.org>; Fri, 30 Mar 2018 20:07:44 -0700 (PDT)
Received: from faui40p.informatik.uni-erlangen.de (faui40p.informatik.uni-erlangen.de [131.188.34.77]) by faui40.informatik.uni-erlangen.de (Postfix) with ESMTP id E33F358C4B7 for <yang-doctors@ietf.org>; Sat, 31 Mar 2018 05:07:39 +0200 (CEST)
Received: by faui40p.informatik.uni-erlangen.de (Postfix, from userid 10463) id CB6F6B0DEA9; Sat, 31 Mar 2018 05:07:39 +0200 (CEST)
Date: Sat, 31 Mar 2018 05:07:39 +0200
From: Toerless Eckert <tte@cs.fau.de>
To: yang-doctors@ietf.org
Message-ID: <20180331030739.GB341@faui40p.informatik.uni-erlangen.de>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/__DY3aAcuvrfvepvT0w76PpvrFs>
Subject: [yang-doctors] 2 yang beginner questions
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: Sat, 31 Mar 2018 03:07:47 -0000

a) Is there some yang-users mailing list where i wouldn't have to bother
   yang-doctors precious time with beginner questions, but rather seek
   help from folks who may like me just be learning up yang themselves 
   (and be a bit ahead) ?

   Typically the most easiest way to learn something is to be subscribed
   to a list where other beginners ask questions and get them answered too ;-)

b) https://tools.ietf.org/html/draft-ietf-anima-voucher-07

   I am confused about the best way to express an OR condition.

   container voucher {
      leaf expires-on {
         must "not(../nonce)"
      }
      leaf nonce {
         must "not(../expires-on)"
      }
   }

   What we do WANT to achieve is that you may have at least one of 
   the leaf expires-on or nonce. Having both is fine too (inclusive or).
   Just not having either is not permitted.

   Is this the correct syntax to do that ? Is that the preferred syntax to do this ?

Thanks
    Toerless