mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-20 11:48:28 -06:00
Convert virtManager/host.py, do some cleanups and modernization to the UI there, add tests. createnet.py hasn't really been touched yet, but still works because it was building the XML by hand anyways.
30 lines
1.2 KiB
XML
30 lines
1.2 KiB
XML
<network ipv6="yes">
|
|
<name>new-foo</name>
|
|
<uuid>41b4afe4-87bb-8087-6724-5e208a2d1111</uuid>
|
|
<forward mode="route" dev="eth22"/>
|
|
<bridge name="virbr3new" stp="off" delay="2"/>
|
|
<domain name="newdom"/>
|
|
<ip address="192.168.8.1" netmask="255.255.254.0">
|
|
<dhcp>
|
|
<range start="192.168.8.128" end="192.168.8.254"/>
|
|
<host mac="52:54:00:60:7d:5d" name="paul" ip="192.168.7.2"/>
|
|
<host mac="52:54:00:69:eb:92" name="newname" ip="192.168.8.3"/>
|
|
<bootp file="pxeboot.img" server="1.2.3.4"/>
|
|
</dhcp>
|
|
<tftp root="/var/lib/tftproot"/>
|
|
</ip>
|
|
<ip family="ipv6" address="fd00:beef:10:7::1" prefix="63">
|
|
<dhcp>
|
|
<range start="fd00:beef:10:7::1:1" end="fd00:beef:10:7::1:f1"/>
|
|
<host id="00:03:00:01:52:54:00:60:7d:5d" name="paul" ip="fd00:beef:10:7::7:2"/>
|
|
<host id="00:03:00:01:52:54:00:69:eb:91" name="badbob" ip="fd00:beef:10:7::7:4"/>
|
|
</dhcp>
|
|
</ip>
|
|
<ip family="ipv6" address="fd00:beef:12::" prefix="48" via="fd00:beef:10:7::7:2">
|
|
</ip>
|
|
<ip family="ipv4" address="192.168.19.0" netmask="255.255.255.0">
|
|
</ip>
|
|
<mac address="52:54:00:69:eb:FF"/>
|
|
<route family="ipv4" address="192.168.8.0" prefix="24" gateway="192.168.8.10"/>
|
|
</network>
|