# Path: vitrageclient/common/yaml_utils.py
# def load(stream):
# 
# Path: vitrageclient/exceptions.py
# class CommandError(Exception):
# class ClientException(Exception):
#     def __init__(self, code, message=None, request_id=None,
#                  url=None, method=None):
#     def __str__(self):
# def from_response(resp, url, method):


import os
from vitrageclient.common import yaml_utils
from vitrageclient import exceptions as exc
                file_path = '%s/%s' % (path, file_name)
                if os.path.isfile(file_path):
                    template = cls._load_yaml_file(file_path)
                    files_content.append((file_path, template))
        else:
            files_content = [(path, cls._load_yaml_file(path))]

        return files_content

    @classmethod
    def _load_yaml_file(cls, path):
        with open(path, 'r') as stream:
            return cls._load_yaml(stream)

    @classmethod
    def _load_yaml(cls, yaml_content):
        try:
            return yaml_utils.load(yaml_content)
        except ValueError as e:
            message = 'Could not load template: %s. Reason: %s' \
                      % (yaml_content, e)
            raise exc.CommandError(message)

    @classmethod
    def _load_template(cls, path, template_str):
        if path:
            files_content = cls._load_yaml_files(path)
        elif template_str:
            files_content = [(None, cls._load_yaml(template_str))]
        else:

# Path: vitrageclient/common/yaml_utils.py
# def load(stream):
# 
# Path: vitrageclient/exceptions.py
# class CommandError(Exception):
# class ClientException(Exception):
#     def __init__(self, code, message=None, request_id=None,
#                  url=None, method=None):
#     def __str__(self):
# def from_response(resp, url, method):


# Path: vitrageclient/v1/template.py
import os
from vitrageclient.common import yaml_utils
from vitrageclient import exceptions as exc

                file_path = '%s/%s' % (path, file_name)
                if os.path.isfile(file_path):
                    template = cls._load_yaml_file(file_path)
                    files_content.append((file_path, template))
        else:
            files_content = [(path, cls._load_yaml_file(path))]

        return files_content

    @classmethod
    def _load_yaml_file(cls, path):
        with open(path, 'r') as stream:
            return cls._load_yaml(stream)

    @classmethod
    def _load_yaml(cls, yaml_content):
        try:
            return yaml_utils.load(yaml_content)
        except ValueError as e:
            message = 'Could not load template: %s. Reason: %s' \
                      % (yaml_content, e)
            raise exc.CommandError(message)

    @classmethod
    def _load_template(cls, path, template_str):
        if path:
            files_content = cls._load_yaml_files(path)
        elif template_str:
            files_content = [(None, cls._load_yaml(template_str))]
        else:

            raise exc.CommandError(