# Path: pyeapi/utils.py
# def make_iterable(value):
#     """Converts the supplied value to a list object
# 
#     This function will inspect the supplied value and return an
#     iterable in the form of a list.
# 
#     Args:
#         value (object): An valid Python object
# 
#     Returns:
#         An iterable object of type list
#     """
#     if sys.version_info <= (3, 0):
#         # Convert unicode values to strings for Python 2
#         if isinstance(value, unicode):
#             value = str(value)
#     if isinstance(value, str) or isinstance(value, dict):
#         value = [value]
# 
#     if sys.version_info <= (3, 3):
#         if not isinstance(value, collections.Iterable):
#             raise TypeError('value must be an iterable object')
#     else:
#         if not isinstance(value, collections.abc.Iterable):
#             raise TypeError('value must be an iterable object')
# 
#     return value


import re
from pyeapi.api import EntityCollection
from pyeapi.utils import make_iterable
            command = 'no vrf instance %s' % vrf_name
        else:
            command = 'no vrf definition %s' % vrf_name
        return self.configure(command)

    def default(self, vrf_name):
        """ Defaults the VRF configuration for given name

        Args:
            vrf_name (str): The VRF name to default

        Returns:
            True if the operation was successful otherwise False
        """
        if self.version_number >= '4.23':
            command = 'default vrf instance %s' % vrf_name
        else:
            command = 'default vrf definition %s' % vrf_name
        return self.configure(command)

    def configure_vrf(self, vrf_name, commands):
        """ Configures the specified VRF using commands

        Args:
            vrf_name (str): The VRF name to configure
            commands: The list of commands to configure

        Returns:
            True if the commands completed successfully
        """

# Path: pyeapi/utils.py
# def make_iterable(value):
#     """Converts the supplied value to a list object
# 
#     This function will inspect the supplied value and return an
#     iterable in the form of a list.
# 
#     Args:
#         value (object): An valid Python object
# 
#     Returns:
#         An iterable object of type list
#     """
#     if sys.version_info <= (3, 0):
#         # Convert unicode values to strings for Python 2
#         if isinstance(value, unicode):
#             value = str(value)
#     if isinstance(value, str) or isinstance(value, dict):
#         value = [value]
# 
#     if sys.version_info <= (3, 3):
#         if not isinstance(value, collections.Iterable):
#             raise TypeError('value must be an iterable object')
#     else:
#         if not isinstance(value, collections.abc.Iterable):
#             raise TypeError('value must be an iterable object')
# 
#     return value


# Path: pyeapi/api/vrfs.py
import re
from pyeapi.api import EntityCollection
from pyeapi.utils import make_iterable

            command = 'no vrf instance %s' % vrf_name
        else:
            command = 'no vrf definition %s' % vrf_name
        return self.configure(command)

    def default(self, vrf_name):
        """ Defaults the VRF configuration for given name

        Args:
            vrf_name (str): The VRF name to default

        Returns:
            True if the operation was successful otherwise False
        """
        if self.version_number >= '4.23':
            command = 'default vrf instance %s' % vrf_name
        else:
            command = 'default vrf definition %s' % vrf_name
        return self.configure(command)

    def configure_vrf(self, vrf_name, commands):
        """ Configures the specified VRF using commands

        Args:
            vrf_name (str): The VRF name to configure
            commands: The list of commands to configure

        Returns:
            True if the commands completed successfully
        """

        commands = make_iterable(commands)