summaryrefslogtreecommitdiffstats
path: root/meta-openembedded/meta-oe/recipes-support/libsmi/libsmi/libsmi-fix-the-test-dump-files.patch
blob: 134a8bb41044f554842ac7e8e82b33e662eb0c2e (plain)
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
From 460d3a5ef450c30b34a663a073ee53329441ef6e Mon Sep 17 00:00:00 2001
From: Jackie Huang <jackie.huang@windriver.com>
Date: Tue, 23 Feb 2016 16:34:38 +0800
Subject: [PATCH] libsmi: fix the test dump files

These test dump files were generated by smidump 0.4.5
which would not match with the ones generated by 0.4.8,
so update them with the ones for 0.4.8.

Upstream-Status: Pending

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
---
 test/dumps/cm/MAU-MIB       |  8 ++++----
 test/dumps/cm/RMON2-MIB     |  6 +++---
 test/dumps/sming/IF-MIB     | 22 +++++++++++++---------
 test/dumps/sming/MAU-MIB    | 19 +++++++++++--------
 test/dumps/sming/RMON2-MIB  | 40 ++++++++++++++++++++++++----------------
 test/dumps/sming/SNMPv2-MIB | 11 +++++++----
 6 files changed, 62 insertions(+), 44 deletions(-)

diff --git a/test/dumps/cm/MAU-MIB b/test/dumps/cm/MAU-MIB
index 0d97284..0cfd4e1 100644
--- a/test/dumps/cm/MAU-MIB
+++ b/test/dumps/cm/MAU-MIB
@@ -53,7 +53,7 @@
   <attribute name="text">
     <composite type="text">
       <attribute name="string">
-        <string>#Conceptual model of MAU-MIB - generated by smidump 0.4.5#</string>
+        <string>#Conceptual model of MAU-MIB - generated by smidump 0.4.8#</string>
       </attribute>
       <attribute name="font">
         <font name="Courier"/>
@@ -1294,7 +1294,7 @@
         <point val="29.52,49.18"/>
      </attribute>
       <attribute name="obj_bb">
-       <rectangle val="28.67,32.93;30.37,34.63"/>
+       <rectangle val="28.67,32.93;30.37,34.62"/>
      </attribute>
      <attribute name="orth_points">
        <point val="29.52,49.18"/>
@@ -1678,7 +1678,7 @@
         <point val="37.68,49.18"/>
      </attribute>
       <attribute name="obj_bb">
-       <rectangle val="28.67,32.93;30.37,34.63"/>
+       <rectangle val="28.67,32.93;30.37,34.62"/>
      </attribute>
      <attribute name="orth_points">
        <point val="37.68,49.18"/>
@@ -1737,7 +1737,7 @@
         <point val="29.52,35.78"/>
      </attribute>
       <attribute name="obj_bb">
-       <rectangle val="28.67,32.93;30.37,34.63"/>
+       <rectangle val="28.67,32.93;30.37,34.62"/>
      </attribute>
      <attribute name="orth_points">
        <point val="29.52,35.78"/>
diff --git a/test/dumps/cm/RMON2-MIB b/test/dumps/cm/RMON2-MIB
index 30ae8dd..1b9d268 100644
--- a/test/dumps/cm/RMON2-MIB
+++ b/test/dumps/cm/RMON2-MIB
@@ -53,7 +53,7 @@
   <attribute name="text">
     <composite type="text">
       <attribute name="string">
-        <string>#Conceptual model of RMON2-MIB - generated by smidump 0.4.5#</string>
+        <string>#Conceptual model of RMON2-MIB - generated by smidump 0.4.8#</string>
       </attribute>
       <attribute name="font">
         <font name="Courier"/>
@@ -2841,8 +2841,8 @@
      </attribute>
      <attribute name="orth_points">
        <point val="18.80,55.45"/>
-       <point val="18.80,68.63"/>
-       <point val="22.80,68.63"/>
+       <point val="18.80,68.62"/>
+       <point val="22.80,68.62"/>
        <point val="22.80,81.80"/>
      </attribute>
       <attribute name="orth_orient">
diff --git a/test/dumps/sming/IF-MIB b/test/dumps/sming/IF-MIB
index 21432cb..c2ffc06 100644
--- a/test/dumps/sming/IF-MIB
+++ b/test/dumps/sming/IF-MIB
@@ -1,16 +1,18 @@
 //
-// This module has been generated by smidump 0.4.5. Do not edit.
+// This module has been generated by smidump 0.4.8. Do not edit.
 //
 module IF-MIB {
 
-  import IANAifType-MIB       (IANAifType);
-  import IRTF-NMRG-SMING      (Counter32, Counter64, 
-                               DisplayString255, Gauge32, 
-                               PhysAddress, TimeStamp, TimeTicks, 
-                               TruthValue);
-  import IRTF-NMRG-SMING-SNMP (AutonomousType, RowStatus, 
-                               TestAndIncr, mib-2);
-  import SNMPv2-MIB           (snmpTraps);
+  import SNMPv2-SMI     (MODULE-IDENTITY, OBJECT-TYPE, Counter32, 
+                         Gauge32, Counter64, Integer32, TimeTicks, 
+                         mib-2, NOTIFICATION-TYPE);
+  import SNMPv2-TC      (TEXTUAL-CONVENTION, DisplayString, 
+                         PhysAddress, TruthValue, RowStatus, 
+                         TimeStamp, AutonomousType, TestAndIncr);
+  import SNMPv2-CONF    (MODULE-COMPLIANCE, OBJECT-GROUP, 
+                         NOTIFICATION-GROUP);
+  import SNMPv2-MIB     (snmpTraps);
+  import IANAifType-MIB (IANAifType);
 
 //
 // MODULE META INFORMATION
@@ -79,6 +81,7 @@ module IF-MIB {
   typedef InterfaceIndex {
     type            Integer32 (1..2147483647);
     format          "d";
+    status          current;
     description     
        "A unique value, greater than zero, for each interface or
         interface sub-layer in the managed system.  It is
@@ -91,6 +94,7 @@ module IF-MIB {
   typedef InterfaceIndexOrZero {
     type            Integer32 (0..2147483647);
     format          "d";
+    status          current;
     description     
        "This textual convention is an extension of the
         InterfaceIndex convention.  The latter defines a greater
diff --git a/test/dumps/sming/MAU-MIB b/test/dumps/sming/MAU-MIB
index 2cffd99..64cf714 100644
--- a/test/dumps/sming/MAU-MIB
+++ b/test/dumps/sming/MAU-MIB
@@ -1,15 +1,18 @@
 //
-// This module has been generated by smidump 0.4.5. Do not edit.
+// This module has been generated by smidump 0.4.8. Do not edit.
 //
 module MAU-MIB {
 
-  import IANA-MAU-MIB         (IANAifJackType, 
-                               IANAifMauAutoNegCapBits, 
-                               IANAifMauMediaAvailable, 
-                               IANAifMauTypeListBits);
-  import IF-MIB               (InterfaceIndex);
-  import IRTF-NMRG-SMING      (Counter32, Counter64, TruthValue);
-  import IRTF-NMRG-SMING-SNMP (AutonomousType, mib-2);
+  import SNMPv2-SMI   (Counter32, Integer32, Counter64, OBJECT-TYPE, 
+                       MODULE-IDENTITY, NOTIFICATION-TYPE, mib-2);
+  import SNMPv2-TC    (TruthValue, AutonomousType, 
+                       TEXTUAL-CONVENTION);
+  import SNMPv2-CONF  (OBJECT-GROUP, MODULE-COMPLIANCE, 
+                       NOTIFICATION-GROUP);
+  import IF-MIB       (InterfaceIndex);
+  import IANA-MAU-MIB (IANAifMauTypeListBits, 
+                       IANAifMauMediaAvailable, 
+                       IANAifMauAutoNegCapBits, IANAifJackType);
 
 //
 // MODULE META INFORMATION
diff --git a/test/dumps/sming/RMON2-MIB b/test/dumps/sming/RMON2-MIB
index 423b9bc..04763e5 100644
--- a/test/dumps/sming/RMON2-MIB
+++ b/test/dumps/sming/RMON2-MIB
@@ -1,23 +1,26 @@
 //
-// This module has been generated by smidump 0.4.5. Do not edit.
+// This module has been generated by smidump 0.4.8. Do not edit.
 //
 module RMON2-MIB {
 
-  import IF-MIB               (ifIndex);
-  import IRTF-NMRG-SMING      (Counter32, DisplayString255, 
-                               Gauge32, IpAddress, TimeStamp, 
-                               TimeTicks);
-  import IRTF-NMRG-SMING-SNMP (RowStatus, mib-2);
-  import RMON-MIB             (OwnerString, channelEntry, 
-                               etherStatsEntry, filter, 
-                               filterEntry, history, 
-                               historyControlEntry, 
-                               hostControlEntry, hosts, matrix, 
-                               matrixControlEntry, statistics);
-  import TOKEN-RING-RMON-MIB  (ringStationControlEntry, 
-                               sourceRoutingStatsEntry, 
-                               tokenRing, tokenRingMLStatsEntry, 
-                               tokenRingPStatsEntry);
+  import SNMPv2-SMI          (MODULE-IDENTITY, OBJECT-TYPE, 
+                              Counter32, Integer32, Gauge32, 
+                              IpAddress, TimeTicks, mib-2);
+  import SNMPv2-TC           (TEXTUAL-CONVENTION, RowStatus, 
+                              DisplayString, TimeStamp);
+  import SNMPv2-CONF         (MODULE-COMPLIANCE, OBJECT-GROUP);
+  import IF-MIB              (ifIndex);
+  import RMON-MIB            (OwnerString, statistics, history, 
+                              hosts, matrix, filter, 
+                              etherStatsEntry, 
+                              historyControlEntry, 
+                              hostControlEntry, 
+                              matrixControlEntry, filterEntry, 
+                              channelEntry);
+  import TOKEN-RING-RMON-MIB (tokenRing, tokenRingMLStatsEntry, 
+                              tokenRingPStatsEntry, 
+                              ringStationControlEntry, 
+                              sourceRoutingStatsEntry);
 
 //
 // MODULE META INFORMATION
@@ -167,6 +170,7 @@ module RMON2-MIB {
 
   typedef ZeroBasedCounter32 {
     type            Gauge32;
+    status          current;
     description     
        "This TC describes an object that counts events with the
         following semantics: objects of this type will be set to
@@ -188,6 +192,7 @@ module RMON2-MIB {
 
   typedef LastCreateTime {
     type            TimeTicks;
+    status          current;
     description     
        "This TC describes an object that stores the value of the
         sysUpTime object at the last time its entry was created.
@@ -208,6 +213,7 @@ module RMON2-MIB {
 
   typedef TimeFilter {
     type            TimeTicks;
+    status          current;
     description     
        "To be used for the index to a table.  Allows an application
         to download only those rows changed since a particular time.
@@ -424,6 +430,7 @@ module RMON2-MIB {
 
   typedef DataSource {
     type            ObjectIdentifier;
+    status          current;
     description     
        "Identifies the source of the data that the associated
         function is configured to analyze.  This source can be any
@@ -439,6 +446,7 @@ module RMON2-MIB {
 
   typedef ControlString {
     type            OctetString (0..255);
+    status          current;
     description     
        "This data type is used to communicate with a modem or a
         
diff --git a/test/dumps/sming/SNMPv2-MIB b/test/dumps/sming/SNMPv2-MIB
index ca355c8..0c88939 100644
--- a/test/dumps/sming/SNMPv2-MIB
+++ b/test/dumps/sming/SNMPv2-MIB
@@ -1,11 +1,14 @@
 //
-// This module has been generated by smidump 0.4.5. Do not edit.
+// This module has been generated by smidump 0.4.8. Do not edit.
 //
 module SNMPv2-MIB {
 
-  import IRTF-NMRG-SMING      (Counter32, DisplayString255, 
-                               TimeStamp, TimeTicks, snmpModules);
-  import IRTF-NMRG-SMING-SNMP (TestAndIncr, mib-2);
+  import SNMPv2-SMI  (MODULE-IDENTITY, OBJECT-TYPE, 
+                      NOTIFICATION-TYPE, TimeTicks, Counter32, 
+                      snmpModules, mib-2);
+  import SNMPv2-TC   (DisplayString, TestAndIncr, TimeStamp);
+  import SNMPv2-CONF (MODULE-COMPLIANCE, OBJECT-GROUP, 
+                      NOTIFICATION-GROUP);
 
 //
 // MODULE META INFORMATION
-- 
1.9.1

OpenPOWER on IntegriCloud