/usr/share/yuma/modules/yuma123/yuma123-system.yang is in libyuma-base 2.10-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 | module yuma123-system {
namespace "http://yuma123.org/ns/yuma123-system";
prefix "yuma123-sys";
import ietf-system { prefix sys; }
import ietf-inet-types { prefix inet; }
import ietf-yang-types { prefix yang; }
import ietf-netconf { prefix nc; }
import notifications { prefix notif; }
import yuma-app-common { prefix yumaapp; }
import yuma-types { prefix nt; }
import yuma123-netconf-types { prefix nct; }
import yuma-ncx { prefix ncx; }
import ietf-netconf-acm { prefix nacm; }
organization "yuma123";
contact "Vladimir Vassilev <vladimir@transpacket.com>.";
description
"NETCONF Basic System Group.";
revision 2017-03-26 {
description
"Original netconfcentral yuma-system top level /system is moved.
Now augment container /ietf-system:system-state/yuma-system:yuma.
Notifications replaced with corresponding ietf-netconf-notifications
removed.";
}
revision 2012-10-05 {
description
"Updated EditOperationType to edit-operation-type.
Converged nacm extension usage.";
}
revision 2012-01-15 {
description
"Add sysNetconfServerCLI monitoring data.";
}
revision 2010-05-24 {
description
"Change SessionId to standard session-id-type.";
}
revision 2009-12-27 {
description
"Initial version.";
}
grouping SysCommonSessionParms {
leaf userName {
description
"Name of the user for the session.";
type string;
}
leaf sessionId {
description
"Identifier of the session.";
type nc:session-id-type;
mandatory true;
}
leaf remoteHost {
description
"Address of the remote host for the session.";
type inet:ip-address;
}
}
augment "/sys:system-state" {
container yuma {
description
"Basic objects for NETCONF system status.";
config false;
leaf sysName {
description
"The system name.";
type string;
reference "RFC 3418, sysName object";
}
leaf sysCurrentDateTime {
description
"The current system date and time.";
type yang:date-and-time;
}
leaf sysBootDateTime {
description
"The system date and time when the system
last restarted.";
type yang:date-and-time;
}
leaf sysLogLevel {
description
"The current system logging verbosity level.";
type nt:NcDebugType;
}
leaf sysNetconfServerId {
description
"The name and version ID for the NETCONF server
running on this system.";
type string;
}
anyxml sysNetconfServerCLI {
nacm:default-deny-all;
description
"The boot-time CLI and configuration parameters that
were used by the server running on this system.
The format is the 'netconfd' container, defined in
netconfd.yang. By default, only client-set
parameters are shown. Use with-defaults=report-all
to see all CLI parameter values in effect.";
}
container uname {
description
"Contains the broken out fields from the
output of the 'uname' command on this machine.";
leaf sysname {
description
"The name of the operating system in use.";
type string;
}
leaf release {
description
"The current release level of the operating
system in use.";
type string;
}
leaf version {
description
"The current version level of the operating
system in use.";
type string;
}
leaf machine {
description
"A description of the hardware in use.";
type string;
}
leaf nodename {
description
"The host name of this system, as reported by
the uname command.";
type string;
}
}
}
}
rpc set-log-level {
nacm:default-deny-all;
description
"Sets the server log verbosity level";
input {
ncx:default-parm log-level;
leaf log-level {
description
"The desired verbosity level for system logging
messages generated by the server.
The current value can be obtained by retrieving
the /system-state/yuma-system/sysLogLevel object.";
type nt:NcDebugType;
mandatory true;
}
}
}
notification sysStartup {
description
"Generated when the system restarts.
Used for logging purposes, since no
sessions are actually active when
the system restarts.";
leaf startupSource {
description
"The filespec used to load the running configuration.
This leaf will only be present if there was a startup
configuration file used.";
type string;
}
list bootError {
description
"There will be one entry for each <rpc-error>
encountered during the load config operation.
The <rpc-error> fields are used directly.
There is no particular order, so no key is defined.";
uses nct:RpcErrorType;
}
}
augment /notif:notification {
leaf sequence-id {
description
"Global auto-increment sequence ID added to
each notification element sent by netconfd";
type uint32;
}
}
rpc load {
nacm:default-deny-all;
description
"Load a module into the server, if it is not already loaded.
Returns the module revision date (or today's date if none),
of the module that was loaded, or an error if not found
or the module found had errors and was not loaded
successfully. If the module is already loaded, then the
revision date will simply be returned.";
input {
ncx:default-parm module;
leaf module {
description "Name of the module to load.";
mandatory true;
type nt:NcxName;
}
leaf revision {
description
"Module revision to load.";
type nt:Date;
}
uses yumaapp:DeviationParm;
}
output {
leaf mod-revision {
description
"Revision date of the module in use by the server.
Will only be present if the module has a version";
type nt:Date;
}
}
}
rpc restart {
description
"Restart the server. Does not reload the software image..";
nacm:default-deny-all;
}
rpc shutdown {
description
"Shutdown the server.";
nacm:default-deny-all;
}
rpc no-op {
description
"Just returns 'ok'. Used for debugging
or relative performance measurements.";
}
}
|