From 02aed0b4851c54d1e5a6c62c7c7f6729ff95c720 Mon Sep 17 00:00:00 2001 From: zhongjun Date: Tue, 26 Sep 2017 16:18:05 +0800 Subject: Fix delete_virtual_network function call create_daisy_server_network method in VirtualEnvironment class calls self.delete_virtual_network, but it doesn't exist, actually it should be delete_virtual_network function in module libvirt_utils.py. Change-Id: I381e916097744827a22d311b275611df38d8e1be Signed-off-by: zhongjun --- deploy/environment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/environment.py b/deploy/environment.py index 14240549..24c1b4f7 100644 --- a/deploy/environment.py +++ b/deploy/environment.py @@ -197,7 +197,7 @@ class VirtualEnvironment(DaisyEnvironmentBase): def create_daisy_server_network(self): net_name = create_virtual_network(VMDEPLOY_DAISY_SERVER_NET) if net_name != self.pxe_bridge: - self.delete_virtual_network(VMDEPLOY_DAISY_SERVER_NET) + delete_virtual_network(VMDEPLOY_DAISY_SERVER_NET) err_exit('Network name %s is wrong, pxe bridge is %s' % (net_name, self.pxe_bridge)) self._daisy_server_net = net_name -- cgit 1.2.3-korg