mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
bandwidth: Add test cases for network
This commit is contained in:
parent
90074ecfa7
commit
e5f1f9de77
16
tests/networkxml2xmlin/bandwidth-network.xml
Normal file
16
tests/networkxml2xmlin/bandwidth-network.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<network>
|
||||
<name>test-net</name>
|
||||
<uuid>986fed9e-a488-186d-ef2d-17ebfd1993f8</uuid>
|
||||
<forward mode='nat'/>
|
||||
<bridge name='virbr1' stp='on' delay='0' />
|
||||
<mac address='52:54:00:E6:A2:C9'/>
|
||||
<bandwidth>
|
||||
<inbound average='1000' peak='2000' burst='1024'/>
|
||||
<outbound average='2000'/>
|
||||
</bandwidth>
|
||||
<ip address='192.168.120.1' netmask='255.255.255.0'>
|
||||
<dhcp>
|
||||
<range start='192.168.120.2' end='192.168.120.254' />
|
||||
</dhcp>
|
||||
</ip>
|
||||
</network>
|
16
tests/networkxml2xmlout/bandwidth-network.xml
Normal file
16
tests/networkxml2xmlout/bandwidth-network.xml
Normal file
@ -0,0 +1,16 @@
|
||||
<network>
|
||||
<name>test-net</name>
|
||||
<uuid>986fed9e-a488-186d-ef2d-17ebfd1993f8</uuid>
|
||||
<forward mode='nat'/>
|
||||
<bridge name='virbr1' stp='on' delay='0' />
|
||||
<mac address='52:54:00:E6:A2:C9'/>
|
||||
<bandwidth>
|
||||
<inbound average='1000' peak='2000' burst='1024'/>
|
||||
<outbound average='2000'/>
|
||||
</bandwidth>
|
||||
<ip address='192.168.120.1' netmask='255.255.255.0'>
|
||||
<dhcp>
|
||||
<range start='192.168.120.2' end='192.168.120.254' />
|
||||
</dhcp>
|
||||
</ip>
|
||||
</network>
|
@ -92,6 +92,7 @@ mymain(void)
|
||||
DO_TEST("direct-net");
|
||||
DO_TEST("host-bridge-net");
|
||||
DO_TEST("vepa-net");
|
||||
DO_TEST("bandwidth-network");
|
||||
|
||||
return (ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user