1								   -- *****************************************************************
2-- NMS-MacAcl.my:  NMS MacAcl MIB file
3-- Jan. 6 2010
4-- *****************************************************************
5--
6
7NMS-MacAcl DEFINITIONS ::= BEGIN
8
9			IMPORTS
10				MODULE-IDENTITY,
11				OBJECT-TYPE
12					FROM SNMPv2-SMI
13				nmslocal,nms
14					FROM NMS-SMI
15				DisplayString
16					FROM RFC1213-MIB
17				RowStatus,MacAddress
18					FROM SNMPv2-TC;
19
20nmsMacAclMIB	MODULE-IDENTITY
21		LAST-UPDATED	"201001060000Z"
22		ORGANIZATION	""
23		CONTACT-INFO
24					""
25
26		DESCRIPTION
27			"This MIB module defines the generic managed objects
28			for MAC Acl."
29		::= { nms 151 }
30
31  --ACL TABLE
32		 nmsMacAclTable OBJECT-TYPE
33			  SYNTAX  SEQUENCE OF nmsMacAclEntry
34			  ACCESS  not-accessible
35			  STATUS  mandatory
36			  DESCRIPTION
37					"This table containing one entry for each
38					MAC Acl on this device."
39			  ::= { nmsMacAclMIB 1 }
40
41		  nmsMacAclEntry OBJECT-TYPE
42			  SYNTAX  nmsMacAclEntry
43			  ACCESS  not-accessible
44			  STATUS  mandatory
45			  DESCRIPTION
46					"An entry (conceptual row) containing information
47					about an MAC Acl on this device."
48			  INDEX   { nmsMacAclname }
49			  ::= { nmsMacAclTable 1 }
50
51		  nmsMacAclEntry ::= SEQUENCE {
52				nmsMacAclname			DisplayString,
53				nmsMacAclnulecnt 		INTEGER,
54				nmsMacAclmergeenable		INTEGER,
55				nmsMacAclrowstatus		RowStatus
56				}
57
58		  nmsMacAclname OBJECT-TYPE
59				SYNTAX	   DisplayString
60				ACCESS	   read-only
61				STATUS	   mandatory
62				DESCRIPTION
63						"The name of this MAC Acl. Length: 1~20."
64				::= { nmsMacAclEntry 1 }
65
66
67		  nmsMacAclnulecnt OBJECT-TYPE
68				SYNTAX	  INTEGER
69				ACCESS	   read-only
70				STATUS	   mandatory
71				DESCRIPTION
72						"The total number of this MAC Acl entries."
73				::= { nmsMacAclEntry 2 }
74
75		  nmsMacAclmergeenable OBJECT-TYPE
76				SYNTAX	   INTEGER{
77								enable (1),
78								disable (2)
79							}
80				ACCESS	   read-write
81				STATUS	   mandatory
82				DESCRIPTION
83						"Mac ACL merge."
84				::= { nmsMacAclEntry 3 }
85
86		  nmsMacAclrowstatus OBJECT-TYPE
87				SYNTAX	   RowStatus
88				ACCESS	   read-write
89				STATUS	   mandatory
90				DESCRIPTION
91						"Table row status.
92						SNMP_ROW_ACTIVE				1, active Mac Acl
93						SNMP_ROW_NOTREADY			3, lock Mac Acl
94						SNMP_ROW_CREATEANDGO		4, create Mac Acl
95						SNMP_ROW_DESTROY			6, delete Mac Acl"
96				::= { nmsMacAclEntry 4 }
97
98
99--MAC ACL RULE TABLE
100				nmsMacAclRuleTable OBJECT-TYPE
101						SYNTAX	SEQUENCE OF nmsMacAclRuleEntry
102						ACCESS	not-accessible
103						STATUS	mandatory
104						DESCRIPTION
105						   ""
106						::= { nmsMacAclMIB 2 }
107
108				nmsMacAclRuleEntry OBJECT-TYPE
109						 SYNTAX  nmsMacAclRuleEntry
110						 ACCESS  not-accessible
111						 STATUS  mandatory
112						 DESCRIPTION
113							""
114						 INDEX	 { nmsMacAclRulename, nmsMacAclRuleid }
115						::= { nmsMacAclRuleTable 1 }
116
117				nmsMacAclRuleEntry ::= SEQUENCE {
118						nmsMacAclRulename			DisplayString,
119						nmsMacAclRuleid				INTEGER,
120						nmsMacAclRuleopt				INTEGER,
121						nmsMacAclRulesrcmac			MacAddress,
122						nmsMacAclRulesrcmacmask		MacAddress,
123						nmsMacAclRuledestmac			MacAddress,
124						nmsMacAclRuledestmacmask		MacAddress,
125						nmsMacAclRuleethertype		INTEGER,
126						nmsMacAclRulerowstatus		RowStatus
127						}
128
129				nmsMacAclRulename OBJECT-TYPE
130						SYNTAX	   DisplayString
131						ACCESS	   read-only
132						STATUS	   current
133						DESCRIPTION
134								"The name of this MAC Acl."
135						::= { nmsMacAclRuleEntry 1 }
136
137				nmsMacAclRuleid OBJECT-TYPE
138						SYNTAX	   INTEGER
139						ACCESS	   read-write
140						STATUS	   current
141						DESCRIPTION
142								"Index of the rules."
143						::= { nmsMacAclRuleEntry 2 }
144
145				nmsMacAclRuleopt OBJECT-TYPE
146						SYNTAX	   INTEGER{
147								permit (1),
148								deny (2)
149								}
150						ACCESS	   read-write
151						STATUS	   mandatory
152						DESCRIPTION
153								"MAC ACL rule operation."
154						::= { nmsMacAclRuleEntry 3 }
155
156				nmsMacAclRulesrcmac OBJECT-TYPE
157						SYNTAX	   MacAddress
158						ACCESS	   read-write
159						STATUS	   current
160						DESCRIPTION
161								"source MAC address. all zero means any."
162						::= { nmsMacAclRuleEntry 4 }
163
164				nmsMacAclRulesrcmacmask OBJECT-TYPE
165						SYNTAX	   MacAddress
166						ACCESS	   read-write
167						STATUS	   current
168						DESCRIPTION
169								"source MAC address mask."
170						::= { nmsMacAclRuleEntry 5 }
171
172				nmsMacAclRuledestmac OBJECT-TYPE
173						SYNTAX	   MacAddress
174						ACCESS	   read-write
175						STATUS	   current
176						DESCRIPTION
177								"destination MAC address. all zero means any."
178						::= { nmsMacAclRuleEntry 6 }
179
180				nmsMacAclRuledestmacmask OBJECT-TYPE
181						SYNTAX	   MacAddress
182						ACCESS	   read-write
183						STATUS	   current
184						DESCRIPTION
185								"destination MAC address mask."
186						::= { nmsMacAclRuleEntry 7 }
187
188				nmsMacAclRuleethertype OBJECT-TYPE
189						SYNTAX	   INTEGER
190						ACCESS	   read-write
191						STATUS	   current
192						DESCRIPTION
193								"ethernet packet type. zero means not set."
194						::= { nmsMacAclRuleEntry 8 }
195
196				nmsMacAclRulerowstatus OBJECT-TYPE
197						SYNTAX	   RowStatus
198						ACCESS	   read-write
199						STATUS	   current
200						DESCRIPTION
201								"table row status.
202								SNMP_ROW_ACTIVE				1, active Mac Acl rule
203								SNMP_ROW_NOTREADY			3, lock Mac Acl rule
204								SNMP_ROW_CREATEANDGO		4, create Mac Acl rule
205								SNMP_ROW_DESTROY			6, delete Mac Acl rule"
206						::= { nmsMacAclRuleEntry 9 }
207
208END
209