# Path: peekaboo/exceptions.py
# class PeekabooConfigException(PeekabooException):
#     pass
# 
# Path: peekaboo/toolbox/cortex.py
# class tlp(enum.Enum):
#     WHITE = 0
#     GREEN = 1
#     AMBER = 2
#     RED = 3


import re
import sys
import logging
import configparser
from peekaboo.exceptions import PeekabooConfigException
from peekaboo.toolbox.cortex import tlp
            'DEBUG': logging.DEBUG
        }

        level = self.get(section, option, raw=raw, vars=vars, fallback=None)
        if level is None:
            return fallback

        if level not in levels:
            raise PeekabooConfigException('Unknown log level %s' % level)

        return levels[level]

    def gettlp(self, section, option, raw=False, vars=None, fallback=None):
        levels = {
            'red': tlp.RED,
            '3': tlp.RED,
            'amber': tlp.AMBER,
            '2': tlp.AMBER,
            'green': tlp.GREEN,
            '1': tlp.GREEN,
            'white': tlp.WHITE,
            '0': tlp.WHITE,
        }

        level = self.get(section, option, raw=raw, vars=vars, fallback=None)
        if level is None:
            return fallback
        level = level.lower()

        if level not in levels:

# Path: peekaboo/exceptions.py
# class PeekabooConfigException(PeekabooException):
#     pass
# 
# Path: peekaboo/toolbox/cortex.py
# class tlp(enum.Enum):
#     WHITE = 0
#     GREEN = 1
#     AMBER = 2
#     RED = 3


# Path: peekaboo/config.py
import re
import sys
import logging
import configparser
from peekaboo.exceptions import PeekabooConfigException
from peekaboo.toolbox.cortex import tlp

            'DEBUG': logging.DEBUG
        }

        level = self.get(section, option, raw=raw, vars=vars, fallback=None)
        if level is None:
            return fallback

        if level not in levels:
            raise PeekabooConfigException('Unknown log level %s' % level)

        return levels[level]

    def gettlp(self, section, option, raw=False, vars=None, fallback=None):
        levels = {
            'red': tlp.RED,
            '3': tlp.RED,
            'amber': tlp.AMBER,
            '2': tlp.AMBER,
            'green': tlp.GREEN,
            '1': tlp.GREEN,
            'white': tlp.WHITE,
            '0': tlp.WHITE,
        }

        level = self.get(section, option, raw=raw, vars=vars, fallback=None)
        if level is None:
            return fallback
        level = level.lower()

        if level not in levels:

            raise PeekabooConfigException('Unknown tlp level %s' % level)