description
"This module contains a collection of YANG definitions for managing the Network Topology Simulator.";
+ revision 2020-04-13 {
+ description
+ "Change fault-notification-delay-period to leaf-list.";
+ reference
+ "O-RAN SC SIM project";
+ }
+ revision 2020-04-10 {
+ description
+ "Add notification count in status.";
+ reference
+ "O-RAN SC SIM project";
+ }
revision 2019-10-25 {
description
"Modify notifications. Add VES message configuration options.";
"none";
}
+ grouping notification-count-per-severity-g {
+ leaf normal {
+ type uint32;
+ description
+ "The number of normal notifications.";
+ }
+ leaf warning {
+ type uint32;
+ description
+ "The number of warning notifications.";
+ }
+ leaf minor {
+ type uint32;
+ description
+ "The number of minor notifications.";
+ }
+ leaf major {
+ type uint32;
+ description
+ "The number of major notifications.";
+ }
+ leaf critical {
+ type uint32;
+ description
+ "The number of normal notifications.";
+ }
+ description
+ "none";
+ }
+
container simulator-config {
description
"Configuration container of the simulator.";
"The number of devices to be mounted in ODL. The configured number should not exceed the number of mounted devices.";
}
container notification-config {
- leaf fault-notification-delay-period {
+ leaf-list fault-notification-delay-period {
type uint32;
- default "0";
+ min-elements 1;
+ max-elements 99;
description
- "Interval in seconds between two consecutive notifications. If the attribute is set to 0, nofitications are not generated.";
+ "Defines a pattern of generating notifications, represented by the amount of time between two generated fault notifications. The pattern is circular, it restarts at the beginning after all the leaf-list items are being used.
+ E.g.: if the leaf-list contains three items: 4, 8 and 10, then a fault-notification will be generated, then after 4 seconds a new notification will be generaed, then after 8 seconds, then after 10 seconds, then again after 4 seconds etc.";
}
leaf ves-heartbeat-period {
type uint32;
description
"The details about the simulation, including resources consumed.";
}
+ container notification-count {
+ config false;
+ container total-ves-notifications {
+ config false;
+ uses notification-count-per-severity-g;
+ description
+ "The total number of VES notifications that were sent by all the simulated devices managed by this NTS Manager instance.";
+ }
+ container total-netconf-notifications {
+ config false;
+ uses notification-count-per-severity-g;
+ description
+ "The total number of NETCONF notifications that were sent by all the simulated devices managed by this NTS Manager instance.";
+ }
+ description
+ "The total number of notifications sent by the devices managed by this NTS Manager instance.";
+
+ }
list simulated-devices-list {
key "uuid";
config false;
uses simulated-devices-type-g;
+ container notification-count {
+ config false;
+ container ves-notifications {
+ config false;
+ uses notification-count-per-severity-g;
+ description
+ "The total number of VES notifications that were sent by this simulated device.";
+ }
+ container netconf-notifications {
+ config false;
+ uses notification-count-per-severity-g;
+ description
+ "The total number of NETCONF notifications that were sent by this simulated device.";
+ }
+ description
+ "The total number of notifications sent by this simulated device.";
+
+ }
description
"The list of the devices that are currently simulated.";
}