@staticmethod
def config_to_dict(config_file):
    """Convert Pipe separated config to Dict()
                return config
        """
    config = {}
    for line in config_file:
        if 'config_name|' in line:
            line = line.strip()
            config.update({'name': line.replace('config_name|', '')})
        if 'du_url' in line:
            line = line.strip()
            config.update({'du_url': line.replace('du_url|', '')})
        if 'os_tenant' in line:
            line = line.strip()
            config.update({'os_tenant': line.replace('os_tenant|', '')})
        if 'os_username' in line:
            line = line.strip()
            config.update({'os_username': line.replace('os_username|', '')})
        if 'os_region' in line:
            line = line.strip()
            config.update({'os_region': line.replace('os_region|', '')})
        if 'os_password' in line:
            line = line.strip()
            config.update({'os_password': line.replace('os_password|', '')})
        if 'proxy_url' in line:
            line = line.strip()
            config.update({'proxy_url': line.replace('proxy_url|', '')})
        if 'dns_resolver1' in line:
            line = line.strip()
            config.update({'dns_resolver1': line.replace('dns_resolver1|', '')}
                )
        if 'dns_resolver_2' in line:
            line = line.strip()
            config.update({'dns_resolver_2': line.replace('dns_resolver_2|',
                '')})
        if 'manage_hostname' in line:
            line = line.strip()
            config.update({'manage_hostname': line.replace(
                'manage_hostname|', '')})
        if 'manage_resolver' in line:
            line = line.strip()
            config.update({'manage_resolver': line.replace(
                'manage_resolver|', '')})
    return config
