summaryrefslogtreecommitdiffstats
path: root/v3po/api
diff options
context:
space:
mode:
authorTibor Král <tibor.kral@pantheon.tech>2018-11-28 18:20:00 +0100
committerTibor Král <tibor.kral@pantheon.tech>2018-12-05 14:51:35 +0100
commitcdc4d09c152e985c93016ff61789bc699b97883d (patch)
treed243f8d7b97c6b1a9bfd925bff970454014e170d /v3po/api
parent718e9a3c7cac01860f3e3fe6174fcc1bd33fb4eb (diff)
HC2VPP-395: Provide Interface statistics counters
Change-Id: If0f62b36b9d9dc6718ed62f81268ac0908f02297 Signed-off-by: Tibor Král <tibor.kral@pantheon.tech>
Diffstat (limited to 'v3po/api')
-rw-r--r--v3po/api/src/main/yang/v3po@2018-10-08.yang88
1 files changed, 88 insertions, 0 deletions
diff --git a/v3po/api/src/main/yang/v3po@2018-10-08.yang b/v3po/api/src/main/yang/v3po@2018-10-08.yang
index 844390de7..a4ebd7f07 100644
--- a/v3po/api/src/main/yang/v3po@2018-10-08.yang
+++ b/v3po/api/src/main/yang/v3po@2018-10-08.yang
@@ -48,6 +48,14 @@ module v3po {
See the License for the specific language governing permissions and
limitations under the License.";
+ revision "2018-11-28" {
+ description
+ "Revision changes:
+ - adds notification for interface statistics
+ - adds capture-time to vpp-interface-statistics-augmentation
+ - adds boolean flag statistics-enabled to interface";
+ }
+
revision "2018-10-08" {
description
"Revision changes:
@@ -823,6 +831,24 @@ module v3po {
}
}
+ augment /if:interfaces/if:interface {
+ ext:augment-identifier "vpp-interface-stats-collection-augmentation";
+ container statistics-collection {
+ leaf statistics-enabled {
+ type boolean;
+ }
+ }
+ }
+
+ augment /if:interfaces-state/if:interface {
+ ext:augment-identifier "vpp-interface-state-stats-collection-augmentation";
+ container statistics-collection {
+ leaf statistics-enabled {
+ type boolean;
+ }
+ }
+ }
+
augment /if:interfaces-state/if:interface {
ext:augment-identifier "vpp-interface-state-augmentation";
@@ -901,6 +927,9 @@ module v3po {
leaf out-discards-fifo-full {
type yang:counter64;
}
+ leaf capture-time {
+ type yang:date-and-time;
+ }
}
container bridge-domains-state {
@@ -941,6 +970,65 @@ module v3po {
}
}
+ notification interface-statistics-change {
+ leaf discontinuity-time {
+ type yang:date-and-time;
+ mandatory true;
+ }
+
+ leaf in-octets {
+ type yang:counter64;
+ }
+
+ leaf in-unicast-pkts {
+ type yang:counter64;
+ }
+
+ leaf in-broadcast-pkts {
+ type yang:counter64;
+ }
+
+ leaf in-multicast-pkts {
+ type yang:counter64;
+ }
+
+ leaf in-discards {
+ type yang:counter32;
+ }
+
+ leaf in-errors {
+ type yang:counter32;
+ }
+
+ leaf in-unknown-protos {
+ type yang:counter32;
+ }
+
+ leaf out-octets {
+ type yang:counter64;
+ }
+
+ leaf out-unicast-pkts {
+ type yang:counter64;
+ }
+
+ leaf out-broadcast-pkts {
+ type yang:counter64;
+ }
+
+ leaf out-multicast-pkts {
+ type yang:counter64;
+ }
+
+ leaf out-discards {
+ type yang:counter32;
+ }
+
+ leaf out-errors {
+ type yang:counter32;
+ }
+ }
+
notification interface-state-change {
leaf name {
type interface-name-or-index;