mirror of
https://github.com/virt-manager/virt-manager.git
synced 2026-11-06 06:06:52 -06:00
Examples: `virt-xml MYVM --add-device --sound FOO1 --sound FOO2` is not rejected and will add 2 devices. `virt-xml MYVM --remove-device --sound opt1=FOO1 --sound opt2=FOO2` is not rejected, only the final `--sound` option is used. `virt-xml MYVM --edit --sound FOO1 --sound address.type=BAR` is not rejected. The commandlines will effectively be squashed `--sound` can be any XML option, but trying to mix and match options like `--sound` and `--disk` is always rejected. These bits are unexpected and undocument, but have been around since the beginning of virt-xml. I can see us breaking compat on these in the future (particularly the --remove-device bit), but that would need to be an explicit decision, and announced appropriately. In the mean time, we should be testing this so it doesn't accidentally regress. Signed-off-by: Cole Robinson <crobinso@redhat.com>
16 lines
488 B
XML
16 lines
488 B
XML
<target dev="testnet0"/>
|
|
<model type="e1000"/>
|
|
</interface>
|
|
- <interface type="bridge">
|
|
- <mac address="22:00:00:44:aa:bf"/>
|
|
- <source bridge="br0"/>
|
|
- <target dev="testnet1"/>
|
|
- <model type="e1000"/>
|
|
- </interface>
|
|
<interface type="ethernet">
|
|
<mac address="00:11:7f:33:44:55"/>
|
|
<script path="/etc/qemu-ifup"/>
|
|
|
|
Domain 'test-for-virtxml' defined successfully.
|
|
Changes will take effect after the domain is fully powered off.
|