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