Fix supporting-node in topology model so it can actually be used. 75/15475/2
authorEd Warnicke <eaw@cisco.com>
Wed, 18 Feb 2015 19:09:39 +0000 (12:09 -0700)
committerEd Warnicke <eaw@cisco.com>
Tue, 24 Feb 2015 22:18:31 +0000 (15:18 -0700)
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 <eaw@cisco.com>
model/ietf/ietf-topology/src/main/yang/network-topology@2013-10-21.yang

index c11433446561f738641c037db4333cb0288c65be..a5103aa2a31efe6d05e04b39256aede8540688c6 100644 (file)
@@ -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;
             }