Libvirt APIs for creating virtual networks

Daniel P. Berrangé berrange at redhat.com
Tue Apr 28 16:01:03 UTC 2020


On Tue, Apr 28, 2020 at 08:51:45AM -0700, Santhosh Kumar Gunturu wrote:
> Okay. Thanks.
> 
> Do we have any facility APIs to set the DHCP Options via XML ?
> Default gateway ?
> Dns-server ?
> domain-name ?

Everything is controlled through the XML document described here:

   https://libvirt.org/formatnetwork.html

We don't have separate APIs for each piece of info - just the one
virNetworkDefineXML API that takes the XML document.

Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvirt-users mailing list