Skip to content
This repository
Browse code

Merge branch 'master' of https://github.com/OVALProject/Sandbox

  • Loading branch information...
commit 6714e66c367d4b55673f2e16b6434dc61a347c94 2 parents e6f63ca + 2824db3
Danny Haynes djhaynes authored
468 junos-definitions-schema.xsd
... ... @@ -1,185 +1,289 @@
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <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:junos-def="http://oval.mitre.org/XMLSchema/oval-definitions-5#junos" xmlns:sch="http://purl.oclc.org/dsdl/schematron" targetNamespace="http://oval.mitre.org/XMLSchema/oval-definitions-5#junos" elementFormDefault="qualified" version="5.11">
3   - <xsd:import namespace="http://oval.mitre.org/XMLSchema/oval-common-5" schemaLocation="oval-common-schema.xsd"/>
4   - <xsd:import namespace="http://oval.mitre.org/XMLSchema/oval-definitions-5" schemaLocation="oval-definitions-schema.xsd"/>
5   - <xsd:annotation>
6   - <xsd:documentation>The following is a description of the elements, types, and attributes that compose the Junos-specific tests found in Open Vulnerability and Assessment Language (OVAL). Each test is an extension of the standard test element defined in the Core Definition Schema. Through extension, each test inherits a set of elements and attributes that are shared amongst all OVAL tests. Each test is described in detail and should provide the information necessary to understand what each element and attribute represents. This document is intended for developers and assumes some familiarity with XML. A high level description of the interaction between the different tests and their relationship to the Core Definition Schema is not outlined here.</xsd:documentation>
7   - <xsd:documentation>The OVAL Schema is maintained by The MITRE Corporation and developed by the public OVAL Community. For more information, including how to get involved in the project and how to submit change requests, please visit the OVAL website at http://oval.mitre.org.</xsd:documentation>
8   - <xsd:appinfo>
9   - <schema>Junos Definition</schema>
10   - <version>5.11</version>
11   - <date>1/27/2012 1:22:32 PM</date>
12   - <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>
13   - <sch:ns prefix="oval-def" uri="http://oval.mitre.org/XMLSchema/oval-definitions-5"/>
14   - <sch:ns prefix="junos-def" uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#junos"/>
15   - <sch:ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
16   - </xsd:appinfo>
17   - </xsd:annotation>
18   - <xsd:element name="global_test" substitutionGroup="oval-def:test">
19   - <xsd:complexType>
20   - <xsd:complexContent>
21   - <xsd:extension base="oval-def:TestType">
22   - <xsd:sequence>
23   - <xsd:element name="object" type="oval-def:ObjectRefType"/>
24   - <xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="unbounded"/>
25   - </xsd:sequence>
26   - </xsd:extension>
27   - </xsd:complexContent>
28   - </xsd:complexType>
29   - </xsd:element>
30   - <xsd:element name="global_object" substitutionGroup="oval-def:object">
31   - <xsd:complexType>
32   - <xsd:complexContent>
33   - <xsd:extension base="oval-def:ObjectType">
34   - <xsd:sequence>
35   - <xsd:choice>
36   - <xsd:element ref="oval-def:set"/>
37   - <xsd:sequence>
38   - <xsd:element name="global_command" type="oval-def:EntityObjectStringType"/>
39   - <xsd:element ref="oval-def:filter" minOccurs="0" maxOccurs="unbounded"/>
40   - </xsd:sequence>
41   - </xsd:choice>
42   - </xsd:sequence>
43   - </xsd:extension>
44   - </xsd:complexContent>
45   - </xsd:complexType>
46   - </xsd:element>
47   - <xsd:element name="global_state" substitutionGroup="oval-def:state">
48   - <xsd:complexType>
49   - <xsd:complexContent>
50   - <xsd:extension base="oval-def:StateType">
51   - <xsd:sequence>
52   - <xsd:element name="global_command" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1"/>
53   - </xsd:sequence>
54   - </xsd:extension>
55   - </xsd:complexContent>
56   - </xsd:complexType>
57   - </xsd:element>
58   - <xsd:element name="line_test" substitutionGroup="oval-def:test">
59   - <xsd:complexType>
60   - <xsd:complexContent>
61   - <xsd:extension base="oval-def:TestType">
62   - <xsd:sequence>
63   - <xsd:element name="object" type="oval-def:ObjectRefType"/>
64   - <xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="unbounded"/>
65   - </xsd:sequence>
66   - </xsd:extension>
67   - </xsd:complexContent>
68   - </xsd:complexType>
69   - </xsd:element>
70   - <xsd:element name="line_object" substitutionGroup="oval-def:object">
71   - <xsd:complexType>
72   - <xsd:complexContent>
73   - <xsd:extension base="oval-def:ObjectType">
74   - <xsd:sequence>
75   - <xsd:choice>
76   - <xsd:element ref="oval-def:set"/>
77   - <xsd:sequence>
78   - <xsd:element name="show_subcommand" type="oval-def:EntityObjectStringType"/>
79   - <xsd:element ref="oval-def:filter" minOccurs="0" maxOccurs="unbounded"/>
80   - </xsd:sequence>
81   - </xsd:choice>
82   - </xsd:sequence>
83   - </xsd:extension>
84   - </xsd:complexContent>
85   - </xsd:complexType>
86   - </xsd:element>
87   - <xsd:element name="line_state" substitutionGroup="oval-def:state">
88   - <xsd:complexType>
89   - <xsd:complexContent>
90   - <xsd:extension base="oval-def:StateType">
91   - <xsd:sequence>
92   - <xsd:element name="show_subcommand" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1"/>
93   - <xsd:element name="config_line" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1"/>
94   - </xsd:sequence>
95   - </xsd:extension>
96   - </xsd:complexContent>
97   - </xsd:complexType>
98   - </xsd:element>
99   - <xsd:element name="version_test" substitutionGroup="oval-def:test">
100   - <xsd:complexType>
101   - <xsd:complexContent>
102   - <xsd:extension base="oval-def:TestType">
103   - <xsd:sequence>
104   - <xsd:element name="object" type="oval-def:ObjectRefType"/>
105   - <xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="unbounded"/>
106   - </xsd:sequence>
107   - </xsd:extension>
108   - </xsd:complexContent>
109   - </xsd:complexType>
110   - </xsd:element>
111   - <xsd:element name="version_object" substitutionGroup="oval-def:object">
112   - <xsd:complexType>
113   - <xsd:complexContent>
114   - <xsd:extension base="oval-def:ObjectType">
115   - <xsd:sequence>
116   - <xsd:choice>
117   - <xsd:element ref="oval-def:set"/>
118   - <xsd:sequence>
119   - <xsd:element name="component" type="oval-def:EntityObjectStringType"/>
120   - <xsd:element ref="oval-def:filter" minOccurs="0" maxOccurs="unbounded"/>
121   - </xsd:sequence>
122   - </xsd:choice>
123   - </xsd:sequence>
124   - </xsd:extension>
125   - </xsd:complexContent>
126   - </xsd:complexType>
127   - </xsd:element>
128   - <xsd:element name="version_state" substitutionGroup="oval-def:state">
129   - <xsd:complexType>
130   - <xsd:complexContent>
131   - <xsd:extension base="oval-def:StateType">
132   - <xsd:sequence>
133   - <xsd:element name="component" type="oval-def:EntityStateStringType" minOccurs="0"/>
134   - <xsd:element name="release" type="oval-def:EntityStateVersionType" minOccurs="0" maxOccurs="1"/>
135   - <xsd:element name="builder" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1"/>
136   - <xsd:element name="build_date" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1"/>
137   - </xsd:sequence>
138   - </xsd:extension>
139   - </xsd:complexContent>
140   - </xsd:complexType>
141   - </xsd:element>
142   - <xsd:element name="xml_line_test" substitutionGroup="oval-def:test">
143   - <xsd:complexType>
144   - <xsd:complexContent>
145   - <xsd:extension base="oval-def:TestType">
146   - <xsd:sequence>
147   - <xsd:element name="object" type="oval-def:ObjectRefType"/>
148   - <xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="unbounded"/>
149   - </xsd:sequence>
150   - </xsd:extension>
151   - </xsd:complexContent>
152   - </xsd:complexType>
153   - </xsd:element>
154   - <xsd:element name="xml_line_object" substitutionGroup="oval-def:object">
155   - <xsd:complexType>
156   - <xsd:complexContent>
157   - <xsd:extension base="oval-def:ObjectType">
158   - <xsd:sequence>
159   - <xsd:choice>
160   - <xsd:element ref="oval-def:set"/>
161   - <xsd:sequence>
162   - <xsd:element name="show_subcommand" type="oval-def:EntityObjectStringType"/>
163   - <xsd:element name="xpath" type="oval-def:EntityObjectStringType"/>
164   - <xsd:element ref="oval-def:filter" minOccurs="0" maxOccurs="unbounded"/>
165   - </xsd:sequence>
166   - </xsd:choice>
167   - </xsd:sequence>
168   - </xsd:extension>
169   - </xsd:complexContent>
170   - </xsd:complexType>
171   - </xsd:element>
172   - <xsd:element name="xml_line_state" substitutionGroup="oval-def:state">
173   - <xsd:complexType>
174   - <xsd:complexContent>
175   - <xsd:extension base="oval-def:StateType">
176   - <xsd:sequence>
177   - <xsd:element name="show_subcommand" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1"/>
178   - <xsd:element name="xpath" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1"/>
179   - <xsd:element name="value_of" type="oval-def:EntityStateAnySimpleType" minOccurs="0" maxOccurs="1"/>
180   - </xsd:sequence>
181   - </xsd:extension>
182   - </xsd:complexContent>
183   - </xsd:complexType>
184   - </xsd:element>
  3 + <xsd:import namespace="http://oval.mitre.org/XMLSchema/oval-common-5" schemaLocation="oval-common-schema.xsd"/>
  4 + <xsd:import namespace="http://oval.mitre.org/XMLSchema/oval-definitions-5" schemaLocation="oval-definitions-schema.xsd"/>
  5 + <xsd:annotation>
  6 + <xsd:documentation>The following is a description of the elements, types, and attributes that compose the Junos-specific tests found in Open Vulnerability and Assessment Language (OVAL). Each test is an extension of the standard test element defined in the Core Definition Schema. Through extension, each test inherits a set of elements and attributes that are shared amongst all OVAL tests. Each test is described in detail and should provide the information necessary to understand what each element and attribute represents. This document is intended for developers and assumes some familiarity with XML. A high level description of the interaction between the different tests and their relationship to the Core Definition Schema is not outlined here.</xsd:documentation>
  7 + <xsd:documentation>This schema was originally developed by David Solin at jOVAL.org. The OVAL Schema is maintained by The MITRE Corporation and developed by the public OVAL Community. For more information, including how to get involved in the project and how to submit change requests, please visit the OVAL website at http://oval.mitre.org.</xsd:documentation>
  8 + <xsd:appinfo>
  9 + <schema>Junos Definition</schema>
  10 + <version>5.11</version>
  11 + <date>1/27/2012 1:22:32 PM</date>
  12 + <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>
  13 + <sch:ns prefix="oval-def" uri="http://oval.mitre.org/XMLSchema/oval-definitions-5"/>
  14 + <sch:ns prefix="junos-def" uri="http://oval.mitre.org/XMLSchema/oval-definitions-5#junos"/>
  15 + <sch:ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
  16 + </xsd:appinfo>
  17 + </xsd:annotation>
  18 + <!-- ============================================================================ -->
  19 + <!-- ================================= GLOBAL TEST ================================= -->
  20 + <!-- ============================================================================ -->
  21 + <xsd:element name="global_test" substitutionGroup="oval-def:test">
  22 + <xsd:complexType>
  23 + <xsd:annotation>
  24 + <xsd:documentation>The global test is used to check for the existence of a particular line in the JunOS config file under the global context. The JunOS config file can be retrieved using the command "show configuration | display set". It extends the standard TestType as defined in the oval-definitions-schema and one should refer to the TestType description for more information. The required object element references a global_object and the optional state element specifies the data to check.</xsd:documentation>
  25 + </xsd:annotation>
  26 + <xsd:complexContent>
  27 + <xsd:extension base="oval-def:TestType">
  28 + <xsd:sequence>
  29 + <xsd:element name="object" type="oval-def:ObjectRefType"/>
  30 + <xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="unbounded"/>
  31 + </xsd:sequence>
  32 + </xsd:extension>
  33 + </xsd:complexContent>
  34 + </xsd:complexType>
  35 + </xsd:element>
  36 + <xsd:element name="global_object" substitutionGroup="oval-def:object">
  37 + <xsd:annotation>
  38 + <xsd:documentation>The global_object element is used by a global test to define the object to be evaluated. For the most part this object checks for existence and is used without a state comparision. 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>
  39 + </xsd:annotation>
  40 + <xsd:complexType>
  41 + <xsd:complexContent>
  42 + <xsd:extension base="oval-def:ObjectType">
  43 + <xsd:sequence>
  44 + <xsd:choice>
  45 + <xsd:element ref="oval-def:set"/>
  46 + <xsd:sequence>
  47 + <xsd:element name="global_command" type="oval-def:EntityObjectStringType">
  48 + <xsd:annotation>
  49 + <xsd:documentation>The global_command entity identifies a specific line in the JunOS config file under the global context.</xsd:documentation>
  50 + </xsd:annotation>
  51 + </xsd:element>
  52 + <xsd:element ref="oval-def:filter" minOccurs="0" maxOccurs="unbounded"/>
  53 + </xsd:sequence>
  54 + </xsd:choice>
  55 + </xsd:sequence>
  56 + </xsd:extension>
  57 + </xsd:complexContent>
  58 + </xsd:complexType>
  59 + </xsd:element>
  60 + <xsd:element name="global_state" substitutionGroup="oval-def:state">
  61 + <xsd:annotation>
  62 + <xsd:documentation>The global_state element defines the different information that can be found in the JunOS config file under the global context. Please refer to the individual elements in the schema for more details about what each represents.</xsd:documentation>
  63 + </xsd:annotation>
  64 + <xsd:complexType>
  65 + <xsd:complexContent>
  66 + <xsd:extension base="oval-def:StateType">
  67 + <xsd:sequence>
  68 + <xsd:element name="global_command" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1"/>
  69 + </xsd:sequence>
  70 + </xsd:extension>
  71 + </xsd:complexContent>
  72 + </xsd:complexType>
  73 + </xsd:element>
  74 + <!-- ============================================================================ -->
  75 + <!-- ================================= = LINE TEST ================================== -->
  76 + <!-- ============================================================================ -->
  77 + <xsd:element name="line_test" substitutionGroup="oval-def:test">
  78 + <xsd:annotation>
  79 + <xsd:documentation>The line test is used to check the properties of specific output lines from a SHOW command, such as "show configuration". It extends the standard TestType as defined in the oval-definitions-schema and one should refer to the TestType description for more information. The required object element references a line_object and the optional state element specifies the data to check.</xsd:documentation>
  80 + </xsd:annotation>
  81 + <xsd:complexType>
  82 + <xsd:complexContent>
  83 + <xsd:extension base="oval-def:TestType">
  84 + <xsd:sequence>
  85 + <xsd:element name="object" type="oval-def:ObjectRefType"/>
  86 + <xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="unbounded"/>
  87 + </xsd:sequence>
  88 + </xsd:extension>
  89 + </xsd:complexContent>
  90 + </xsd:complexType>
  91 + </xsd:element>
  92 + <xsd:element name="line_object" substitutionGroup="oval-def:object">
  93 + <xsd:annotation>
  94 + <xsd:documentation>The line_object element is used by a line 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>
  95 + </xsd:annotation>
  96 + <xsd:complexType>
  97 + <xsd:complexContent>
  98 + <xsd:extension base="oval-def:ObjectType">
  99 + <xsd:sequence>
  100 + <xsd:choice>
  101 + <xsd:element ref="oval-def:set"/>
  102 + <xsd:sequence>
  103 + <xsd:element name="show_subcommand" type="oval-def:EntityObjectStringType">
  104 + <xsd:annotation>
  105 + <xsd:documentation>The name of a SHOW sub-command to be tested.</xsd:documentation>
  106 + </xsd:annotation>
  107 + </xsd:element>
  108 + <xsd:element ref="oval-def:filter" minOccurs="0" maxOccurs="unbounded"/>
  109 + </xsd:sequence>
  110 + </xsd:choice>
  111 + </xsd:sequence>
  112 + </xsd:extension>
  113 + </xsd:complexContent>
  114 + </xsd:complexType>
  115 + </xsd:element>
  116 + <xsd:element name="line_state" substitutionGroup="oval-def:state">
  117 + <xsd:annotation>
  118 + <xsd:documentation>The line_state element defines the different information that can be used to evaluate the result of a specific SHOW sub-command. This includes the name of the sub-command and the corresponding config line. Please refer to the individual elements in the schema for more details about what each represents.</xsd:documentation>
  119 + </xsd:annotation>
  120 + <xsd:complexType>
  121 + <xsd:complexContent>
  122 + <xsd:extension base="oval-def:StateType">
  123 + <xsd:sequence>
  124 + <xsd:element name="show_subcommand" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
  125 + <xsd:annotation>
  126 + <xsd:documentation>The name of the SHOW sub-command.</xsd:documentation>
  127 + </xsd:annotation>
  128 + </xsd:element>
  129 + <xsd:element name="config_line" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
  130 + <xsd:annotation>
  131 + <xsd:documentation>The value returned from by the specified SHOW sub-command. This may actually consist of multiple lines of information, whose raw form will be captured by the item.</xsd:documentation>
  132 + </xsd:annotation>
  133 + </xsd:element>
  134 + </xsd:sequence>
  135 + </xsd:extension>
  136 + </xsd:complexContent>
  137 + </xsd:complexType>
  138 + </xsd:element>
  139 + <!-- ============================================================================= -->
  140 + <!-- ================================= VERSION TEST ================================= -->
  141 + <!-- ============================================================================= -->
  142 + <xsd:element name="version_test" substitutionGroup="oval-def:test">
  143 + <xsd:annotation>
  144 + <xsd:documentation>The version_test is used to check the version of components of the JunOS operating system. It extends the standard TestType as defined in the oval-definitions-schema and one should refer to the TestType description for more information. The required object element references a version_object and the optional state element specifies the data to check.</xsd:documentation>
  145 + </xsd:annotation>
  146 + <xsd:complexType>
  147 + <xsd:complexContent>
  148 + <xsd:extension base="oval-def:TestType">
  149 + <xsd:sequence>
  150 + <xsd:element name="object" type="oval-def:ObjectRefType"/>
  151 + <xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="unbounded"/>
  152 + </xsd:sequence>
  153 + </xsd:extension>
  154 + </xsd:complexContent>
  155 + </xsd:complexType>
  156 + </xsd:element>
  157 + <xsd:element name="version_object" substitutionGroup="oval-def:object">
  158 + <xsd:annotation>
  159 + <xsd:documentation>The version_object element is used by a version_test to define the different version information associated with a JunOS system.</xsd:documentation>
  160 + </xsd:annotation>
  161 + <xsd:complexType>
  162 + <xsd:complexContent>
  163 + <xsd:extension base="oval-def:ObjectType">
  164 + <xsd:sequence>
  165 + <xsd:choice>
  166 + <xsd:element ref="oval-def:set"/>
  167 + <xsd:sequence>
  168 + <xsd:element name="component" type="oval-def:EntityObjectStringType">
  169 + <xsd:annotation>
  170 + <xsd:documentation>The name of the JunOS component whose version should be retrieved.</xsd:documentation>
  171 + </xsd:annotation>
  172 + </xsd:element>
  173 + <xsd:element ref="oval-def:filter" minOccurs="0" maxOccurs="unbounded"/>
  174 + </xsd:sequence>
  175 + </xsd:choice>
  176 + </xsd:sequence>
  177 + </xsd:extension>
  178 + </xsd:complexContent>
  179 + </xsd:complexType>
  180 + </xsd:element>
  181 + <xsd:element name="version_state" substitutionGroup="oval-def:state">
  182 + <xsd:annotation>
  183 + <xsd:documentation>The version_state element defines the version information held by a JunOS component.</xsd:documentation>
  184 + </xsd:annotation>
  185 + <xsd:complexType>
  186 + <xsd:complexContent>
  187 + <xsd:extension base="oval-def:StateType">
  188 + <xsd:sequence>
  189 + <xsd:element name="component" type="oval-def:EntityStateStringType" minOccurs="0">
  190 + <xsd:annotation>
  191 + <xsd:documentation>The name of the JunOS component whose version should be retrieved.</xsd:documentation>
  192 + </xsd:annotation>
  193 + </xsd:element>
  194 + <xsd:element name="release" type="oval-def:EntityStateVersionType" minOccurs="0" maxOccurs="1">
  195 + <xsd:annotation>
  196 + <xsd:documentation>The release version information of the component.</xsd:documentation>
  197 + </xsd:annotation>
  198 + </xsd:element>
  199 + <xsd:element name="builder" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
  200 + <xsd:annotation>
  201 + <xsd:documentation>The string identifying the builder of the component.</xsd:documentation>
  202 + </xsd:annotation>
  203 + </xsd:element>
  204 + <xsd:element name="build_date" type="oval-def:EntityStateIntType" minOccurs="0" maxOccurs="1">
  205 + <xsd:annotation>
  206 + <xsd:documentation>The build date of the component, specified in milliseconds since the Epoch (midnight, January 1, 1970 GMT).</xsd:documentation>
  207 + </xsd:annotation>
  208 + </xsd:element>
  209 + </xsd:sequence>
  210 + </xsd:extension>
  211 + </xsd:complexContent>
  212 + </xsd:complexType>
  213 + </xsd:element>
  214 + <!-- ============================================================================= -->
  215 + <!-- ================================= XML LINE TEST ================================= -->
  216 + <!-- ============================================================================= -->
  217 + <xsd:element name="xml_line_test" substitutionGroup="oval-def:test">
  218 + <xsd:annotation>
  219 + <xsd:documentation>The XML line test is used to check the properties of specific output from an XML SHOW command, such as "show configuration | display xml". It extends the standard TestType as defined in the oval-definitions-schema and one should refer to the TestType description for more information. The required object element references a line_object and the optional state element specifies the data to check.</xsd:documentation>
  220 + </xsd:annotation>
  221 + <xsd:complexType>
  222 + <xsd:complexContent>
  223 + <xsd:extension base="oval-def:TestType">
  224 + <xsd:sequence>
  225 + <xsd:element name="object" type="oval-def:ObjectRefType"/>
  226 + <xsd:element name="state" type="oval-def:StateRefType" minOccurs="0" maxOccurs="unbounded"/>
  227 + </xsd:sequence>
  228 + </xsd:extension>
  229 + </xsd:complexContent>
  230 + </xsd:complexType>
  231 + </xsd:element>
  232 + <xsd:element name="xml_line_object" substitutionGroup="oval-def:object">
  233 + <xsd:annotation>
  234 + <xsd:documentation>The xml_line_object element is used by an XML line 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>
  235 + </xsd:annotation>
  236 + <xsd:complexType>
  237 + <xsd:complexContent>
  238 + <xsd:extension base="oval-def:ObjectType">
  239 + <xsd:sequence>
  240 + <xsd:choice>
  241 + <xsd:element ref="oval-def:set"/>
  242 + <xsd:sequence>
  243 + <xsd:element name="show_subcommand" type="oval-def:EntityObjectStringType">
  244 + <xsd:annotation>
  245 + <xsd:documentation>The name of a SHOW sub-command to be tested.</xsd:documentation>
  246 + </xsd:annotation>
  247 + </xsd:element>
  248 + <xsd:element name="xpath" type="oval-def:EntityObjectStringType">
  249 + <xsd:annotation>
  250 + <xsd:documentation>An XPATH 1.0 expression that should be evaluated against the XML data resulting from the XML show subcommand.</xsd:documentation>
  251 + </xsd:annotation>
  252 + </xsd:element>
  253 + <xsd:element ref="oval-def:filter" minOccurs="0" maxOccurs="unbounded"/>
  254 + </xsd:sequence>
  255 + </xsd:choice>
  256 + </xsd:sequence>
  257 + </xsd:extension>
  258 + </xsd:complexContent>
  259 + </xsd:complexType>
  260 + </xsd:element>
  261 + <xsd:element name="xml_line_state" substitutionGroup="oval-def:state">
  262 + <xsd:annotation>
  263 + <xsd:documentation>The xml_line_state element defines the different information that can be used to evaluate the result of a specific XML SHOW sub-command. This includes the name of the sub-command, the XPATH and the corresponding XPATH query result. Please refer to the individual elements in the schema for more details about what each represents.</xsd:documentation>
  264 + </xsd:annotation>
  265 + <xsd:complexType>
  266 + <xsd:complexContent>
  267 + <xsd:extension base="oval-def:StateType">
  268 + <xsd:sequence>
  269 + <xsd:element name="show_subcommand" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
  270 + <xsd:annotation>
  271 + <xsd:documentation>The name of a SHOW sub-command to be tested.</xsd:documentation>
  272 + </xsd:annotation>
  273 + </xsd:element>
  274 + <xsd:element name="xpath" type="oval-def:EntityStateStringType" minOccurs="0" maxOccurs="1">
  275 + <xsd:annotation>
  276 + <xsd:documentation>An XPATH 1.0 expression that should be evaluated against the XML data resulting from the XML show subcommand.</xsd:documentation>
  277 + </xsd:annotation>
  278 + </xsd:element>
  279 + <xsd:element name="value_of" type="oval-def:EntityStateAnySimpleType" minOccurs="0" maxOccurs="1">
  280 + <xsd:annotation>
  281 + <xsd:documentation>The result of the evaluation of the XPATH expression against the XML data returned from the XML show subcommand.</xsd:documentation>
  282 + </xsd:annotation>
  283 + </xsd:element>
  284 + </xsd:sequence>
  285 + </xsd:extension>
  286 + </xsd:complexContent>
  287 + </xsd:complexType>
  288 + </xsd:element>
185 289 </xsd:schema>
152 junos-system-characteristics-schema.xsd
... ... @@ -1,67 +1,91 @@
1 1 <?xml version="1.0" encoding="UTF-8"?>
2 2 <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:oval-sc="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5" xmlns:junos-sc="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#junos" xmlns:sch="http://purl.oclc.org/dsdl/schematron" targetNamespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#junos" elementFormDefault="qualified" version="5.11">
3   - <xsd:import namespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5" schemaLocation="oval-system-characteristics-schema.xsd"/>
4   - <xsd:annotation>
5   - <xsd:documentation>The following is a description of the elements, types, and attributes that compose the Junos-specific system characteristic items found in Open Vulnerability and Assessment Language (OVAL). Each item is an extension of the standard item element defined in the Core System Characteristic Schema. Through extension, each item inherits a set of elements and attributes that are shared amongst all OVAL Items. Each item is described in detail and should provide the information necessary to understand what each element and attribute represents. This document is intended for developers and assumes some familiarity with XML. A high level description of the interaction between the different tests and their relationship to the Core System Characteristic Schema is not outlined here.</xsd:documentation>
6   - <xsd:documentation>The OVAL Schema is maintained by The MITRE Corporation and developed by the public OVAL Community. For more information, including how to get involved in the project and how to submit change requests, please visit the OVAL website at http://oval.mitre.org.</xsd:documentation>
7   - <xsd:appinfo>
8   - <schema>Junos System Characteristics</schema>
9   - <version>5.11</version>
10   - <date>1/27/2012 1:22:32 PM</date>
11   - <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>
12   - <sch:ns prefix="oval-sc" uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5"/>
13   - <sch:ns prefix="junos-sc" uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#junos"/>
14   - <sch:ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
15   - </xsd:appinfo>
16   - </xsd:annotation>
17   - <xsd:element name="global_item" substitutionGroup="oval-sc:item">
18   - <xsd:complexType>
19   - <xsd:complexContent>
20   - <xsd:extension base="oval-sc:ItemType">
21   - <xsd:sequence>
22   - <xsd:element name="global_command" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
23   - </xsd:sequence>
24   - </xsd:extension>
25   - </xsd:complexContent>
26   - </xsd:complexType>
27   - </xsd:element>
28   - <xsd:element name="line_item" substitutionGroup="oval-sc:item">
29   - <xsd:complexType>
30   - <xsd:complexContent>
31   - <xsd:extension base="oval-sc:ItemType">
32   - <xsd:sequence>
33   - <xsd:element name="show_subcommand" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
34   - <xsd:element name="config_line" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
35   - </xsd:sequence>
36   - </xsd:extension>
37   - </xsd:complexContent>
38   - </xsd:complexType>
39   - </xsd:element>
40   - <xsd:element name="version_item" substitutionGroup="oval-sc:item">
41   - <xsd:complexType>
42   - <xsd:complexContent>
43   - <xsd:extension base="oval-sc:ItemType">
44   - <xsd:sequence>
45   - <xsd:element name="component" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
46   - <xsd:element name="release" type="oval-sc:EntityItemVersionType" minOccurs="0" maxOccurs="1"/>
47   - <xsd:element name="builder" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
48   - <xsd:element name="build_date" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1"/>
49   - </xsd:sequence>
50   - </xsd:extension>
51   - </xsd:complexContent>
52   - </xsd:complexType>
53   - </xsd:element>
54   - <xsd:element name="xml_line_item" substitutionGroup="oval-sc:item">
55   - <xsd:complexType>
56   - <xsd:complexContent>
57   - <xsd:extension base="oval-sc:ItemType">
58   - <xsd:sequence>
59   - <xsd:element name="show_subcommand" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
60   - <xsd:element name="xpath" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
61   - <xsd:element name="value_of" type="oval-sc:EntityItemAnySimpleType" minOccurs="0" maxOccurs="unbounded"/>
62   - </xsd:sequence>
63   - </xsd:extension>
64   - </xsd:complexContent>
65   - </xsd:complexType>
66   - </xsd:element>
  3 + <xsd:import namespace="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5" schemaLocation="oval-system-characteristics-schema.xsd"/>
  4 + <xsd:annotation>
  5 + <xsd:documentation>The following is a description of the elements, types, and attributes that compose the Junos-specific system characteristic items found in Open Vulnerability and Assessment Language (OVAL). Each item is an extension of the standard item element defined in the Core System Characteristic Schema. Through extension, each item inherits a set of elements and attributes that are shared amongst all OVAL Items. Each item is described in detail and should provide the information necessary to understand what each element and attribute represents. This document is intended for developers and assumes some familiarity with XML. A high level description of the interaction between the different tests and their relationship to the Core System Characteristic Schema is not outlined here.</xsd:documentation>
  6 + <xsd:documentation>This schema was originally developed by David Solin at jOVAL.org. The OVAL Schema is maintained by The MITRE Corporation and developed by the public OVAL Community. For more information, including how to get involved in the project and how to submit change requests, please visit the OVAL website at http://oval.mitre.org.</xsd:documentation>
  7 + <xsd:appinfo>
  8 + <schema>Junos System Characteristics</schema>
  9 + <version>5.11</version>
  10 + <date>1/27/2012 1:22:32 PM</date>
  11 + <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>
  12 + <sch:ns prefix="oval-sc" uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5"/>
  13 + <sch:ns prefix="junos-sc" uri="http://oval.mitre.org/XMLSchema/oval-system-characteristics-5#junos"/>
  14 + <sch:ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
  15 + </xsd:appinfo>
  16 + </xsd:annotation>
  17 + <!-- ====================================================================== -->
  18 + <!-- ============================ JUNOS GLOBAL ITEM ============================ -->
  19 + <!-- ====================================================================== -->
  20 + <xsd:element name="global_item" substitutionGroup="oval-sc:item">
  21 + <xsd:annotation>
  22 + <xsd:documentation>Stores information about the existence of a particular line in the JunOS config file, under the global context.</xsd:documentation>
  23 + </xsd:annotation>
  24 + <xsd:complexType>
  25 + <xsd:complexContent>
  26 + <xsd:extension base="oval-sc:ItemType">
  27 + <xsd:sequence>
  28 + <xsd:element name="global_command" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
  29 + </xsd:sequence>
  30 + </xsd:extension>
  31 + </xsd:complexContent>
  32 + </xsd:complexType>
  33 + </xsd:element>
  34 + <!-- ==================================================================== -->
  35 + <!-- ============================ JUNOS LINE ITEM ============================ -->
  36 + <!-- ==================================================================== -->
  37 + <xsd:element name="line_item" substitutionGroup="oval-sc:item">
  38 + <xsd:annotation>
  39 + <xsd:documentation>Stores the resulting configuration data provided by the execution of a specific show command.</xsd:documentation>
  40 + </xsd:annotation>
  41 + <xsd:complexType>
  42 + <xsd:complexContent>
  43 + <xsd:extension base="oval-sc:ItemType">
  44 + <xsd:sequence>
  45 + <xsd:element name="show_subcommand" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
  46 + <xsd:element name="config_line" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
  47 + </xsd:sequence>
  48 + </xsd:extension>
  49 + </xsd:complexContent>
  50 + </xsd:complexType>
  51 + </xsd:element>
  52 + <!-- ======================================================================= -->
  53 + <!-- ============================ JUNOS VERSION ITEM ============================ -->
  54 + <!-- ======================================================================= -->
  55 + <xsd:element name="version_item" substitutionGroup="oval-sc:item">
  56 + <xsd:annotation>
  57 + <xsd:documentation>The version_item holds information about the version of a particular component of the JunOS operating system. It extends the standard ItemType as defined in the oval-system-characteristics schema and one should refer to the ItemType description for more information.</xsd:documentation>
  58 + </xsd:annotation>
  59 + <xsd:complexType>
  60 + <xsd:complexContent>
  61 + <xsd:extension base="oval-sc:ItemType">
  62 + <xsd:sequence>
  63 + <xsd:element name="component" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
  64 + <xsd:element name="release" type="oval-sc:EntityItemVersionType" minOccurs="0" maxOccurs="1"/>
  65 + <xsd:element name="builder" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
  66 + <xsd:element name="build_date" type="oval-sc:EntityItemIntType" minOccurs="0" maxOccurs="1"/>
  67 + </xsd:sequence>
  68 + </xsd:extension>
  69 + </xsd:complexContent>
  70 + </xsd:complexType>
  71 + </xsd:element>
  72 + <!-- ======================================================================= -->
  73 + <!-- ============================ JUNOS XML LINE ITEM ============================ -->
  74 + <!-- ======================================================================= -->
  75 + <xsd:element name="xml_line_item" substitutionGroup="oval-sc:item">
  76 + <xsd:annotation>
  77 + <xsd:documentation>Stores the result of the application of an XPATH query applied to the JunOS configuration data provided by the execution of a specific show command, which has been piped to "display xml".</xsd:documentation>
  78 + </xsd:annotation>
  79 + <xsd:complexType>
  80 + <xsd:complexContent>
  81 + <xsd:extension base="oval-sc:ItemType">
  82 + <xsd:sequence>
  83 + <xsd:element name="show_subcommand" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
  84 + <xsd:element name="xpath" type="oval-sc:EntityItemStringType" minOccurs="0" maxOccurs="1"/>
  85 + <xsd:element name="value_of" type="oval-sc:EntityItemAnySimpleType" minOccurs="0" maxOccurs="unbounded"/>
  86 + </xsd:sequence>
  87 + </xsd:extension>
  88 + </xsd:complexContent>
  89 + </xsd:complexType>
  90 + </xsd:element>
67 91 </xsd:schema>
4 netconf-definitions-schema.xsd
@@ -15,9 +15,9 @@
15 15 <sch:ns prefix="xsi" uri="http://www.w3.org/2001/XMLSchema-instance"/>
16 16 </xsd:appinfo>
17 17 </xsd:annotation>
18   - <!-- =============================================================================== -->
  18 + <!-- ============================================================================ -->
19 19 <!-- ================================= CONFIG TEST ================================= -->
20   - <!-- =============================================================================== -->
  20 + <!-- ============================================================================ -->
21 21 <xsd:element name="config_test" substitutionGroup="oval-def:test">
22 22 <xsd:annotation>
23 23 <xsd:documentation>The config_test is used to check the properties of the XML output from a GET-CONFIG command, for the running configuration. It extends the standard TestType as defined in the oval-definitions-schema and one should refer to the TestType description for more information. The required object element references a config_object and the optional state element specifies the data to check.</xsd:documentation>

0 comments on commit 6714e66

Please sign in to comment.
Something went wrong with that request. Please try again.