[YANG] Re: Requirement question
Ladislav Lhotka <lhotka@cesnet.cz> Thu, 17 January 2008 08:38 UTC
Return-path: <yang-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com)
by megatron.ietf.org with esmtp (Exim 4.43)
id 1JFQGE-0001g5-Vm; Thu, 17 Jan 2008 03:38:06 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43)
id 1JFQGD-0001fv-2A
for yang-confirm+ok@megatron.ietf.org; Thu, 17 Jan 2008 03:38:05 -0500
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org)
by megatron.ietf.org with esmtp (Exim 4.43) id 1JFQGC-0001fi-M6
for yang@ietf.org; Thu, 17 Jan 2008 03:38:04 -0500
Received: from office2.cesnet.cz ([195.113.144.244])
by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1JFQGA-0004P0-TF
for yang@ietf.org; Thu, 17 Jan 2008 03:38:04 -0500
Received: from [172.29.2.201] (asus-gx.lhotka.cesnet.cz [195.113.161.161])
by office2.cesnet.cz (Postfix) with ESMTP id 2798CD800BD;
Thu, 17 Jan 2008 09:37:58 +0100 (CET)
From: Ladislav Lhotka <lhotka@cesnet.cz>
To: David Partain <david.partain@ericsson.com>
In-Reply-To: <200801161746.52622.david.partain@ericsson.com>
References: <200801161746.52622.david.partain@ericsson.com>
Content-Type: text/plain; charset=UTF-8
Organization: CESNET
Date: Thu, 17 Jan 2008 09:37:57 +0100
Message-Id: <1200559077.10666.26.camel@missotis>
Mime-Version: 1.0
X-Mailer: Evolution 2.12.1
Content-Transfer-Encoding: quoted-printable
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 4d87d2aa806f79fed918a62e834505ca
Cc: yang <yang@ietf.org>
Subject: [YANG] Re: Requirement question
X-BeenThere: yang@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: YANG modeling Language for NETCONF <yang.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/yang>,
<mailto:yang-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www1.ietf.org/pipermail/yang>
List-Post: <mailto:yang@ietf.org>
List-Help: <mailto:yang-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/yang>,
<mailto:yang-request@ietf.org?subject=subscribe>
Errors-To: yang-bounces@ietf.org
David Partain píše v St 16. 01. 2008 v 17:46 +0100:
> In Vancouver at the "ad hoc requirement meeting", you were a proponent of the
> requirement that we need "deep keys" in the NETCONF data modeling language.
> For the benefit of the design team working on the requirements, could you
> describe what you mean by "deep keys"? An example would be very helpful as
> well.
>
YANG currently requires that list keys be direct children of the
elements that are modelled as list items. In other words, the keys
cannot appear inside containers under the list statement. The following
example (borrowed from Phil Shafer) shows a natural use of deep keys:
<flow>
<source>
<address>10.1.2.4</address>
<port>22</port>
<source>
<destination>
<address>10.1.2.5</address>
<port>22000</port>
</destination>
<packet-count>43210</packet-count>
</flow>
...
YANG declaration (currently illegal):
list flow {
key "source/address source/port
destination/address destination/port";
container source {
use endpoint;
}
container destination {
use endpoint;
}
leaf packet-count {
type uint32;
}
}
Lada
--
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C
_______________________________________________
YANG mailing list
YANG@ietf.org
https://www1.ietf.org/mailman/listinfo/yang
- [YANG] Re: Requirement question Ladislav Lhotka
- [YANG] Re: Requirement question Ladislav Lhotka