Skip to content

Commit

Permalink
Merge pull request #40 from open-traffic-generator/port-timestamp
Browse files Browse the repository at this point in the history
Port link timestamp support
  • Loading branch information
PrasenjitAdhikary authored Dec 15, 2024
2 parents 64c88b6 + 692061d commit 1b0936f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
9 changes: 5 additions & 4 deletions artifacts/open-traffic-generator-port.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ module: open-traffic-generator-port
+--ro port* [name]
+--ro name -> ../state/name
+--ro state
+--ro name? string
+--ro link? enumeration
+--ro out-rate? otg-types:ieeefloat32
+--ro in-rate? otg-types:ieeefloat32
+--ro name? string
+--ro link? enumeration
+--ro out-rate? otg-types:ieeefloat32
+--ro in-rate? otg-types:ieeefloat32
+--ro last-change? otg-types:timeticks64
+--ro counters
+--ro out-octets? otg-types:counter64
+--ro in-octets? otg-types:counter64
Expand Down
10 changes: 10 additions & 0 deletions models/interface/open-traffic-generator-port.yang
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,16 @@ module open-traffic-generator-port {
bits per second.";
}

leaf last-change {
type otg-types:timeticks64;
description
"The timestamp indicates the absolute time of the last
link state change of the test port (e.g., up-to-down transition).
The value is the timestamp in nanoseconds relative to
the Unix Epoch (Jan 1, 1970 00:00:00 UTC).";
}

container counters {
description
"Counters of an OTG port.";
Expand Down

0 comments on commit 1b0936f

Please sign in to comment.