tests.xmlparse: fix network test

Device <interface type='ethernet'/> doesn't support <source dev=''/> attribute.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2016-07-08 17:58:16 +02:00
parent ad133796b5
commit 1bed021a00
3 changed files with 0 additions and 3 deletions

View File

@ -32,7 +32,6 @@
</interface>
<interface type="ethernet">
<mac address="00:11:22:33:44:55"/>
<source dev="eth0"/>
<script path="/etc/qemu-ifup"/>
<target dev="nic02"/>
</interface>

View File

@ -35,7 +35,6 @@
</interface>
<interface type="ethernet">
<mac address="00:11:22:33:44:55"/>
<source dev="eth1"/>
<script path="/etc/qemu-ifup"/>
</interface>
<interface type="direct">

View File

@ -551,7 +551,6 @@ class XMLParseTest(unittest.TestCase):
check = self._make_checker(dev4)
check("type", "ethernet")
check("source", "eth0", "eth1")
check("target_dev", "nic02", "nic03")
check("target_dev", "nic03", None)