[netmod] JSON encoding of "leaf-list" nodes of type identityref

Jernej Tuljak <jernej.tuljak@mg-soft.si> Mon, 11 July 2022 08:57 UTC

Return-Path: <jernej.tuljak@mg-soft.si>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id D1F4DC15B24B for <netmod@ietfa.amsl.com>; Mon, 11 Jul 2022 01:57:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=mg-soft.si
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rzHFbG6vQd5H for <netmod@ietfa.amsl.com>; Mon, 11 Jul 2022 01:57:11 -0700 (PDT)
Received: from galileo.mg-soft.si (gate.mg-soft.si [212.30.73.66]) by ietfa.amsl.com (Postfix) with ESMTP id 1986CC14F724 for <netmod@ietf.org>; Mon, 11 Jul 2022 01:57:10 -0700 (PDT)
Received: from [10.0.0.222] (tp-x61t.mg-soft.si [10.0.0.222]) by galileo.mg-soft.si (Postfix) with ESMTP id E31D4C41754A for <netmod@ietf.org>; Mon, 11 Jul 2022 10:57:06 +0200 (CEST)
DKIM-Filter: OpenDKIM Filter v2.11.0 galileo.mg-soft.si E31D4C41754A
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mg-soft.si; s=default; t=1657529826; bh=T23WJDPWtcvK3aSd86BAGII+0zBlav0Ewgqbs5jsAfw=; h=Date:From:Subject:To:From; b=DdZctqiCgLEAfVLCuOnDvesuwrafMPYVu5YyxH3aDZSHs9oKu3sRv4M/UQbVFDq9C lPLlyDm7vkX3c28KAqns+jSObDjsxtmpaTGsA4TdHR9LKIVupReUlKSDE1/4N2e57z lDLzJBoZRfBLGkLaL4S9JgAewRLUAttUG0wuT/cDFgplXslrY/wFLMpFTd0qqbFjtP rq84v/nS60+/WjZW5Br9pOLIxawS7gl8TcvRM1fdLF769YwTWAuqLm/vds937+swah WhLtYyOIW9r7mQDxW6NXIOHtNRlSLd53ki/2ze/MwO3YMDTzx/8yOGnR5+rnSYMiFb EMx++S9gK1yfw==
Message-ID: <501f6338-62b5-8295-bbdb-82505bc7b5cb@mg-soft.si>
Date: Mon, 11 Jul 2022 10:57:06 +0200
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0
From: Jernej Tuljak <jernej.tuljak@mg-soft.si>
To: NETMOD Working Group <netmod@ietf.org>
Content-Language: en-US
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/WrF5qb26p3Jgm1lIA3CeFPkOVFs>
Subject: [netmod] JSON encoding of "leaf-list" nodes of type identityref
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 11 Jul 2022 08:57:15 -0000

Hi,

RFC7951, Section 6.8, says this [1]:

    An "identityref" value is represented as a string -- the name of an
    identity.  If the identity is defined in a module other than the leaf
    node containing the identityref value, the namespace-qualified form
    (Section 4) MUST be used.  Otherwise, both the simple and namespace-
    qualified forms are permitted.

This text fails to mention leaf-list nodes. It should probably say:

    An "identityref" value is represented as a string -- the name of an
    identity.  If the identity is defined in a module other than the leaf or
    leaf-list node containing the identityref value, the namespace-qualified
    form (Section 4) MUST be used.  Otherwise, both the simple and
    namespace-qualified forms are permitted.

[1] - https://datatracker.ietf.org/doc/html/rfc7951#section-6.8

Jernej