]> xenbits.xensource.com Git - libvirt.git/commitdiff
nwfilter: Extend nwfilter schema to accept comment attrib.
authorStefan Berger <stefanb@us.ibm.com>
Thu, 30 Sep 2010 20:00:11 +0000 (16:00 -0400)
committerStefan Berger <stefanb@us.ibm.com>
Thu, 30 Sep 2010 20:00:11 +0000 (16:00 -0400)
Extend the nwfilter.rng schema to accept comment attributes for all protocol
types.

docs/schemas/nwfilter.rng

index 262e420106dc6efde5a7ee2cc4bc9a904114eb49..95fa6b533ada309021d073f8217935a6b3eb64a8 100644 (file)
@@ -24,6 +24,7 @@
                   <ref name="match-attribute"/>
                   <ref name="common-l2-attributes"/>
                   <ref name="mac-attributes"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
@@ -33,6 +34,7 @@
                   <ref name="match-attribute"/>
                   <ref name="common-l2-attributes"/>
                   <ref name="arp-attributes"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
@@ -42,6 +44,7 @@
                   <ref name="match-attribute"/>
                   <ref name="common-l2-attributes"/>
                   <ref name="arp-attributes"/> <!-- same as arp -->
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
@@ -54,6 +57,7 @@
                   <ref name="common-port-attributes"/>
                   <ref name="ip-attributes"/>
                   <ref name="dscp-attribute"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
@@ -65,6 +69,7 @@
                   <ref name="common-ipv6-attributes-p1"/>
                   <ref name="common-port-attributes"/>
                   <ref name="ip-attributes"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
@@ -76,6 +81,7 @@
                   <ref name="common-port-attributes"/>
                   <ref name="common-ip-attributes-p1"/>
                   <ref name="common-ip-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
@@ -87,6 +93,7 @@
                   <ref name="common-port-attributes"/>
                   <ref name="common-ip-attributes-p1"/>
                   <ref name="common-ip-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="common-port-attributes"/>
                   <ref name="common-ip-attributes-p1"/>
                   <ref name="common-ip-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="common-ip-attributes-p1"/>
                   <ref name="common-ip-attributes-p2"/>
                   <ref name="icmp-attributes"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="srcmac-attribute"/>
                   <ref name="common-ip-attributes-p1"/>
                   <ref name="common-ip-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="srcmac-attribute"/>
                   <ref name="common-ip-attributes-p1"/>
                   <ref name="common-ip-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="srcmac-attribute"/>
                   <ref name="common-ip-attributes-p1"/>
                   <ref name="common-ip-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="srcmac-attribute"/>
                   <ref name="common-ip-attributes-p1"/>
                   <ref name="common-ip-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="srcmac-attribute"/>
                   <ref name="common-ip-attributes-p1"/>
                   <ref name="common-ip-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="common-port-attributes"/>
                   <ref name="common-ipv6-attributes-p1"/>
                   <ref name="common-ipv6-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="common-port-attributes"/>
                   <ref name="common-ipv6-attributes-p1"/>
                   <ref name="common-ipv6-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="common-port-attributes"/>
                   <ref name="common-ipv6-attributes-p1"/>
                   <ref name="common-ipv6-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="common-ipv6-attributes-p1"/>
                   <ref name="common-ipv6-attributes-p2"/>
                   <ref name="icmp-attributes"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="srcmac-attribute"/>
                   <ref name="common-ipv6-attributes-p1"/>
                   <ref name="common-ipv6-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="srcmac-attribute"/>
                   <ref name="common-ipv6-attributes-p1"/>
                   <ref name="common-ipv6-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="srcmac-attribute"/>
                   <ref name="common-ipv6-attributes-p1"/>
                   <ref name="common-ipv6-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
                   <ref name="srcmac-attribute"/>
                   <ref name="common-ipv6-attributes-p1"/>
                   <ref name="common-ipv6-attributes-p2"/>
+                  <ref name="comment-attribute"/>
                 </element>
               </zeroOrMore>
             </optional>
     </optional>
   </define>
 
+  <define name="comment-attribute">
+    <optional>
+      <attribute name="comment">
+        <ref name="comment-type"/>
+      </attribute>
+    </optional>
+  </define>
+
   <!-- ################  type library ################ -->
 
   <define name="UUID">
       <param name="pattern">([Ff][Aa][Ll][Ss][Ee]|0)</param>
     </data>
   </define>
+
+  <define name='comment-type'>
+    <data type="string"/>
+  </define>
 </grammar>