diff options
author | 2017-09-26 16:18:05 +0800 | |
---|---|---|
committer | 2017-09-26 16:18:05 +0800 | |
commit | 02aed0b4851c54d1e5a6c62c7c7f6729ff95c720 (patch) | |
tree | b4bc5f98ecbd7e2130cb63762393ef5a29841920 /deploy | |
parent | c243ba39ed2b4ca2723e62d37d1476fbcb7759b7 (diff) |
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 <zhong.jun@zte.com.cn>
Diffstat (limited to 'deploy')
-rw-r--r-- | deploy/environment.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |