]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schema: nwfilter: Allow all accepted values for 'ipsetflags'
authorPeter Krempa <pkrempa@redhat.com>
Wed, 7 Oct 2020 13:37:40 +0000 (15:37 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 20 Oct 2020 07:05:10 +0000 (09:05 +0200)
The parser for the 'ipsetflags' accepts the 'src' and 'dst' values
stripping case. Express the same in the schema to pass validation of any
accepted string.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/schemas/nwfilter.rng

index 75caf61b8900878047f6b4ef1598899825f9d622..64a607e62f03e6580720477ad9896fb99ccd8e8d 100644 (file)
 
   <define name="ipset-flags-type">
     <data type="string">
-      <param name="pattern">(src|dst)(,(src|dst)){0,5}</param>
+      <param name="pattern">([Ss][Rr][Cc]|[Dd][Ss][Tt])(,([Ss][Rr][Cc]|[Dd][Ss][Tt])){0,5}</param>
     </data>
   </define>
 </grammar>