diff options
author | Ján Tomko <jtomko@redhat.com> | 2013-09-05 11:08:38 +0200 |
---|---|---|
committer | Ján Tomko <jtomko@redhat.com> | 2013-09-05 13:45:49 +0200 |
commit | 437b7944a81b648a15c657fef184f3bcd2427dac (patch) | |
tree | c1672be47c9cfd83819c708e043f854171962dbd /tests/networkxml2xmlout | |
parent | ceb2cec9aad1abd1a4e2eab59f7d2afc478191ed (diff) | |
download | libvirt-437b7944a81b648a15c657fef184f3bcd2427dac.tar.gz |
Add '<nat>' element to '<forward>' network schemas
Commits 905629f4 and 1716e7a6 have added support for specifying
an IPv4 range and a port range to be used by NAT:
<forward mode='nat'>
<nat>
<address start='10.20.30.40' end='10.20.30.44'/>
<port start='60000' end='65432'/>
</nat>
</forward>
https://bugzilla.redhat.com/show_bug.cgi?id=1004364
Diffstat (limited to 'tests/networkxml2xmlout')
-rw-r--r-- | tests/networkxml2xmlout/nat-network-forward-nat-address.xml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/networkxml2xmlout/nat-network-forward-nat-address.xml b/tests/networkxml2xmlout/nat-network-forward-nat-address.xml new file mode 100644 index 0000000000..faeba24706 --- /dev/null +++ b/tests/networkxml2xmlout/nat-network-forward-nat-address.xml @@ -0,0 +1,27 @@ +<network> + <name>default</name> + <uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid> + <forward dev='eth1' mode='nat'> + <nat> + <address start='10.20.30.40' end='10.20.30.44'/> + <port start='60000' end='65432'/> + </nat> + <interface dev='eth1'/> + </forward> + <bridge name='virbr0' stp='on' delay='0'/> + <ip address='192.168.122.1' netmask='255.255.255.0'> + <dhcp> + <range start='192.168.122.2' end='192.168.122.254'/> + <host mac='00:16:3e:77:e2:ed' name='a.example.com' ip='192.168.122.10'/> + <host mac='00:16:3e:3e:a9:1a' name='b.example.com' ip='192.168.122.11'/> + </dhcp> + </ip> + <ip family='ipv4' address='192.168.123.1' netmask='255.255.255.0'> + </ip> + <ip family='ipv6' address='2001:db8:ac10:fe01::1' prefix='64'> + </ip> + <ip family='ipv6' address='2001:db8:ac10:fd01::1' prefix='64'> + </ip> + <ip family='ipv4' address='10.24.10.1'> + </ip> +</network> |