[YANG] meaning of unique in PDUs

Ladislav Lhotka <lhotka@cesnet.cz> Fri, 25 January 2008 11:57 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 1JINB7-0001px-VX; Fri, 25 Jan 2008 06:57:01 -0500
Received: from yang by megatron.ietf.org with local (Exim 4.43) id 1JINB6-0001pK-TR for yang-confirm+ok@megatron.ietf.org; Fri, 25 Jan 2008 06:57:00 -0500
Received: from [10.90.34.44] (helo=chiedprmail1.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1JINB6-0001p5-J1 for yang@ietf.org; Fri, 25 Jan 2008 06:57:00 -0500
Received: from office2.cesnet.cz ([195.113.144.244]) by chiedprmail1.ietf.org with esmtp (Exim 4.43) id 1JINB6-0003HH-6c for yang@ietf.org; Fri, 25 Jan 2008 06:57:00 -0500
Received: from [172.29.2.201] (asus-gx.lhotka.cesnet.cz [195.113.161.161]) by office2.cesnet.cz (Postfix) with ESMTP id 008F5D800BD for <yang@ietf.org>; Fri, 25 Jan 2008 12:56:59 +0100 (CET)
From: Ladislav Lhotka <lhotka@cesnet.cz>
To: yang <yang@ietf.org>
In-Reply-To: <200801250311.m0P3Bhbo036061@idle.juniper.net>
References: <200801250311.m0P3Bhbo036061@idle.juniper.net>
Content-Type: text/plain; charset=utf-8
Organization: CESNET
Date: Fri, 25 Jan 2008 12:56:59 +0100
Message-Id: <1201262219.24635.125.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: 82c9bddb247d9ba4471160a9a865a5f3
Subject: [YANG] meaning of unique in PDUs
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

Phil Shafer píše v Čt 24. 01. 2008 v 22:11 -0500:
> >In some cases this mapping is automatic, some cases are defined in the
> >YANG draft and some are not clear yet (to me at least).
> 
> Please let me know where it isn't clear and we can fix the draft.
> 
Here is one: what's the interpretation (if any) of the unique statement
for PDUs?

Example:

list aaa {
  key "k";
  unique "b c";
  leaf k { ... }
  leaf b { ... }
  leaf c { ... }

and assume the existing configuration contains two list items:

<aaa>
  <k>k1</k> <b>b1</b> <c>c1</c>
</aaa>
<aaa>
  <k>k2</k> <b>b2</b> <c>c2</c>
</aaa>  

1. Is it possible to send the following fragment in an edit-config
(merge mode)?

<aaa>
  <k>k1</k> <b>b3</b>
<aaa>
<aaa>
  <k>k2</k> <b>b3</b>
<aaa>

That is, after merging the resulting configuration will still satisfy
the statement 'unique "b c"' (values of c are different) but the PDU
doeasn't.

2. Does "unique" and also "key" statements assume any space
normalisation? For example, are the following keys different?

<k>k1</k>

<k>
  k1
</k>

Lada

-- 
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C



_______________________________________________
YANG mailing list
YANG@ietf.org
https://www1.ietf.org/mailman/listinfo/yang