[libvirt] [PATCH 14/26] Add test for converting network XML to iptables rules

Ján Tomko jtomko at redhat.com
Wed Apr 16 13:54:48 UTC 2014


On 04/08/2014 05:38 PM, Daniel P. Berrange wrote:
> Using the virCommand dry run capability, capture iptables rules
> created by various network XML documents.
> 
> Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
> ---


> diff --git a/tests/networkxml2firewalldata/nat-default-linux.args b/tests/networkxml2firewalldata/nat-default-linux.args
> new file mode 100644
> index 0000000..0ec2807
> --- /dev/null
> +++ b/tests/networkxml2firewalldata/nat-default-linux.args
> @@ -0,0 +1,30 @@
> +/usr/sbin/iptables --table filter --insert INPUT --in-interface virbr0 --protocol tcp \
> +--destination-port 67 --jump ACCEPT

This test fails on systems having iptables in /sbin

Jan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140416/f4bc189a/attachment-0001.sig>


More information about the libvir-list mailing list