1 ##############################################################################
2 # Copyright (c) 2015 Huawei Technologies Co.,Ltd and others.
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 ##############################################################################
10 from abc import ABCMeta
11 from abc import abstractmethod
14 class EnvBuilderPlugin:
15 __metaclass__ = ABCMeta
26 def load_drivers(self):
34 def config_br_ports(self):
46 def check_vm_connectivity(self):
49 def build(self, cfg_intent):
50 self.host_cfg = cfg_intent
56 self.config_br_ports()
57 self.check_vm_connectivity()