1 LIBSMI-TEST-010-MIB DEFINITIONS ::= BEGIN
4 MODULE-IDENTITY, OBJECT-TYPE
8 OBJECT-GROUP, MODULE-COMPLIANCE
13 libsmiTest010Mib MODULE-IDENTITY
14 LAST-UPDATED "200011081000Z"
20 Postal: TU Braunschweig
25 Phone: +49 531 391-3283
26 EMail: strauss@ibr.cs.tu-bs.de
27 http://www.ibr.cs.tu-bs.de/~strauss/"
29 "This MIB module contains one or more intentional errors,
30 and/or unusual contents. Its only purpose is to check
31 the abilities of MIB parsers to detect these circumstances.
33 This MIB module is orginally written in SMIv2 format.
35 The MIB parser should complain about improper subtyping.
37 The libsmi parser is expected to report:
38 LIBSMI-TEST-010-MIB:68: warning: first bit (bit zero) has no name assigned
39 LIBSMI-TEST-010-MIB:81: illegal size restriction for non-octet-string parent type `EnumTcTest1'
40 LIBSMI-TEST-010-MIB:89: illegal range restriction for non-numerical parent type `EnumTcTest1'
41 LIBSMI-TEST-010-MIB:97: illegal size restriction for non-octet-string parent type `BitsTcTest1'
42 LIBSMI-TEST-010-MIB:105: illegal range restriction for non-numerical parent type `BitsTcTest1'
43 LIBSMI-TEST-010-MIB:113: illegal enumeration or bits restriction for non-enumeration-or-bits parent type `OctetsStringTcTest1'
44 LIBSMI-TEST-010-MIB:58: warning: current type `EnumTcTest1' is not referenced in this module
45 LIBSMI-TEST-010-MIB:64: warning: current type `BitsTcTest1' is not referenced in this module
46 LIBSMI-TEST-010-MIB:70: warning: current type `OctetsStringTcTest1' is not referenced in this module
47 LIBSMI-TEST-010-MIB:70: warning: type `OctetsStringTcTest1' has no format specification
49 REVISION "200011081000Z"
55 -- Some valid TC definitions:
58 EnumTcTest1 ::= TEXTUAL-CONVENTION
62 SYNTAX INTEGER { red(1), green(2), blue(3) }
64 BitsTcTest1 ::= TEXTUAL-CONVENTION
67 "Valid bits enumeration."
68 SYNTAX BITS { red(1), green(2), blue(3) }
70 OctetsStringTcTest1 ::= TEXTUAL-CONVENTION
73 "Valid octet string size restriction."
74 SYNTAX OCTET STRING (SIZE (16))
77 -- Test cases for improper subtyping of TCs:
81 SYNTAX EnumTcTest1 (SIZE (15))
85 "Invalid size restriction on an enumeration."
86 ::= { libsmiTest010Mib 1 }
89 SYNTAX EnumTcTest1 (0..31)
93 "Invalid size restriction on an enumeration."
94 ::= { libsmiTest010Mib 2 }
97 SYNTAX BitsTcTest1 (SIZE (15))
101 "Invalid size restriction on a bits enumeration."
102 ::= { libsmiTest010Mib 3 }
105 SYNTAX BitsTcTest1 (0..31)
109 "Invalid size restriction on a bits enumeration."
110 ::= { libsmiTest010Mib 4 }
113 SYNTAX OctetsStringTcTest1 { red(1) }
117 "Invalid enumeration restriction on an octet string."
118 ::= { libsmiTest010Mib 5 }
121 -- Conformance statements.
124 libsmiTest010Group OBJECT-GROUP
126 { test1, test2, test3, test4, test5 }
130 ::= { libsmiTest010Mib 6 }
132 libsmiTest010Compliance MODULE-COMPLIANCE
136 MODULE -- this module
137 MANDATORY-GROUPS { libsmiTest010Group }
138 ::= { libsmiTest010Mib 7 }