Re: [yang-doctors] Yang syntax for a globally-unique key?
Andy Bierman <andy@yumaworks.com> Tue, 25 August 2020 15:08 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 CE1113A0EF6 for <yang-doctors@ietfa.amsl.com>; Tue, 25 Aug 2020 08:08:18 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.013
X-Spam-Level:
X-Spam-Status: No, score=0.013 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01, 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 pDxgtNfBWExm for <yang-doctors@ietfa.amsl.com>; Tue, 25 Aug 2020 08:08:17 -0700 (PDT)
Received: from mail-lj1-x22e.google.com (mail-lj1-x22e.google.com [IPv6:2a00:1450:4864:20::22e]) (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 22D703A0F08 for <yang-doctors@ietf.org>; Tue, 25 Aug 2020 08:08:17 -0700 (PDT)
Received: by mail-lj1-x22e.google.com with SMTP id v4so14241412ljd.0 for <yang-doctors@ietf.org>; Tue, 25 Aug 2020 08:08:16 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yumaworks-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=e9Ag55LVmD9mIwGEodgIDgzpHcYES+TZyBdWDd+TgDI=; b=B4Aef3oux+cwdWY8cudo/ShR2Si2b58Jpa2KqXs4E/K0QrL5kuiLQbJySHIf4MbOap qNz5ZGUb7e5uvlFhbB6mEZt42ifIQIZlN0MSIL17PUg8i8iyugx1ZbA7adQD/8uceKqD Xe5qbLVMO1bUWdcrRyxA8+U4FLP7ywO3WXC46umXa1Yl2X41AZdjVnyqkBD/q3iPAOg6 xrKAXtWNKNTNj0YHpdB64bivEIrZP/OqYW0HQtcGo37uk0O+8CtLHp5JASmuho8nm1AP z9hmu7SAwNJBYMr6sKLDU39pA0UYoSg/lG4k0tLXp432R63hx/7XFApdA7IDKVBGSXIT EWqQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=e9Ag55LVmD9mIwGEodgIDgzpHcYES+TZyBdWDd+TgDI=; b=QebsCtOat3baLcgJVDob5lgRGl0gl5ny1B8bInj/Yi1Ka4Oqf5iJ6FQBePLSUmSNdS w5fFehKwvao8EJM7MiqoXeCsZf3EYoW+KZ8bWGF2Rh2xKDTliS1w8geGj60OMSfV9wDg 8J/faoReCAL/IEIz4k5I1/+C4j3F1DDAwp4fQE7XBXM16o3rKut576zwBoDpeKkjM4wh a6x2+7ypnC3qSOsaX60+pK9mk9+N7Da+Xd9mwUYx6nE9tcyIs6Zuhyx8lOkNcX+rGOm7 5utQLY6jE4omC4gnBAXvykpHEznfJdwzKc+CLS0dVMc/qfP1t2o1BUDJgWu7KV9brKax 86xQ==
X-Gm-Message-State: AOAM533KBSHY9+zg4YoSdq4cbgFMdNJ+y4nopyk2XlcWm/2toxBGHEuW oHVPllHZKhMZv9AoPmAZ/wlYykH5kCJSAS0A3tFO3/YN+1s=
X-Google-Smtp-Source: ABdhPJxJwqWsgSEevfqT3+HIzDB710BJiq+WUA1YMGTb5Coca5ZHzF9D5hQI0C4fwwrXk9Vtzr8QCKZOWJ7T7NsdQtc=
X-Received: by 2002:a2e:1418:: with SMTP id u24mr4894002ljd.120.1598368094940; Tue, 25 Aug 2020 08:08:14 -0700 (PDT)
MIME-Version: 1.0
References: <0100017425c983cb-d9471cc6-34d3-4a49-ab7b-942bca5ae697-000000@email.amazonses.com>
In-Reply-To: <0100017425c983cb-d9471cc6-34d3-4a49-ab7b-942bca5ae697-000000@email.amazonses.com>
From: Andy Bierman <andy@yumaworks.com>
Date: Tue, 25 Aug 2020 08:08:04 -0700
Message-ID: <CABCOCHRhE9EqpgKKHpvkCWrmE4JkQN6i5kAF4EMfXF=GA1EVQg@mail.gmail.com>
To: Kent Watsen <kent@watsen.net>
Cc: YANG Doctors <yang-doctors@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000850c8505adb512f8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/yang-doctors/5OeW3ct1HtLoP13g5dJQrt1BtSM>
Subject: Re: [yang-doctors] Yang syntax for a globally-unique key?
X-BeenThere: yang-doctors@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 25 Aug 2020 15:08:19 -0000
On Tue, Aug 25, 2020 at 6:23 AM Kent Watsen <kent@watsen.net> wrote: > [trying here before the “netmod” list] > > YANG Doctors, > > Assume data model: > > +—rw tenants > +—rw tenant [key] > +—rw key string > +—rw admins > +—rw admin [name] > +—rw name string > > The "admin" list’s key “name” ensures that the names are unique per > tenant, but not globally. Is it possible to place a “must” statement on > the “tenants” container to ensure globally-unique admin names? > > Can anyone offer syntax to do so? > > Isn't this a use-case for unique-stmt? list tenant { unique "admins/admin/name"; ... } > Kent > > Andy > _______________________________________________ > yang-doctors mailing list > yang-doctors@ietf.org > https://www.ietf.org/mailman/listinfo/yang-doctors >
- [yang-doctors] Yang syntax for a globally-unique … Kent Watsen
- Re: [yang-doctors] Yang syntax for a globally-uni… Christian Hopps
- Re: [yang-doctors] Yang syntax for a globally-uni… Andy Bierman
- Re: [yang-doctors] Yang syntax for a globally-uni… Reshad Rahman (rrahman)
- Re: [yang-doctors] Yang syntax for a globally-uni… Kent Watsen
- Re: [yang-doctors] Yang syntax for a globally-uni… Ladislav Lhotka
- Re: [yang-doctors] Yang syntax for a globally-uni… Andy Bierman
- Re: [yang-doctors] Yang syntax for a globally-uni… Ladislav Lhotka
- Re: [yang-doctors] Yang syntax for a globally-uni… Ladislav Lhotka
- Re: [yang-doctors] Yang syntax for a globally-uni… Kent Watsen
- Re: [yang-doctors] Yang syntax for a globally-uni… Ladislav Lhotka
- Re: [yang-doctors] Yang syntax for a globally-uni… Kent Watsen
- Re: [yang-doctors] Yang syntax for a globally-uni… Ladislav Lhotka
- Re: [yang-doctors] Yang syntax for a globally-uni… Kent Watsen