# Path: mcm/librouteros/exceptions.py
# class CmdError( LibError ):
#     '''
#     Commend execution errors.
#     '''
# 
# class ConnError( LibError ):
#     '''
#     Connection related errors.
#     '''


from mcm.librouteros.exceptions import CmdError, ConnError
# -*- coding: UTF-8 -*-


to_py_mapping = {'yes': True,
                   'true': True,
                   'no': False,
                   'false': False,
                   '': None}

to_api_mapping = { True:'yes',
                    False:'no',
                    None:''}


def castValToPy( value ):

    try:
        casted = int( value )

# Path: mcm/librouteros/exceptions.py
# class CmdError( LibError ):
#     '''
#     Commend execution errors.
#     '''
# 
# class ConnError( LibError ):
#     '''
#     Connection related errors.
#     '''


# Path: mcm/librouteros/datastructures.py
from mcm.librouteros.exceptions import CmdError, ConnError

# -*- coding: UTF-8 -*-


to_py_mapping = {'yes': True,
                   'true': True,
                   'no': False,
                   'false': False,
                   '': None}

to_api_mapping = { True:'yes',
                    False:'no',
                    None:''}


def castValToPy( value ):

    try:
        casted = int( value )

    except ValueError: