Re: Libvirt APIs for creating virtual networks

2020-05-08 Thread Laine Stump
On 5/7/20 2:18 PM, Santhosh Kumar Gunturu wrote: Does the libvirt has any capabilities to get the statistics of DHCP server ? How many packets received/sent ? Is there a way to get those statistics if the APIs are not available ? libvirt spawns a dnsmasq instance for each network to handle D

Re: Libvirt APIs for creating virtual networks

2020-05-07 Thread Santhosh Kumar Gunturu
Does the libvirt has any capabilities to get the statistics of DHCP server ? How many packets received/sent ? Is there a way to get those statistics if the APIs are not available ? Thanks & Regards Santhosh Kumar Gunturu On Thu, Apr 30, 2020 at 1:45 PM Laine Stump wrote: > On 4/28/20 12:01 PM,

Re: Libvirt APIs for creating virtual networks

2020-04-30 Thread Laine Stump
On 4/28/20 12:01 PM, Daniel P. Berrangé wrote: 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 ? libvirt has no supported method of specifying a default gateway other than the

Re: Libvirt APIs for creating virtual networks

2020-04-28 Thread Daniel P . Berrangé
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/f

Re: Libvirt APIs for creating virtual networks

2020-04-28 Thread Santhosh Kumar Gunturu
Okay. Thanks. Do we have any facility APIs to set the DHCP Options via XML ? Default gateway ? Dns-server ? domain-name ? Thanks & Regards Santhosh Kumar Gunturu On Tue, Apr 28, 2020 at 8:47 AM Daniel P. Berrangé wrote: > On Tue, Apr 28, 2020 at 08:39:06AM -0700, Santhosh Kumar Gunturu wrote:

Re: Libvirt APIs for creating virtual networks

2020-04-28 Thread Daniel P . Berrangé
On Tue, Apr 28, 2020 at 08:39:06AM -0700, Santhosh Kumar Gunturu wrote: > I am using the Libvirt APIs to create the virtual networks to use the > dnsmasq capabilities. > I want to understand the APIs how to set the lease time in XML to control > the dnsmasq lease time. Support for controlling leas

Libvirt APIs for creating virtual networks

2020-04-28 Thread Santhosh Kumar Gunturu
I am using the Libvirt APIs to create the virtual networks to use the dnsmasq capabilities. I want to understand the APIs how to set the lease time in XML to control the dnsmasq lease time. Also, I need some DHCP statistics on the virtual network. Is there any API available to fetch the statistics