-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCISCO-IMAGE-TC.yang
297 lines (257 loc) · 8.13 KB
/
CISCO-IMAGE-TC.yang
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
285
286
287
288
289
290
291
292
293
294
295
296
297
/*
* This YANG module has been generated by smidump 0.5.0:
*
* smidump -f yang CISCO-IMAGE-TC
*
* Do not edit. Edit the source file instead!
*/
module CISCO-IMAGE-TC {
namespace "urn:ietf:params:xml:ns:yang:smiv2:CISCO-IMAGE-TC";
prefix "cisco-image";
import CISCO-SMI {
prefix "cisco-smi";
}
import ietf-yang-smiv2 {
prefix "smiv2";
}
organization
"Cisco Systems, Inc.";
contact
"Cisco Systems
Customer Service
Postal: 170 W Tasman Drive
San Jose, CA 95134
USA
Tel: +1 800 553-NETS
E-mail: [email protected]";
description
"This MIB module defines the textual conventions
used in the enhanced image MIB.
Glossary:
Base Image
Essential part of the operating system,
which forms base functionality on top of
which patches can be added.
MBI (Minimum bootable image)
A small image which contains the smallest
possible amount of functionality required to
bootstrap and load a full image. This image
typically contains the kernel, the file system
drivers, and some hardware initialization code.
It is executed at boot-up, and initializes just
enough to access the rest of the code, and
run it.
Modular operating system
An operating system that exhibits runtime
modularity characteristics, such as multiple
address spaces, fault isolation between
processes, and modularity delivery and
replacement of image components.
Patch/Package/SMU (software maintenance upgrade)
A modular replacement for some piece of on-box
content, such as a binary shared object, or a
text file. This entity is meant to replace or
augment something that is already part of the
base image.
Composite package
Group of packages delivered as a bundle. It is
meant to be loaded on MBI.
Script
A non-binary piece of on-box content, typically
a TCL script for use by the TCL interpreter, or
some other form of interpreted router content.
Installable
An installable can be a patch, package, composite
package, SMU or script. It is a piece of
software which can be loaded on to the base
image on a system.";
revision 2005-01-12 {
description
"Initial draft version.";
}
typedef CeImageInstallableStatus {
type enumeration {
enum "active" {
value "1";
}
enum "pendingInstall" {
value "2";
}
enum "pendingRemoval" {
value "3";
}
enum "installPendingReload" {
value "4";
}
enum "removedPendingReload" {
value "5";
}
enum "installPendingReloadPendingRemoval" {
value "6";
}
enum "removedPendingReloadPendingInstall" {
value "7";
}
enum "pruned" {
value "8";
}
enum "inactive" {
value "9";
}
}
description
"Current state of the installable :
|
| install
|
\/
+-----------------+
| 'pendingInstall'|
+-----------------+
|
| activate
|
\/ (needs reload)
-----------------------
| |
| |
| \/
| +----------------------+
| |'installPendingReload'|
| +----------------------+
| |
\/ |
+--------+ \/
|'active'| <----------------
+--------+ (reload)
|
|
|
| rollback
|
\/
+----------------+
|'pendingRemoval'|
+----------------+
|
| activate
|
\/ (needs reload)
---------------------
| |
| |
\/ \/
+----------------------+
(removed) |'removedPendingReload'|
+----------------------+
|
| (reload)
|
(removed)
'active' Installable is active in the system.
It has been activated and currently
is running in the system.
'pendingInstall' Installable is installed on the system,
but it needs to be activated by issuing
activate command before it becomes
active on the system.
'pendingRemoval' Rollback command has been issued on the
installable to remove it from the
system, but it is not yet removed from
the system. For the rollback to take
effect and remove the installable from
the system, it has to be confirmed with
activate command.
'installPendingReload' Installable is activated, but is not yet
running on the system because system
needs a reload to run this installable.
On the next reload, it will become
'active'.
'removedPendingReload' The removal of this installable has been
committed, but it has not yet taken
effect. This typically means that it
is pending a reload, so it is not
actually removed yet. On the next
reload this installable is removed
completely from the system.
'installPendingReloadPendingRemoval'
Installable is both pending a reload
and also pending removal. It means
installable has been installed but it
needs reload, before reload is done
installable is removed. If an activate
is done on the installable both the
conditions cancel each other and
installable will become 'active'. If a
reload is done then installable will
go into 'pendingReload' state.
'removedPendingReloadPendingInstall'
Installable is both pending a reload
and also pending install. It means
installable has been removed but it
needs reload, before reload is done
installable is installed again. If
an activate is done on the
installable both the conditions
cancel each other and installable
will become 'active'. If a reload is
done then installable will go into
'pendingInstall' state.
'pruned' Installable is in pruned state. When a
tag is removed from the system and a
installable under the tag is not in
running state it is put in pruned state.
This represents a temporary state and
the installable will be removed from
the system.
'inactive' Loaded but is not currently active.";
}
typedef CeImageInstallableType {
type enumeration {
enum "base" {
value "1";
}
enum "patch" {
value "2";
}
enum "script" {
value "3";
}
enum "package" {
value "4";
}
enum "compositePackage" {
value "5";
}
enum "softwareMaintenanceUpgrade" {
value "6";
}
}
description
"The type of software. Modular Operating Systems can have
different type of software loaded like base image or
minimum bootable image(MBI), a patch, a package or a
script. This TC will describe what type of software
is loaded.
'base'
Base image or minimum bootable image
'patch'
Piece of software which can be loaded on to base
image, usually to fix bugs in base image
'script'
A user written program which can be loaded on the base
image, usually to monitor and notify system activities
'package'
Piece of software which can be loaded on minimum bootable
image, used by some operating systems to provide new
features.
'compositePackage'
Collection of Packages bundled together
'softwareMaintenanceUpgrade'
SMU, Same as Patch used to provide point fixes
for bugs.";
}
smiv2:alias "ciscoImageTc" {
smiv2:oid "1.3.6.1.4.1.9.9.455";
}
}