[PATCH v2 09/18] schema: nwfilter: Allow all accepted values for 'ipsetflags'

Peter Krempa pkrempa at redhat.com
Mon Oct 19 12:22:18 UTC 2020


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 at redhat.com>
---
 docs/schemas/nwfilter.rng | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/schemas/nwfilter.rng b/docs/schemas/nwfilter.rng
index 75caf61b89..64a607e62f 100644
--- a/docs/schemas/nwfilter.rng
+++ b/docs/schemas/nwfilter.rng
@@ -980,7 +980,7 @@

   <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>
-- 
2.26.2




More information about the libvir-list mailing list