libvirt/tests/nwfilterxml2xmlin/quirks-invalid.xml
Peter Krempa 7abf1d864b nwfilterxml2xmltest: Add test case for parser and formatter quirks
The parser and formatter for nwfilter rules is very strange and has
weird quirks. Add a test case trying to capture some of the quirks to
visualize how it will change when the code is refactored.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2023-06-05 13:23:06 +02:00

14 lines
410 B
XML

<filter name='testcase'>
<uuid>01a992d2-f8c8-7c27-f69b-ab0a9d377379</uuid>
<!-- quirky XML for parser validation -->
<rule action='accept' direction='in' priority='100'>
<tcp match='no' srcipaddr='10.1.2.3'/>
<tcp match='no' srcportstart='22'/>
<tcp dstportstart='22' comment='comment'/>
<tcp match='no' srcporttend='24'/>
<tcp srcipmask='32' dstporttend='24'/>
</rule>
</filter>