]> git.ipfire.org Git - thirdparty/libvirt.git/commit
esx: split virtualswitchToNetwork helper
authorPino Toscano <ptoscano@redhat.com>
Thu, 14 Nov 2019 10:19:13 +0000 (11:19 +0100)
committerPino Toscano <ptoscano@redhat.com>
Fri, 20 Dec 2019 13:31:08 +0000 (14:31 +0100)
commit1331e29115f64b451358b83cda05cf6b32597f8f
treeb2b0729b19ff320abce58dfb244e2d98336420f3
parent1652ce66805e4572f4c2a722fe8e08af37e59529
esx: split virtualswitchToNetwork helper

Move the creation of a virNetworkPtr object from the
esxVI_HostVirtualSwitch object of a virtual switch out of
esxNetworkLookupByName in an own helper. This way it can be used also
in other functions.

Signed-off-by: Pino Toscano <ptoscano@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/esx/esx_network_driver.c