Fixed some major sonar issues in yang-validation-tool
[yangtools.git] / model / ietf / ietf-topology / src / main / yang / network-topology@2013-10-21.yang
index 3c5ae5e7e385cd245fbf1a906cf809bb1c687e92..a5103aa2a31efe6d05e04b39256aede8540688c6 100644 (file)
@@ -4,7 +4,7 @@ module network-topology  {
     // replace with IANA namespace when assigned
     prefix "nt";
 
-    import ietf-inet-types { prefix "inet"; }
+    import ietf-inet-types { prefix "inet"; revision-date 2010-09-24; }
 
     organization "TBD";
 
@@ -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;
             }
@@ -317,7 +322,7 @@ module network-topology  {
                 ";
                 key "link-id";
                 uses link-attributes;
-                must "boolean(../underlay-topology/link[./supporting-link]";
+                must "boolean(../underlay-topology/link[./supporting-link])";
                     // Constraint: any supporting link must be part of an underlay topology
                 must "boolean(../node[./source/source-node])";
                     // Constraint: A link must have as source a node of the same topology