]> xenbits.xensource.com Git - libvirt.git/commitdiff
nwfilter: Extend schema to accept state attribute
authorStefan Berger <stefanb@us.ibm.com>
Thu, 7 Oct 2010 10:44:41 +0000 (06:44 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Thu, 7 Oct 2010 10:44:41 +0000 (06:44 -0400)
Extend the nwfilter.rng schema to accept state attribute.

docs/schemas/nwfilter.rng

index 95fa6b533ada309021d073f8217935a6b3eb64a8..5b865ced17e0639a18e58bc79a239968cfd44b25 100644 (file)
           <ref name="uint16range"/>
         </attribute>
       </optional>
+      <optional>
+        <attribute name="state">
+          <ref name="stateflags-type"/>
+        </attribute>
+      </optional>
     </interleave>
   </define>
 
   <define name='comment-type'>
     <data type="string"/>
   </define>
+
+  <define name='stateflags-type'>
+    <data type="string">
+      <param name="pattern">((NEW|ESTABLISHED|RELATED|INVALID)(,(NEW|ESTABLISHED|RELATED|INVALID))*|NONE)</param>
+    </data>
+  </define>
 </grammar>