forked from OVALProject/Sandbox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
x-ios-routing.xsd
592 lines (585 loc) · 47 KB
/
x-ios-routing.xsd
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
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:oval="http://oval.mitre.org/XMLSchema/oval-common-5" xmlns:oval-def="http://oval.mitre.org/XMLSchema/oval-definitions-5" xmlns:oval-sc="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5" xmlns:ios-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#ios" xmlns:ios-sc="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#ios" xmlns:x-ios-routing="http://oval.mitre.org/XMLSchema/x-ios-routing" xmlns:sch="http://purl.oclc.org/dsdl/schematron" targetNamespace="http://oval.mitre.org/XMLSchema/x-ios-routing" elementFormDefault="qualified" version="5.11">
<xsd:import namespace="http://oval.mitre.org/XMLSchema/oval-definitions-5" schemaLocation="oval-definitions-schema.xsd"/>
<xsd:import namespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5" schemaLocation="oval-system-characteristics-schema.xsd"/>
<xsd:annotation>
<xsd:documentation>The following is a proposal for the experimental ios-def:router_test, ios-def:routing_protocol_test, ios-def:bgp_neighbor_test, ios-def:routing_protocol_auth_intf_test, ios-sc:router_item, ios-sc:bgp_neighbor_item and ios-sc:routing_protocol_item that will support checking the output lines of routing protocol configurations on Cisco IOS devices.</xsd:documentation>
<xsd:documentation>Thanks to Omar Santos and Panos Kampanakis of Cisco for providing this test.</xsd:documentation>
<xsd:appinfo>
<schema>Experimental Schema for the Cisco IOS Routing Tests</schema>
<version>5.11</version>
<date>7/25/2012 12:30:00 PM</date>
<terms_of_use>Copyright (c) 2002-2012, The MITRE Corporation. All rights reserved. The contents of this file are subject to the terms of the OVAL License located at http://oval.mitre.org/oval/about/termsofuse.html. See the OVAL License for the specific language governing permissions and limitations for use of this schema. When distributing copies of the OVAL Schema, this license header must be included.</terms_of_use>
<sch:ns prefix="oval-def" uri="http://oval.mitre.org/XMLSchema/oval-definitions-5"/>
<sch:ns prefix="oval-sc" uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5"/>
<sch:ns prefix="ios-def" uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#ios"/>
<sch:ns prefix="ios-sc" uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#ios"/>
<sch:ns prefix="x-ios-routing" uri="http://oval.mitre.org/XMLSchema/x-ios-routing"/>
<sch:ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
</xsd:appinfo>
</xsd:annotation>
<!-- =============================================================================== -->
<!-- ========================= ROUTER TEST/OBJECT/STATE =========================== -->
<!-- =============================================================================== -->
<xsd:element name="router_test" substitutionGroup="oval-def:test">
<xsd:annotation>
<xsd:documentation>The router test is used to check the properties of specific output lines from a router configurated instance in IOS.</xsd:documentation>
<xsd:appinfo>
<oval:element_mapping>
<oval:test>router_test</oval:test>
<oval:object>router_object</oval:object>
<oval:state>router_state</oval:state>
<oval:item target_namespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#x-ios-routing">router_item</oval:item>
</oval:element_mapping>
</xsd:appinfo>
<xsd:appinfo>
<sch:pattern id="x-ios-routing_routertst">
<sch:rule context="x-ios-routing:router_test/x-ios-routing:object">
<sch:assert test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/x-ios-routing:router_object/@id"><sch:value-of select="../@id"/> - the object child element of a router_test must reference a router_object</sch:assert>
</sch:rule>
<sch:rule context="x-ios-routing:router_test/x-ios-routing:state">
<sch:assert test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/x-ios-routing:router_state/@id"><sch:value-of select="../@id"/> - the state child element of a router_test must reference a router_state</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:TestType">
<xsd:sequence>
<xsd:element name="object" type="oval-def:ObjectRefType"/>
<xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="router_object" substitutionGroup="oval-def:object">
<xsd:annotation>
<xsd:documentation>The router_object element is used by a router test to define the object to be evaluated. Each object extends the standard ObjectType as defined in the oval-definitions-schema and one should refer to the ObjectType description for more information. The common set element allows complex objects to be created using filters and set logic. Again, please refer to the description of the set element in the oval-definitions-schema.</xsd:documentation>
<xsd:documentation>A router object consists of a router protocol and router identifier entity.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="x-ios-routing_router_object_verify_filter_state">
<sch:rule context="x-ios-routing:router_object//oval-def:filter">
<sch:let name="parent_object" value="ancestor::x-ios-routing:router_object"/>
<sch:let name="parent_object_id" value="$parent_object/@id"/>
<sch:let name="state_ref" value="."/>
<sch:let name="reffed_state" value="ancestor::oval-def:oval_definitions/oval-def:states/*[@id=$state_ref]"/>
<sch:let name="state_name" value="local-name($reffed_state)"/>
<sch:let name="state_namespace" value="namespace-uri($reffed_state)"/>
<sch:assert test="(($state_namespace='http://oval.mitre.org/XMLSchema/oval-definitions-5#x-ios-routing') and ($state_name='router_state'))">State referenced in filter for <sch:value-of select="name($parent_object)"/> '<sch:value-of select="$parent_object_id"/>' is of the wrong type.</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:ObjectType">
<xsd:sequence>
<xsd:choice>
<xsd:element ref="oval-def:set"/>
<xsd:sequence>
<xsd:element name="protocol" type="x-ios-routing:EntityObjectRoutingProtocolType">
<xsd:annotation>
<xsd:documentation>The routing protocol of the router instance.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="id" type="oval-def:EntityObjectIntType">
<xsd:annotation>
<xsd:documentation>The IOS router id.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element ref="oval-def:filter" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:choice>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="router_state" substitutionGroup="oval-def:state">
<xsd:annotation>
<xsd:documentation>The router_state element defines the different information that can be used to evaluate the result of a specific router command. This includes the protocol of the router instance, the id, the networks, bgp neighbor, ospf authentication area commands and the corresponding config lines. Please refer to the individual elements in the schema for more details about what each represents.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:StateType">
<xsd:sequence>
<xsd:element name="protocol" type="x-ios-routing:EntityStateRoutingProtocolType">
<xsd:annotation>
<xsd:documentation>The routing protocol of the router instance. If there are more than one router configurations, for example ospf instances, different objects should be created for each.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="id" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The IOS router id</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="network" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The subnet in the network command of the router instance. The area can be included in the string for OSPF.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="bgp_neighbor" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The BGP neighbors, if applicable.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ospf_authentication_area" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The OSPF area that is authenticated, if applicable.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="router_config_lines" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The value returned with all config lines of the router instance.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<!-- =============================================================================== -->
<!-- ===================== END OF ROUTER TEST/OBJECT/STATE ======================== -->
<!-- =============================================================================== -->
<!-- =============================================================================== -->
<!-- ===================== BGP NEIGHBOR TEST/OBJECT/STATE ========================= -->
<!-- =============================================================================== -->
<xsd:element name="bgp_neighbor_test" substitutionGroup="oval-def:test">
<xsd:annotation>
<xsd:documentation>The bgp_neighbor test is used to check the bgp neighbpr properties of bgp instances instances in IOS.</xsd:documentation>
<xsd:appinfo>
<oval:element_mapping>
<oval:test>bgp_neighbor_test</oval:test>
<oval:object>bgp_neighbor_object</oval:object>
<oval:state>bgp_neighbor_state</oval:state>
<oval:item target_namespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#x-ios-routing">bgp_neighbor_item</oval:item>
</oval:element_mapping>
</xsd:appinfo>
<xsd:appinfo>
<sch:pattern id="x-ios-routing_bgp_neighbortst">
<sch:rule context="x-ios-routing:bgp_neighbor_test/x-ios-routing:object">
<sch:assert test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/x-ios-routing:bgp_neighbor_object/@id"><sch:value-of select="../@id"/> - the object child element of a bgp_neighbor_test must reference a bgp_neighbor_object</sch:assert>
</sch:rule>
<sch:rule context="x-ios-routing:bgp_neighbor_test/x-ios-routing:state">
<sch:assert test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/x-ios-routing:bgp_neighbor_state/@id"><sch:value-of select="../@id"/> - the state child element of a bgp_neighbor_test must reference a bgp_neighbor_state</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:TestType">
<xsd:sequence>
<xsd:element name="object" type="oval-def:ObjectRefType"/>
<xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="bgp_neighbor_object" substitutionGroup="oval-def:object">
<xsd:annotation>
<xsd:documentation>The bgp_neighbor_object element is used by a bgp_neighbor test to define the object to be evaluated. Each object extends the standard ObjectType as defined in the oval-definitions-schema and one should refer to the ObjectType description for more information. The common set element allows complex objects to be created using filters and set logic. Again, please refer to the description of the set element in the oval-definitions-schema.</xsd:documentation>
<xsd:documentation>A bgp_neighbor object consists of a neighbor entity.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="x-ios-routing_bgp_neighbor_object_verify_filter_state">
<sch:rule context="x-ios-routing:bgp_neighbor_object//oval-def:filter">
<sch:let name="parent_object" value="ancestor::x-ios-routing:bgp_neighbor_object"/>
<sch:let name="parent_object_id" value="$parent_object/@id"/>
<sch:let name="state_ref" value="."/>
<sch:let name="reffed_state" value="ancestor::oval-def:oval_definitions/oval-def:states/*[@id=$state_ref]"/>
<sch:let name="state_name" value="local-name($reffed_state)"/>
<sch:let name="state_namespace" value="namespace-uri($reffed_state)"/>
<sch:assert test="(($state_namespace='http://oval.mitre.org/XMLSchema/oval-definitions-5#x-ios-routing') and ($state_name='bgp_neighbor_state'))">State referenced in filter for <sch:value-of select="name($parent_object)"/> '<sch:value-of select="$parent_object_id"/>' is of the wrong type.</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:ObjectType">
<xsd:sequence>
<xsd:choice>
<xsd:element ref="oval-def:set"/>
<xsd:sequence>
<xsd:element name="neighbor" type="oval-def:EntityObjectStringType">
<xsd:annotation>
<xsd:documentation>The bgp neighbor.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element ref="oval-def:filter" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:choice>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="bgp_neighbor_state" substitutionGroup="oval-def:state">
<xsd:annotation>
<xsd:documentation>The bgp_neighbor_state element defines the different information that can be used to evaluate the result of a bgp neighbor configuration. This includes the neighbor and the password option, if configured. Please refer to the individual elements in the schema for more details about what each represents.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:StateType">
<xsd:sequence>
<xsd:element name="neighbor" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The bgp neighbor.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="password" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The bgp authentication password, if configured. If Encryption type is configured it should be included in the password string. For example '0 cisco123'. </xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<!-- =============================================================================== -->
<!-- ==================== END OF BGP NEIGHBOR TEST/OBJECT/STATE =================== -->
<!-- =============================================================================== -->
<!-- =============================================================================== -->
<!-- ========= ROUTING PROTOCOL AUTHENTICATION INTERFACE TEST/OBJECT/STATE ======== -->
<!-- =============================================================================== -->
<xsd:element name="routing_protocol_auth_intf_test" substitutionGroup="oval-def:test">
<xsd:annotation>
<xsd:documentation>The routing protocol authentication interface test is used to check the properties of routing protocol authentication configured under interfaces in IOS.</xsd:documentation>
<xsd:appinfo>
<oval:element_mapping>
<oval:test>routing_protocol_auth_intf_test</oval:test>
<oval:object>routing_protocol_auth_intf_object</oval:object>
<oval:state>routing_protocol_auth_intf_state</oval:state>
<oval:item target_namespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#x-ios-routing">routing_protocol_auth_intf_item</oval:item>
</oval:element_mapping>
</xsd:appinfo>
<xsd:appinfo>
<sch:pattern id="x-ios-routing_routing_protocol_auth_intftst">
<sch:rule context="x-ios-routing:routing_protocol_auth_intf_test/x-ios-routing:object">
<sch:assert test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/x-ios-routing:routing_protocol_auth_intf_object/@id"><sch:value-of select="../@id"/> - the object child element of a routing_protocol_auth_intf_test must reference a routing_protocol_auth_intf_object</sch:assert>
</sch:rule>
<sch:rule context="x-ios-routing:routing_protocol_auth_intf_test/x-ios-routing:state">
<sch:assert test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/x-ios-routing:routing_protocol_auth_intf_state/@id"><sch:value-of select="../@id"/> - the state child element of a routing_protocol_auth_intf_test must reference a routing_protocol_auth_intf_state</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:TestType">
<xsd:sequence>
<xsd:element name="object" type="oval-def:ObjectRefType"/>
<xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="routing_protocol_auth_intf_object" substitutionGroup="oval-def:object">
<xsd:annotation>
<xsd:documentation>The routing_protocol_auth_intf_object element is used by a routing_protocol_auth_intf test to define the object to be evaluated. Each object extends the standard ObjectType as defined in the oval-definitions-schema and one should refer to the ObjectType description for more information. The common set element allows complex objects to be created using filters and set logic. Again, please refer to the description of the set element in the oval-definitions-schema.</xsd:documentation>
<xsd:documentation>A routing_protocol_auth_intf object consists of an interface and the routing protocol that is authenticated entity.</xsd:documentation>
<xsd:appinfo>
<sch:pattern id="x-ios-routing_routing_protocol_auth_intf_object_verify_filter_state">
<sch:rule context="x-ios-routing:routing_protocol_auth_intf_object//oval-def:filter">
<sch:let name="parent_object" value="ancestor::x-ios-routing:routing_protocol_auth_intf_object"/>
<sch:let name="parent_object_id" value="$parent_object/@id"/>
<sch:let name="state_ref" value="."/>
<sch:let name="reffed_state" value="ancestor::oval-def:oval_definitions/oval-def:states/*[@id=$state_ref]"/>
<sch:let name="state_name" value="local-name($reffed_state)"/>
<sch:let name="state_namespace" value="namespace-uri($reffed_state)"/>
<sch:assert test="(($state_namespace='http://oval.mitre.org/XMLSchema/oval-definitions-5#x-ios-routing') and ($state_name='routing_protocol_auth_intf_state'))">State referenced in filter for <sch:value-of select="name($parent_object)"/> '<sch:value-of select="$parent_object_id"/>' is of the wrong type.</sch:assert>
</sch:rule>
</sch:pattern>
</xsd:appinfo>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:ObjectType">
<xsd:sequence>
<xsd:choice>
<xsd:element ref="oval-def:set"/>
<xsd:sequence>
<xsd:element name="interface" type="oval-def:EntityObjectStringType">
<xsd:annotation>
<xsd:documentation>The interface name.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="protocol" type="x-ios-routing:EntityObjectRoutingProtocolType">
<xsd:annotation>
<xsd:documentation>The routing protocol.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element ref="oval-def:filter" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:choice>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<xsd:element name="routing_protocol_auth_intf_state" substitutionGroup="oval-def:state">
<xsd:annotation>
<xsd:documentation>The routing_protocol_auth_intf_state element defines the different information that can be used to evaluate the result of a specific routing protocol interface authentication configurations. This includes the interface, the protocol, the id, the authentication type, the ospf area, the key chain command and the corresponding config lines. Please refer to the individual elements in the schema for more details about what each represents.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:StateType">
<xsd:sequence>
<xsd:element name="interface" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The interface name.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="protocol" type="x-ios-routing:EntityStateRoutingProtocolType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The routing protocol.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="id" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The routing protocol id, if applicable.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="auth_type" type="x-ios-routing:EntityStateRoutingAuthTypeStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The routing protocol authentication type.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ospf_area" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The OSPF area that is authenticated, if applicable.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="key_chain" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The name of the key chain, if applicable.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<!-- =============================================================================== -->
<!-- ===== END OF ROUTING PROTOCOL AUTHENTICATION INTERFACE TEST/OBJECT/STATE ===== -->
<!-- =============================================================================== -->
<!-- =============================================================================== -->
<!-- =========================== ROUTING OBJECT TYPES ============================= -->
<!-- =============================================================================== -->
<xsd:complexType name="EntityObjectRoutingProtocolType">
<xsd:annotation>
<xsd:documentation>The EntityObjectRoutingProtocolType complex type restricts a string value to a specific set of values: EIGRP, OSPF, BGP, RIP, RIPV2, ISIS. These values describe the routing protocol used in a Cisco IOS configuration.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="oval-def:EntityObjectStringType">
<xsd:enumeration value="EIGRP"/>
<xsd:enumeration value="OSPF"/>
<xsd:enumeration value="BGP"/>
<xsd:enumeration value="RIP"/>
<xsd:enumeration value="RIPV2"/>
<xsd:enumeration value="ISIS"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
<!-- =============================================================================== -->
<!-- ========================= END OF ROUTING OBJECT TYPES ======================= -->
<!-- =============================================================================== -->
<!-- =============================================================================== -->
<!-- =========================== ROUTING STATE TYPES ============================= -->
<!-- =============================================================================== -->
<xsd:complexType name="EntityStateRoutingProtocolType">
<xsd:annotation>
<xsd:documentation>The EntityStateRoutingProtocolType complex type restricts a string value to a specific set of values: EIGRP, OSPF, BGP, RIP, RIPV2, ISIS. These values describe the routing protocol used in a Cisco IOS configuration.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="oval-def:EntityStateStringType">
<xsd:enumeration value="EIGRP"/>
<xsd:enumeration value="OSPF"/>
<xsd:enumeration value="BGP"/>
<xsd:enumeration value="RIP"/>
<xsd:enumeration value="RIPV2"/>
<xsd:enumeration value="ISIS"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="EntityStateRoutingAuthTypeStringType">
<xsd:annotation>
<xsd:documentation>The EntityStateRoutingAuthTypeStringType complex type restricts a string value to a specific set of values: CLEARTEXT, MESSAGE_DIGEST, NULL. These values describe the routing protocol authentication types used in a Cisco IOS configuration.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="oval-def:EntityStateStringType">
<xsd:enumeration value="CLEARTEXT"/>
<xsd:enumeration value="MESSAGE_DIGEST"/>
<xsd:enumeration value="NULL"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
<!-- =============================================================================== -->
<!-- ========================== END OF ROUTING STATE TYPES ======================= -->
<!-- =============================================================================== -->
<!-- =============================================================================== -->
<!-- ================================= ROUTER ITEM ================================= -->
<!-- =============================================================================== -->
<xsd:element name="router_item" substitutionGroup="oval-sc:item">
<xsd:annotation>
<xsd:documentation>Stores commands that are part of a IOS 'router' command configuration. For example 'router bgp 123'.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-sc:ItemType">
<xsd:sequence>
<xsd:element name="protocol" type="x-ios-routing:EntityItemRoutingProtocolType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the routing protocol.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="id" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the IOS router id.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="network" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Element with the subnet in the network command of the router instance. The area can be included in the string for OSPF.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="bgp_neighbor" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Element with the BGP neighbors, if applicable.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ospf_authentication_area" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Element with the OSPF area that is authenticated, if applicable.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="router_config_lines" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with all config lines of the router.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<!-- =============================================================================== -->
<!-- ========================== END OF ROUTER ITEM ================================ -->
<!-- =============================================================================== -->
<!-- =============================================================================== -->
<!-- ============================== BGP NEIGHBOR ITEM ============================== -->
<!-- =============================================================================== -->
<xsd:element name="bgp_neighbor_item" substitutionGroup="oval-sc:item">
<xsd:annotation>
<xsd:documentation>Stores information about bgp neighbors configured in bgp instances.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-sc:ItemType">
<xsd:sequence>
<xsd:element name="neighbor" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the bgp neighbor.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="password" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the bgp authentication password, if configured. If Encryption type is configured it should be included in the password string. For example '0 cisco123'. </xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<!-- =============================================================================== -->
<!-- ======================= END OF BGP NEIGHBOR ITEM ============================= -->
<!-- =============================================================================== -->
<!-- =============================================================================== -->
<!-- ================ ROUTING PROTOCOL AUTHENTICATION INTERFACE ITEM =============== -->
<!-- =============================================================================== -->
<xsd:element name="routing_protocol_auth_intf_item" substitutionGroup="oval-sc:item">
<xsd:annotation>
<xsd:documentation>Stores information for routing protocol authentication configured under specific interfaces.</xsd:documentation>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-sc:ItemType">
<xsd:sequence>
<xsd:element name="interface" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the interface.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="protocol" type="x-ios-routing:EntityItemRoutingProtocolType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Element with the routing protocol.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="id" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the routing protocol id.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="auth_type" type="x-ios-routing:EntityItemRoutingAuthTypeStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the routing protocol authentication type.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ospf_area" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the OSPF area that is authenticated, if applicable.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="key_chain" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the name of the key chain, if applicable.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<!-- =============================================================================== -->
<!-- ============ END OF ROUTING PROTOCOL AUTHENTICATION INTERFACE ITEM =========== -->
<!-- =============================================================================== -->
<!-- =============================================================================== -->
<!-- ============================ ROUTING ITEM TYPES ============================= -->
<!-- =============================================================================== -->
<xsd:complexType name="EntityItemRoutingProtocolType">
<xsd:annotation>
<xsd:documentation>The EntityItemRoutingProtocolType complex type restricts a string value to a specific set of values: EIGRP, OSPF, BGP, RIP, RIPV2, ISIS. These values describe the routing protocol used in a Cisco IOS configuration.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="oval-sc:EntityItemStringType">
<xsd:enumeration value="EIGRP"/>
<xsd:enumeration value="OSPF"/>
<xsd:enumeration value="BGP"/>
<xsd:enumeration value="RIP"/>
<xsd:enumeration value="RIPV2"/>
<xsd:enumeration value="ISIS"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="EntityItemRoutingAuthTypeStringType">
<xsd:annotation>
<xsd:documentation>The EntityItemRoutingAuthTypeStringType complex type restricts a string value to a specific set of values: CLEARTEXT, MESSAGE_DIGEST, NULL. These values describe the routing protocol authentication types used in a Cisco IOS configuration.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="oval-sc:EntityItemStringType">
<xsd:enumeration value="CLEARTEXT"/>
<xsd:enumeration value="MESSAGE_DIGEST"/>
<xsd:enumeration value="NULL"/>
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
<!-- =============================================================================== -->
<!-- ======================== END OF ROUTING ITEM TYPES ========================== -->
<!-- =============================================================================== -->
</xsd:schema>