[libvirt] [PATCH v2 2/2] test_driver: add a guest interface in the default config

Erik Skultety eskultet at redhat.com
Fri May 24 08:04:41 UTC 2019


On Thu, May 23, 2019 at 02:50:01PM +0200, Ilias Stamatis wrote:
> Signed-off-by: Ilias Stamatis <stamatis.iliass at gmail.com>
> ---

I think this patch should come first, because e.g. 'domiflist' virsh command
can already make use of the data.

I'll swap the order before pushing.
Reviewed-by: Erik Skultety <eskultet at redhat.com>

>  src/test/test_driver.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>
> diff --git a/src/test/test_driver.c b/src/test/test_driver.c
> index ac3b3d1e89..b29fd12903 100644
> --- a/src/test/test_driver.c
> +++ b/src/test/test_driver.c
> @@ -436,6 +436,13 @@ static const char *defaultConnXML =
>  "  <os>"
>  "    <type>hvm</type>"
>  "  </os>"
> +"  <devices>"
> +"    <interface type='network'>"
> +"      <mac address='aa:bb:cc:dd:ee:ff'/>"
> +"      <source network='default' bridge='virbr0'/>"
> +"      <address type='pci' domain='0x0000' bus='0x00' slot='0x1' function='0x0'/>"
> +"    </interface>"
> +"  </devices>"
>  "</domain>"
>  ""
>  "<network>"
> --
> 2.21.0
>




More information about the libvir-list mailing list