X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?p=sim%2Fo1-interface.git;a=blobdiff_plain;f=ntsimulator%2Fyang%2Fnts-manager%2Fnetwork-topology-simulator.yang;h=32570eb8f3161583762b7185009c4e149a6fc045;hp=ac2cf8dd38ca55aa4ca241912bee3f7fc0fc1bc3;hb=a19f893a70c03dee9312e1208301d079409d84ac;hpb=1f1479ff8ce3a268acb7b70a32bb789d859a915b diff --git a/ntsimulator/yang/nts-manager/network-topology-simulator.yang b/ntsimulator/yang/nts-manager/network-topology-simulator.yang index ac2cf8d..32570eb 100644 --- a/ntsimulator/yang/nts-manager/network-topology-simulator.yang +++ b/ntsimulator/yang/nts-manager/network-topology-simulator.yang @@ -16,6 +16,13 @@ module network-topology-simulator { description "This module contains a collection of YANG definitions for managing the Network Topology Simulator."; + + 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."; @@ -145,6 +152,36 @@ module network-topology-simulator { "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."; @@ -274,10 +311,46 @@ module network-topology-simulator { 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."; }