This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 36
/
x-ios-interface511.xsd
347 lines (344 loc) · 27.7 KB
/
x-ios-interface511.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
<?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-interface511="http://oval.mitre.org/XMLSchema/x-ios-interface511" xmlns:sch="http://purl.oclc.org/dsdl/schematron" targetNamespace="http://oval.mitre.org/XMLSchema/x-ios-interface511" 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:interface511_test and ios-sc:interface511_item that will support checking the output lines of configuration sections 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 Section Test</schema>
<version>5.11</version>
<date>7/19/2012 4:03: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-interface511" uri="http://oval.mitre.org/XMLSchema/x-ios-interface511"/>
<sch:ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
</xsd:appinfo>
</xsd:annotation>
<!-- =============================================================================== -->
<!-- =========================== INTERFACE TEST (511) ============================ -->
<!-- =============================================================================== -->
<xsd:element name="interface511_test" substitutionGroup="oval-def:test">
<xsd:annotation>
<xsd:documentation/>
<xsd:appinfo>
<oval:element_mapping>
<oval:test>interface511_test</oval:test>
<oval:object>interface511_object</oval:object>
<oval:state>interface511_state</oval:state>
<oval:item target_namespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#ios">interface511_item</oval:item>
</oval:element_mapping>
</xsd:appinfo>
<xsd:appinfo>
<sch:pattern id="ios-def_interfacetst">
<sch:rule context="ios-def:interface511_test/ios-def:object">
<sch:assert test="@object_ref=ancestor::oval-def:oval_definitions/oval-def:objects/ios-def:interface511_object/@id"><sch:value-of select="../@id"/> - the object child element of an interface511_test must reference an interface511_object</sch:assert>
</sch:rule>
<sch:rule context="ios-def:interface511_test/ios-def:state">
<sch:assert test="@state_ref=ancestor::oval-def:oval_definitions/oval-def:states/ios-def:interface511_state/@id"><sch:value-of select="../@id"/> - the state child element of an interface511_test must reference an interface511_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="interface511_object" substitutionGroup="oval-def:object">
<xsd:annotation>
<xsd:documentation/>
</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="name" type="oval-def:EntityObjectStringType">
<xsd:annotation>
<xsd:documentation>The interface name.</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="interface511_state" substitutionGroup="oval-def:state">
<xsd:annotation>
<xsd:documentation/>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-def:StateType">
<xsd:sequence>
<xsd:element name="name" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The interface name.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ip_directed_broadcast" type="oval-def:EntityStateBoolType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Directed broadcast command enabled on the interface. The default is false.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="proxy_arp" type="oval-def:EntityStateBoolType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Proxy arp enabled on the interface. The default is true.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="shutdown" type="oval-def:EntityStateBoolType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Interface is shut down.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="hardware_addr" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The interface hardware (MAC) address.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ipv4_address" type="oval-def:EntityStateIPAddressStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The interface IPv4 address and mask. This element should only allow 'ipv4_address' of the oval:SimpleDatatypeEnumeration.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ipv6_address" type="oval-def:EntityStateIPAddressStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The interface IPv6 address and mask. This element should only allow 'ipv6_address' of the oval:SimpleDatatypeEnumeration.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ipv4_access_list" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The ingress or egress IPv4 ACL name applied on the interface.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ipv6_access_list" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The ingress or egress IPv6 ACL name applied on the interface.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="crypto_map" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The crypto map name applied to the interface.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="urpf_command" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The uRPF command under the interface.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_trunk_encapsulation" type="x-ios-interface511:EntityStateTrunkEncapType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The switchport trunk encapsulation option configured on the interface (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_mode" type="x-ios-interface511:EntityStateSwitchportModeType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The switchport mode option configured on the interface (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_native_vlan" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The trunk native vlan configured on the interface (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_access_vlan" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The access vlan configured on the interface (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_trunked_vlans" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The vlans that are trunked configured on the interface (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_pruned_vlans" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The vlans that are pruned from the trunk (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_port_security" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>The switchport port-security commands configured on the interface (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<!-- =============================================================================== -->
<!-- ============================= IOS STATE TYPES ================================ -->
<!-- =============================================================================== -->
<xsd:complexType name="EntityStateTrunkEncapType">
<xsd:annotation>
<xsd:documentation>The EntityStateTrunkEncapType complex type restricts a string value to a specific set of values: DOT1Q, ISL, NEGOTIATE. These values describe the interface trunk encapsulation types on an interfaces in IOS.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="oval-def:EntityStateStringType">
<xsd:enumeration value="DOT1Q" />
<xsd:enumeration value="ISL" />
<xsd:enumeration value="NEGOTIATE" />
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="EntityStateSwitchportModeType">
<xsd:annotation>
<xsd:documentation>The EntityObjectRoutingProtocolType complex type restricts a string value to a specific set of values: DYNAMIC, TRUNK, ACCESS. These values describe the interface switchport mode types in IOS.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="oval-def:EntityStateStringType">
<xsd:enumeration value="DYNAMIC" />
<xsd:enumeration value="TRUNK" />
<xsd:enumeration value="ACCESS" />
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
<!-- =============================================================================== -->
<!-- =========================== INTERFACE ITEM (511) ============================ -->
<!-- =============================================================================== -->
<xsd:element name="interface511_item" substitutionGroup="oval-sc:item">
<xsd:annotation>
<xsd:documentation/>
</xsd:annotation>
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="oval-sc:ItemType">
<xsd:sequence>
<xsd:element name="name" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the interface name.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ip_directed_broadcast" type="oval-sc:EntityItemBoolType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element that is true if the directed broadcast command is enabled on the interface. The default is false.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="proxy_arp" type="oval-sc:EntityItemBoolType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element that is true if the proxy_arp command is enabled on the interface. The default is true.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="shutdown" type="oval-sc:EntityItemBoolType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element that is true if the interface is shut down. The default is false.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="hardware_addr" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the interface hardware (MAC) address.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ipv4_address" type="oval-sc:EntityItemIPAddressStringType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Element with the interface IPv4 address and mask. This element should only allow 'ipv4_address' of the oval:SimpleDatatypeEnumeration.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ipv6_address" type="oval-sc:EntityItemIPAddressStringType" minOccurs="0" maxOccurs="unbounded">
<xsd:annotation>
<xsd:documentation>Element with the interface IPv6 address and mask. This element should only allow 'ipv6_address' of the oval:SimpleDatatypeEnumeration.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ipv4_access_list" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="2">
<xsd:annotation>
<xsd:documentation>Element with the ingress or egress IPv4 ACL name applied on the interface.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="ipv6_access_list" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="2">
<xsd:annotation>
<xsd:documentation>Element with the ingress or egress IPv6 ACL name applied on the interface.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="crypto_map" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the crypto map name applied to the interface.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="urpf_command" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the uRPF command under the interface.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_trunk_encapsulation" type="x-ios-interface511:EntityItemTrunkEncapType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the switchport trunk encapsulation option configured on the interface (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_mode" type="x-ios-interface511:EntityItemSwitchportModeType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the switchport mode option configured on the interface (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_native_vlan" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the trunk native vlan configured on the interface (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_access_vlan" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the access vlan configured on the interface (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_trunked_vlans" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the vlans that are trunked configured on the interface (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_pruned_vlans" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the vlans that are pruned from the trunk (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="switchport_port_security" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>Element with the switchport port-security commands configured on the interface (if applicable).</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
<!-- =============================================================================== -->
<!-- ============================= IOS ITEM TYPES ================================= -->
<!-- =============================================================================== -->
<xsd:complexType name="EntityItemTrunkEncapType">
<xsd:annotation>
<xsd:documentation>The EntityItemTrunkEncapType complex type restricts a string value to a specific set of values: DOT1Q, ISL, NEGOTIATE. These values describe the interface trunk encapsulation types on an interfaces in IOS.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="oval-sc:EntityItemStringType">
<xsd:enumeration value="DOT1Q" />
<xsd:enumeration value="ISL" />
<xsd:enumeration value="NEGOTIATE" />
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
<xsd:complexType name="EntityItemSwitchportModeType">
<xsd:annotation>
<xsd:documentation>The EntityItemRoutingProtocolType complex type restricts a string value to a specific set of values: DYNAMIC, TRUNK, ACCESS. These values describe the interface switchport mode types in IOS.</xsd:documentation>
</xsd:annotation>
<xsd:simpleContent>
<xsd:restriction base="oval-sc:EntityItemStringType">
<xsd:enumeration value="DYNAMIC" />
<xsd:enumeration value="TRUNK" />
<xsd:enumeration value="ACCESS" />
</xsd:restriction>
</xsd:simpleContent>
</xsd:complexType>
</xsd:schema>