libvirt/tests/nwfilterxml2xmlout
Peter Krempa 9cb4e78ffd virNWFilterRuleDefDetailsFormat: Refactor formatter
Format the rule attributes in two passes, first for positive 'match' and
second pass for negative. This removes the crazy logic for switching
between match modes inside the formatter.

The refactor makes it also more clear in which cases we actually do
format something.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
2023-06-05 13:23:06 +02:00
..
ah-ipv6-test.xml tests: Update IPv4-in-IPv6 addresses 2022-03-04 15:08:59 +01:00
ah-test.xml This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML. 2010-04-02 13:28:28 -04:00
all-ipv6-test.xml tests: Update IPv4-in-IPv6 addresses 2022-03-04 15:08:59 +01:00
all-test.xml This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML. 2010-04-02 13:28:28 -04:00
arp-test.xml nwfilter: enable filtering of gratuitous ARP packets 2011-05-23 19:41:18 -04:00
attr-value-test.xml Add test cases for parsing of list values 2011-11-18 11:58:18 -05:00
chain_prefixtest1.xml
comment-test.xml tests: Update IPv4-in-IPv6 addresses 2022-03-04 15:08:59 +01:00
conntrack-test.xml nwfilter: extend schema + add testcase w/ connlimit-above 2010-04-23 11:42:39 -04:00
esp-ipv6-test.xml tests: Update IPv4-in-IPv6 addresses 2022-03-04 15:08:59 +01:00
esp-test.xml This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML. 2010-04-02 13:28:28 -04:00
example-1.xml nwfilter: Add test case for testing the state attribute 2010-10-07 06:43:35 -04:00
example-2.xml nwfilter: Add test case for testing the state attribute 2010-10-07 06:43:35 -04:00
hex-data-test.xml tests: Update IPv4-in-IPv6 addresses 2022-03-04 15:08:59 +01:00
icmp-direction2-test.xml nwfilter: More XML parser test cases 2010-04-09 07:25:02 -04:00
icmp-direction3-test.xml nwfilter: More XML parser test cases 2010-04-09 07:25:02 -04:00
icmp-direction-test.xml nwfilter: More XML parser test cases 2010-04-09 07:25:02 -04:00
icmp-test.xml This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML. 2010-04-02 13:28:28 -04:00
icmpv6-test.xml tests: Update IPv4-in-IPv6 addresses 2022-03-04 15:08:59 +01:00
igmp-test.xml This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML. 2010-04-02 13:28:28 -04:00
ip-test.xml This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML. 2010-04-02 13:28:28 -04:00
ipset-test.xml nwfilter: Add support for ipset 2012-05-21 06:26:34 -04:00
ipt-no-macspoof-test.xml nwfilter: More XML parser test cases 2010-04-09 07:25:02 -04:00
ipv6-test.xml tests: Update IPv4-in-IPv6 addresses 2022-03-04 15:08:59 +01:00
iter-test1.xml Add test cases for new ways to access variables in filters 2012-01-11 06:42:37 -05:00
iter-test2.xml Add test cases for new ways to access variables in filters 2012-01-11 06:42:37 -05:00
iter-test3.xml Add test cases for new ways to access variables in filters 2012-01-11 06:42:37 -05:00
mac-test.xml This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML. 2010-04-02 13:28:28 -04:00
quirks-invalid.xml virNWFilterRuleDefDetailsFormat: Refactor formatter 2023-06-05 13:23:06 +02:00
rarp-test.xml nwfilter: add support for RAPR protocol 2010-04-27 07:26:12 -04:00
ref-rule-test.xml This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML. 2010-04-02 13:28:28 -04:00
ref-test.xml This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML. 2010-04-02 13:28:28 -04:00
sctp-ipv6-test.xml tests: Update IPv4-in-IPv6 addresses 2022-03-04 15:08:59 +01:00
sctp-test.xml This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML. 2010-04-02 13:28:28 -04:00
stp-test.xml Add test cases for STP traffic filtering 2011-11-22 15:12:03 -05:00
tcp-ipv6-test.xml tests: Update IPv4-in-IPv6 addresses 2022-03-04 15:08:59 +01:00
tcp-test.xml nwfilters: support for TCP flags evaluation 2011-04-07 20:13:38 -04:00
udp-ipv6-test.xml tests: Update IPv4-in-IPv6 addresses 2022-03-04 15:08:59 +01:00
udp-test.xml This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML. 2010-04-02 13:28:28 -04:00
udplite-ipv6-test.xml tests: Update IPv4-in-IPv6 addresses 2022-03-04 15:08:59 +01:00
udplite-test.xml This patch adds a couple of test cases for the XML parsing test suite covering various filterable protocols. For each test case an input XML and an output XML is provided checking the input XML after parsing and converting back into XML against the exepcted output XML. 2010-04-02 13:28:28 -04:00
vlan-test.xml Add test cases for VLAN traffic filtering 2011-11-19 07:26:56 -05:00