JIRA: BOTTLENECKS-29
[bottlenecks.git] / vstf / vstf / agent / env / plugins / tester_env_plugin.py
1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
3 #
4 # All rights reserved. This program and the accompanying materials
5 # are made available under the terms of the Apache License, Version 2.0
6 # which accompanies this distribution, and is available at
7 # http://www.apache.org/licenses/LICENSE-2.0
8 ##############################################################################
9
10 import logging
11
12 from vstf.agent.env.plugins.model import EnvBuilderPlugin
13 from vstf.agent.env.driver_plugins.manager import DriverPluginManager
14
15 LOG = logging.getLogger(__name__)
16
17
18 class Plugin(EnvBuilderPlugin):
19     def __init__(self):
20         super(Plugin, self).__init__()
21         self.dr_mgr = DriverPluginManager()
22
23     def clean(self):
24         self.dr_mgr.clean()
25
26     def install(self):
27         pass
28
29     def load_drivers(self):
30         drivers = self.host_cfg['drivers']
31         self.dr_mgr.load(drivers)
32
33     def create_brs(self):
34         pass
35
36     def config_br_ports(self):
37         pass
38
39     def create_vms(self):
40         pass
41
42     def wait_vms(self):
43         pass
44
45     def check_vm_connectivity(self):
46         pass