BGPCEP-580: Implement PCEP stats DS rendering
[bgpcep.git] / pcep / topology / topology-api / src / main / yang / network-pcep-topology-stats.yang
diff --git a/pcep/topology/topology-api/src/main/yang/network-pcep-topology-stats.yang b/pcep/topology/topology-api/src/main/yang/network-pcep-topology-stats.yang
new file mode 100644 (file)
index 0000000..7a8e7d7
--- /dev/null
@@ -0,0 +1,36 @@
+// vi: set smarttab et sw=4 tabstop=4:
+module network-pcep-topology-stats {
+    yang-version 1;
+    namespace "urn:opendaylight:params:xml:ns:yang:topology:pcep:stats";
+    prefix npts;
+
+    import network-topology { prefix nt; revision-date 2013-10-21; }
+    import network-topology-pcep { prefix pn; revision-date 2017-10-25; }
+    import yang-ext { prefix ext; revision-date 2013-07-09; }
+    import pcep-session-stats { prefix pss; revision-date 2017-11-13; }
+
+    description
+        "This module contains the PCEP stats extensions to base topology model.
+         Copyright (c)2017 AT&T Services, Inc. All rights reserved.;
+
+         This program and the accompanying materials are made available
+         under the terms of the Eclipse Public License v1.0 which
+         accompanies this distribution, and is available at
+         http://www.eclipse.org/legal/epl-v10.html";
+
+    organization "AT&T Services, Inc.";
+    contact "Claudio D. Gasparini <claudio.gasparini@pantheon.sk>";
+
+    revision "2017-11-13" {
+        description
+            "Initial revision.";
+    }
+
+    augment "/nt:network-topology/nt:topology/nt:node" {
+        when "../nt:topology-types/pn:topology-pcep";
+        ext:augment-identifier pcep-topology-node-stats-aug;
+        description "Augment Pcep topology node with session stats";
+
+        uses pss:pcep-session-state-grouping;
+    }
+}
\ No newline at end of file