Re: [Rtg-yang-coord] Restrictions on list keys
Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> Mon, 02 March 2015 05:56 UTC
Return-Path: <j.schoenwaelder@jacobs-university.de>
X-Original-To: rtg-yang-coord@ietfa.amsl.com
Delivered-To: rtg-yang-coord@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1])
by ietfa.amsl.com (Postfix) with ESMTP id 1D8501A00FF
for <rtg-yang-coord@ietfa.amsl.com>; Sun, 1 Mar 2015 21:56:59 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.86
X-Spam-Level:
X-Spam-Status: No, score=-3.86 tagged_above=-999 required=5
tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_MED=-2.3,
T_RP_MATCHES_RCVD=-0.01] autolearn=ham
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 om2vq2b5o999 for <rtg-yang-coord@ietfa.amsl.com>;
Sun, 1 Mar 2015 21:56:57 -0800 (PST)
Received: from atlas3.jacobs-university.de (atlas3.jacobs-university.de
[212.201.44.18])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by ietfa.amsl.com (Postfix) with ESMTPS id A0C201A07BE
for <rtg-yang-coord@ietf.org>; Sun, 1 Mar 2015 21:56:56 -0800 (PST)
Received: from localhost (demetrius5.irc-it.jacobs-university.de [10.70.0.222])
by atlas3.jacobs-university.de (Postfix) with ESMTP id DFBED1E9B;
Mon, 2 Mar 2015 06:56:54 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from atlas3.jacobs-university.de ([10.70.0.220])
by localhost (demetrius5.jacobs-university.de [10.70.0.222]) (amavisd-new,
port 10030)
with ESMTP id SsmP9PO3JRSD; Mon, 2 Mar 2015 06:56:12 +0100 (CET)
Received: from hermes.jacobs-university.de (hermes.jacobs-university.de
[212.201.44.23])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "hermes.jacobs-university.de",
Issuer "Jacobs University CA - G01" (verified OK))
by atlas3.jacobs-university.de (Postfix) with ESMTPS;
Mon, 2 Mar 2015 06:56:54 +0100 (CET)
Received: from localhost (demetrius2.jacobs-university.de [212.201.44.47])
by hermes.jacobs-university.de (Postfix) with ESMTP id D9B3E20054;
Mon, 2 Mar 2015 06:56:53 +0100 (CET)
X-Virus-Scanned: amavisd-new at jacobs-university.de
Received: from hermes.jacobs-university.de ([212.201.44.23])
by localhost (demetrius2.jacobs-university.de [212.201.44.32]) (amavisd-new,
port 10024)
with ESMTP id cXX_FX90M6wp; Mon, 2 Mar 2015 06:56:53 +0100 (CET)
Received: from elstar.local (elstar.jacobs.jacobs-university.de
[10.50.231.133])
by hermes.jacobs-university.de (Postfix) with ESMTP id C0E5220031;
Mon, 2 Mar 2015 06:56:52 +0100 (CET)
Received: by elstar.local (Postfix, from userid 501)
id 966EA3258977; Mon, 2 Mar 2015 06:56:50 +0100 (CET)
Date: Mon, 2 Mar 2015 06:56:49 +0100
From: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
To: Mahesh Jethanandani <mjethanandani@gmail.com>
Message-ID: <20150302055649.GA59539@elstar.local>
Mail-Followup-To: Mahesh Jethanandani <mjethanandani@gmail.com>,
rtg-yang-coord@ietf.org
References: <A722B25D-D8F2-439C-817E-BBA981DFD698@gmail.com>
<20150301214345.GA38655@elstar.local>
<CCDAA563-CF0A-4E0D-85F2-3693E3C74E75@gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: <CCDAA563-CF0A-4E0D-85F2-3693E3C74E75@gmail.com>
User-Agent: Mutt/1.4.2.3i
Archived-At: <http://mailarchive.ietf.org/arch/msg/rtg-yang-coord/Ish6tLAuXA_X6mZW3OcgS8GxLWg>
Cc: rtg-yang-coord@ietf.org
Subject: Re: [Rtg-yang-coord] Restrictions on list keys
X-BeenThere: rtg-yang-coord@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de>
List-Id: "\"List to discuss coordination between the Routing related YANG
models\"" <rtg-yang-coord.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-yang-coord>,
<mailto:rtg-yang-coord-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/rtg-yang-coord/>
List-Post: <mailto:rtg-yang-coord@ietf.org>
List-Help: <mailto:rtg-yang-coord-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-yang-coord>,
<mailto:rtg-yang-coord-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 02 Mar 2015 05:56:59 -0000
On Sun, Mar 01, 2015 at 08:32:11PM -0800, Mahesh Jethanandani wrote:
> Juergen,
>
> I did read that section but it was not clear to me. So here are some examples.
>
> list foo {
> // Assuming one of these forms the key ...
> key “x y”; // is this valid?
yes
> key “x z”; // is this valid?
if the list is config true, no
> key “mode”; // is this valid? If not, how would I define a key for a choice statement?
YANG 1.0 does not allow to have optional elements in a key.
> leaf x {
> type uint16;
> }
>
> leaf y {
> type uint8;
> }
>
> leaf z {
> type uint8;
> config false;
> }
>
> choice mode {
> case a {
> leaf p {
> type uint16;
> }
> }
>
> case b {
> leaf q {
> type uint8;
> }
> }
> }
> }
>
> > On Mar 1, 2015, at 1:43 PM, Juergen Schoenwaelder <j.schoenwaelder@jacobs-university.de> wrote:
> >
> > RFC 6020 section 7.8.2:
> >
> > All key leafs in a list MUST have the same value for their "config"
> > as the list itself.
> >
> > /js
> >
> > On Sun, Mar 01, 2015 at 07:59:53AM -0500, Mahesh Jethanandani wrote:
> >> Pardon if these questions have already been asked.
> >>
> >> Are there restrictions on the following use of keys in lists
> >>
> >> - a combination of rw and ro leafs
> >> - a ro leaf
> >> - a union of of leafs
> >>
> >> Mahesh Jethanandani
> >> mjethanandani@gmail.com
> >>
> >> _______________________________________________
> >> Rtg-yang-coord mailing list
> >> Rtg-yang-coord@ietf.org
> >> https://www.ietf.org/mailman/listinfo/rtg-yang-coord
> >
> > --
> > Juergen Schoenwaelder Jacobs University Bremen gGmbH
> > Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany
> > Fax: +49 421 200 3103 <http://www.jacobs-university.de/>
>
> Mahesh Jethanandani
> mjethanandani@gmail.com
>
>
>
>
>
--
Juergen Schoenwaelder Jacobs University Bremen gGmbH
Phone: +49 421 200 3587 Campus Ring 1 | 28759 Bremen | Germany
Fax: +49 421 200 3103 <http://www.jacobs-university.de/>
- [Rtg-yang-coord] Restrictions on list keys Mahesh Jethanandani
- Re: [Rtg-yang-coord] Restrictions on list keys Juergen Schoenwaelder
- Re: [Rtg-yang-coord] Restrictions on list keys Mahesh Jethanandani
- Re: [Rtg-yang-coord] Restrictions on list keys Juergen Schoenwaelder
- Re: [Rtg-yang-coord] Restrictions on list keys Mahesh Jethanandani
- Re: [Rtg-yang-coord] Restrictions on list keys Juergen Schoenwaelder