]> xenbits.xensource.com Git - libvirt.git/commit
test_driver: properly handle DHCP ranges and IPv6 networks in testDomainInterfaceAddr...
authorIlias Stamatis <stamatis.iliass@gmail.com>
Wed, 19 Jun 2019 16:45:30 +0000 (18:45 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Jun 2019 15:54:02 +0000 (17:54 +0200)
commitfcf1b2c70f52c328663397ea6b9a00cf8d9dfd2c
tree74e51180eb8ffd24e96e8ec7f10565561c250bca
parentd9536f5cffa8d2402ac5f1a5a88919c68fd917bb
test_driver: properly handle DHCP ranges and IPv6 networks in testDomainInterfaceAddresses

testDomainInterfaceAddresses always returns the same hard-coded
addresses. Change the behavior such as if there is a DHCP range defined,
addresses are returned from that pool.

The specific address returned depends on both the domain id and the
specific guest interface in an attempt to return unique addresses *most
of the time*.

Additionally, properly handle IPv6 networks which were previously
ignored completely.

Signed-off-by: Ilias Stamatis <stamatis.iliass@gmail.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/test/test_driver.c