1 LIBSMI-TEST-009-MIB DEFINITIONS ::= BEGIN
11 libsmiTest009Mib MODULE-IDENTITY
12 LAST-UPDATED "200005300900Z"
18 Postal: TU Braunschweig
23 Phone: +49 531 391-3283
24 EMail: strauss@ibr.cs.tu-bs.de
25 http://www.ibr.cs.tu-bs.de/~strauss/"
27 "This MIB module contains one or more intentional errors,
28 and/or unusual contents. Its only purpose is to check
29 the abilities of MIB parsers to detect these circumstances.
31 This MIB module is orginally written in SMIv2 format.
33 The MIB parser should complain about improper number and
36 The libsmi parser is expected to report:
37 LIBSMI-TEST-009-MIB:92: warning: named numbers not in ascending order
38 LIBSMI-TEST-009-MIB:102: warning: first bit (bit zero) has no name assigned
39 LIBSMI-TEST-009-MIB:114: warning: first bit (bit zero) has no name assigned
40 LIBSMI-TEST-009-MIB:120: warning: first bit (bit zero) has no name assigned
41 LIBSMI-TEST-009-MIB:120: warning: named numbers not in ascending order
42 LIBSMI-TEST-009-MIB:126: warning: named bit `yellow(128)' may cause interoperability or implementation problems
43 LIBSMI-TEST-009-MIB:126: warning: first bit (bit zero) has no name assigned
44 LIBSMI-TEST-009-MIB:132: named bit `yellow(524280)' exceeds maximum bit position
45 LIBSMI-TEST-009-MIB:132: warning: first bit (bit zero) has no name assigned
46 LIBSMI-TEST-009-MIB:70: warning: current type `EnumTcTest1' is not referenced in this module
47 LIBSMI-TEST-009-MIB:76: warning: current type `EnumTcTest2' is not referenced in this module
48 LIBSMI-TEST-009-MIB:82: warning: current type `EnumTcTest3' is not referenced in this module
49 LIBSMI-TEST-009-MIB:82: redefinition of name `red' in number enumeration
50 LIBSMI-TEST-009-MIB:88: warning: current type `EnumTcTest4' is not referenced in this module
51 LIBSMI-TEST-009-MIB:88: redefinition of number `3' in number enumeration
52 LIBSMI-TEST-009-MIB:98: warning: current type `BitsTcTest1' is not referenced in this module
53 LIBSMI-TEST-009-MIB:104: warning: current type `BitsTcTest2' is not referenced in this module
54 LIBSMI-TEST-009-MIB:110: warning: current type `BitsTcTest3' is not referenced in this module
55 LIBSMI-TEST-009-MIB:110: redefinition of name `red' in named bits list
56 LIBSMI-TEST-009-MIB:116: warning: current type `BitsTcTest4' is not referenced in this module
57 LIBSMI-TEST-009-MIB:116: redefinition of number `3' in named bits list
58 LIBSMI-TEST-009-MIB:122: warning: current type `BitsTcTest5' is not referenced in this module
59 LIBSMI-TEST-009-MIB:128: warning: current type `BitsTcTest6' is not referenced in this module
61 REVISION "200005300900Z"
67 -- Test cases for number enumerations:
70 EnumTcTest1 ::= TEXTUAL-CONVENTION
74 SYNTAX INTEGER { red(1), green(2), blue(3) }
76 EnumTcTest2 ::= TEXTUAL-CONVENTION
80 SYNTAX INTEGER { none(-1), red(1), green(2), blue(3) }
82 EnumTcTest3 ::= TEXTUAL-CONVENTION
85 "Invalid enumeration: redefinition of a name."
86 SYNTAX INTEGER { none(-1), red(1), green(2), blue(3), red(4) }
88 EnumTcTest4 ::= TEXTUAL-CONVENTION
91 "Invalid enumeration: redefinition of a number."
92 SYNTAX INTEGER { none(-1), red(1), green(2), blue(3), yellow(3) }
95 -- Test cases for named bits lists:
98 BitsTcTest1 ::= TEXTUAL-CONVENTION
101 "Valid bits enumeration."
102 SYNTAX BITS { red(1), green(2), blue(3) }
104 BitsTcTest2 ::= TEXTUAL-CONVENTION
107 "Valid bits enumeration."
108 SYNTAX BITS { none(0), red(1), green(2), blue(3) }
110 BitsTcTest3 ::= TEXTUAL-CONVENTION
113 "Invalid bits enumeration: redefinition of a name."
114 SYNTAX BITS { red(1), green(2), blue(3), red(4) }
116 BitsTcTest4 ::= TEXTUAL-CONVENTION
119 "Invalid bits enumeration: redefinition of a number."
120 SYNTAX BITS { red(1), green(2), blue(3), yellow(3) }
122 BitsTcTest5 ::= TEXTUAL-CONVENTION
125 "Invalid bits enumeration: number may cause interoperability problems."
126 SYNTAX BITS { red(1), green(2), blue(3), yellow(128) }
128 BitsTcTest6 ::= TEXTUAL-CONVENTION
131 "Invalid bits enumeration: number too large to represent."
132 SYNTAX BITS { red(1), green(2), blue(3), yellow(524280) }