6 from abc import ABCMeta
7 from abc import abstractmethod
11 __metaclass__ = ABCMeta
15 """implement this clean function to clean environment before and after calling any other functions.
22 """implements this init function to setup necessary Preconditions.
28 def create_br(self, br_cfg):
29 """Create a bridge(virtual switch). Return True for success, return False for failure.
31 :param dict br_cfg: configuration for bridge creation like
38 "vlan_mode": "access",
49 def set_tap_vid(self, tap_cfg):
50 """set vlan id or vxlan id for tap device(virtual nic for vm).
52 :param dict tap_cfg: dictionary config for tap device like
55 "vlan_mode": "access",
62 def set_fastlink(self, br_cfg):