mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
7abf1d864b
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>
14 lines
410 B
XML
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>
|