Repository: libcloud Updated Branches: refs/heads/trunk 2392f5d5c -> b8a6e4b01
added check if libvirt uri is local without this listing nodes on a remote KVM server will fail to lookup the IPs in the arp cache Closes #788 Signed-off-by: Tomaz Muraus <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/9975bca6 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/9975bca6 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/9975bca6 Branch: refs/heads/trunk Commit: 9975bca62bdab7a8e460687d61885ded3816260b Parents: 2392f5d Author: Rene Kjellerup <[email protected]> Authored: Mon May 16 13:07:40 2016 -0700 Committer: Tomaz Muraus <[email protected]> Committed: Sat May 28 19:25:58 2016 +0200 ---------------------------------------------------------------------- libcloud/compute/drivers/libvirt_driver.py | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/9975bca6/libcloud/compute/drivers/libvirt_driver.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/libvirt_driver.py b/libcloud/compute/drivers/libvirt_driver.py index 3618ac4..34389d7 100644 --- a/libcloud/compute/drivers/libvirt_driver.py +++ b/libcloud/compute/drivers/libvirt_driver.py @@ -257,6 +257,10 @@ class LibvirtNodeDriver(NodeDriver): # Only Linux is supported atm return result + if '///' not in self._uri: + # Only local libvirtd is supported atm + return result + mac_addresses = self._get_mac_addresses_for_domain(domain=domain) cmd = ['arp', '-an']
