1 module nts-network-function {
3 namespace "urn:o-ran-sc:params:xml:ns:yang:nts:network:function";
9 import ietf-yang-types {
16 " Web: <https://wiki.o-ran-sc.org/display/SIM/SIM>
18 Alex Stancu <mailto:alexandru.stancu@highstreet-technologies.com>
19 Adrian Lita <mailto:adrian.lita@highstreet-technologies.com>
20 Martin Skorupski <mailto:martin.skorupski@highstreet-technologies.com>";
22 "This module contains YANG definitions for the Network Topology Simulator - Network Functions";
26 "Added info container, and expanted feature control mechanism and status.";
28 "O-RAN-SC SIM project";
32 "Renamed datastore-random-populate RPC to datastore-populate";
34 "O-RAN-SC SIM project";
38 "Added function-type to simulated function.";
40 "O-RAN-SC SIM project";
44 "Cleared revision for nts-common import.";
46 "O-RAN-SC SIM project";
50 "Add RPC for clearing the fault counters.";
52 "O-RAN-SC SIM project";
56 "Add RPC for datastore populating and feature control.";
58 "O-RAN-SC SIM project";
62 "Initial revision for the Network Topology Simulator - Next Generation";
64 "O-RAN-SC SIM project";
67 rpc datastore-populate {
69 "Operation to populate the datastore with data for all the containing YANG models, based on settings in config.json";
71 uses ntsc:rpc-status-g;
77 "Operation to control the features in a Network Function.";
80 type ntsc:feature-type;
82 "A bit-wise list with features to be activated.";
85 type ntsc:feature-type;
87 "A bit-wise list with features to be deactivated.";
91 uses ntsc:rpc-status-g;
95 rpc invoke-notification {
97 "Operation to control the features in a Network Function.";
99 leaf notification-format {
103 "The notification string is formatted as XML.";
107 "The notification string is formatted as JSON.";
112 "The format of the notification string.";
114 leaf notification-object {
118 "A JSON string containing the notification object to be sent by the device.";
122 uses ntsc:rpc-status-g;
126 rpc invoke-ves-pm-file-ready {
128 "Operation to generate a VES notification from a Network Function.";
134 "A string containing the location of the file on the server.";
138 uses ntsc:rpc-status-g;
142 rpc clear-fault-counters {
144 "Operation to clear the fault counters.";
146 uses ntsc:rpc-status-g;
153 "Information about NTS application and modules.";
155 type yang:date-and-time;
157 "Build time of NTS application.";
162 "NTS version of current network-function.";
164 leaf started-features {
165 type ntsc:feature-type;
167 "A bit-wise list with currently started features.";
170 container simulation {
172 "Root level container which controls the Network Function.";
173 container network-function {
175 "Container which encompasses the details of the network function.";
179 "Type of network function that is simulated.";
181 uses ntsc:mount-point-details-g;
183 uses ntsc:netconf-config-g;
184 uses ntsc:ves-config-g;
186 container sdn-controller {
188 "Groups details about the SDN Controller.";
189 uses ntsc:controller-g;
191 container ves-endpoint {
193 "Groups details about the VES Collector endpoint.";
194 uses ntsc:ves-endpoint-g;