Re: [yang-doctors] 2 yang beginner questions

Andy Bierman <andy@yumaworks.com> Sat, 31 March 2018 03:14 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 C944C1275FD for <yang-doctors@ietfa.amsl.com>; Fri, 30 Mar 2018 20:14:07 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 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_LOW=-0.7, 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 OKMq1vXBMNd6 for <yang-doctors@ietfa.amsl.com>; Fri, 30 Mar 2018 20:14:05 -0700 (PDT)
Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (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 4A34A126C25 for <yang-doctors@ietf.org>; Fri, 30 Mar 2018 20:14:05 -0700 (PDT)
Received: by mail-lf0-x22b.google.com with SMTP id j68-v6so14434822lfg.13 for <yang-doctors@ietf.org>; Fri, 30 Mar 2018 20:14:05 -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=4fET4PUfcCUriYa5PaW2TB0B0SUiHsc7jZbkOw2gZos=; b=s5AYSBmJ0T8/qGJspIYsboNZlTlwPCv2bbCGmobCEBV5ac+R6nZd4juwCS7gSmyazL D3p5tALzTButkgPz7Qm7jrsEJFoZMqNP5aWpzsCpVPg3Ai5gOaFt20+KMz+tAkFGc6+L DAAkPAleywRn1dNtEmCjU4i8Z+W7euHhkRmnNOQ1bTEJMmSr9OSFXRCqzXhyr67hzatO QPp4c5HyPc/aZYYSkxqdpovVDi6eA8vioJ63C58h3wQ3j2cxNLz6wk0QXn9PKpoiqwu0 LTxMdYkDONZC+PBwYtNVm9XozVQoOtXMDKYUotWKkx0aAMxKfBII/2HL4VFa/icW31qW XuhA==
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=4fET4PUfcCUriYa5PaW2TB0B0SUiHsc7jZbkOw2gZos=; b=kQT2MuXYyJCV1BmzHe7dpI02RnEt1Ifzcm4Kdkqi6y/KlZyxPIuf6h8BQFH35ZAhXw NUev/WCNGnRLFVlco3fIi+Jlfw42TZRCjCBlsPnxXtTwl4o0Gq90BdJ+u0pAMfS1S7YE bSYJnP3WuuwRLP/8hGxlBuesScXfbJKk4czY2uH+pGkKn/OTQY8Tq7IFTHqomeuxVyih 2lxK9Hu6b71RqF+ILo7qMizvtDGG1jxLrjZnw9oxftgiNNGEZTuqIh7Jj2mFHBxypWWX yyDpL8fwbI07OL2paAri2Gbs4Be6/554ucFwoPmZosrI3oMP6d4y3K+KVdTQqqMfibAY uJWg==
X-Gm-Message-State: AElRT7G5XrlzWObqxiu0hxWycWkWO69a7ge00UqG4aFgiS7MnI6XDCy3 P8aML0YsVBCmWhq0rz5s9/cJLJyJZLyiyFrxAhh8hW6n
X-Google-Smtp-Source: AIpwx4+2Zo2YdVdxDDdKg/mTS50lNCpAdAOmQjbiFdLoygM+0CJ1ReGEDirV+Lp642feneIekG5BJXsHUophbKoHuEE=
X-Received: by 10.46.148.72 with SMTP id o8mr431489ljh.74.1522466043569; Fri, 30 Mar 2018 20:14:03 -0700 (PDT)
MIME-Version: 1.0
Received: by 2002:a19:1a50:0:0:0:0:0 with HTTP; Fri, 30 Mar 2018 20:14:02 -0700 (PDT)
In-Reply-To: <20180331030739.GB341@faui40p.informatik.uni-erlangen.de>
References: <20180331030739.GB341@faui40p.informatik.uni-erlangen.de>
From: Andy Bierman <andy@yumaworks.com>
Date: Fri, 30 Mar 2018 20:14:02 -0700
Message-ID: <CABCOCHRHiFcgd8pJ2Xui4cv+=hVN5fdPp7axSjuGfwO-aEfBgQ@mail.gmail.com>
To: Toerless Eckert <tte@cs.fau.de>
Cc: YANG Doctors <yang-doctors@ietf.org>
Content-Type: multipart/alternative; boundary="f4f5e80c6c54b5bc590568acbfa2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/zBnGm-MMw19LtzCGaPIelH1c8xw>
Subject: Re: [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:14:08 -0000

On Fri, Mar 30, 2018 at 8:07 PM, Toerless Eckert <tte@cs.fau.de> wrote:

> 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 ?
>
>
  container voucher {
      must "expires-on or nonce";
      leaf expires-on {
      ...
      }
      leaf nonce {
       ....
      }
   }



> Thanks
>     Toerless
>
>
Andy


> _______________________________________________
> yang-doctors mailing list
> yang-doctors@ietf.org
> https://www.ietf.org/mailman/listinfo/yang-doctors
>