[netmod] leafref and identityref

Ladislav Lhotka <lhotka@nic.cz> Mon, 21 October 2019 11:27 UTC

Return-Path: <lhotka@nic.cz>
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 433FA1200E5 for <netmod@ietfa.amsl.com>; Mon, 21 Oct 2019 04:27:26 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.498
X-Spam-Level:
X-Spam-Status: No, score=-0.498 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=ham autolearn_force=no
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 1q4JToDV6jZI for <netmod@ietfa.amsl.com>; Mon, 21 Oct 2019 04:27:24 -0700 (PDT)
Received: from trail.lhotka.name (trail.lhotka.name [77.48.224.143]) by ietfa.amsl.com (Postfix) with ESMTP id 57E751200D6 for <netmod@ietf.org>; Mon, 21 Oct 2019 04:27:23 -0700 (PDT)
Received: by trail.lhotka.name (Postfix, from userid 109) id 334EA18204AF; Mon, 21 Oct 2019 13:29:08 +0200 (CEST)
Received: from localhost (unknown [195.113.220.121]) by trail.lhotka.name (Postfix) with ESMTPSA id 3404318201C8 for <netmod@ietf.org>; Mon, 21 Oct 2019 13:28:50 +0200 (CEST)
From: Ladislav Lhotka <lhotka@nic.cz>
To: netmod@ietf.org
Mail-Followup-To: netmod@ietf.org
Date: Mon, 21 Oct 2019 13:27:02 +0200
Message-ID: <8736fmtk3d.fsf@nic.cz>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/wtkqYY17qP8lNl2rHnS-Ph15aiE>
Subject: [netmod] leafref and identityref
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
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, 21 Oct 2019 11:27:26 -0000

Hi,

consider the following situation:

module A {
  ...
  prefix a
  identity X;
  leaf foo {
    type identityref {
      base X;
    }
  }
}

module B {
  ...
  import A {
    prefix a;
  }
  leaf fooref {
    type leafref {
      path "/a:foo";
    }
  }
}

What is now a correct lexical form of fooref's value? Could it be just 'X', or is the prefix required, i.e. 'a:X'?

This is not very clear from RFC 7950 (sections 9.9.4 and 9.10.3). I am inclined to require the prefix.

Lada

-- 
Ladislav Lhotka 
Head, CZ.NIC Labs
PGP Key ID: 0xB8F92B08A9F76C67