1
|
-- file: RFC-1212.my
|
2
|
-- changes:
|
3
|
-- Removed IMPORTS.
|
4
|
-- Commented out OBJECT-TYPE macro definition and replaced
|
5
|
-- with SMIC directive to enable it.
|
6
|
-- dperkins@scruznet.com
|
7
|
|
8
|
|
9
|
|
10
|
RFC-1212 DEFINITIONS ::= BEGIN
|
11
|
|
12
|
-- Make builtin items known
|
13
|
--SMI OBJECT-TYPE
|
14
|
|
15
|
|
16
|
-- OBJECT-TYPE MACRO ::=
|
17
|
-- BEGIN
|
18
|
-- TYPE NOTATION ::=
|
19
|
-- must conform to
|
20
|
-- RFC1155's ObjectSyntax
|
21
|
-- "SYNTAX" type(ObjectSyntax)
|
22
|
-- "ACCESS" Access
|
23
|
-- "STATUS" Status
|
24
|
-- DescrPart
|
25
|
-- ReferPart
|
26
|
-- IndexPart
|
27
|
-- DefValPart
|
28
|
-- VALUE NOTATION ::= value (VALUE ObjectName)
|
29
|
--
|
30
|
-- Access ::= "read-only"
|
31
|
-- | "read-write"
|
32
|
-- | "write-only"
|
33
|
-- | "not-accessible"
|
34
|
-- Status ::= "mandatory"
|
35
|
-- | "optional"
|
36
|
-- | "obsolete"
|
37
|
-- | "deprecated"
|
38
|
--
|
39
|
-- DescrPart ::=
|
40
|
-- "DESCRIPTION" value (description DisplayString)
|
41
|
-- | empty
|
42
|
--
|
43
|
-- ReferPart ::=
|
44
|
-- "REFERENCE" value (reference DisplayString)
|
45
|
-- | empty
|
46
|
--
|
47
|
-- IndexPart ::=
|
48
|
-- "INDEX" "{" IndexTypes "}"
|
49
|
-- | empty
|
50
|
-- IndexTypes ::=
|
51
|
-- IndexType | IndexTypes "," IndexType
|
52
|
-- IndexType ::=
|
53
|
-- if indexobject, use the SYNTAX
|
54
|
-- value of the correspondent
|
55
|
-- OBJECT-TYPE invocation
|
56
|
-- value (indexobject ObjectName)
|
57
|
-- otherwise use named SMI type
|
58
|
-- must conform to IndexSyntax below
|
59
|
-- | type (indextype)
|
60
|
--
|
61
|
-- DefValPart ::=
|
62
|
-- "DEFVAL" "{" value (defvalue ObjectSyntax) "}"
|
63
|
-- | empty
|
64
|
-- END
|
65
|
--
|
66
|
-- IndexSyntax ::=
|
67
|
-- CHOICE {
|
68
|
-- number
|
69
|
-- INTEGER (0..MAX),
|
70
|
-- string
|
71
|
-- OCTET STRING,
|
72
|
-- object
|
73
|
-- OBJECT IDENTIFIER,
|
74
|
-- address
|
75
|
-- NetworkAddress,
|
76
|
-- ipAddress
|
77
|
-- IpAddress
|
78
|
-- }
|
79
|
END
|