mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf: parser/formatter/rng for <forward mode='hostdev'>
This patch introduces the new forward mode='hostdev' along with attribute managed. Includes updates to the network RNG and new xml parser/formatter code. Signed-off-by: Shradha Shah <sshah@solarflare.com>
This commit is contained in:
committed by
Laine Stump
parent
1494897bac
commit
1446003419
7
tests/networkxml2xmlin/hostdev-pf.xml
Normal file
7
tests/networkxml2xmlin/hostdev-pf.xml
Normal file
@@ -0,0 +1,7 @@
|
||||
<network>
|
||||
<name>hostdev</name>
|
||||
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
|
||||
<forward mode='hostdev' managed='yes'>
|
||||
<pf dev='eth2'/>
|
||||
</forward>
|
||||
</network>
|
||||
10
tests/networkxml2xmlin/hostdev.xml
Normal file
10
tests/networkxml2xmlin/hostdev.xml
Normal file
@@ -0,0 +1,10 @@
|
||||
<network>
|
||||
<name>hostdev</name>
|
||||
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
|
||||
<forward mode='hostdev' managed='yes'>
|
||||
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x1'/>
|
||||
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x2'/>
|
||||
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x3'/>
|
||||
<address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x4'/>
|
||||
</forward>
|
||||
</network>
|
||||
@@ -3,8 +3,6 @@
|
||||
<uuid>81ff0d90-c91e-6742-64da-4a736edb9a9b</uuid>
|
||||
<forward mode="passthrough">
|
||||
<pf dev='eth0'/>
|
||||
<interface dev='eth10'/>
|
||||
<interface dev='eth11'/>
|
||||
</forward>
|
||||
<ip address="192.168.122.1" netmask="255.255.255.0"/>
|
||||
</network>
|
||||
|
||||
Reference in New Issue
Block a user