PyTest, test to cover VM creation a ovs nets
[osm/openvim.git] / test / lib / config_parser.py
1 import yaml
2
3
4 def get_config(file):
5 """
6 Parse test config file
7 :param file:
8 :return:
9 """
10 with open(file, 'r') as stream:
11 try:
12 return yaml.load(stream)
13 except yaml.YAMLError as exc:
14 print(exc)
15