xref: /freebsd/contrib/bsnmp/snmp_vacm/vacm_tree.def (revision 0b3105a37d7adcadcb720112fed4dc4e8040be99)
1#-
2# Copyright (C) 2010 The FreeBSD Foundation
3# All rights reserved.
4#
5# This software was developed by Shteryana Sotirova Shopova under
6# sponsorship from the FreeBSD Foundation.
7#
8# Redistribution and use in source and binary forms, with or without
9# modification, are permitted provided that the following conditions
10# are met:
11# 1. Redistributions of source code must retain the above copyright
12#    notice, this list of conditions and the following disclaimer.
13# 2. Redistributions in binary form must reproduce the above copyright
14#    notice, this list of conditions and the following disclaimer in the
15#   documentation and/or other materials provided with the distribution.
16#
17# THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
18# ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20# ARE DISCLAIMED.  IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
21# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
22# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
23# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
24# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25# LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
26# OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
27# SUCH DAMAGE.
28#
29# $FreeBSD$
30#
31
32#include "tc.def"
33
34typedef RowStatus ENUM (
35	1 active
36	2 notInService
37	3 notReady
38	4 createAndGo
39	5 createAndWait
40	6 destroy
41)
42
43typedef StorageType ENUM (
44	1 other
45	2 volatile
46	3 nonVolatile
47	4 permanent
48	5 readOnly
49)
50
51(1 internet
52  (6 snmpV2
53    (3 snmpModules
54      (16 snmpVacmMIB
55        (1 vacmMIBObjects
56          (1 vacmContextTable
57            (1 vacmContextEntry : OCTETSTRING op_vacm_context
58              (1 vacmContextName OCTETSTRING GET)
59            )
60          )
61          (2 vacmSecurityToGroupTable
62            (1 vacmSecurityToGroupEntry : INTEGER OCTETSTRING op_vacm_security_to_group
63              (1 vacmSecurityModel INTEGER)
64              (2 vacmSecurityName OCTETSTRING)
65              (3 vacmGroupName OCTETSTRING GET SET)
66              (4 vacmSecurityToGroupStorageType StorageType GET SET)
67              (5 vacmSecurityToGroupStatus RowStatus GET SET)
68            )
69          )
70          (4 vacmAccessTable
71            (1 vacmAccessEntry : OCTETSTRING OCTETSTRING INTEGER ENUM ( 1 noAuthNoPriv 2 authNoPriv 3 authPriv ) op_vacm_access
72              (1 vacmAccessContextPrefix OCTETSTRING)
73              (2 vacmAccessSecurityModel INTEGER)
74              (3 vacmAccessSecurityLevel ENUM ( 1 noAuthNoPriv 2 authNoPriv 3 authPriv ))
75              (4 vacmAccessContextMatch ENUM ( 1 exact 2 prefix ) GET SET)
76              (5 vacmAccessReadViewName OCTETSTRING GET SET)
77              (6 vacmAccessWriteViewName OCTETSTRING GET SET)
78              (7 vacmAccessNotifyViewName OCTETSTRING GET SET)
79              (8 vacmAccessStorageType StorageType GET SET)
80              (9 vacmAccessStatus RowStatus GET SET)
81            )
82          )
83          (5 vacmMIBViews
84            (1 vacmViewSpinLock INTEGER op_vacm_view_lock GET SET)
85            (2 vacmViewTreeFamilyTable
86              (1 vacmViewTreeFamilyEntry : OCTETSTRING OID op_vacm_view
87                (1 vacmViewTreeFamilyViewName OCTETSTRING)
88                (2 vacmViewTreeFamilySubtree OID)
89                (3 vacmViewTreeFamilyMask OCTETSTRING GET SET)
90                (4 vacmViewTreeFamilyType ENUM ( 1 included 2 excluded ) GET SET)
91                (5 vacmViewTreeFamilyStorageType StorageType GET SET)
92                (6 vacmViewTreeFamilyStatus RowStatus GET SET)
93              )
94            )
95          )
96        )
97        (2 vacmMIBConformance
98          (1 vacmMIBCompliances
99          )
100          (2 vacmMIBGroups
101          )
102        )
103      )
104    )
105  )
106)
107