[libvirt] [PATCH 0/3] test_driver: improve testDomainInterfaceAddresses

Ilias Stamatis stamatis.iliass at gmail.com
Wed Jun 19 11:18:14 UTC 2019


This patch series introduces the following improvements to the
testDomainInterfaceAddresses function:

- if a dhcp range is defined for the network, addresses are returned
  from there (instead of hard-coded addresses that were returned before)
- if the network is IPv6 even when a dhcp range is not defined IPv6
  addresses will be returned instead of IPv4
- the @source argument is validated
- only networks of type VIR_DOMAIN_NET_TYPE_NETWORK are considered

Ilias Stamatis (3):
  test_driver: validate @source in testDomainInterfaceAddresses
  test_driver: return addresses only for nets of type network
  test_driver: consider DHCP ranges in testDomainInterfaceAddresses

 src/test/test_driver.c | 96 +++++++++++++++++++++++++++++++++++++-----
 1 file changed, 86 insertions(+), 10 deletions(-)

--
2.22.0




More information about the libvir-list mailing list