From 3e04c9d2de4b99c62938611a8440a44f36f180c9 Mon Sep 17 00:00:00 2001 From: Ed Warnicke Date: Wed, 18 Feb 2015 12:09:39 -0700 Subject: [PATCH] Fix supporting-node in topology model so it can actually be used. supporting-node in the topology model *only* has a node-ref The node-ref is a leafref, which only provides the node-id for the node. Since we have no notion of what topology the supporting node is in, we can't find it. Change-Id: Ibc5829a45d97bb5a95abee07b397447a4cd509e0 Signed-off-by: Ed Warnicke --- .../src/main/yang/network-topology@2013-10-21.yang | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/model/ietf/ietf-topology/src/main/yang/network-topology@2013-10-21.yang b/model/ietf/ietf-topology/src/main/yang/network-topology@2013-10-21.yang index c114334465..a5103aa2a3 100644 --- a/model/ietf/ietf-topology/src/main/yang/network-topology@2013-10-21.yang +++ b/model/ietf/ietf-topology/src/main/yang/network-topology@2013-10-21.yang @@ -165,7 +165,12 @@ module network-topology { to provide room for augmentations, e.g. for statistics or priorization information associated with supporting nodes."; - key "node-ref"; + // This is not what was published in the initial draft, + // added topology-ref leaf and added it to the key + key "topology-ref node-ref"; + leaf topology-ref { + type topology-ref; + } leaf node-ref { type node-ref; } -- 2.36.6