-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.txt
347 lines (324 loc) · 17.4 KB
/
schema.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
schema: META-TS-SCHEMA
key: timestamp required single primary > [date] [time] [tz]
schema: META-SIG-SCHEMA
key: signature required single primary > [signature]
schema: META-TX-BEGIN-SCHEMA
key: transaction-submit-begin required single primary > [database] [tx]
key: response-auth-type optional multiple > [type]
key: transaction-confirm-type optional single > {none|legacy|normal|commit}
schema: META-TX-END-SCHEMA
key: transaction-submit-end required single primary > [database] [tx]
schema: META-TX-CONFIRM-SCHEMA
key: transaction-confirm required single primary > [database] [tx]
schema: META-TX-LABEL-SCHEMA
key: transaction-label required single primary
key: sequence
key: timestamp
key: integrity
schema: AS-BLOCK-SCHEMA
key: as-block required single primary
key: descr optional single
key: policy required single > {policy:open,ask,closed}
key: mnt-by required multiple > [lookup:mntner]
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: remarks optional multiple
key: source required single > [lookup:registry]
mnt-by: DN42-MNT
source: DN42
schema: AS-SET-SCHEMA
key: as-set required single primary
key: descr optional single
key: mnt-by required multiple > [lookup:mntner]
key: members optional multiple > [lookup:aut-num,as-set]
key: mbrs-by-ref optional multiple > [lookup:mntner]
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: remarks optional multiple
key: source required single > [lookup:registry]
as-owner: as-block
mnt-by: DN42-MNT
source: DN42
schema: AUT-NUM-SCHEMA
key: aut-num required single primary
key: as-name required single index
key: descr optional single
key: mnt-by required multiple > [lookup:mntner]
key: member-of optional multiple > [lookup:as-set,route-set]
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: org optional single > [lookup:organisation]
key: import deprecate multiple
key: export deprecate multiple
key: default deprecate multiple
key: mp-peer deprecate multiple
key: mp-group deprecate multiple
key: mp-import optional multiple
key: mp-export optional multiple
key: mp-default optional multiple
key: geo-loc optional multiple
key: remarks optional multiple
key: source required single > [lookup:registry]
mnt-by: DN42-MNT
source: DN42
schema: DNS-SCHEMA
key: dns required single primary
key: nserver required multiple > [dns] [addr]
key: descr optional single
key: mnt-by required multiple > [lookup:mntner]
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: org optional multiple > [lookup:organisation]
key: country optional single
key: ds-rdata optional multiple
key: remarks optional multiple
key: source required single > [lookup:registry]
mnt-by: DN42-MNT
source: DN42
schema: INET6NUM-SCHEMA
key: inet6num required single
key: cidr required single primary
key: netname required single
key: nserver optional multiple > [dns]
key: country optional multiple
key: descr optional single
key: status optional single > {space:ALLOCATED,ASSIGNED} {use:ANYCAST,}
key: policy optional single > {policy:open,closed,ask,reserved}
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: zone-c optional multiple > [lookup:person,role]
key: ds-rdata optional multiple
key: mnt-by optional multiple > [lookup:mntner]
key: mnt-lower optional multiple > [lookup:mntner]
key: mnt-routes optional multiple > [lookup:mntner]
key: org optional single > [lookup:organisation]
key: remarks optional multiple
key: source required single > [lookup:registry]
network-owner: inet6num
mnt-by: DN42-MNT
source: DN42
schema: INETNUM-SCHEMA
key: inetnum required single schema
key: cidr required single primary
key: netname required single
key: nserver optional multiple > [dns]
key: country optional multiple
key: descr optional single
key: status optional single > {space:ALLOCATED,ASSIGNED} {use:ANYCAST,}
key: policy optional single > {policy:open,closed,ask,reserved}
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: zone-c optional multiple > [lookup:person,role]
key: ds-rdata optional multiple
key: mnt-by optional multiple > [lookup:mntner]
key: mnt-lower optional multiple > [lookup:mntner]
key: mnt-routes optional multiple > [lookup:mntner]
key: org optional single > [lookup:organisation]
key: remarks optional multiple
key: source required single > [lookup:registry]
network-owner: inet6num
network-owner: inetnum
mnt-by: DN42-MNT
source: DN42
schema: KEY-CERT-SCHEMA
key: key-cert required single primary
key: method required single > {type:PGP,X509,MTN,SSH}
key: owner required multiple > [email]
key: fingerpr required single
key: certif required multiple
key: org optional multiple > [lookup:organisation]
key: remarks optional multiple
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: mnt-by required multiple > [lookup:mntner]
key: source required single > [lookup:registry]
mnt-by: DN42-MNT
source: DN42
schema: MNTNER-SCHEMA
key: mntner required single primary
key: descr optional single
key: mnt-by required multiple > [lookup:mntner]
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: auth optional multiple > {type:ssh-rsa,ssh-ed25519}|[lookup:key-cert] [data]
key: org optional multiple > [lookup:organisation]
key: abuse-mailbox optional single > [email]
key: remarks optional multiple
key: source required single > [lookup:registry]
mnt-by: DN42-MNT
source: DN42
schema: ORGANISATION-SCHEMA
key: organisation required single primary
key: org-name required single index
key: descr optional single
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: abuse-c optional multiple > [lookup:person,role]
key: mnt-by required multiple > [lookup:mntner]
key: mnt-ref optional multiple > [lookup:mntner]
key: phone optional multiple
key: fax-no optional multiple
key: www optional multiple
key: abuse-mailbox optional multiple > [email]
key: e-mail optional multiple > [email]
key: geoloc optional multiple > [lat-c] [long-c] [name]
key: language optional multiple
key: remarks optional multiple
key: address optional multiple
key: source required single > [lookup:registry]
mnt-by: DN42-MNT
source: DN42
schema: PERSON-SCHEMA
key: person required single schema
key: nic-hdl required single primary
key: mnt-by required multiple > [lookup:mntner]
key: org optional multiple > [lookup:organisation]
key: nick optional multiple
key: pgp-fingerprint optional multiple
key: www optional multiple
key: e-mail optional multiple > [email]
key: contact optional multiple > [email]
key: abuse-mailbox optional multiple > [email]
key: phone optional multiple
key: fax-no optional multiple
key: address optional multiple
key: remarks optional multiple
key: source required single > [lookup:registry]
mnt-by: DN42-MNT
source: DN42
schema: REGISTRY-SCHEMA
key: registry required single primary
key: url required multiple
key: descr optional multiple
key: whois optional single
key: mnt-by required multiple > [lookup:mntner]
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: source required single > [lookup:registry]
mnt-by: DN42-MNT
source: DN42
schema: ROLE-SCHEMA
key: role required single schema
key: nic-hdl required single primary
key: mnt-by required multiple > [lookup:mntner]
key: org optional multiple > [lookup:organisation]
key: admin-c optional multiple > [lookup:person]
key: tech-c optional multiple > [lookup:person]
key: abuse-c optional multiple > [lookup:person]
key: abuse-mailbox optional multiple > [email]
key: descr optional single
key: remarks optional multiple
key: source required single > [lookup:registry]
mnt-by: DN42-MNT
source: DN42
schema: ROUTE-SCHEMA
key: route required single primary
key: mnt-by required multiple > [lookup:mntner]
key: origin required multiple > [lookup:aut-num]
key: member-of optional multiple > [lookup:route-set]
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: descr optional single
key: remarks optional multiple
key: source required single > [lookup:registry]
key: pingable optional multiple
key: max-length optional single
network-owner: inetnum
mnt-by: DN42-MNT
source: DN42
schema: ROUTE-SET-SCHEMA
key: route-set required single primary
key: descr optional single
key: mnt-by required multiple > [lookup:mntner]
key: members deprecate multiple
key: mp-members optional multiple
key: mbrs-by-ref optional multiple > [lookup:mntner]
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: remarks optional multiple
key: source required single > [lookup:registry]
mnt-by: DN42-MNT
source: DN42
schema: ROUTE6-SCHEMA
key: route6 required single primary
key: mnt-by required multiple > [lookup:mntner]
key: origin required multiple > [lookup:aut-num]
key: member-of optional multiple > [lookup:route-set]
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: descr optional multiple
key: remarks optional multiple
key: source required single > [lookup:registry]
key: pingable optional multiple
key: max-length optional single
network-owner: inet6num
mnt-by: DN42-MNT
source: DN42
schema: SCHEMA-SCHEMA
primary-key: inetnum cidr
primary-key: inet6num cidr
primary-key: role nic-hdl
primary-key: person nic-hdl
owners: mntner
key: schema required single primary
key: owners optional single > [schema]
key: mnt-by required multiple > [lookup:mntner]
key: remarks optional multiple
key: source required single > [lookup:registry]
key: network-owner optional multiple > [parent-schema:schema]
key: key required multiple > [key-name]
{required,optional,recommend,deprecate}
{single,multiple} {primary,} '>' ...
mnt-by: DN42-MNT
source: DN42
remarks: # option descriptions
Attribute names must match /[a-zA-Z]([a-zA-Z0-9_\-]*[a-zA-Z0-9])?/.
+
schema
: the first field name is the schema
+
required
: object required to have at least one
optional
: object not required to have at least one
+
single
: only one of this type allowed
multiple
: more than one of this type allowed
+
primary
: use alternate field for schema lookup
* only one allowed per schema
* does not allow newlines
+
lookup
: schema match to use for related record
+
\> option specs
: defines the option specifications for the key.
* must come last in option list
+
[label] string value. A positional string argument required.
Text inside brackets represent a label for the string and must match the same rules as attribute names.
+
{enum1|enum2|} enumeration. One option in pipe('|') deliniation is allowed.
If there is a trailing pipe it means the enum is optional. Enum values must match the same rules as attribute names.
+
'literal' Literal value. literal text value which must not contain any whitespace or single quotes.
schema: TINC-KEY-SCHEMA
key: tinc-key required single primary
key: tinc-host required single
key: tinc-file required single
key: descr optional single
key: remarks optional multiple
key: compression optional single
key: subnet optional multiple
key: tinc-address optional single
key: port optional single
key: admin-c optional multiple > [lookup:person,role]
key: tech-c optional multiple > [lookup:person,role]
key: mnt-by required multiple > [lookup:mntner]
key: source required single > [lookup:registry]
mnt-by: DN42-MNT
source: DN42